Skip to content

Unknown error, a timeout? #2680

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

Closed
guillochon opened this issue Mar 2, 2017 · 4 comments
Closed

Unknown error, a timeout? #2680

guillochon opened this issue Mar 2, 2017 · 4 comments

Comments

@guillochon
Copy link

Details

Expected Result

A successful document build.

Actual Result

The build fails with an unhelpful message "An unexpected error occurred." The commands that do run seem to do so successfully, and the build emits the error 10 minutes after a build is triggered, suggesting a timeout. I have no idea how to proceed.

Also: It seems like a bug for this to be marked as an "unexpected error," it clearly seems to be a timeout.

@humitos
Copy link
Member

humitos commented Mar 2, 2017

It seems you are trying to compile a C library to build your documentation. So, it fails with this error:

mpi.h: No such file or directory

https://readthedocs.org/projects/mosfit/builds/5095916/

I suggest you to use a specific requirements for RTD different to the one for your project and put there only what is needed to build the documentation.

In case you really need a C library to build your docs, use the mocking approach: http://docs.readthedocs.io/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules

Please, try that and let me know if that fixes your issue.

@humitos humitos added the Support Support question label Mar 2, 2017
@guillochon
Copy link
Author

Hi @humitos, so that build in particular was after enabling the "Give the virtual environment access to the global site-packages dir." That obviously didn't work. Most of my attempts have had that option unchecked. So I don't think that's the issue.

@guillochon
Copy link
Author

Figured this out: The requirements in my requirements.txt file were taking longer than 10 minutes to install.

However, RTD should emit a more useful error message! Took forever to figure this out with the useless message that RTD spat out.

@humitos
Copy link
Member

humitos commented Mar 4, 2017

Thanks!

I'm closing this issue since the problem was solved and it's not related directly with RTD.

However, RTD should emit a more useful error message! Took forever to figure this out with the useless message that RTD spat out.

Feel free to open another issue to track this and express your ideas on how it should be and we can continue the discussion there.

@humitos humitos closed this as completed Mar 4, 2017
@ghost ghost removed the Support Support question label Mar 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants