kalamuna / kalaboxv1

NodeJS frontend sex to kalastack
MIT License
28 stars 9 forks source link

Download loop #12

Open pirog opened 10 years ago

pirog commented 10 years ago

Sometimes after your code is downloaded the "Download site form" will reappear and this seems to loop infinitely.

I think this is caused by some funk in settings.php which produces bad SQL creds and a failure to report that error by terminatur.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/2698583-download-loop?utm_campaign=plugin&utm_content=tracker%2F1250748&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1250748&utm_medium=issues&utm_source=github).
reynoldsalec commented 10 years ago

This happened to me when a fatal error occurred in the settings.php file; in my case there was a call to drupal_fast_404(), which wasn't available. Should be able to check the kalabox.log and ascertain that.

reynoldsalec commented 10 years ago

Hmmmm, I see a stub function defined in Terminatur to try and prevent the fatal error that I experienced trying to download a site with drupal_fast_404() in the settings.php; if we update Terminatur in Kalabox this shouldn't be a problem.

pirog commented 10 years ago

@reynoldsalec make it so. i think the terminatur version is defined in one of the config JSON files.

reynoldsalec commented 10 years ago

Just committed update to newest terminatur version, should fix this.

pirog commented 10 years ago

I am still getting this funkstation

reynoldsalec commented 10 years ago

@pirog what does the log say? Is it the same drupal_fast_404 stuff?

pirog commented 10 years ago

negative.

it may be related to these 2014-06-26T23:47:29.051Z - warn: Error retrieving sites list: Error: connect ECONNREFUSED 2014-06-26T23:48:03.589Z - warn: Error retrieving sites list: Error: connect ECONNREFUSED 2014-06-26T23:48:19.334Z - warn: Error retrieving sites list: Error: connect ECONNREFUSED

On Fri, Jun 27, 2014 at 1:46 PM, reynoldsalec notifications@github.com wrote:

@pirog https://github.com/pirog what does the log say? Is it the same drupal_fast_404 stuff?

— Reply to this email directly or view it on GitHub https://github.com/kalamuna/kalabox/issues/12#issuecomment-47398389.

Cheers,

Mike Pirog Kalamuna www.kalamuna.com

reynoldsalec commented 10 years ago

Now I'm having the same problem, but it doesn't seem to be connected to SFTP mode. I suspect this is some issue with SSH key forwarding:

2014-06-30T17:13:09.576Z - warn: An error occurred in an async call. cause stack is ... Error: Command failed: Could not git pull your code. Check that your SSH key is loaded and [error] the codeserver is reachable.

at ChildProcess.exithandler (child_process.js:661:12)
at ChildProcess.EventEmitter.emit (events.js:101:17)
at maybeClose (child_process.js:773:16)
at Socket.eval (child_process.js:994:11)
at Socket.EventEmitter.emit (events.js:98:17)
at Pipe.eval [as close] (net.js:459:12)

async call history is ... [ { function: 'buildSite2', location: '/private/var/folders/j8/g02x13k55nd6bnzylxd3btyc0000gn/T/.org.chromium.Chromium.dBIhR0/kalabox/vm/sites-manager.js:106:75', mapping: { description: 'tail' } } ]

pirog commented 10 years ago

Does it work if you just use the drush commands inside the box? Can you ping google?

reynoldsalec commented 10 years ago

I can ping google, "drush pd" within the box successfully pulls a copy of the database.

pirog commented 10 years ago

We stopped forwarding SSH keys but terminatur should post one for you which you should be able to see in your P-dashboard. Can you just run git clone with verbose debugging and see if anything obvious jumps out?

On Mon, Jun 30, 2014 at 10:21 AM, reynoldsalec notifications@github.com wrote:

I can ping google, "drush pd" within the box successfully pulls a copy of the database.

— Reply to this email directly or view it on GitHub https://github.com/kalamuna/kalabox/issues/12#issuecomment-47559556.

Cheers,

Mike Pirog Kalamuna www.kalamuna.com

reynoldsalec commented 10 years ago

The most obvious thing appears to be getting my publickey denied (good ole "Permission denied (password,publickey)").

Very strange since I'm able to pull code on other pre-existing repos from Pantheon.

pirog commented 10 years ago

hmmmm...

can you pull it from your Mac?

On Mon, Jun 30, 2014 at 10:32 AM, reynoldsalec notifications@github.com wrote:

The most obvious thing appears to be getting my publickey denied (good ole "Permission denied (password,publickey)").

Very strange since I'm able to pull code on other pre-existing repos from Pantheon.

— Reply to this email directly or view it on GitHub https://github.com/kalamuna/kalabox/issues/12#issuecomment-47560894.

