-
Notifications
You must be signed in to change notification settings - Fork 847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
timeout during server version negotiating #2717
Comments
Have you tested this after a reboot? This sounds like a virtualbox or
windows networking issue. Unless
missingWinAdminPriv is the clue
…On Fri, 21 Jun 2024 at 14:15, shanebp ***@***.***> wrote:
Are you using the latest stable or develop branch version of VVV?
Yes (stable)
Is it a new VVV, or an existing VVV that used to work?
Existing, worked but now broken
Did you use a CustomFile?
No (default)
Whats the problem?
Using Windows 10.
Everything was working properly until today. Tried to vagrant up but get
this error: timeout during server version negotiating. The vagrant
machine is running.
I can open the vvv dashboard in a browser, but none of the sites will
connect.
c:\vvv-local>vagrant up
------------------------------
\ V\ V\ V / v3.12 Ruby:3.1.4, Path:"c:/vvv-local"
_/_/_/ git::stable(aee9a69
<aee9a69>
)
Platform: mingw32 windows missingWinAdminPriv vagrant-goodhosts
monochrome-terminal shared_db_folder_disabled
Vagrant: v2.4.1, virtualbox: v7.0.18
Docs: https://varyingvagrantvagrants.org/
Contribute: https://github.com/varying-vagrant-vagrants/vvv
Dashboard: http://vvv.test
Bringing machine 'default' up with 'virtualbox' provider...
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4
wordpress.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4
buddyboss.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4
wordpress.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4
buddyboss.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4
wordpress.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4
buddyboss.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4
wordpress.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4
buddyboss.test
==> default: [vagrant-goodhosts] Checking for host entries
==> default: [vagrant-goodhosts] Finished processing
==> default: Machine already provisioned. Run vagrant provision or use
the --provision
==> default: flag to force provisioning. Provisioners marked to run always
will still run.
==> default: Running action triggers after up ...
==> default: Running trigger: VVV Post-Up...
==> default: Trigger run failed
==> default: An error occurred in the underlying SSH library that Vagrant
uses.
==> default: The error message is shown below. In many cases, errors from
this
==> default: library are caused by ssh-agent issues. Try disabling your SSH
==> default: agent or removing some keys and try again.
==> default:
==> default: If the problem persists, please report a bug to the net-ssh
project.
==> default:
==> default: timeout during server version negotiating
How do we reproduce it?
*No response*
What is the output of vagrant status
c:\vvv-local>vagrant status
__ __ __ __\ V\ V\ V / v3.12 Ruby:3.1.4, Path:"c:/vvv-local"
\_/\_/\_/ git::stable(aee9a69)
Platform: mingw32 windows missingWinAdminPriv vagrant-goodhosts monochrome-terminal shared_db_folder_disabled
Vagrant: v2.4.1, virtualbox: v7.0.18
Docs: https://varyingvagrantvagrants.org/
Contribute: https://github.com/varying-vagrant-vagrants/vvv
Dashboard: http://vvv.test
Current machine states:
default running (virtualbox)
The VM is running. To stop this VM, you can run `vagrant halt` to
shut it down forcefully, or you can run `vagrant suspend` to simplysuspend the virtual machine. In either case, to restart it again,
simply run `vagrant up`.
Which Operating System are you using?
Microsoft Windows
Which provider are you using?
VirtualBox 7
—
Reply to this email directly, view it on GitHub
<#2717>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAOLZ35HGJJRFPV2LU44FLZIQRQPAVCNFSM6AAAAABJV4ZAHOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3DMNJSHA2DCMI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Also needs reproducing in develop branch, no guarantee it hasn’t already
been fixed
…On Fri, 21 Jun 2024 at 14:23, Tom Nowell ***@***.***> wrote:
Have you tested this after a reboot? This sounds like a virtualbox or
windows networking issue. Unless
missingWinAdminPriv is the clue
On Fri, 21 Jun 2024 at 14:15, shanebp ***@***.***> wrote:
> Are you using the latest stable or develop branch version of VVV?
>
> Yes (stable)
> Is it a new VVV, or an existing VVV that used to work?
>
> Existing, worked but now broken
> Did you use a CustomFile?
>
> No (default)
> Whats the problem?
>
> Using Windows 10.
>
> Everything was working properly until today. Tried to vagrant up but get
> this error: timeout during server version negotiating. The vagrant
> machine is running.
>
> I can open the vvv dashboard in a browser, but none of the sites will
> connect.
>
> c:\vvv-local>vagrant up
> ------------------------------
>
> \ V\ V\ V / v3.12 Ruby:3.1.4, Path:"c:/vvv-local"
> _/_/_/ git::stable(aee9a69
> <aee9a69>
> )
>
> Platform: mingw32 windows missingWinAdminPriv vagrant-goodhosts
> monochrome-terminal shared_db_folder_disabled
> Vagrant: v2.4.1, virtualbox: v7.0.18
>
> Docs: https://varyingvagrantvagrants.org/
> Contribute: https://github.com/varying-vagrant-vagrants/vvv
> Dashboard: http://vvv.test
>
> Bringing machine 'default' up with 'virtualbox' provider...
> ==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 vvv.test
> ==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4
> wordpress.test
> ==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4
> buddyboss.test
> ==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 vvv.test
> ==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4
> wordpress.test
> ==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4
> buddyboss.test
> ==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 vvv.test
> ==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4
> wordpress.test
> ==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4
> buddyboss.test
> ==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 vvv.test
> ==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4
> wordpress.test
> ==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4
> buddyboss.test
> ==> default: [vagrant-goodhosts] Checking for host entries
> ==> default: [vagrant-goodhosts] Finished processing
> ==> default: Machine already provisioned. Run vagrant provision or use
> the --provision
> ==> default: flag to force provisioning. Provisioners marked to run
> always will still run.
> ==> default: Running action triggers after up ...
> ==> default: Running trigger: VVV Post-Up...
> ==> default: Trigger run failed
> ==> default: An error occurred in the underlying SSH library that Vagrant
> uses.
> ==> default: The error message is shown below. In many cases, errors from
> this
> ==> default: library are caused by ssh-agent issues. Try disabling your
> SSH
> ==> default: agent or removing some keys and try again.
> ==> default:
> ==> default: If the problem persists, please report a bug to the net-ssh
> project.
> ==> default:
> ==> default: timeout during server version negotiating
> How do we reproduce it?
>
> *No response*
> What is the output of vagrant status
>
> c:\vvv-local>vagrant status
> __ __ __ __\ V\ V\ V / v3.12 Ruby:3.1.4, Path:"c:/vvv-local"
> \_/\_/\_/ git::stable(aee9a69)
>
> Platform: mingw32 windows missingWinAdminPriv vagrant-goodhosts monochrome-terminal shared_db_folder_disabled
> Vagrant: v2.4.1, virtualbox: v7.0.18
>
> Docs: https://varyingvagrantvagrants.org/
> Contribute: https://github.com/varying-vagrant-vagrants/vvv
> Dashboard: http://vvv.test
>
> Current machine states:
>
> default running (virtualbox)
>
> The VM is running. To stop this VM, you can run `vagrant halt` to
> shut it down forcefully, or you can run `vagrant suspend` to simplysuspend the virtual machine. In either case, to restart it again,
> simply run `vagrant up`.
>
> Which Operating System are you using?
>
> Microsoft Windows
> Which provider are you using?
>
> VirtualBox 7
>
> —
> Reply to this email directly, view it on GitHub
> <#2717>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAAOLZ35HGJJRFPV2LU44FLZIQRQPAVCNFSM6AAAAABJV4ZAHOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3DMNJSHA2DCMI>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
|
I did a reboot. And then vagrant destroy followed by vagrant up. Not sure how to use develop branch.
|
Switched to develop branch and everything is working now. |
Glad to hear, does it show 3.12/3.13 or 3.14 on the working branch?
…On Fri, 21 Jun 2024 at 15:16, shanebp ***@***.***> wrote:
Switched to develop branch and everything is working now.
—
Reply to this email directly, view it on GitHub
<#2717 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAOLZ7Y7T2KLUWR6LMNJE3ZIQYT3AVCNFSM6AAAAABJV4ZAHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBSHA2DEMBRGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
3.14.0 |
If this happens again feel free to reopen, closing as there's been no disussion since june |
Getting the same error again on vagrant up: Tried:
No luck...
|
Can you open the virtualbox management software and force the VM to switch off? Then try again. Likewise have you changed the program you use for your terminal recently or anything related to git CLI? Windows doesn't have a native sockets implementation and there are multiple competing solutions to work around this. Vagrant implements cygwin and the msysgit but not others. This is why some terminals on Windows generate timeouts, and why we suggest installing git in the software requirements for Windows users |
Yes, I tried forcing the VM off and then restarted - no luck. This worked, but destroyed the existing data... Any way to do that and preserve the database? Or install a backup of the database? |
You can take a backup manually if it isn't auto-backing up ( we turned off auto-backup a while ago ). The only way for the database to be preserved by a destroy without a backup/restore is to enable the shared DB folder, but this is highly unstable and may result in weirdness and unreliability of basic things. Overall it's highly unlikely that a destroy will fix that issue, and if it was a problem with the VM the biggest change is the destruction of useful debugging data. |
If you didn't have a backup when you destroyed the VM then that data is gone forever. It's much more likely that there's something that has changed recently on your system in one of the pieces of software that's used, e.g. updating virtualbox, the terminal or prompt used ( they really do matter, e.g. powershell is not the same as windows terminal which is not the same as cmd.exe etc, even though they all look and behave the same, even if you use what you had always used but had installed an alternative and decided not to bother with it ) |
A good check of the software setup is to create a second VVV in a second folder, if that fails to provision with the same issues then you can rule out the VM being the problem |
This issue may be a useful read: #2505 specifically #2505 (comment) |
A new Windows page underneath troubleshooting has been created! https://varyingvagrantvagrants.org/docs/en-US/troubleshooting/windows/
|
Ok, thanks for all the info. |
Still failing to connect to database, every couple of days. It seems that ssh is working:
Is the change in |
It shouldn't matter what the pid is, have you ran that before the vagrant commands? |
This stackoverflow answer links to that too but adds more context/detail https://stackoverflow.com/a/18404557/57482 Of note it seems if you have multiple git bash sessions and close the first, the ssh agent goes with it and the remaining shells have no ssh agent
|
|
Does |
Screenshot of git bash window that opens when I open "Git Bash" Here is the full log of commands:
Seems the last |
It seems this is a known issue with ssh-agent being stopped or restarted when Windows comes out of sleep. |
Port forwarding in vagrant? Or somewhere else? We have SSH agent forwarding
but this is set up when the VM is turned on and off it’s not something we
would enable or disable/toggle
…On Sun, 8 Sep 2024 at 15:22, shanebp ***@***.***> wrote:
It seems this is a known issue with ssh-agent being stopped or restarted
when Windows comes out of sleep.
I've read through many posts - all well above my level of understanding -
but it seems that turning port-forwarding on or off is part of the solution.
Could port-forwarding cause issues with VVV ?
—
Reply to this email directly, view it on GitHub
<#2717 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAOLZZMUP2UBYVAX2AS2ULZVRMT5AVCNFSM6AAAAABJV4ZAHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWG4YDKNRZHE>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Do you have links to that research I can read?
…On Sun, 8 Sep 2024 at 16:12, Tom Nowell ***@***.***> wrote:
Port forwarding in vagrant? Or somewhere else? We have SSH agent
forwarding but this is set up when the VM is turned on and off it’s not
something we would enable or disable/toggle
On Sun, 8 Sep 2024 at 15:22, shanebp ***@***.***> wrote:
> It seems this is a known issue with ssh-agent being stopped or restarted
> when Windows comes out of sleep.
> I've read through many posts - all well above my level of understanding -
> but it seems that turning port-forwarding on or off is part of the solution.
> Could port-forwarding cause issues with VVV ?
>
> —
> Reply to this email directly, view it on GitHub
> <#2717 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAAOLZZMUP2UBYVAX2AS2ULZVRMT5AVCNFSM6AAAAABJV4ZAHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWG4YDKNRZHE>
> .
> You are receiving this because you modified the open/close state.Message
> ID: ***@***.***>
>
|
I think it has to do with Vagrant or Virtual Box changing, stopping or 'hanging' ssh-agent when resuming from Windows sleep. I bookmarked my research from yesterday - but didn't notice that the answers were AI-generated. So the bookmarks do not return the same info I saw yesterday ( ! ) when I did a search on The info included things like:
I don't know what that means or how to implement. So before trying, I thought I'd ask if there are any issues with such tinkering vis-a-vis VVV. |
I'd be very suspicious of those, the only reference I can find for Parallels/vagrant-parallels#334 (comment)
That's not really how SSH works with VVV, if you run
It's meant to speed things up a little but has caveats, it might provide useful information here but it's unlikely. Port forwarding is something that can be done but if you look in the VVV vagrant file you'll see it's commented out with a note about disabling it, so there's nothing to disable there. Agent forwarding is the closest here but that would not cause your problem, it's what allows the VVV provisioners to use your SSH keys to grab stuff without copying the data into the VM. If Agent forwarding failed then you would be able to start and stop the VM fine, it would only be attempts to use private Github repos that failed. Does starting a new separate second instance of VVV in a different folder work? What happens if you try to add an SSH key or do a test connection to github ( |
Also noting that the reason the database isn't running is because it's started by a script that runs once the VM is up by vagrant, with the SSH connectivity issue you're having it never gets the chance to start the database up. This is also the likely reason why you can only access it via the IP, the next step vagrant would have taken would have started vagrant-goodhosts and updated the hosts file. |
Also check the git version installed I'd also note that if it is sleep related then you'd be able to start VVV ok after a restart and it would work fine until your machine went to sleep. |
Empirical evidence strongly points to an ssh issue on resume from sleep. |
Ah so if you reboot it does work as expected as long as you don't sleep? I'll update the Windows troubleshooting page, you might want to experiment with the Hyper-V provider |
Yes, but windows will restart occasionally without asking first. And I lose the database connection and do not have current sql backups. If vagrant is up and the laptop sleeps then it might lose the database connection when windows resumes. |
Are you using the latest stable or develop branch version of VVV?
Yes (stable)
Is it a new VVV, or an existing VVV that used to work?
Existing, worked but now broken
Did you use a CustomFile?
No (default)
Whats the problem?
Using Windows 10.
Everything was working properly until today. Tried to
vagrant up
but get this error:timeout during server version negotiating
. The vagrant machine is running.I can open the vvv dashboard in a browser, but none of the sites will connect.
Output:
c:\vvv-local>vagrant up
\ V\ V\ V / v3.12 Ruby:3.1.4, Path:"c:/vvv-local"
_/_/_/ git::stable(aee9a69)
Platform: mingw32 windows missingWinAdminPriv vagrant-goodhosts monochrome-terminal shared_db_folder_disabled
Vagrant: v2.4.1, virtualbox: v7.0.18
Docs: https://varyingvagrantvagrants.org/
Contribute: https://github.com/varying-vagrant-vagrants/vvv
Dashboard: http://vvv.test
Bringing machine 'default' up with 'virtualbox' provider...
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 wordpress.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 buddyboss.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 wordpress.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 buddyboss.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 wordpress.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 buddyboss.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 wordpress.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.56.4 buddyboss.test
==> default: [vagrant-goodhosts] Checking for host entries
==> default: [vagrant-goodhosts] Finished processing
==> default: Machine already provisioned. Run
vagrant provision
or use the--provision
==> default: flag to force provisioning. Provisioners marked to run always will still run.
==> default: Running action triggers after up ...
==> default: Running trigger: VVV Post-Up...
==> default: Trigger run failed
==> default: An error occurred in the underlying SSH library that Vagrant uses.
==> default: The error message is shown below. In many cases, errors from this
==> default: library are caused by ssh-agent issues. Try disabling your SSH
==> default: agent or removing some keys and try again.
==> default:
==> default: If the problem persists, please report a bug to the net-ssh project.
==> default:
==> default: timeout during server version negotiating
How do we reproduce it?
No response
What is the output of
vagrant status
Which Operating System are you using?
Microsoft Windows
Which provider are you using?
VirtualBox 7
The text was updated successfully, but these errors were encountered: