Moonshine-IDE / Super.Human.Installer

Super.Human.Installer helps you install the latest and greatest HCL Domino technologies easily.
https://superhumaninstaller.com/
Other
2 stars 0 forks source link

Server Stuck in Unusable State if Installer is Removed/Renamed #82

Open JoelProminic opened 11 months ago

JoelProminic commented 11 months ago

I tried to test with production Super.Human.Portal 0.8.17 on macOS Monterey today. I had an existing server provisioned and running. Normally I delete the servers before updating, but I didn't remember to do it this time. After the update, I found that SHI reported that the application needed configuration. Note that I did not have buttons to stop or delete the running instance.

image

When I checked the configuration, I found that all options and the Save button were disabled. I'm pretty sure I couldn't open "Manage" from this state:

image

To fix this, I:

  1. Stopped the VM manually. This did not fix the server state, even after a SHI restart
  2. Navigated to the Vagrant VM directory manually and ran vagrant destroy
  3. After reopening SHI, I found that I could now open the Manage interface. I found that the installers had not been updated since I renamed them to test #76.
  4. I saved my changes and the server was back in a usable state. I confirmed that Hosts.yml was updated.

So, the problem could have been the invalid installer paths instead of the update. I can try a test with this after I finish a sanity test for 0.8.17.

UPDATE: I confirmed that this was caused by the installer. You can reproduce this with:

  1. Create an provision a server
  2. Rename one of the installers - I chose the nomad installer
  3. Restart SH - the servers show a warning state.

SH should skip the installer verification for a fully provisioned VM. This will allow users to delete the installers if desired after creating the VM (though they would need the installers again to recreate the VM).

JoelProminic commented 11 months ago

Some additional notes which may be off topic.

I confirmed that the generated Hosts.yml matched the format for new server, as long as I update the original server to use the latest demo-tasks version. This is a good sign for reusing the server.

I did not have actions to remove either server. Restarting SHI did not fix this problem: image

piotrzarzycki21 commented 11 months ago

I have bring back delete button from debug - for some reason it was conditioned to show only in debug mode. Now in theory you shouldn't end up with scenario where there is no option for deleting server. Please test it and let me know if it's resolve issue.

piotrzarzycki21 commented 11 months ago

Additionally I have also get Open folder up in scenario when server is Starting/Stopped - To cover rest of the scenario I need more time - that is at least improvement.

MarkProminic commented 11 months ago

I believe there is a mechanism to copy the installer based on OS.

In Mac and Linux, it was able to easily make a symlink, but on Windows, I believe it copies the file. This is a vague recollection, and may be dismissed if this was fixed.

piotrzarzycki21 commented 11 months ago

I'm moving this issue for farther investigation to the next milestone.