Cheers,

Mike Pirog Kalamuna www.kalamuna.com

reynoldsalec commented 10 years ago

Yeah, works fine there.

pirog commented 10 years ago

We needed /bin/node to do our /etc/hosts stuff. Because it wasn't there it was always failing and producing this.

Maybe @bassettsj has suggestions on how node can edit /etc/hosts in a different way that doesn't include us packaging in the node binary?

pi-ron commented 10 years ago

This is still happening for me :-(

Is there anything I can do to test / help?

pirog commented 10 years ago

Are you running the new beta7?

On Thursday, July 3, 2014, Tigeda notifications@github.com wrote:

This is still happening for me :-(

Is there anything I can do to test / help?

— Reply to this email directly or view it on GitHub https://github.com/kalamuna/kalabox/issues/12#issuecomment-48003157.

Cheers,

Mike Pirog Kalamuna www.kalamuna.com

pi-ron commented 10 years ago

I've just uninstalled beta5 (it did do some updates this morning) completely (Vagrant & Virtualbox). Re-installed beta7.

I'm still getting the popup loop.. Can't download any sites.

Going to Kalabox > About Kalabox says Version 1.0.0 (1.0.0)

pirog commented 10 years ago

Can you SSH into your box and run "rm -rf ~/.drush/cache" and then try to download a site?

On Thursday, July 3, 2014, Tigeda notifications@github.com wrote:

I've just uninstalled beta5 (it did do some updates this morning) completely (Vagrant & Virtualbox). Re-installed beta7.

I'm still getting the popup loop.. Can't download any sites.

Going to Kalabox > About Kalabox says Version 1.0.0 (1.0.0)

— Reply to this email directly or view it on GitHub https://github.com/kalamuna/kalabox/issues/12#issuecomment-48006494.

Cheers,

Mike Pirog Kalamuna www.kalamuna.com

rfmarcelino commented 10 years ago

I'm stuck with the loop either. The 'create new site' keeps appearing even with the most recent updates and cleaning the drush cache. The sites are created without the success message, and aren't available at http://eachsitename.kala Also, I'm unable to delete them. Could it be related (like permissions)? screen shot 2014-07-04 at 13 04 15

pirog commented 10 years ago

Hmmm, all these issues were def present in beta5 and beta6... Can you both run "cat ~/.kalabox/kalastack/config.json" from your Mac and paste the output here?

On Friday, July 4, 2014, rfmarcelino notifications@github.com wrote:

I'm stuck with the loop either. The 'create new site' keeps appearing even with the most recent updates and cleaning the drush cache. The sites are created without the success message, and aren't available at http://eachsitename.kala Also, I'm unable to delete them. Could it be related (like permissions)? [image: screen shot 2014-07-04 at 13 04 15] https://cloud.githubusercontent.com/assets/5331086/3481597/85848cc0-0374-11e4-93af-4d5ab26d1738.png

— Reply to this email directly or view it on GitHub https://github.com/kalamuna/kalabox/issues/12#issuecomment-48036666.

Cheers,

Mike Pirog Kalamuna www.kalamuna.com

rfmarcelino commented 10 years ago

{ "boxname": "kalabox", "boxuser": "vagrant", "kalastack_version": "3.0-beta4", "terminatur_version": "1.0-beta1", "puppet_environment": "deprecated", "default_memory": "2048", "memory_divisor": "4", "box_location": { "32": "http://files.kalamuna.com/kalabox32.box", "64": "http://files.kalamuna.com/kalabox64.box" }, "ip": "1.3.3.7", "host_ip": "1.3.3.1", "host_entries": [ "kala", "start.kala", "php.kala", "grind.kala", "solr.kala", "aliases.kala", "info.kala", "images.kala" ], "synced_www_folder": { "host_path": "/kalabox/www/", "guest_path": "/var/www/", "nfs": "true", "nfs_version": "3", "create": "true" }, "ssh_forwarding": "false", "puppet_master": { "server": "kalabox.kalamuna.com" } }

pirog commented 10 years ago

That's definitely right. Are you logged into pantheon on the configure tab. If so, logout and then login again. I think your SSH key is not being generated.

On Friday, July 4, 2014, rfmarcelino notifications@github.com wrote:

{ "boxname": "kalabox", "boxuser": "vagrant", "kalastack_version": "3.0-beta4", "terminatur_version": "1.0-beta1", "puppet_environment": "deprecated", "default_memory": "2048", "memory_divisor": "4", "box_location": { "32": "http://files.kalamuna.com/kalabox32.box", "64": "http://files.kalamuna.com/kalabox64.box" }, "ip": "1.3.3.7", "host_ip": "1.3.3.1", "host_entries": [ "kala", "start.kala", "php.kala", "grind.kala", "solr.kala", "aliases.kala", "info.kala", "images.kala" ], "synced_www_folder": { "host_path": "/kalabox/www/", "guest_path": "/var/www/", "nfs": "true", "nfs_version": "3", "create": "true" }, "ssh_forwarding": "false", "puppet_master": { "server": "kalabox.kalamuna.com" } }

— Reply to this email directly or view it on GitHub https://github.com/kalamuna/kalabox/issues/12#issuecomment-48042355.

Cheers,

Mike Pirog Kalamuna www.kalamuna.com

pi-ron commented 10 years ago

{ "boxname": "kalabox", "boxuser": "vagrant", "kalastack_version": "3.0-beta4", "terminatur_version": "1.0-beta1", "puppet_environment": "threebetathree", "default_memory": "2048", "memory_divisor": "4", "box_location": { "32": "http://files.kalamuna.com/kalabox32.box", "64": "http://files.kalamuna.com/kalabox64.box" }, "ip": "1.3.3.7", "host_ip": "1.3.3.1", "host_entries": [ "kala", "start.kala", "php.kala", "grind.kala", "solr.kala", "aliases.kala", "info.kala", "images.kala" ], "synced_www_folder": { "host_path": "/kalabox/www/", "guest_path": "/var/www/", "nfs": "true", "nfs_version": "3", "create": "true" }, "ssh_forwarding": "false", "puppet_master": { "server": "kalabox.kalamuna.com" } }

pi-ron commented 10 years ago

@pirog removing the drush cache did the trick and I could download my site no worries.

Thanks.

reynoldsalec commented 10 years ago

Sidenote: confirmed that Kalabox version beta5 and beta6 (those that lacked the node binary) definitely fail updating /etc/hosts on the host machine; error will look like this in $HOME/.kalabox/kalabox.log for anyone facing this issue:

2014-07-07T20:14:15.524Z - warn: An error occurred in an async call.
cause stack is ...
  Error: ENOENT, no such file or directory '/private/var/folders/j8/g02x13k55nd6bnzylxd3btyc0000gn/T/.org.chromium.Chromium.sjnZsa/bin/node'
    at Object.fs.chmodSync (fs.js:813:18)
    at StepContext.addHostsEntry0 (/private/var/folders/j8/g02x13k55nd6bnzylxd3btyc0000gn/T/.org.chromium.Chromium.sjnZsa/kalabox/utils/host.js:39:8)
    at runStep (/private/var/folders/j8/g02x13k55nd6bnzylxd3btyc0000gn/T/.org.chromium.Chromium.sjnZsa/node_modules/nue/lib/nue.js:113:14)
    at Object.step (/private/var/folders/j8/g02x13k55nd6bnzylxd3btyc0000gn/T/.org.chromium.Chromium.sjnZsa/node_modules/nue/lib/nue.js:64:11)
    at Object.startFlow [as addHostsEntry] (/private/var/folders/j8/g02x13k55nd6bnzylxd3btyc0000gn/T/.org.chromium.Chromium.sjnZsa/node_modules/nue/lib/nue.js:43:12)
    at StepContext.buildSite3 (/private/var/folders/j8/g02x13k55nd6bnzylxd3btyc0000gn/T/.org.chromium.Chromium.sjnZsa/kalabox/vm/sites-manager.js:112:10)
    at runStep (/private/var/folders/j8/g02x13k55nd6bnzylxd3btyc0000gn/T/.org.chromium.Chromium.sjnZsa/node_modules/nue/lib/nue.js:113:14)
    at step (/private/var/folders/j8/g02x13k55nd6bnzylxd3btyc0000gn/T/.org.chromium.Chromium.sjnZsa/node_modules/nue/lib/nue.js:64:11)
    at StepContext.next (/private/var/folders/j8/g02x13k55nd6bnzylxd3btyc0000gn/T/.org.chromium.Chromium.sjnZsa/node_modules/nue/lib/nue.js:229:14)
    at asyncCallback (/private/var/folders/j8/g02x13k55nd6bnzylxd3btyc0000gn/T/.org.chromium.Chromium.sjnZsa/node_modules/nue/lib/nue.js:351:21)
async call history is ...
 [ { function: 'buildSite3',
    location: '/private/var/folders/j8/g02x13k55nd6bnzylxd3btyc0000gn/T/.org.chromium.Chromium.sjnZsa/kalabox/vm/sites-manager.js:112:47',
    mapping: { description: 'tail' } } ]
pirog commented 10 years ago

@rfmarcelino any update on logging in and out? Anything weird in your kalabox log?

rfmarcelino commented 10 years ago

I've installed it on a different mac and everything worked great from the start, so I used the uninstaller (again) and removed everything. After a fresh install, everything is working on both machines. Thanks @pirog

cspin commented 10 years ago

I had a similar issue after getting Kalabox (beta7) up and running and connecting to Pantheon. Couldn't download my test site. It would just time out and show the same download modal like nothing happened. Then I noticed that the option to select a backup db was just hanging without showing my list of db's, so I came here looking for a clue. The solution was Mike's earlier suggestion: "SSH into your box and run "rm -rf ~/.drush/cache" ". That seemed to do the trick. All good now!

pirog commented 10 years ago

Great to know. I think this issue will only impact people who were pre-beta7 but these resolution seems pretty easy so that is good.

pi-ron commented 10 years ago

I'm again unable to download sites wah.

The rm -rf ~/.drush/cache trick hasn't worked this time around..

I checked out the Git Connection problems issue and I also cannot pull from within kalabox:

  vagrant@kala:/var/www/quest-schools$ git pull
  Permission denied (password,publickey).
  fatal: The remote end hung up unexpectedly
pirog commented 10 years ago

@reynoldsalec definitely need to resolve this issue. seems to be the #1 roadblock for people.

reynoldsalec commented 10 years ago

Sites pulled via the dashboard use terminatur; they will automatically add the terminatur key as long as it exists, so that should be a different issue than trying to pull code via git from the command line within the box.

For example, I have to manually add my SSH key in Kalabox or I get the issue in #69, but I can still pull sites via the dashboard when I haven't added the SSH key (once I've pulled sites, my SSH key has been added by terminatur and I can once again run git pull).

@Tigeda, could you post a copy of your kalabox.log (on your host Mac, it's at ~/.kalabox/kalabox.log)? I'm guessing your issue pulling sites is being caused by something else than not having a key added or having an old key (the problem that was solved by clearing .drush/cache), since I haven't been able to replicate that.

pi-ron commented 10 years ago

@reynoldsalec

Kalabox Log

2014-07-04T02:57:12.826Z - info: Box initialized.
2014-07-04T02:57:12.827Z - info: Kalabox Version: 1.0-beta6
2014-07-04T02:57:12.827Z - info: Mac OS Version: 10.9.3

2014-07-04T02:57:12.827Z - info: VirtualBox Version: false
2014-07-04T02:57:12.828Z - info: Vagrant Version: false
2014-07-04T02:57:24.049Z - info: VirtualBox not installed or wrong version. Installing.
2014-07-04T02:57:24.050Z - info: User granted permission to install VirtualBox
2014-07-04T03:01:34.961Z - info: Successfully downloaded VirtualBox DMG.
2014-07-04T03:01:45.184Z - info: Successfully mounted VirtualBox DMG.
2014-07-04T03:02:09.884Z - info: VirtualBox installation complete.
2014-07-04T03:02:10.157Z - info: Successfully ejected VirtualBox DMG.
2014-07-04T03:02:10.157Z - info: Vagrant not installed or wrong version. Installing.
2014-07-04T03:02:10.157Z - info: User granted permission to install Vagrant
2014-07-04T03:03:23.997Z - info: Successfully downloaded Vagrant DMG.
2014-07-04T03:03:30.122Z - info: Successfully mounted Vagrant DMG.
2014-07-04T03:03:41.089Z - info: Vagrant installation complete.
2014-07-04T03:03:41.178Z - info: Successfully ejected Vagrant DMG.
2014-07-04T03:18:39.066Z - info: Box image downloaded.
2014-07-04T03:18:40.605Z - info: Installing Vagrant plugin vagrant-hostsupdater
2014-07-04T03:18:41.567Z - info: Kalastack downloaded
2014-07-04T03:18:41.568Z - info: Installing Vagrant plugin vagrant-hostsupdater
2014-07-04T03:18:58.158Z - info: Wrote configuration file.
2014-07-04T03:18:58.185Z - info: Executing box spinup.
2014-07-04T03:18:58.216Z - info: Starting spinup attempt 0
2014-07-04T03:23:57.691Z - info: Box initialized.
2014-07-04T03:23:57.692Z - info: Kalabox Version: 1.0-beta6
2014-07-04T03:23:57.692Z - info: Mac OS Version: 10.9.3

2014-07-04T03:23:57.692Z - info: VirtualBox Version: 4.3.6r91406

2014-07-04T03:23:57.692Z - info: Vagrant Version: Vagrant 1.4.3

2014-07-04T03:23:57.692Z - info: Installation completed successfully.
2014-07-04T03:23:57.915Z - info: Existing VirtualBox installation, version 4.3.6
2014-07-04T03:23:57.916Z - info: Existing Vagrant installation, version 1.4.3
2014-07-04T03:23:57.922Z - info: Kalabox image already downloaded.
2014-07-04T03:23:57.922Z - info: Box image downloaded.
2014-07-04T03:23:57.923Z - info: Kalastack already downloaded
2014-07-04T03:23:57.923Z - info: Installing Vagrant plugin vagrant-hostsupdater
2014-07-04T03:23:58.501Z - info: Kalastack downloaded
2014-07-04T03:23:58.502Z - info: Installing Vagrant plugin vagrant-hostsupdater
2014-07-04T03:24:05.269Z - info: Wrote configuration file.
2014-07-04T03:24:05.295Z - info: Executing box spinup.
2014-07-04T03:24:05.320Z - info: Starting spinup attempt 0
2014-07-04T03:24:06.912Z - info: Box initialized.
2014-07-04T03:24:06.912Z - info: Kalabox Version: 1.0-beta6
2014-07-04T03:24:06.912Z - info: Mac OS Version: 10.9.3

2014-07-04T03:24:06.913Z - info: VirtualBox Version: 4.3.6r91406

2014-07-04T03:24:06.913Z - info: Vagrant Version: Vagrant 1.4.3

2014-07-04T03:24:06.913Z - info: Installation completed successfully.
2014-07-04T03:29:30.343Z - warn: An error occurred in an async call.
cause stack is ...
  Error: Command failed: Could not clone code from the remote repository. Check that your SSH     [error]
key is loaded and the codeserver is reachable.

    at ChildProcess.exithandler (child_process.js:661:12)
    at ChildProcess.EventEmitter.emit (events.js:101:17)
    at maybeClose (child_process.js:773:16)
    at Socket.eval (child_process.js:994:11)
    at Socket.EventEmitter.emit (events.js:98:17)
    at Pipe.eval [as close] (net.js:459:12)
async call history is ...
 [ { function: 'buildSite2',
    location: '/private/var/folders/t9/yjmtk6sj1735rds00j_sstb40000gn/T/.org.chromium.Chromium.EGN1Ej/kalabox/vm/sites-manager.js:106:75',
    mapping: { description: 'tail' } } ]
2014-07-04T03:29:51.724Z - warn: An error occurred in an async call.
cause stack is ...
  Error: Command failed: Could not clone code from the remote repository. Check that your SSH     [error]
key is loaded and the codeserver is reachable.

    at ChildProcess.exithandler (child_process.js:661:12)
    at ChildProcess.EventEmitter.emit (events.js:101:17)
    at maybeClose (child_process.js:773:16)
    at Socket.eval (child_process.js:994:11)
    at Socket.EventEmitter.emit (events.js:98:17)
    at Pipe.eval [as close] (net.js:459:12)
async call history is ...
 [ { function: 'buildSite2',
    location: '/private/var/folders/t9/yjmtk6sj1735rds00j_sstb40000gn/T/.org.chromium.Chromium.EGN1Ej/kalabox/vm/sites-manager.js:106:75',
    mapping: { description: 'tail' } } ]
2014-07-04T03:30:28.184Z - warn: An error occurred in an async call.
cause stack is ...
  Error: Command failed: Could not git pull your code. Check that your SSH key is loaded and      [error]
the codeserver is reachable.

    at ChildProcess.exithandler (child_process.js:661:12)
    at ChildProcess.EventEmitter.emit (events.js:101:17)
    at maybeClose (child_process.js:773:16)
    at Socket.eval (child_process.js:994:11)
    at Socket.EventEmitter.emit (events.js:98:17)
    at Pipe.eval [as close] (net.js:459:12)
async call history is ...
 [ { function: 'buildSite2',
    location: '/private/var/folders/t9/yjmtk6sj1735rds00j_sstb40000gn/T/.org.chromium.Chromium.EGN1Ej/kalabox/vm/sites-manager.js:106:75',
    mapping: { description: 'tail' } } ]
2014-07-04T03:32:22.474Z - warn: An error occurred in an async call.
cause stack is ...
  Error: Command failed: Could not git pull your code. Check that your SSH key is loaded and      [error]
the codeserver is reachable.

    at ChildProcess.exithandler (child_process.js:661:12)
    at ChildProcess.EventEmitter.emit (events.js:101:17)
    at maybeClose (child_process.js:773:16)
    at Socket.eval (child_process.js:994:11)
    at Socket.EventEmitter.emit (events.js:98:17)
    at Pipe.eval [as close] (net.js:459:12)
async call history is ...
 [ { function: 'buildSite2',
    location: '/private/var/folders/t9/yjmtk6sj1735rds00j_sstb40000gn/T/.org.chromium.Chromium.EGN1Ej/kalabox/vm/sites-manager.js:106:75',
    mapping: { description: 'tail' } } ]
2014-07-06T22:55:31.587Z - info: Box initialized.
2014-07-06T22:55:31.588Z - info: Kalabox Version: 1.0-beta6
2014-07-06T22:55:31.588Z - info: Mac OS Version: 10.9.3

2014-07-06T22:55:31.588Z - info: VirtualBox Version: 4.3.6r91406

2014-07-06T22:55:31.588Z - info: Vagrant Version: Vagrant 1.4.3

2014-07-12T04:49:58.659Z - info: Box initialized.
2014-07-12T04:49:58.660Z - info: Kalabox Version: 1.0-beta6
2014-07-12T04:49:58.660Z - info: Mac OS Version: 10.9.3

2014-07-12T04:49:58.660Z - info: VirtualBox Version: 4.3.6r91406

2014-07-12T04:49:58.660Z - info: Vagrant Version: Vagrant 1.4.3

2014-07-12T04:54:38.937Z - warn: Box has no Internet connection.
2014-07-12T04:57:39.086Z - warn: Box has no Internet connection.
2014-07-12T06:15:03.277Z - warn: An error occurred in an async call.
cause stack is ...
  Error: Box has no Internet connection.
    at eval (/private/var/folders/t9/yjmtk6sj1735rds00j_sstb40000gn/T/.org.chromium.Chromium.KCq67x/kalabox/vm/services.js:78:15)
    at ChildProcess.exithandler (child_process.js:665:7)
    at ChildProcess.EventEmitter.emit (events.js:101:17)
    at maybeClose (child_process.js:773:16)
    at Socket.eval (child_process.js:994:11)
    at Socket.EventEmitter.emit (events.js:98:17)
    at Pipe.eval [as close] (net.js:459:12)
async call history is ...
 [ { function: 'refreshSite1',
    location: '/private/var/folders/t9/yjmtk6sj1735rds00j_sstb40000gn/T/.org.chromium.Chromium.KCq67x/kalabox/vm/sites-manager.js:231:36',
    mapping: { description: 'tail' } } ]
2014-07-12T06:15:23.180Z - warn: An error occurred in an async call.
cause stack is ...
  Error: Box has no Internet connection.
    at eval (/private/var/folders/t9/yjmtk6sj1735rds00j_sstb40000gn/T/.org.chromium.Chromium.KCq67x/kalabox/vm/services.js:78:15)
    at ChildProcess.exithandler (child_process.js:665:7)
    at ChildProcess.EventEmitter.emit (events.js:101:17)
    at maybeClose (child_process.js:773:16)
    at Socket.eval (child_process.js:994:11)
    at Socket.EventEmitter.emit (events.js:98:17)
    at Pipe.eval [as close] (net.js:459:12)
async call history is ...
 [ { function: 'refreshSite1',
    location: '/private/var/folders/t9/yjmtk6sj1735rds00j_sstb40000gn/T/.org.chromium.Chromium.KCq67x/kalabox/vm/sites-manager.js:231:36',
    mapping: { description: 'tail' } } ]
2014-07-20T03:20:28.928Z - info: Box initialized.
2014-07-20T03:20:28.929Z - info: Kalabox Version: 1.0-beta6
2014-07-20T03:20:28.929Z - info: Mac OS Version: 10.9.3

2014-07-20T03:20:28.929Z - info: VirtualBox Version: 4.3.6r91406

2014-07-20T03:20:28.929Z - info: Vagrant Version: Vagrant 1.4.3

2014-07-20T04:15:44.004Z - warn: An error occurred in an async call.
cause stack is ...
  Error: Command failed: Could not clone code from the remote repository. Check that your SSH     [error]
key is loaded and the codeserver is reachable.

    at ChildProcess.exithandler (child_process.js:661:12)
    at ChildProcess.EventEmitter.emit (events.js:101:17)
    at maybeClose (child_process.js:773:16)
    at Socket.eval (child_process.js:994:11)
    at Socket.EventEmitter.emit (events.js:98:17)
    at Pipe.eval [as close] (net.js:459:12)
async call history is ...
 [ { function: 'refreshSite2',
    location: '/private/var/folders/t9/yjmtk6sj1735rds00j_sstb40000gn/T/.org.chromium.Chromium.c1bwAA/kalabox/vm/sites-manager.js:237:109',
    mapping: { description: 'tail' } } ]
2014-07-20T04:16:40.291Z - warn: Box has no Internet connection.
2014-07-20T04:16:54.795Z - info: Box initialized.
2014-07-20T04:16:54.796Z - info: Kalabox Version: 1.0-beta6
2014-07-20T04:16:54.796Z - info: Mac OS Version: 10.9.3

2014-07-20T04:16:54.796Z - info: VirtualBox Version: 4.3.6r91406

2014-07-20T04:16:54.796Z - info: Vagrant Version: Vagrant 1.4.3

2014-07-24T05:24:06.779Z - info: Box initialized.
2014-07-24T05:24:06.780Z - info: Kalabox Version: 1.0-beta6
2014-07-24T05:24:06.780Z - info: Mac OS Version: 10.9.3

2014-07-24T05:24:06.780Z - info: VirtualBox Version: 4.3.6r91406

2014-07-24T05:24:06.780Z - info: Vagrant Version: Vagrant 1.4.3

2014-07-25T01:31:27.021Z - warn: An error occurred in an async call.
cause stack is ...
  Error: Command failed: Could not git pull your code. Check that your SSH key is loaded and      [error]
the codeserver is reachable.

    at ChildProcess.exithandler (child_process.js:661:12)
    at ChildProcess.EventEmitter.emit (events.js:101:17)
    at maybeClose (child_process.js:773:16)
    at Socket.eval (child_process.js:994:11)
    at Socket.EventEmitter.emit (events.js:98:17)
    at Pipe.eval [as close] (net.js:459:12)
async call history is ...
 [ { function: 'buildSite2',
    location: '/private/var/folders/t9/yjmtk6sj1735rds00j_sstb40000gn/T/.org.chromium.Chromium.SwORW2/kalabox/vm/sites-manager.js:106:75',
    mapping: { description: 'tail' } } ]
2014-07-25T01:33:29.706Z - warn: An error occurred in an async call.
cause stack is ...
  Error: Command failed: Could not git pull your code. Check that your SSH key is loaded and      [error]
the codeserver is reachable.

    at ChildProcess.exithandler (child_process.js:661:12)
    at ChildProcess.EventEmitter.emit (events.js:101:17)
    at maybeClose (child_process.js:773:16)
    at Socket.eval (child_process.js:994:11)
    at Socket.EventEmitter.emit (events.js:98:17)
    at Pipe.eval [as close] (net.js:459:12)
async call history is ...
 [ { function: 'buildSite2',
    location: '/private/var/folders/t9/yjmtk6sj1735rds00j_sstb40000gn/T/.org.chromium.Chromium.SwORW2/kalabox/vm/sites-manager.js:106:75',
    mapping: { description: 'tail' } } ]
2014-07-25T01:36:34.596Z - warn: An error occurred in an async call.
cause stack is ...
  Error: Command failed: Could not git pull your code. Check that your SSH key is loaded and      [error]
the codeserver is reachable.

    at ChildProcess.exithandler (child_process.js:661:12)
    at ChildProcess.EventEmitter.emit (events.js:101:17)
    at maybeClose (child_process.js:773:16)
    at Socket.eval (child_process.js:994:11)
    at Socket.EventEmitter.emit (events.js:98:17)
    at Pipe.eval [as close] (net.js:459:12)
async call history is ...
 [ { function: 'buildSite2',
    location: '/private/var/folders/t9/yjmtk6sj1735rds00j_sstb40000gn/T/.org.chromium.Chromium.SwORW2/kalabox/vm/sites-manager.js:106:75',
    mapping: { description: 'tail' } } ]
2014-07-25T01:38:04.268Z - info: Box initialized.
2014-07-25T01:38:04.269Z - info: Kalabox Version: 1.0-beta6
2014-07-25T01:38:04.269Z - info: Mac OS Version: 10.9.3

2014-07-25T01:38:04.269Z - info: VirtualBox Version: 4.3.6r91406

2014-07-25T01:38:04.270Z - info: Vagrant Version: Vagrant 1.4.3

2014-07-25T01:39:45.915Z - warn: An error occurred in an async call.
cause stack is ...
  Error: Command failed: Could not git pull your code. Check that your SSH key is loaded and      [error]
the codeserver is reachable.

    at ChildProcess.exithandler (child_process.js:661:12)
    at ChildProcess.EventEmitter.emit (events.js:101:17)
    at maybeClose (child_process.js:773:16)
    at Socket.eval (child_process.js:994:11)
    at Socket.EventEmitter.emit (events.js:98:17)
    at Pipe.eval [as close] (net.js:459:12)
async call history is ...
 [ { function: 'buildSite2',
    location: '/private/var/folders/t9/yjmtk6sj1735rds00j_sstb40000gn/T/.org.chromium.Chromium.IBs5xh/kalabox/vm/sites-manager.js:106:75',
    mapping: { description: 'tail' } } ]
2014-07-25T01:45:09.611Z - warn: An error occurred in an async call.
cause stack is ...
  Error: Command failed: Drush command terminated abnormally due to an unrecoverable error.       [error]

    at ChildProcess.exithandler (child_process.js:661:12)
    at ChildProcess.EventEmitter.emit (events.js:101:17)
    at maybeClose (child_process.js:773:16)
    at Socket.eval (child_process.js:994:11)
    at Socket.EventEmitter.emit (events.js:98:17)
    at Pipe.eval [as close] (net.js:459:12)
async call history is ...
 [ { function: 'buildSite2',
    location: '/private/var/folders/t9/yjmtk6sj1735rds00j_sstb40000gn/T/.org.chromium.Chromium.IBs5xh/kalabox/vm/sites-manager.js:106:75',
    mapping: { description: 'tail' } } ]
2014-07-25T01:58:59.137Z - warn: Box has no Internet connection.
pi-ron commented 10 years ago

@pirog I've installed beta8 but I'm still getting download loop issue.

pi-ron commented 10 years ago

Update – I ran rm -rf ~/.drush/cache and site download worked.

pirog commented 10 years ago

I was able to replciate this on a fresh beta8... looks like the game is still afoot.

pirog commented 10 years ago

hmmmm, this failed when i tried it on the MIT wifi network but succeeded at Kalamuna HQ... maybe port blocking for SSH?

pi-ron commented 10 years ago

Let me know if you need any further testing done. Seems to be working well again after the cache clear.

pirog commented 10 years ago

Good to know. @Tigeda what would be great is for someone to produce some steps on how to actually replicate this error so if you are down to help with that that would be awesome!

pi-ron commented 10 years ago

Yeh I'm happy to help but it seems very random from and end user point of view. I'm not exactly sure what I do or don't do to make it happen. Besides from the semi-solution of clearing drush cache I've got no process to follow!

pi-ron commented 10 years ago

Ok, I've just had the dreaded download loop return. The scenario was:

Attempted to download site without files from an existing backup and I got the dreaded loop.

pirog commented 10 years ago

awesome! my experience has seemingly been the same so it will be great to find the order in the chaos.

Will try to replicate with these instructions ASAP. Did you install B8 from scratch or otherwise? if other, how?

pi-ron commented 10 years ago

Yes I ran the uninstall tool first and removed everything, then installed beta8.

pirog commented 10 years ago

Awesome! We've got a dev sprint on V1 for tomorrow so def will scope this issue out!

pi-ron commented 10 years ago

Love your work. Bring on 1.0 & 2.0!

pirog commented 10 years ago

We love your support! Speaking of V2.... it now has a home https://github.com/kalabox

dsquaredb commented 10 years ago

I am having this problem of the download loop with one of my Pantheon sites. Four others download okay and I can access the sites locally with no problem.

The problem site gets into that infinite download loop, but if I go through Tigeda's steps above, I can get the site to download. Once it is downloaded, the Kalabox dashboard shows the site as downloaded and I can see the files and can see that the database downloaded, but when I click on the site name, I get an error in the browser saying the server can't be found or the webpage is not available.

I checked the output of /etc/hosts and see the four sites that are working, but the site that is not working isn't listed. The only unique thing about this site from the others is that this site on Pantheon has Redis.

If you need more info or testing, I'm happy to help. For now, I've had to resort to MA***\ for this one site. :(

dsquaredb commented 10 years ago

Not sure why I didn't think of it before, but... just after the last post, I decided to edit /etc/hosts and add the problem site. And, Boomshakalaka! the site now opens. I know that's just a work around, but at least I can get it to work now.

ModulesUnraveled commented 10 years ago

Just wanted to let you guys know that I had been having this issue for a while, and was able to get it fixed. In short: I deleted the terminatur.id_rsa files and everything's working great now!

Here's what I did:

  1. Log out of Pantheon in the "Configure" tab
  2. SSH into kalabox
  3. cd ~/.ssh
  4. rm -rf terminatur.id_rsa terminatur.id_rsa.pub
  5. Log back into Pantheon in the "Configure" tab

Boomshakalaka! Everything works great!

Note: I did still have to add my keys to Pantheon as mentioned in #69, so perhaps I could have just renamed the keys, but don't know for sure. Note 2: When I logged back into Pantheon, the terminatur keys were not re-created (as I expected they would be) so not sure what that's about. Either way, everything's working. So, I'm a happy camper!