I had a quickstart VM running and successfully created a new site. At some point (I'm not sure how), it got corrupted. So I deleted it using "drush qd --domain=lunderwood.com".

I then tried to create a new site using "drush quickstart-create --domain=lunderwood.com". But the create failed. Key part of the error message (the entire terminal transcript is at the end):

"...
Running installer (takes a minute, check cpu activity) ... [ok]
file_get_contents(/home/quickstart/websites/lynn.com/CHANGELOG.txt): [warning]
failed to open stream: No such file or directory quickstart.inc:257
Command site-install needs a higher bootstrap level to run - you will[error]
need invoke drush from a more functional Drupal environment to run
this command.
Command site-install requires Drupal core version 6 or 7 to run. [error]
The drush command 'site-install standard' could not be executed. [error]
The directory /home/quickstart/websites/lynn.com does not contain a [error]
valid Drupal installation..."

This happened twice. I then downloaded a fresh quickstart ova ("Quickstart-w.0-amd64.ova") and imported it into VB to create a new quickstart VM. I got the same error when I tried to create the new site in that brand new VM.

I'm running VB 4.0.8 r71778.

Here's the complete terminal copy of my first failed attempt:

Aliases: qd
quickstart@qs10:~$ drush qd --domain=lunderwood.com
[ok]
Destroying installation (nothing to do) ... [ok]
... done. [ok]
Destroying code at /home/quickstart/websites/lunderwood.com ... [ok]
... done. [ok]
Destroying database and user lunderwood_com ... [ok]
... done. [ok]
Destroying apache config (/etc/apache2/sites-enabled/lunderwood.com) ... [ok]
... done. [ok]
Destroying dns config (remove lunderwood.com from /etc/hosts) ... [ok]
... done. [ok]
Command completed successfully. [success]
quickstart@qs10:~$ drush quickstart-create --domain=lunderwood.com
[ok]
Creating dns config (add lunderwood.com to /etc/hosts) ... [ok]
... done. [ok]
Creating database: lunderwood_com [ok]
... done. [ok]
Downloading code to /home/quickstart/websites/lunderwood.com (takes a minute, [ok]
check network activity) ...
The external command could not be executed due to an application error. [error]
simplexml_load_string(): Entity: line 109: parser error : Opening and ending [warning]
tag mismatch: meta line 3 and head drush_make.drush.inc:273
simplexml_load_string(): drush_make.drush.inc:273 [warning]
simplexml_load_string(): ^ drush_make.drush.inc:273 [warning]
simplexml_load_string(): Entity: line 132: parser error : Opening and ending [warning]
tag mismatch: br line 131 and div drush_make.drush.inc:273
simplexml_load_string():

drush_make.drush.inc:273 [warning]
simplexml_load_string(): ^ drush_make.drush.inc:273 [warning]
simplexml_load_string(): Entity: line 139: parser error : Opening and ending [warning]
tag mismatch: hr line 134 and body drush_make.drush.inc:273
simplexml_load_string(): drush_make.drush.inc:273 [warning]
simplexml_load_string(): ^ drush_make.drush.inc:273 [warning]
simplexml_load_string(): Entity: line 139: parser error : Opening and ending [warning]
tag mismatch: div line 116 and html drush_make.drush.inc:273
simplexml_load_string(): drush_make.drush.inc:273 [warning]
simplexml_load_string(): ^ drush_make.drush.inc:273 [warning]
simplexml_load_string(): Entity: line 140: parser error : Premature end of data[warning]
in tag hr line 114 drush_make.drush.inc:273
simplexml_load_string(): drush_make.drush.inc:273 [warning]
simplexml_load_string(): ^ drush_make.drush.inc:273 [warning]
simplexml_load_string(): Entity: line 140: parser error : Premature end of data[warning]
in tag body line 109 drush_make.drush.inc:273
simplexml_load_string(): drush_make.drush.inc:273 [warning]
simplexml_load_string(): ^ drush_make.drush.inc:273 [warning]
simplexml_load_string(): Entity: line 140: parser error : Premature end of data[warning]
in tag head line 2 drush_make.drush.inc:273
simplexml_load_string(): drush_make.drush.inc:273 [warning]
simplexml_load_string(): ^ drush_make.drush.inc:273 [warning]
simplexml_load_string(): Entity: line 140: parser error : Premature end of data[warning]
in tag html line 2 drush_make.drush.inc:273
simplexml_load_string(): drush_make.drush.inc:273 [warning]
simplexml_load_string(): ^ drush_make.drush.inc:273 [warning]
Could not retrieve version information for drupal. [error]
Non-existent project type on project drupal [error]
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to a member function make() on a non-object in
/home/quickstart/.drush/drush_make/drush_make.drush.inc, line 229
Output from failed command : [error]

Fatal error: Call to a member function make() on a non-object in
/home/quickstart/.drush/drush_make/drush_make.drush.inc on line 229

Call Stack:
0.0013 746752 1. {main}() /home/quickstart/drush/drush.php:0
0.0133 3651840 2. drush_main() /home/quickstart/drush/drush.php:41
0.0654 9983536 3. drush_dispatch()
/home/quickstart/drush/drush.php:101
0.0655 9984456 4. call_user_func_array()
/home/quickstart/drush/includes/command.inc:204
0.0655 9985072 5. drush_command()
/home/quickstart/drush/includes/command.inc:0
0.0667 9995920 6. call_user_func_array()
/home/quickstart/drush/includes/command.inc:721
0.0667 9995992 7. drush_invoke()
/home/quickstart/drush/includes/command.inc:0
0.0672 9996888 8. drush_invoke_args()
/home/quickstart/drush/includes/command.inc:58
0.0682 10016256 9. call_user_func_array()
/home/quickstart/drush/includes/command.inc:120
0.0682 10016872 10. drush_drush_make_make()
/home/quickstart/drush/includes/command.inc:0
0.0706 10022232 11. drush_make_projects()
/home/quickstart/.drush/drush_make/drush_make.drush.inc:114

The external command could not be executed due to an application error. [error]
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Uncaught exception 'Exception' with message '
chown: cannot access `/home/quickstart/websites/lunderwood.com': No such file
or directory' in /home/quickstart/quickstart/drush/quickstart.inc:30
Stack trace:
#0 /home/quickstart/quickstart/drush/quickstart.drush.inc(204):
quickstart_shell_exec('sudo chown -R q...')
#1 [internal function]: drush_quickstart_fixperms()
#2 /home/quickstart/drush/includes/command.inc(120):
call_user_func_array('drush_quickstar...', Array)
#3 /home/quickstart/drush/includes/command.inc(58):
drush_invoke_args('quickstart-fixp...', Array)
#4 [internal function]: drush_invoke('quickstart-fixp...')
#5 /home/quickstart/drush/includes/command.inc(721):
call_user_func_array('drush_invoke', Array)
#6 [internal function]: drush_command()
#7 /home/quickstart/drush/includes/command.inc(204):
call_user_func_array('drush_command', Array)
#8 /home/quickstart/drush/drush.php(101): drush_dispatch(Array)
#9 /home/quickstart/drush/drush.php(41): drush_main()
#10 {main}
thrown in /home/quickstart/quickstart/drush/quickstart.inc, line 30
Output from failed command : [error]

Fatal error: Uncaught exception 'Exception' with message ' in
/home/quickstart/quickstart/drush/quickstart.inc on line 30

Exception:
chown: cannot access `/home/quickstart/websites/lunderwood.com': No such file
or directory in /home/quickstart/quickstart/drush/quickstart.inc on line 30

Call Stack:
0.0005 746488 1. {main}() /home/quickstart/drush/drush.php:0
0.0114 3651416 2. drush_main() /home/quickstart/drush/drush.php:41
0.0623 9983040 3. drush_dispatch()
/home/quickstart/drush/drush.php:101
0.0624 9987704 4. call_user_func_array()
/home/quickstart/drush/includes/command.inc:204
0.0624 9988072 5. drush_command()
/home/quickstart/drush/includes/command.inc:0
0.0637 9998096 6. call_user_func_array()
/home/quickstart/drush/includes/command.inc:721
0.0637 9998152 7. drush_invoke()
/home/quickstart/drush/includes/command.inc:0
0.0642 9998464 8. drush_invoke_args()
/home/quickstart/drush/includes/command.inc:58
0.0653 10019544 9. call_user_func_array()
/home/quickstart/drush/includes/command.inc:120
0.0653 10019912 10. drush_quickstart_fixperms()
/home/quickstart/drush/includes/command.inc:0
0.0709 10026648 11. quickstart_shell_exec()
/home/quickstart/quickstart/drush/quickstart.drush.inc:204

... done. [ok]
Creating apache config (/etc/apache2/sites-enabled/lunderwood.com) [ok]
... done. [ok]
Running installer (takes a minute, check cpu activity) ... [ok]
file_get_contents(/home/quickstart/websites/lunderwood.com/CHANGELOG.txt): [warning]
failed to open stream: No such file or directory quickstart.inc:257
Command site-install needs a higher bootstrap level to run - you will need [error]
invoke drush from a more functional Drupal environment to run this command.
Command site-install requires Drupal core version 6 or 7 to run. [error]
The drush command 'site-install standard' could not be executed. [error]
The directory /home/quickstart/websites/lunderwood.com does not contain a valid[error]
Drupal installation
[ok]
URL: http://lunderwood.com
Admin user: admin
Admin password: admin
... done. [ok]
Command completed successfully. [success]
quickstart@qs10:~$

Comments

MichaelCole’s picture

Project: Quickstart: Prebuilt Drupal Development Environment » Drush Make
Version: » 6.x-3.x-dev
Component: Drush » Code
Category: support » bug

This is a bug in the Drush Make command. The error is not being trapped and turned into a useful error message.

Alot of Drush Make users, who are introduced to it with Quickstart, have this trouble.

The external command could not be executed due to an application error. [error]
simplexml_load_string(): Entity: line 109: parser error : Opening and ending [warning]
tag mismatch: meta line 3 and head drush_make.drush.inc:273
simplexml_load_string(): drush_make.drush.inc:273 [warning]
simplexml_load_string(): ^ drush_make.drush.inc:273 [warning]
simplexml_load_string(): Entity: line 132: parser error : Opening and ending [warning]

Mike

MichaelCole’s picture

Title: "drush quickstart-create" fails » "Parser error" as error message is not clear.
drupalricky’s picture

"This is a bug in the Drush Make command. The error is not being trapped and turned into a useful error message.
Alot of Drush Make users, who are introduced to it with Quickstart, have this trouble."

So there's nothing I can do until the drush people solve this problem?

budda’s picture

Does this effectively render Quickstart useless at present or is there some manual work around we can do ?

MichaelCole’s picture

Hi, when you encounter this, check your network connection.

Something funny is being returned to drush make and it's puking on the parse.

rkarajgi’s picture

@subscribing

rkarajgi’s picture

I was having the same problem where the command drush qc --domain=mysite01.local was hanging when it came to downloading the drupal.

Here is what worked for me
- Shutdown the virtual machine
- Go to VirtualBox Manager and click on that instance of the virtual machine
- Click settings and then on Networks
- The default Network adapter is NAT, I changed to Bridged Adapter and changed Promiscuous Mode to Allow All and then saved the revised settings.
- Restarted the virtual machine.
- Now, the drush qc -domain=mysite02.local completes properly without hanging.

There maybe other implications of changing to Bridged Adapter mode - as is discussed in other thread. Your virtual machine instance is not entirely NAT protected anymore but is browsable from any other machine on the LAN your system is on. I guess this should be safe so long as you are using the VirtualBox not a public wi-fi hotspot.

My guess why this is failing is - somewhere in the underlying drush make files, there is some FTP being done - which is failing in the NAT environment but working properly in the Bridged Adapter environment.

I hope this helps someone not being able to use the wonderful Drupal Quickstart.

Thanks

helmo’s picture

Status: Active » Closed (won't fix)

[ Powered by #1115636: Issue Macros and Templates - Drush Make]

Drush make is being merged into drush core (discussed in issue:#1310130: Put drush make in drush core)
This means that the issue queue is also moving. The Drush project has a component called 'Make' for this purpose.

We would like to take this opportunity to leave behind old/obsolete issues, allowing us to focus on a stable make command in core. E.g. one of the major tasks ahead is making more use of the Drush core code for handling downloads and decompression.

If you feel that this issue is still relevant, feel free to re-open and move it to the Drush queue.

More information will be posted on the drush_make and drush project pages.

danlanglois’s picture

Status: Closed (won't fix) » Needs review

I just reopened https://drupal.org/node/1096580#comment-5472852 (quoting #1: 'Alot of Drush Make users, who are introduced to it with Quickstart, have this trouble.'). Now, noting that #7 cites changing to Bridged Adapter mode as a fix, as 'there is some FTP being done - which is failing in the NAT environment..', I think that I recognize this stuff--'git pull' will also not work in this scenario but my fix was restarting Squid (web caching<--there's the culprit). From a Drush Make POV, I suppose the relevance would be 'useful error message'.

helmo’s picture

Status: Needs review » Closed (won't fix)

Please test with the latest Drush git version which has make integrated. As a lot of downloading code, and thus error messages, has changed.

I'm setting this back to won't fix as that probably won't happen here.

Please file a new issue in the Drush queue If the problem remains.