-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Build Fails to Create Conda Environment #2651
Comments
Hi, we have the same problem since about 1 week: xarray: https://readthedocs.org/projects/xray/builds/5051404/ |
It seems this issue can be remedied by upgrading to conda 4.2.13. See: conda/conda#3448 (comment) |
Thanks. Do we have any control on the conda version installed on RTD? |
What is striking me is that we are the only ones reporting this. I'd expect such an issue to affect much more people? |
I have the same error: |
Our docs aren't built since two weeks now... :-( Did anyone come up with a solution? |
Same here. We've had no docs builds succeed for nearly two weeks and no response from RTD... |
Same problem for us too: https://readthedocs.org/projects/aospy/builds/5097720/ |
Similar issue here: http://readthedocs.org/projects/gsshapy/builds/5091350. Builds having issues for over 2 weeks. |
Same issue on our builds, for the same period of time as others are reporting: https://readthedocs.org/projects/ga4gh-reference-implementation/builds/5097461/ |
We're considering dropping RTD because of this. Is there something we can do to help the update of conda happen on RTD? |
@agjohnson now that we are talking about upgrading the packages from Considering how RTD internally works with conda (https://github.com/rtfd/readthedocs-docker-images/blob/master/Dockerfile#L40), it seems that this upgrade won't be available until the next docker image is built and deployed to production. Other (some of them, quick-and-dirty) solutions I have on the top of my head:
The latest version of conda seems to be |
I don't fully understand conda, and we need people on our core team who can actually track and update the usage. What is the correct fix for this? Is it something that we broke, or did conda break? |
I'm happy to upgrade conda if that is the correct fix -- but I'd like to know the root cause of what broke, so that we can prevent it from happening again. |
Here is a discussion on the issue on conda: conda/conda#3448 (comment) |
So this was an issue with the version of conda from when we created the last set of docker images? Is there a way to pin an install of conda to a specific verison? The official install docs only mention a way to install the "latest". |
The current plan is to rebuild the 2.0 docker image, which I believe will cause it to install the latest version of conda. I'd like to figure out a way to pin the version to prevent this issue going forward. We've had a lot of breakage in the conda tooling specifically, and I'd like to knowingly upgrade it, instead of it happening randomly on image rebuilds. |
Image rebuild is going here: https://hub.docker.com/r/readthedocs/build/builds/bgpgd7axkbaihm6wkexya6h/ -- it will probably take ~30 mins |
There is a blog post about that: http://www.damian.oquanta.info/posts/how-to-pin-conda.html Anyway, it says that conda will upgrade automatically on each install (I just tried that at my pc and it's true) and if you want to not do so, you have to pin conda itself by using the
On the other hand, I didn't find a way to install for the first time an specific version of conda. It seems that you have to install the latest one and then you can do |
Sounds like a way forward at least. So we can do the network install, and then do the |
I'm not convinced that won't break at some point in the future, but at least it makes the builds more deterministic :) |
Please don't deprecate conda support. Is makes using/distributing Python packages soo much easier. |
Moving conversation around the Docker image to readthedocs/readthedocs-docker-images#22 A new build image likely won't hit our servers for a few hours, the build process takes a while. Also, I'll say that for anyone wondering why their project is still hitting this issue, consider contributing your time to resolve this. We are community run service and need both your input and your contributions. |
wait, is the latest version of conda failing to create an environment and install some packages? Instead of us keep upgrading the RTD server to a random version of conda, can you (people with failing builds) test this locally by creating the proper conda environment with the different versions and confirm which version of conda is not having troubles in your pc? If conda is broken there is nothing that we can do at RTD but just wait for a fix on them :) |
Agreed -- I don't really know how to fix this, other than shooting in the dark at random released or unreleased versions of miniconda. I'd love to know a known good version, and be able to go with it moving forward. |
This build (https://readthedocs.org/projects/aospy/builds/5117255/) has a different error and I'm guessing the
(the docker hub image build related: https://hub.docker.com/r/readthedocs/build/builds/bgpgd7axkbaihm6wkexya6h/) |
If this is a permission issue: readthedocs/readthedocs-docker-images#24 Testing this shouldn't be difficult. |
That doesn't explain why this recently started failing though? |
There were two major changes in this timeframe: we rerolled the build images (upgrading conda), and the new image is based on ubuntu 16.04 now. I have no clue what the internals of the shell script do, but if it was doing something different in 14.04 vs 16.04, this could be the cause. |
Just to add more context here. I tried to build one of the failing project outside RTD (env, docker img, etc) and it worked:
After this, I booted the
So, the issue is that we have two directories set as Another test was trying to update the conda itself inside the docker image and it also says we don't have permissions to do it:
Following the suggestion from the previous command is not a good idea 😁
I installed
So, my suggestion is to install miniconda after the Plus, if we really want to pin a version as in readthedocs/readthedocs-docker-images#23 we need to use a setting to avoid the automatic upgrade ( |
I've tried downgrading conda, and now we get a YAML error from the |
It appears to be this issue: conda/conda#3738 How do we install a version of conda that isn't listed over at https://repo.continuum.io/miniconda/? Do we have to install a lower version of conda, and then use |
I've got this failing locally, and will patch it and deploy a fix in the next couple hours, hopefully. |
My latest https://readthedocs.org/projects/schemas/builds/5118842/
|
I believe this should finally be fixed. Knock on wood. |
Thanks, looking good so far! https://readthedocs.org/projects/schemas/builds/5118911/ |
Great success, thanks! |
Yes, success for us: https://readthedocs.org/projects/aospy/builds/5118901/ Thank you very much! |
Glad to hear this is working for folks. I'll close this for now, feel free to reopen here if it isn't resolved. |
I think it starts failing recently because a new version of yaml which was installed at root level, so when it tries to upgrade that package with de docs users it fails (check my log and when I said that I don't know why some packages goes to the root cache and some others to the docs cache). It's because of that... |
Congratulations to the RTD devs, this wasn't an easy one :) |
This is fixed for me: |
Details
Expected Result
I expect the docs for the dev branch of my project to build.
Actual Result
I encounter a failure during the creation of the conda environment (see full output below).
Things I have tried:
(1) Found this suggestion on the Conda issues page, so I attempted wiping the environment several times.
(2) Reverted the back to commit with last successful docs build, but still failed with same error.
(3) Created this Conda environment my dev machine successfully (using miniconda).
Here is the error:
conda env create --name dev --file /home/docs/checkouts/readthedocs.org/user_builds/tethys-platform/checkouts/dev/docs-conda_env.yml
Fetching package metadata .........
Solving package specifications: ..........
WARNING conda.lock:touch(53): Failed to create lock, do not run conda in parallel processes [errno 13]
An unexpected error has occurred.
Please consider posting the following information to the
conda GitHub issue tracker at:
Current conda install:
$ /usr/local/miniconda/bin/conda-env create --name dev --file /home/docs/checkouts/readthedocs.org/user_builds/tethys-platform/checkouts/dev/docs-conda_env.yml
Fetching packages ...
yaml-0.1.6-0.t 0% | | ETA: --:--:-- 0.00 B/s
The text was updated successfully, but these errors were encountered: