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

self-hosted readthedocs issue #5583

Closed
cutemomo6256 opened this issue Apr 11, 2019 · 4 comments
Closed

self-hosted readthedocs issue #5583

cutemomo6256 opened this issue Apr 11, 2019 · 4 comments
Labels
Support Support question

Comments

@cutemomo6256
Copy link

Hi, I've got an issue when I use self-hosted readthedocs
when rtd build on this step--> python3.6 -mvirtualenv --no-site-packages --no-download /readthedocs.org/user_builds/testrtd/envs/latest

I got an error that says --> readthedocs.doc_builder.environments:709[107]:ERROR (Build)[testrtd:latest][Errno 2] no such file or directory: '/readthedocs.org/user_builds/testrtd/envs/latest/readthedocs-environment.json'

can anyone help me out please. I've uses the docker to build.
thanks a lot!

@stsewd stsewd added the Support Support question label Apr 11, 2019
@stsewd
Copy link
Member

stsewd commented Apr 11, 2019

How are you using docker? Do you mean running the whole project with docker or https://docs.readthedocs.io/en/stable/development/buildenvironments.html?

@cutemomo6256
Copy link
Author

both of it, including readthedocs service and readthedocs build environments
I've use "-v /var/run/docker.sock:/var/run/docker.sock" on readthedocs service
and set the "base.py" file of "docker enable" to true,

I've read the error log, and the log tells me that it has start the container of readthedocs build environments, but stop at

readthedocs.doc_builder.environments:709[107]:ERROR (Build)[testrtd:latest][Errno 2] no such file or directory: '/readthedocs.org/user_builds/testrtd/envs/latest/readthedocs-environment.json'

thanks again for helping me.

@cutemomo6256
Copy link
Author

cutemomo6256 commented Apr 12, 2019

Here is the complete log, hope you can help me out with my problem, thanks!
擷取

@stsewd
Copy link
Member

stsewd commented Apr 12, 2019

I believe this is a problem with permissions, you should check if the file is created with enough permissions for the user running the docker process.

We have some problems when running docker locally in linux systems #5556

Short story, we have the user and group harcoded in the docker file

https://github.com/rtfd/readthedocs-docker-images/blob/869edef45470331670112c36acaf4a086430d3d7/Dockerfile#L138-L142

We don't support custom installations, you can check https://docs.readthedocs.io/en/stable/support.html for other channels of support. Closing as this isn't a rtd bug, also we have the another PR to track the problem with the permissions problems in linux.

@stsewd stsewd closed this as completed Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support question
Projects
None yet
Development

No branches or pull requests

2 participants