Re: css/js ... static files cannot find (404) after upgraded 1.7.20 to 2.01
Does navigating to /static/ work now? If not, there's a problem with your web server config. Christian On Wednesday, May 28, 2014, Sam Ku wrote: > Hi Christan, > > I did what you said. I modified the settings_loca.py to : > # Extra site information. > SITE_ID = 1 > SITE_ROOT = '/' > FORCE_SCRIPT_NAME = '' > DEBUG = False <-- > > But the problem remains. > > Access log shows: > x.x.x.x y.y.y.y - [28/May/2014:19:34:24 +0800] "GET > /static/rb/images/logo.cc81d3ae01b2.png HTTP/1.1" 404 1816 " > http://x.x.x.x/dashboard/"; "Mozilla/5.0 (Windows NT 6.1; WOW64) > AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36" > > Are there any other possible reasons? > > Many thanks. > > Best, > > Sam Ku > > Christian Hammond於 2014年5月28日星期三UTC+8上午3時09分37秒寫道: >> >> You need to turn DEBUG off in settings_local.py. That's only intended for >> developer installs, and will cause problems with loading static media on a >> production install. >> >> DEBUG Is False by default, but it sounds like it was enabled by hand at >> some point in your install. >> >> Christian >> >> -- >> Christian Hammond - chi...@chipx86.com >> Review Board - http://www.reviewboard.org >> Beanbag, Inc. - http://www.beanbaginc.com >> >> >> On Tue, May 27, 2014 at 7:19 AM, Sam Ku wrote: >> >>> Hi everyone, >>> >>> I used "$easy_install -U ReviewBoard" command to upgrade reviewboard and >>> then "$ rb-site upgrade /path/to/site" to upgrade the site. Everything was >>> fine. >>> Then I restarted lighttpd and tried to browse the the website. >>> >>> It only shows the plain text in main page and doesn't get any css/js >>> files. I found all response codes are 404. >>> >>> And I tried to use the URL : "http://XXX/static/"; and I got this error. >>> >>> Page not found (404) Request Method: GET Request URL: >>> http://XXX/static/ >>> >>> Using the URLconf defined in djblets.urls.root, Django tried these URL >>> patterns, in this order: >>> >>>1. ^ ^admin/extensions/ >>>2. ^ ^admin/ >>>3. ^ ^jsi18n/ [name='js-catalog'] >>>4. ^ ^account/ >>>5. ^ ^s/(?P[A-Za-z0-9\-_.]+)/ >>>6. ^ ^$ [name='root'] >>>7. ^ ^api/ >>>8. ^ ^r/ >>>9. ^ ^support/$ [name='support'] >>>10. ^ ^users/(?P[A-Za-z0-9@_\-\.'\+]+)/infobox/$ >>>[name='user-infobox'] >>>11. ^ ^r/$ [name='all-review-requests'] >>>12. ^ ^dashboard/$ [name='dashboard'] >>>13. ^ ^users/$ [name='all-users'] >>>14. ^ ^users/(?P[A-Za-z0-9@_\-\.'\+]+)/$ [name='user'] >>>15. ^ ^groups/$ [name='all-groups'] >>>16. ^ ^groups/(?P[A-Za-z0-9_-]+)/$ [name='group'] >>>17. ^ ^groups/(?P[A-Za-z0-9_-]+)/members/$ >>>[name='group-members'] >>>18. ^ ^repos/(?P\d+)/ >>> >>> The current URL, static/, didn't match any of these. >>> >>> My OS is CentOS 6.0. >>> >>> web server: lighttpd/1.4.28 >>> >>> python 2.6.5 >>> >>> Does anyone know how I could fix it? >>> >>> Many thanks. >>> >>> Best, >>> >>> Sam Ku >>> >>> >>> -- >>> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ >>> --- >>> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ >>> --- >>> Happy user? Let us know at http://www.reviewboard.org/users/ >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "reviewboard" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to reviewboard...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org Beanbag, Inc. - http://www.beanbaginc.com -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: css/js ... static files cannot find (404) after upgraded 1.7.20 to 2.01
Hi Christan, I did what you said. I modified the settings_loca.py to : # Extra site information. SITE_ID = 1 SITE_ROOT = '/' FORCE_SCRIPT_NAME = '' DEBUG = False <-- But the problem remains. Access log shows: x.x.x.x y.y.y.y - [28/May/2014:19:34:24 +0800] "GET /static/rb/images/logo.cc81d3ae01b2.png HTTP/1.1" 404 1816 "http://x.x.x.x/dashboard/"; "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36" Are there any other possible reasons? Many thanks. Best, Sam Ku Christian Hammond於 2014年5月28日星期三UTC+8上午3時09分37秒寫道: > > You need to turn DEBUG off in settings_local.py. That's only intended for > developer installs, and will cause problems with loading static media on a > production install. > > DEBUG Is False by default, but it sounds like it was enabled by hand at > some point in your install. > > Christian > > -- > Christian Hammond - chi...@chipx86.com > Review Board - http://www.reviewboard.org > Beanbag, Inc. - http://www.beanbaginc.com > > > On Tue, May 27, 2014 at 7:19 AM, Sam Ku >wrote: > >> Hi everyone, >> >> I used "$easy_install -U ReviewBoard" command to upgrade reviewboard and >> then "$ rb-site upgrade /path/to/site" to upgrade the site. Everything was >> fine. >> Then I restarted lighttpd and tried to browse the the website. >> >> It only shows the plain text in main page and doesn't get any css/js >> files. I found all response codes are 404. >> >> And I tried to use the URL : "http://XXX/static/"; and I got this error. >> >> Page not found (404) Request Method: GET Request URL: >> http://XXX/static/ >> >> Using the URLconf defined in djblets.urls.root, Django tried these URL >> patterns, in this order: >> >>1. ^ ^admin/extensions/ >>2. ^ ^admin/ >>3. ^ ^jsi18n/ [name='js-catalog'] >>4. ^ ^account/ >>5. ^ ^s/(?P[A-Za-z0-9\-_.]+)/ >>6. ^ ^$ [name='root'] >>7. ^ ^api/ >>8. ^ ^r/ >>9. ^ ^support/$ [name='support'] >>10. ^ ^users/(?P[A-Za-z0-9@_\-\.'\+]+)/infobox/$ >>[name='user-infobox'] >>11. ^ ^r/$ [name='all-review-requests'] >>12. ^ ^dashboard/$ [name='dashboard'] >>13. ^ ^users/$ [name='all-users'] >>14. ^ ^users/(?P[A-Za-z0-9@_\-\.'\+]+)/$ [name='user'] >>15. ^ ^groups/$ [name='all-groups'] >>16. ^ ^groups/(?P[A-Za-z0-9_-]+)/$ [name='group'] >>17. ^ ^groups/(?P[A-Za-z0-9_-]+)/members/$ >>[name='group-members'] >>18. ^ ^repos/(?P\d+)/ >> >> The current URL, static/, didn't match any of these. >> >> My OS is CentOS 6.0. >> >> web server: lighttpd/1.4.28 >> >> python 2.6.5 >> >> Does anyone know how I could fix it? >> >> Many thanks. >> >> Best, >> >> Sam Ku >> >> >> -- >> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ >> --- >> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ >> --- >> Happy user? Let us know at http://www.reviewboard.org/users/ >> --- >> You received this message because you are subscribed to the Google Groups >> "reviewboard" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to reviewboard...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: css/js ... static files cannot find (404) after upgraded 1.7.20 to 2.01
You need to turn DEBUG off in settings_local.py. That's only intended for developer installs, and will cause problems with loading static media on a production install. DEBUG Is False by default, but it sounds like it was enabled by hand at some point in your install. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org Beanbag, Inc. - http://www.beanbaginc.com On Tue, May 27, 2014 at 7:19 AM, Sam Ku wrote: > Hi everyone, > > I used "$easy_install -U ReviewBoard" command to upgrade reviewboard and > then "$ rb-site upgrade /path/to/site" to upgrade the site. Everything was > fine. > Then I restarted lighttpd and tried to browse the the website. > > It only shows the plain text in main page and doesn't get any css/js > files. I found all response codes are 404. > > And I tried to use the URL : "http://XXX/static/"; and I got this error. > > Page not found (404) Request Method: GET Request URL: http://XXX/static/ > > Using the URLconf defined in djblets.urls.root, Django tried these URL > patterns, in this order: > >1. ^ ^admin/extensions/ >2. ^ ^admin/ >3. ^ ^jsi18n/ [name='js-catalog'] >4. ^ ^account/ >5. ^ ^s/(?P[A-Za-z0-9\-_.]+)/ >6. ^ ^$ [name='root'] >7. ^ ^api/ >8. ^ ^r/ >9. ^ ^support/$ [name='support'] >10. ^ ^users/(?P[A-Za-z0-9@_\-\.'\+]+)/infobox/$ >[name='user-infobox'] >11. ^ ^r/$ [name='all-review-requests'] >12. ^ ^dashboard/$ [name='dashboard'] >13. ^ ^users/$ [name='all-users'] >14. ^ ^users/(?P[A-Za-z0-9@_\-\.'\+]+)/$ [name='user'] >15. ^ ^groups/$ [name='all-groups'] >16. ^ ^groups/(?P[A-Za-z0-9_-]+)/$ [name='group'] >17. ^ ^groups/(?P[A-Za-z0-9_-]+)/members/$ >[name='group-members'] >18. ^ ^repos/(?P\d+)/ > > The current URL, static/, didn't match any of these. > > My OS is CentOS 6.0. > > web server: lighttpd/1.4.28 > > python 2.6.5 > > Does anyone know how I could fix it? > > Many thanks. > > Best, > > Sam Ku > > > -- > Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ > --- > Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ > --- > Happy user? Let us know at http://www.reviewboard.org/users/ > --- > You received this message because you are subscribed to the Google Groups > "reviewboard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to reviewboard+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
css/js ... static files cannot find (404) after upgraded 1.7.20 to 2.01
Hi everyone, I used "$easy_install -U ReviewBoard" command to upgrade reviewboard and then "$ rb-site upgrade /path/to/site" to upgrade the site. Everything was fine. Then I restarted lighttpd and tried to browse the the website. It only shows the plain text in main page and doesn't get any css/js files. I found all response codes are 404. And I tried to use the URL : "http://XXX/static/"; and I got this error. Page not found (404) Request Method: GET Request URL: http://XXX/static/ Using the URLconf defined in djblets.urls.root, Django tried these URL patterns, in this order: 1. ^ ^admin/extensions/ 2. ^ ^admin/ 3. ^ ^jsi18n/ [name='js-catalog'] 4. ^ ^account/ 5. ^ ^s/(?P[A-Za-z0-9\-_.]+)/ 6. ^ ^$ [name='root'] 7. ^ ^api/ 8. ^ ^r/ 9. ^ ^support/$ [name='support'] 10. ^ ^users/(?P[A-Za-z0-9@_\-\.'\+]+)/infobox/$ [name='user-infobox'] 11. ^ ^r/$ [name='all-review-requests'] 12. ^ ^dashboard/$ [name='dashboard'] 13. ^ ^users/$ [name='all-users'] 14. ^ ^users/(?P[A-Za-z0-9@_\-\.'\+]+)/$ [name='user'] 15. ^ ^groups/$ [name='all-groups'] 16. ^ ^groups/(?P[A-Za-z0-9_-]+)/$ [name='group'] 17. ^ ^groups/(?P[A-Za-z0-9_-]+)/members/$ [name='group-members'] 18. ^ ^repos/(?P\d+)/ The current URL, static/, didn't match any of these. My OS is CentOS 6.0. web server: lighttpd/1.4.28 python 2.6.5 Does anyone know how I could fix it? Many thanks. Best, Sam Ku -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.