Helix-Platform / Sandbox-NG

Helix Sandbox Next Generation
41 stars 9 forks source link

Helix Credentials #1

Open rafaferreirasantos opened 4 years ago

rafaferreirasantos commented 4 years ago

After installing and starting the Helix Platform successfully I have no options to create a new username and password. When I access it with my IP address through the browser It asks for username and password instead of letting me create a new one.

https://github.com/Helix-Platform/Sandbox-NG/raw/master/images/first_login.png This screen has never been shown.

MuriloKakazu commented 3 years ago

EDIT: This may be caused when mongo fails to install. The "password setup" screen will not show because the request to http://<machine-ip>:3030/user/hasUsers will fail, since Helix Orchestrator will not be up on that port since it depends on mongo being installed in the first place. Follow these instructions and see if they work for you


ORIGINAL: I also have this issue. It looks as if the dashboard already came with a predefined password, which is not specified in the docs: https://github.com/Helix-Platform/Sandbox-NG/blob/master/docs/dashboard.md

Steps to reproduce:

$ ./install.sh && ./start.sh && open http://<machine-ip>:5000

Then you end up with this screen: image

With no option to set the password, and any login attempt results in a undefined error: image

MuriloKakazu commented 3 years ago

I noticed the browser tried sending a request to http://<machine-ip>:3030/user/hasUsers when loading the dashboard auth page, but it resulted in: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://<machine-ip>:3030/user/hasUsers. (Reason: CORS request did not succeed).

From a quick diagnose running sudo lsof -i:3030 on the machine I'm running the Sandbox in, it looks like there is no service running on that port: 3030. Maybe this can give any hint?

It looks like Helix Orchestrator was supposed to be running on that port ref

MuriloKakazu commented 3 years ago

Hey @zecaloteiro and to any other one having this issue, I found out what happened and managed to make it work.

Run cat Helix-Orchestrator.log and see if this is present there:

exec: "mongo": executable file not found in $PATH
panic: exec: "mongo": executable file not found in $PATH

If so, your problem is the same as mine. For some reason the mongo installation failed when running ./install.sh:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mongodb-org-mongos : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
 mongodb-org-server : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
 mongodb-org-shell : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
 mongodb-org-tools : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
E: Unable to correct problems, you have held broken packages.

Just install mongo following these steps and then run ./start.sh again.

Then run cat ./Helix-Orchestrator.log again and it should now output this at the end:

[...]
\===========================ENVIRONMENT CONFIGURED==========================\

            Server running in port: 3030

And you're good to go!

oliveiradrodrigo commented 3 years ago

Hi Guys! I have one important question to you: What's the linux version you are using?

oliveiradrodrigo commented 3 years ago

One more thing, sometimes mongo have a delay to startup with the user provided and the Helix Orchestrator wont be able to can't connect with it, a simple solution, if you can see mongo running through docker ps -a command, it would be to run the command to start the orchestrator again:

nohup sudo ./Helix-Orchestrator &> Helix-Orchestrator.log&

We are working to fix that as soon as possible.

If it solves your problem @zecaloteiro, I would ask you to close this issue if possible. Thanks in advance! ;)