nix-community / nixops-vbox

NixOps VirtualBox backend [maintainer=@AmineChikhaoui]
GNU Lesser General Public License v3.0
22 stars 15 forks source link

Cannot connect to server or VirtualBox during deploy but SSH works (on Darwin) #7

Open 3noch opened 7 years ago

3noch commented 7 years ago

I'm trying to have another dev deploy our system from his Mac. From my Mac, I'm able to deploy both to the server and to VirtualBox without problems. However, when he tries to deploy, nixops says it can't connect to the server in order to build any of the Linux-based packages. If he runs nixops ssh it works fine. It's only nixops deploy that apparently cannot connect. I even exported the root SSH credentials and added them to a configuration for NIX_REMOTE_SYSTEMS. Similarly, that setup worked on my machine, but not on his. I then asked him to deploy to VirtualBox instead. And even there nixops was not able to connect to the machine in order to build anything. I am entirely baffled at this and we had to rework our deployment so he could simply do a git pull to update web files.

We're both running macOS Sierra and the server is a DigitalOcean droplet.

Nixpkgs is unstable channel, at https://d3g5gsiof5omrk.cloudfront.net/nixpkgs/nixpkgs-17.03pre98765.6043569/nixexprs.tar.xz Nixops is pulled from Hydra, at: /nix/store/1gy62jcxjc09n9gk0ns4qk3d9b9kcda7-nixops-1.5pre2121_fc43d9c

ctheune commented 7 years ago

I'm seeing a similar issue (VirtualBox). I'm running nixops 1.5 on Sierra, too.

The networking issue starts earlier for me, though. I can't even ping the virtualbox instance. I can see it booted up, though as the GUI is there.

domenkozar commented 7 years ago

@ctheune sounds like the networking that nixops expects is not there. https://github.com/NixOS/nixops/pull/202 tries to address that.

Overall, these two issues don't seem to have the same cause. You'll have to play a bit of detective game here to help us pinpoint the issue :)

3noch commented 7 years ago

I've since discovered that the issue he was having is really the same issue that has been discussed elsewhere, namely that nixops doesn't use the VirtualBox machine to build Linux binaries when it would be feasible to do so. I think there's an issue for it but I can't find it.

3noch commented 7 years ago

@ctheune Perhaps my workaround will work for you: https://github.com/grafted-in/wordpress-nginx-nix#attention-macos-users