readthedocs / readthedocs.org

The source code that powers readthedocs.org
https://readthedocs.org/
MIT License
8.04k stars 3.58k forks source link

Bitbucket git repo docs stuck in past commit #1110

Closed miohtama closed 9 years ago

miohtama commented 9 years ago

I am hosting a Python + Sphinx project on a Bitbucket. This uses Bitbucket Git, not Mercual, repo: https://bitbucket.org/miohtama/cryptoassets/commits/all

Somehow RTD does not correctly get the latest commit, but is stuck in the past revision and builds old docs. For example builds here:

https://readthedocs.org/builds/cryptoassetscore/2054391/

https://readthedocs.org/builds/cryptoassetscore/2054345/

Have the same commit id e940a870685a65e18fb3b0ea38f57ed718aeed6e

However, this commit was done more than 12 hours ago and a lot of new commits have appeared since: https://bitbucket.org/miohtama/cryptoassets/commits/all

My culprints why this fails could be

Meanwhile e.g. drone.io CI service gets new commits and builds through succesfully https://drone.io/bitbucket.org/miohtama/cryptoassets/

How to further diagnose, any ideas?

miohtama commented 9 years ago

Also I was thinking maybe because https://bitbucket.org/miohtama/cryptoassets.git serves both Git repo and HTML splash page (user agent detection?) could have something to do with it.

miohtama commented 9 years ago

Just for further debugging:

  curl -X POST http://readthedocs.org/build/cryptoassetscore 

... does not fetch the latest commit. ATM it seems to be always building commit 3dfb6fbeadb7d6411d0e5490fced6bdf7d79debb. So the error is definitely on rtd.org side.

miohtama commented 9 years ago

Wiping out build environment solved the issue

http://docs.readthedocs.org/en/latest/faq.html#deleting-a-stale-or-broken-build-environment