Re: (A solution) 404 error when using reviewboard with lighttpd
I think he meant: And this line: ^(/.*)$ = /reviewboard.fcgi$1, to this: ^(/.*)$ = /reviewboard.fcgi/$1, i.e adding a slash before '$1'. I tried his solution, it works! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~--~~~~--~~--~--~---
Re: (A solution) 404 error when using reviewboard with lighttpd
On Wed, Jun 10, 2009 at 11:57 PM, joseph.pnc joseph@gmail.com wrote: And this line: ^(/.*)$ = /reviewboard.fcgi/$1, to this: ^(/.*)$ = /reviewboard.fcgi/$1, Hmm, I don't see a difference between these two lines. Am I missing it? Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.review-board.org VMware, Inc. - http://www.vmware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~--~~~~--~~--~--~---
(A solution) 404 error when using reviewboard with lighttpd
Somehow I can't post to existing threa (http://groups.google.com/group/ reviewboard/browse_thread/thread/884db67cd5ca1b83/d495b9947aad884d? lnk=gstq=joseph+pncfwc=2) so I start a new one instead. Another solution offered by Av (avl...@gmail.com). Hopefully someone might find it helpful! Hi Joe, I'm not a member of the list, but I was hoping you might forward this back to them. I found a solution for your problem. In the lighttpd.conf, change this line: /reviewboard.fcgi = ( to this: /reviewboard.fcgi/ = ( And this line: ^(/.*)$ = /reviewboard.fcgi/$1, to this: ^(/.*)$ = /reviewboard.fcgi/$1, and make sure: FORCE_SCRIPT_NAME = '' This fixes it for me :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~--~~~~--~~--~--~---
Re: 404 error when using reviewboard with lighttpd
Oh, didn't see this before the other e-mail. In settings_local.py, try changing FORCE_SCRIPT_NAME to and see what happens. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.review-board.org VMware, Inc. - http://www.vmware.com On Fri, Apr 10, 2009 at 8:27 PM, joseph.pnc joseph@gmail.com wrote: Hi all I'd really appreciate any kind help. I've spent many hours on this issue and yet to have a solution. I've searched forums (including this) and google. I'm a newbie to reviewboard so please bear with me. Here's my problem I'm running lighttpd and fastcgi. reviewboard can run fine through the manage.py command. But I need to run it thru lighttpd so I copied lighttpd.conf file from conf/ folder to my lighttpd config folder. When browsing, it gives me this error regardless of what link I click: The page you were looking for does not exist. If you're pretty sure this page does exist, try logging in and trying again. I could see reviewboard's logo and other links. (you may try visiting codereview.lionsoftwaresolutions.com to see what it's like) My config file: [code] server.modules += ( mod_auth, mod_access, mod_rewrite, mod_expire, mod_fastcgi, mod_alias, mod_accesslog, mod_compress, ) $HTTP[host] =~ codereview\.lionsoftwaresolutions\.com { # This is not used directly, it is superceded by our aliases below. server.document-root = /home/lss/ codereview.lionsoftwaresolutions.com/htdocs server.errorlog = /home/lss/ codereview.lionsoftwaresolutions.com/logs/lighttpd-error.log accesslog.filename = /home/lss/ codereview.lionsoftwaresolutions.com/logs/lighttpd-access.log fastcgi.server = ( /reviewboard.fcgi = ( main = ( bin-path = /home/lss/ codereview.lionsoftwaresolutions.com/htdocs/reviewboard.fcgi, socket = /tmp/rb-fastcgi.sock, check-local = disable, ) ), ) alias.url = ( /media = /home/lss/codereview.lionsoftwaresolutions.com/ htdocs/media http://codereview.lionsoftwaresolutions.com/%0Ahtdocs/media , /errordocs = /home/lss/ codereview.lionsoftwaresolutions.com/htdocs/errordocs, ) url.rewrite-once = ( ^(/media/.*)$ = $1, ^(/errordocs/.*)$ = $1, ^(/.*)$ = /reviewboard.fcgi$1, ) # Aggressively cache all static files $HTTP[url] =~ \.(jpg|gif|png|css|js|htc) { expire.url = ( = access 1 years ) } # Compress files for faster transfer compress.filetype = ( text/plain, text/html, text/javascript, text/css, text/xml ) compress.cache-dir = /home/lss/ codereview.lionsoftwaresolutions.com/tmp/ mimetype.assign = ( .gif = image/gif, .jpg = image/jpeg, .jpeg = image/jpeg, .ico = image/png, .png = image/png, .pdf = application/pdf, .gz = application/x-gzip, .css = text/css, .html = text/html, .htm = text/html, .txt = text/plain, .js = text/javascript, ) } [/code] My reviewboard.fcgi : [code] #!/usr/bin/env python import os, sys sys.path.insert(0, /home/lss/codereview.lionsoftwaresolutions.com/ conf) os.environ[DJANGO_SETTINGS_MODULE] = reviewboard.settings os.environ[PYTHON_EGG_CACHE] = /home/lss/ codereview.lionsoftwaresolutions.com/tmp/egg_cache from django.core.servers.fastcgi import runfastcgi runfastcgi(method=threaded, daemonize=false) [/code] *I don't know where reviewboard.settings resides though. and here's my settings_local.py # Site-specific configuration settings for Review Board # Definitions of these settings can be found at # http://docs.djangoproject.com/en/dev/ref/settings/ # Database configuration DATABASE_ENGINE = 'mysql' DATABASE_NAME = 'deleted when posting' DATABASE_USER = 'deleted when posting' DATABASE_PASSWORD = 'deleted when posting' DATABASE_HOST = 'localhost' DATABASE_PORT = '' # Unique secret key. Don't share this with anybody. SECRET_KEY = 'deleted when posting' # Cache backend settings. CACHE_BACKEND = 'memcached://localhost:11211/' # Extra site information. SITE_ID = 1 SITE_ROOT = '/' FORCE_SCRIPT_NAME = '/' DEBUG = False ReviewBoard is installed at: $ ls /usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2-py2.4.egg/ EGG-INFO/reviewboard/ Please help! Thanks in advance. Joseph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~--~~~~--~~--~--~---
Re: 404 error when using reviewboard with lighttpd
Hi, Thanks for replying. Yes, I updated it to: FORCE_SCRIPT_NAME = '' But it still hits the same error. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~--~~~~--~~--~--~---
Re: 404 error when using reviewboard with lighttpd
I set it to True, and here's the log: Using the URLconf defined in djblets.util.rooturl, Django tried these URL patterns, in this order: 1. ^ ^admin/ 2. ^ ^media/(?Ppath.*)$ 3. ^ ^account/ 4. ^ ^api/(?Papi_formatjson|xml)/ 5. ^ ^r/ 6. ^ ^reports/ 7. ^ ^dashboard/$ 8. ^ ^users/$ 9. ^ ^users/(?Pusername[A-Za-z0-9_\-\.]+)/$ 10. ^ ^groups/$ 11. ^ ^groups/(?Pname[A-Za-z0-9_-]+)/$ 12. ^ ^groups/(?Pname[A-Za-z0-9_-]+)/members/$ 13. ^ ^feeds/rss/(?Purl.*)/$ 14. ^ ^feeds/atom/(?Purl.*)/$ 15. ^ ^account/logout/$ 16. ^ ^$ 17. ^ ^iphone/ The current URL, reviewboard.fcgi/, didn't match any of these [lss-main htdocs]# pwd /home/lss/codereview.lionsoftwaresolutions.com/htdocs [lss-main htdocs]# ls -ltr total 12 -rwxr-xr-x 1 lss lss 372 Apr 11 14:17 reviewboard.fcgi drwxr-xr-x 3 lss lss 4096 Apr 11 14:17 media lrwxrwxrwx 1 lss lss 92 Apr 11 14:17 errordocs - /usr/lib/python2.4/ site-packages/ReviewBoard-1.0beta2-py2.4.egg/reviewboard/htdocs/ errordocs But that's so strange, my doc root is pointing to /home/lss/ codereview.lionsoftwaresolutions.com/htdocs and reviewboard.fcgi is there. U got any ideas? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~--~~~~--~~--~--~---
Re: 404 error when using reviewboard with lighttpd
And that's with FORCE_SCRIPT_NAME as , right? What happens if it's back to / ? (Mainly interested in the line that says The current URL [...] didn't match any of these. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.review-board.org VMware, Inc. - http://www.vmware.com On Sat, Apr 11, 2009 at 12:09 AM, joseph.pnc joseph@gmail.com wrote: I set it to True, and here's the log: Using the URLconf defined in djblets.util.rooturl, Django tried these URL patterns, in this order: 1. ^ ^admin/ 2. ^ ^media/(?Ppath.*)$ 3. ^ ^account/ 4. ^ ^api/(?Papi_formatjson|xml)/ 5. ^ ^r/ 6. ^ ^reports/ 7. ^ ^dashboard/$ 8. ^ ^users/$ 9. ^ ^users/(?Pusername[A-Za-z0-9_\-\.]+)/$ 10. ^ ^groups/$ 11. ^ ^groups/(?Pname[A-Za-z0-9_-]+)/$ 12. ^ ^groups/(?Pname[A-Za-z0-9_-]+)/members/$ 13. ^ ^feeds/rss/(?Purl.*)/$ 14. ^ ^feeds/atom/(?Purl.*)/$ 15. ^ ^account/logout/$ 16. ^ ^$ 17. ^ ^iphone/ The current URL, reviewboard.fcgi/, didn't match any of these [lss-main htdocs]# pwd /home/lss/codereview.lionsoftwaresolutions.com/htdocs [lss-main htdocs]# ls -ltr total 12 -rwxr-xr-x 1 lss lss 372 Apr 11 14:17 reviewboard.fcgi drwxr-xr-x 3 lss lss 4096 Apr 11 14:17 media lrwxrwxrwx 1 lss lss 92 Apr 11 14:17 errordocs - /usr/lib/python2.4/ site-packages/ReviewBoard-1.0beta2-py2.4.egg/reviewboard/htdocs/ errordocs But that's so strange, my doc root is pointing to /home/lss/ codereview.lionsoftwaresolutions.com/htdocs and reviewboard.fcgi is there. U got any ideas? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~--~~~~--~~--~--~---
Re: 404 error when using reviewboard with lighttpd
Yes, that one above was when it's ''. I updated to / and it shows the same error: The current URL, reviewboard.fcgi/, didn't match any of these. Joseph. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~--~~~~--~~--~--~---
Re: 404 error when using reviewboard with lighttpd
So, this issue has come up before, and the solution each time was to add FORCE_SCRIPT_NAME = /. We since made it the default for lighttpd. I can't figure out why you're hitting this issue, given that. A google search isn't turning up much, either... I just tested a config of lighttpd that matches your config except for the domain name and path, and it works fine. What version of lighttpd are you using? I'm using 1.4.19 here. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.review-board.org VMware, Inc. - http://www.vmware.com On Sat, Apr 11, 2009 at 12:23 AM, joseph.pnc joseph@gmail.com wrote: Yes, that one above was when it's ''. I updated to / and it shows the same error: The current URL, reviewboard.fcgi/, didn't match any of these. Joseph. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~--~~~~--~~--~--~---
Re: 404 error when using reviewboard with lighttpd
I decided to try running it from ./manage.py command. It works! Still, running under lighttpd has no hope yet. If anyone found a solution, please kindly help. Thanks. Here's the link that help me figure out how to install on my centos server and run through manage.py for whoever may read this thread in the future (I skipped the apache-related part though): http://f13o.blogspot.com/2008/01/install-reviewboard-on-centos-51.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~--~~~~--~~--~--~---