-
Notifications
You must be signed in to change notification settings - Fork 78
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
Run alfred on headless servers without root account #48
Comments
You could try using the ai2thor-docker repo which is basically a few scripts to make and run a Docker container that runs startx in it. |
@jzhanson Thanks. In fact, I also tried this one allenai/ai2thor-docker#3. The docker container won't work properly unless it is launched on the headless machine. Specifically, my machine is a headless server, so it can't forward the |
I was going to suggest docker as well: https://github.com/askforalfred/alfred#docker-setup I am not sure how to use THOR without X. Perhaps you can check here: https://github.com/allenai/ai2thor ? |
@MohitShridhar Thank you for the suggestion. At least, I find your README for installing the docker is more well-documented the ai2thor repo 👍 Let me give it a try. |
Anw, the docker containers built from your Docker file or from ai2thor-docker work perfectly given the host machine has a display forwarded to the container. I'm trying to use |
If you unset the DISPLAY environment variable and launch the docker container, does it work? The docker container will launch its own X11 server to render thor. If not, can you paste the console output you receive when running? |
Given the docker image built with ai2thor-docker, I run the docker container without passing
And run the test script with its error output:
I checked the environment variable
I'm very new to such kind of setup, please correct me if I'm wrong. I checked several issues at ai2thor repo but still found no concrete guide for setup on headless servers. Many thanks beforehand. |
Take a look at scripts/run.sh in the ai2thor-docker repo. You must run the docker container with the --privileged flag passed in. |
Thank you a lot @ekolve, it works seamlessly with docker. I scale it up to the HPC server which only can support with
The output error:
Many thanks. |
Since it is mostly related with Singularity and it works with Docker, so I'm going to close this issue. Thank you a lot. |
Hello there,
I'm trying to deploy the code on the headless servers that I don't have root access. The job is submitted to the servers via a job scheduler so that I even can't
ssh
to such servers.I followed your guide in #29, but I got an error when running
startx.py
. It seems like that the execution needs theroot
privilege.May you give me some hint how can I work around this problem?
Thank you a lot!
Below is the full output:
The text was updated successfully, but these errors were encountered: