-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Unable to connect to docker simulator image #8527
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
I tried exposing all ports like this:
And I was able to connect however, I'm not sure if something still isn't setup correctly, or if I'm interacting with the API incorrectly:
|
Additionally I tried to setup a basic cloud, again by following the readme instructions but got an error:
|
@mikehale I just tried , it looks ok
curl http://[IP]:8081/ (port 8080 is already used, so I use port 8081) |
I tried running that exact command, and I'm still getting a timeout trying to connect over http. That's really strange to me since docker should be using a completely encapsulated environment. I do see a lot of things being setup at boot time though, so maybe my container is actually different than yours somehow? After it finishes booting I see the following repeating in the logs:
|
So, running that docker command on my Apple Silicon laptop I never see:
However, when I tried it on my Synology linux box I do see that message, and I'm able to access the dashboard. |
For reference I'm attaching the log file from my apple machine: apple.log |
@mikehale |
Same result. I think for some reason when running on apple silicon the app is never starting on port 5050. |
5050 is the port for UI can you try with privileged mode (and both smaller port than 1024) ? |
Just for grins I ran an nginx container and confirmed I could connect to it:
Running the simulator in privileged mode with a low port, still results in the same outcome:
Looking at the logs I don't see anything listening on port 5050 inside the container, only port 8080:
|
@mikehale |
I just started the container again and suddenly now it is working without any changes on my end!? It's a bit unsettling to have the container change behavior even if it is for the better:
|
Tangential, but do you know offhand if there is a way to just boot the container, and not have it download and configure a bunch of stuff when it starts? |
I guess it may be that I just wasn't waiting long enough? I just tried running again without I tail'd It still seems like something isn't working because I'm seeing errors like like this via docker logs:
Also the deploy script is having issues:
|
if you asked about general containers, you can update the entrypoint command/config, or export the container and recreate with a new entrypoint if the first option does not work. if you talked about the simulator container, the start process is quite simple (1) start mysql, (2) start cloudstack; (3) start cloudstack UI. no need to do above. |
that's good to know.
this issue can be ignored. it should be because you run cloudstack in a container.
retry with advanced.cfg ? |
Thanks, I'm familiar with this.
I guess maybe my question is more along the lines of is there a way to speed up the startup time of the simulator container? Currently it takes about 6 minutes to go from |
Running with advanced.cfg yields the same error:
|
@mikehale
I suspect it is caused by some settings with the docker image. |
@weizhouapache thanks for all your time and help on this. I'm guessing that this is related to Apple Silicon and the rosetta compatibility layer that docker uses. I'm going to double check that by running on an old Intel Mac. |
I just confirmed everything works just fine on my Intel Mac, so this seems to be an issue with Apple Silicon. |
@mikehale |
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
Docker
SUMMARY
The instructions for using the simulator don't seem to work.
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: