Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upI literally can't even... #1867
Comments
agjohnson
added
the
Community Effort
label
Dec 21, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
agjohnson
Dec 21, 2015
Contributor
Perhaps your images don't start build queues?
We don't support any of the docker images, so you're better off raising issues with those maintainers. Marking this community support as this isn't something the core team can devote time to.
|
Perhaps your images don't start build queues? We don't support any of the docker images, so you're better off raising issues with those maintainers. Marking this community support as this isn't something the core team can devote time to. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
shidarin
Feb 12, 2016
Did you load the test data? For my local builds, this happened when I hadn't created the SLUMBER API user. Even when I created a user to match the user specified in the settings, it still didn't work.. I had to load the test_data.
shidarin
commented
Feb 12, 2016
|
Did you load the test data? For my local builds, this happened when I hadn't created the SLUMBER API user. Even when I created a user to match the user specified in the settings, it still didn't work.. I had to load the test_data. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
InAnimaTe
Feb 25, 2016
Contributor
Yeah actually looking at this again and made an entirely fresh ubuntu vm. Ran through all the steps on this doc page and builds still don't work. Exact same "nothing happens" result. I tried loading and not loading data.
|
Yeah actually looking at this again and made an entirely fresh ubuntu vm. Ran through all the steps on this doc page and builds still don't work. Exact same "nothing happens" result. I tried loading and not loading data. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
InAnimaTe
Feb 25, 2016
Contributor
So, just seemed to figure this out. Maybe someone can explain this further.
Basically, the installation instructions literally only assume you're launching the server on purely localhost, and not on a remote server, in a docker container, or otherwise. Literally the basic default is that you're launching it on your current local system. If you're not, everything seems to work (ui, login, etc..) except for building. Why that is, I have no clue.
If some core team input could weigh in here. From my point of view, the documentation needs an overhaul in this area. Additionally, there are two sections on installing (the main one and another related to a VM) which should be collapsed into one section that describes changes necessary dependent on the hosting location, or at least, how to modify settings so things work as expected from the get-go.
I'm re-visiting containerizing this. Basically, I'm going to run rtd on its own in a container and reverse proxy that with an nginx container. While linked, hopefully this should still work as expected. I'll be taking a gander at the nginx section of the docs as well.
For now, I want to leave this open. I'll document my experiences and we can maybe discuss changes to the docs. No one should ever have to go through the pain and frustration I've had to.
|
So, just seemed to figure this out. Maybe someone can explain this further. Basically, the installation instructions literally only assume you're launching the server on purely localhost, and not on a remote server, in a docker container, or otherwise. Literally the basic default is that you're launching it on your current local system. If you're not, everything seems to work (ui, login, etc..) except for building. Why that is, I have no clue. If some core team input could weigh in here. From my point of view, the documentation needs an overhaul in this area. Additionally, there are two sections on installing (the main one and another related to a VM) which should be collapsed into one section that describes changes necessary dependent on the hosting location, or at least, how to modify settings so things work as expected from the get-go. I'm re-visiting containerizing this. Basically, I'm going to run rtd on its own in a container and reverse proxy that with an nginx container. While linked, hopefully this should still work as expected. I'll be taking a gander at the nginx section of the docs as well. For now, I want to leave this open. I'll document my experiences and we can maybe discuss changes to the docs. No one should ever have to go through the pain and frustration I've had to. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
HarryRybacki
Feb 26, 2016
@InAnimaTe I'd run into the same problem a week ago. Didn't find anyone else complaining online and #readthedocs was silent so I thought I was crazy. Looking forward to your followup.
HarryRybacki
commented
Feb 26, 2016
|
@InAnimaTe I'd run into the same problem a week ago. Didn't find anyone else complaining online and #readthedocs was silent so I thought I was crazy. Looking forward to your followup. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
InAnimaTe
Feb 26, 2016
Contributor
So let me give a breakdown:
-
After some digging, we found that the port you're serving on (i.e.
runserver 0.0.0.0:80) must be the same as the port defined for PRODUCTION_DOMAIN. This means that if you reverse proxy and serve on 1881, you would need torunserver 0.0.0.0:1881andPRODUCTION_DOMAIN=example.net:1881. -
With that, we decided to utilize nginx as a reverse proxy. This still requires that you change the production_domain (or else everything on the site shows up as localhost) but for us, keeping the port included saw everything still working fine:
PRODUCTION_DOMAIN=rtd.domain.com:80 -
Then of course, with builds now working, the actual build pages had no design elements...turns out static assets weren't being copied over correctly. This is because #1967
We did this all with docker. You view my repository here.
You'll notice my local_settings.py where I define a few other niceties like disabling email verification and allowing private repos. I also install openssh-client so I can later on, internally, add in my private key for getting to private repos.
So here is an example docker-compose.yml for launching rtd:
rtd:
build: .
volumes:
- ./db:/persistent
environment:
- "TEST_DATA=yes"
- "RTD_PRODUCTION_DOMAIN=rtd.example.io:80"
nginx:
image: nginx:1.9
ports:
- "80"
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf
links:
- rtd
|
So let me give a breakdown:
We did this all with docker. You view my repository here. You'll notice my So here is an example
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ericholscher
Feb 26, 2016
Member
@InAnimaTe Great, a PR against the docs updating this information would be great. There's also this: http://docs.readthedocs.org/en/latest/custom_installs/local_rtd_vm.html
|
@InAnimaTe Great, a PR against the docs updating this information would be great. There's also this: http://docs.readthedocs.org/en/latest/custom_installs/local_rtd_vm.html |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
InAnimaTe
Feb 26, 2016
Contributor
Yep, I plan on submitting something soon. When I create that, I'll close
this ;)
On Feb 26, 2016 2:38 PM, "Eric Holscher" notifications@github.com wrote:
@InAnimaTe https://github.com/InAnimaTe Great, a PR against the docs
updating this information would be great. There's also this:
http://docs.readthedocs.org/en/latest/custom_installs/local_rtd_vm.html—
Reply to this email directly or view it on GitHub
#1867 (comment)
.
|
Yep, I plan on submitting something soon. When I create that, I'll close
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Great to hear! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
shidarin
Feb 27, 2016
@InAnimaTe This mostly gels with the solutions I just went through for our companies RTD server, although I did not have to do anything with nginx at all.
I also ran into #1967, but solved it with symlinks rather than ./manage.py collectstatic :/
I'm getting some quick clearance to see if I can share the full steps we took to get a fully functional RTD going.
shidarin
commented
Feb 27, 2016
|
@InAnimaTe This mostly gels with the solutions I just went through for our companies RTD server, although I did not have to do anything with nginx at all. I also ran into #1967, but solved it with symlinks rather than I'm getting some quick clearance to see if I can share the full steps we took to get a fully functional RTD going. |
added a commit
to InAnimaTe/readthedocs.org
that referenced
this issue
Feb 29, 2016
InAnimaTe
referenced this issue
Feb 29, 2016
Merged
cleanup, add collectstatic, and blurb about builds #2026
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
InAnimaTe
Feb 29, 2016
Contributor
Done: #2026
I'm going to close this. @shidarin if you want to discuss this further, shoot me a message and I'd be happy to look at what your company did to get this working. There may be more we can add to the docs to make it clearer for sysadmins to get this up and running (especially those who have never worked with anything django)
|
Done: #2026 I'm going to close this. @shidarin if you want to discuss this further, shoot me a message and I'd be happy to look at what your company did to get this working. There may be more we can add to the docs to make it clearer for sysadmins to get this up and running (especially those who have never worked with anything django) |
InAnimaTe commentedDec 17, 2015
I've been trying since Monday to actually stand up RTD and manually add a project. It never works...ever.
A few further details:
rtd-builddir never gets created.manifest.jsonandtranslationsare created (inuser_builds/<project_name>)gunicornormanage.pyLOG_DEBUGtoTrue, used-v 3onmanage.py, and still get basic INFO logs even fromlogs/rtd.logHere's basically all I see when creating a project:
And here's pretty much all that enters the log.
I just don't know. A few of the docker images I've tried get to a printout from urllib3 saying "Starting connection".
If anyone has any insight at all, it would be much appreciated.