Skip to content
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

Error when Recreating Server #92

Open
JoelProminic opened this issue Aug 24, 2023 · 5 comments
Open

Error when Recreating Server #92

JoelProminic opened this issue Aug 24, 2023 · 5 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@JoelProminic
Copy link
Contributor

JoelProminic commented Aug 24, 2023

Describe the bug

I have been seeing an error when recreating a Vagrant Server instance.

To Reproduce
Steps to reproduce the behavior:

  1. Already have a server created
  2. Stop the server
  3. Delete the Vagrant/VirtualBox instance:
    image
  4. Click the play button to create the server again
    image
  5. BUG: Server creation fails with:
    image

The machine with the name 'd8fd4ea' was not found configured for the Vagrant environment.
[SHI]: 'vagrant up' stopped with exit code: 1, elapsed time 00:00:01

  1. Restart SHI
  2. Click the play button. This time it starts properly. I the only UI difference I see is that the third icon does not show the green dot after the restart:
    image
    image

Desktop (please complete the following information):

  • OS: macOS
  • Version: 12.6.5 Monterey, x86_64
  • Vagrant 2.3.4
  • Virtualbox 7.0.8
@JoelProminic JoelProminic added the bug Something isn't working label Aug 24, 2023
@JoelProminic
Copy link
Contributor Author

This looks like a problem with how "vagrant up" is called, but I don't see an immediate obvious problem:

function _startVagrantUp() {

public function getUp( machine:VagrantMachine, ?provision:Bool = false, ?args:Array<String> ):AbstractExecutor {

@piotrzarzycki21
Copy link
Contributor

3. Delete the Vagrant instance

What do you mean by delete vagrant instance ? Did you go to Virtual Box and deleted it with files ?

@JoelProminic
Copy link
Contributor Author

Sorry, I meant to add some further clarification to this point. I mean that I used this button in SHI to delete the VirtualBox VM. I did not fully delete the server from SHI:
image

@JoelProminic
Copy link
Contributor Author

I updated the description with some more screenshots and notes

@JoelProminic
Copy link
Contributor Author

This may be a separate issue, but I'm also seeing cases where server is in a "stopped" state, but I don't see the red 'x' button. I think this maybe related to when the provisioning fails.:

image

% vagrant status
Current machine states:

6904--domino-1.demoprod.com poweroff (virtualbox)

The VM is powered off. To restart the VM, simply run `vagrant up`

The SHI state persists even if I restart SHI, in this case.

I was debugging some new problems with provisioning, and I had to restart SHI a bunch of times trying to work around the above bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants