1618: unable to set on Ubuntu, keep getting 404 on all pages
- Fixed
- Review Board
joel.*****@gmai***** (Google Code) (Is this you? Claim this profile.) | |
Nov. 6, 2010 |
What version are you running? reviewboard 1.0.6 What's the URL of the page containing the problem? localhost What steps will reproduce the problem? 1. follow install steps on http://www.reviewboard.org/docs/manual/1.0/admin/installation/linux/ 2. use lighttpd and sqlite 3. setup a site /var/www/rb.example.com What is the expected output? What do you see instead? I expect to see a reviewboard page, instead I see a 404 page (edited for Debug=True): Using the URLconf defined in djblets.util.rooturl, Django tried these URL patterns, in this order: 1. ^ ^admin/ 2. ^ ^media/(?P<path>.*)$ 3. ^ ^account/ 4. ^ ^api/(?P<api_format>json|xml)/ 5. ^ ^r/ 6. ^ ^reports/ 7. ^ ^dashboard/$ 8. ^ ^users/$ 9. ^ ^users/(?P<username>[A-Za-z0-9@_\-\.]+)/$ 10. ^ ^groups/$ 11. ^ ^groups/(?P<name>[A-Za-z0-9_-]+)/$ 12. ^ ^groups/(?P<name>[A-Za-z0-9_-]+)/members/$ 13. ^ ^feeds/rss/(?P<url>.*)/$ 14. ^ ^feeds/atom/(?P<url>.*)/$ 15. ^ ^account/logout/$ 16. ^ ^$ 17. ^ ^iphone/ The current URL, reviewboard.fcgi/dashboard/, didn't match any of these. What operating system are you using? What browser? Ubuntu 9.10, Mozilla Firefox 3.7a4pre Please provide any additional information below. I have tried following instructions to setup apache and mysql with no luck (could be a lack of proper setup of these tools on my part). I have done a sample django app on my localhost and it works as expected.
For Apache2 I found when converting from mod_python to fastcgi, that I had to change the reviewboard.fcgi script to get it to work correctly for 1.5beta2. I wasn't successful at getting lighttpd working so can't offer specific advice on that server. My reviewboard.fcgi script with my changes: <IfModule mod_fcgid.c> AddHandler fcgid-script .fcgi </IfModule> <IfModule mod_fastcgi.c> AddHandler fastcgi-script .fcgi FastCGIServer "/home/test/ReviewBoard/Virtual/Test_RB1/htdocs/reviewboard.fcgi" -socket "/home/test/ReviewBoard/Virtual/Test_RB1/tmp/fastcgi.sock" </IfModule> <VirtualHost *:80> ServerName testrb1.example.com DocumentRoot "/home/test/ReviewBoard/Virtual/Test_RB1/htdocs" # Alias static media requests to filesystem Alias /media "/home/test/ReviewBoard/Virtual/Test_RB1/htdocs/media" Alias /errordocs "/home/test/ReviewBoard/Virtual/Test_RB1/htdocs/errordocs" # I added doxygen Alias /doxygen "/var/www/doxygen" # Error handlers ErrorDocument 500 /errordocs/500.html <Directory "/home/test/ReviewBoard/Virtual/Test_RB1/htdocs"> AllowOverride All </Directory> <Directory "/var/www/doxygen"> AllowOverride All </Directory> # Direct all other requests to the fastcgi server RewriteEngine on RewriteLog /var/log/apache2/rewrite.log RewriteLogLevel 3 <IfModule mod_fcgid.c> # I had to add /reviews to start of each rule, that is my RB base RewriteRule ^/reviews/(media.*)$ /$1 [QSA,L,PT] RewriteRule ^/reviews/(docs.*)$ /$1 [QSA,L,PT] # I added doxygen, based off /var/www RewriteRule ^/doxygen/(.*)$ /doxygen/html/$1 [QSA,L,PT] </IfModule> RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ /reviewboard.fcgi/$1 [QSA,L] </VirtualHost> I am running inside a VirtualEnv environment, but I don't think that affects the fcgi setup. I also had to modify the reviewboard fastcgi wrapper app to set a PATH environment to be able to run the server, so the patch utility could be found, but I don't know if that is an issue with 1.0