3036: error code 500 when entered reviewboard
- SetupIssue
- Review Board
shia*****@gmai***** (Google Code) (Is this you? Claim this profile.) | |
Sept. 25, 2013 |
What version are you running? 1.7.11 What's the URL of the page containing the problem? 192.168.146.134/reviewboard/ What steps will reproduce the problem? 1.not sure 2. 3. What is the expected output? What do you see instead? the system should display the main page as normal, but it shows error code 500 something broken What operating system are you using? What browser? reviewboard server on Ubuntu 12.04.2 LTS, Chrome on my win7 PC Please provide any additional information below. I hit the same problem similar to issue #2658; I'm wondering if any possible that migrate from mod_python to mod_wsgi with ReviewBoard? any hint? at the same time, I'll try to install reivewboard without mod_python... the detail is: before the starting, I want to recognize that I'm very junior in the fields of Linux/Ubuntu, python and also apache/2; I do need someone, experts like you, to give me a hint, very appreciate. After some attempts, I finally success to install reviewboard based on a "recipe", with mod_python, that someone shared on internet; at the beginning, my review board seems to work; but, don't know why, after days, I got error code 500 when entered reviewboard. after google some information , I install mod_wsgi but the issue still existing [yes, a junior ...] herewith my env: a VM on my local PC Ubuntu 12.04.2 LTS Apache/2.2.22 (Ubuntu) Python 2.7.3 mod_python mod_wsgi apache2 error.log: ========================== [Tue Jul 16 15:18:19 2013] [notice] caught SIGTERM, shutting down [Tue Jul 16 15:18:20 2013] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'. [Tue Jul 16 15:18:20 2013] [error] python_init: Python executable found '/usr/bin/python'. [Tue Jul 16 15:18:20 2013] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'. [Tue Jul 16 15:18:20 2013] [notice] mod_python: Creating 5 session mutexes based on 1 max processes and 5 max threads. [Tue Jul 16 15:18:20 2013] [notice] mod_python: using mutex_directory /tmp [Tue Jul 16 15:18:20 2013] [warn] mod_wsgi: Compiled for Python/2.7.2+. [Tue Jul 16 15:18:20 2013] [warn] mod_wsgi: Runtime using Python/2.7.3. [Tue Jul 16 15:18:20 2013] [notice] Apache/2.2.22 (Ubuntu) mod_python/3.3.1 Python/2.7.3 mod_wsgi/3.3 configured -- resuming normal operations [Tue Jul 16 07:18:34 2013] [error] [client 192.168.146.1] File does not exist: /var/www/reviewboard/htdocs/favicon.ico ========================== [I don't know why the lastest line message with a earlier timestamp...] very appreciate if any information
dear all, I already installed a new reivewboard with mod_wsgi; in the beginning, it was a VM on my local pc with a private IP, and success to login reviewboard as admin; but after moved the VM to a offical platform and assigned a static IP, I hit error code 500 when entered the reviewboard main page again; herewith the env. information: Ubuntu Ubuntu 12.04.2 LTS Apache/2.2.22 (Ubuntu) Python 2.7.3 # apachectl -t -D DUMP_MODULES apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName Loaded Modules: core_module (static) log_config_module (static) logio_module (static) mpm_worker_module (static) http_module (static) so_module (static) alias_module (shared) auth_basic_module (shared) authn_file_module (shared) authz_default_module (shared) authz_groupfile_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) cgid_module (shared) deflate_module (shared) dir_module (shared) env_module (shared) mime_module (shared) negotiation_module (shared) reqtimeout_module (shared) setenvif_module (shared) status_module (shared) wsgi_module (shared) Syntax OK apache2 error.log: ========================== # tail /var/log/apache2/error.log [Tue Jul 16 12:44:05 2013] [error] [client 140.96.29.189] File does not exist: /var/www/reviewboard/htdocs/index.html [Tue Jul 16 12:44:05 2013] [error] [client 140.96.29.189] File does not exist: /var/www/reviewboard/htdocs/favicon.ico [Tue Jul 16 12:44:11 2013] [error] [client 140.96.29.189] File does not exist: /var/www/reviewboard/htdocs/favicon.ico [Tue Jul 16 20:45:04 2013] [notice] caught SIGTERM, shutting down [Tue Jul 16 20:45:04 2013] [warn] mod_wsgi: Compiled for Python/2.7.2+. [Tue Jul 16 20:45:04 2013] [warn] mod_wsgi: Runtime using Python/2.7.3. [Tue Jul 16 20:45:04 2013] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations [Tue Jul 16 20:45:08 2013] [error] [client 140.96.29.189] File does not exist: /var/www/reviewboard/htdocs/favicon.ico [Tue Jul 16 20:48:26 2013] [error] [client 140.96.29.189] File does not exist: /var/www/reviewboard/htdocs/favicon.ico [Tue Jul 16 20:48:26 2013] [error] [client 140.96.29.189] File does not exist: /var/www/reviewboard/htdocs/favicon.ico ========================== no error message in /var/www/reviewboard/logs/reviewboard.log any idea? thanks
EIther you truncated the error.log too much, or some errors are sent to a different log file. You should definitely not see a 500 without something going to an apache log.
-
+ NeedInfo
then, how can I get more details for error code 500? no more DEBUG level message in /var/www/reviewboard/logs/reviewboard.log since I got the error code 500; and here with the last 20 lines in /var/www/reviewboard/logs/reviewboard.log ========== root@ubuntu:/var/www/reviewboard# tail -20 /var/www/reviewboard/logs/reviewboard.log 2013-07-31 06:28:46,031 - DEBUG - None - 990321 - /reviewboard/r/4/diff/1/fragment/19/ - Begin: Generating diff file info for diffset id 3, filediff 19 2013-07-31 06:28:46,033 - DEBUG - None - 990321 - /reviewboard/r/4/diff/1/fragment/19/ - End: Generating diff file info for diffset id 3, filediff 19 2013-07-31 06:28:46,033 - DEBUG - None - 990321 - /reviewboard/r/4/diff/1/fragment/19/ - Generating diff file info for diffset id 3, filediff 19 took 0.2572 seconds 2013-07-31 06:30:37,829 - DEBUG - - Begin: Generating diff file info for diffset id 3, filediff 18 2013-07-31 06:30:37,831 - DEBUG - - End: Generating diff file info for diffset id 3, filediff 18 2013-07-31 06:30:37,832 - DEBUG - - Generating diff file info for diffset id 3, filediff 18 took 0.2621 seconds 2013-07-31 06:30:38,721 - DEBUG - None - 990321 - /reviewboard/r/4/fragments/diff-comments/2/ - Begin: Generating diff file info for diffset id 3, filediff 18 2013-07-31 06:30:38,724 - DEBUG - None - 990321 - /reviewboard/r/4/fragments/diff-comments/2/ - End: Generating diff file info for diffset id 3, filediff 18 2013-07-31 06:30:38,724 - DEBUG - None - 990321 - /reviewboard/r/4/fragments/diff-comments/2/ - Generating diff file info for diffset id 3, filediff 18 took 0.2582 seconds 2013-07-31 06:38:46,433 - DEBUG - None - 990321 - /reviewboard/r/4/diff/ - Generating diff viewer page for filediff id 3 2013-07-31 06:38:46,434 - DEBUG - None - 990321 - /reviewboard/r/4/diff/ - Begin: Generating diff file info for diffset id 3 2013-07-31 06:38:46,438 - DEBUG - None - 990321 - /reviewboard/r/4/diff/ - End: Generating diff file info for diffset id 3 2013-07-31 06:38:46,438 - DEBUG - None - 990321 - /reviewboard/r/4/diff/ - Generating diff file info for diffset id 3 took 0.3452 seconds 2013-07-31 06:38:46,438 - DEBUG - None - 990321 - /reviewboard/r/4/diff/ - Begin: Generating diff file info for diffset id 3, filediff 18 2013-07-31 06:38:46,439 - DEBUG - None - 990321 - /reviewboard/r/4/diff/ - End: Generating diff file info for diffset id 3, filediff 18 2013-07-31 06:38:46,439 - DEBUG - None - 990321 - /reviewboard/r/4/diff/ - Generating diff file info for diffset id 3, filediff 18 took 0.1029 seconds 2013-07-31 06:38:46,480 - DEBUG - None - 990321 - /reviewboard/r/4/diff/ - Done generating diff viewer page for filediff id 3 2013-07-31 06:38:46,804 - DEBUG - None - 990321 - /reviewboard/r/4/diff/1/fragment/19/ - Begin: Generating diff file info for diffset id 3, filediff 19 2013-07-31 06:38:46,807 - DEBUG - None - 990321 - /reviewboard/r/4/diff/1/fragment/19/ - End: Generating diff file info for diffset id 3, filediff 19 2013-07-31 06:38:46,807 - DEBUG - None - 990321 - /reviewboard/r/4/diff/1/fragment/19/ - Generating diff file info for diffset id 3, filediff 19 took 0.2736 seconds root@ubuntu:/var/www/reviewboard# ==========
sorry to mention that I rebuilt a new platform and it also got error code 500 after 31 July the log in my previous comment comes from this new platform
the error log has been rotated, here with the latest logs: a. /var/log/apache2/error.log.1 root@ubuntu:/var/www/reviewboard# cat /var/log/apache2/error.log.1 [Sun Aug 04 06:25:02 2013] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'. [Sun Aug 04 06:25:02 2013] [error] python_init: Python executable found '/usr/bin/python'. [Sun Aug 04 06:25:02 2013] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'. [Sun Aug 04 06:25:02 2013] [notice] mod_python: Creating 8 session mutexes based on 3 max processes and 25 max threads. [Sun Aug 04 06:25:02 2013] [notice] mod_python: using mutex_directory /tmp [Sun Aug 04 06:25:02 2013] [notice] Apache/2.2.22 (Ubuntu) mod_python/3.3.1 Python/2.7.3 configured -- resuming normal operations [Mon Aug 05 14:59:26 2013] [error] [client 140.96.29.189] File does not exist: /var/www/reviewboard/htdocs/favicon.ico [Mon Aug 05 14:59:31 2013] [error] [client 140.96.29.189] File does not exist: /var/www/reviewboard/htdocs/favicon.ico [Sun Aug 11 06:25:02 2013] [notice] SIGUSR1 received. Doing graceful restart apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName root@ubuntu:/var/www/reviewboard# b. /var/log/apache2/error.log root@ubuntu:/var/www/reviewboard# cat /var/log/apache2/error.log [Sun Aug 11 06:25:02 2013] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'. [Sun Aug 11 06:25:02 2013] [error] python_init: Python executable found '/usr/bin/python'. [Sun Aug 11 06:25:02 2013] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'. [Sun Aug 11 06:25:02 2013] [notice] mod_python: Creating 8 session mutexes based on 3 max processes and 25 max threads. [Sun Aug 11 06:25:02 2013] [notice] mod_python: using mutex_directory /tmp [Sun Aug 11 06:25:02 2013] [notice] Apache/2.2.22 (Ubuntu) mod_python/3.3.1 Python/2.7.3 configured -- resuming normal operations [Mon Aug 12 10:06:27 2013] [error] [client 140.96.29.189] File does not exist: /var/www/reviewboard/htdocs/favicon.ico [Mon Aug 12 17:41:17 2013] [error] [client 140.96.29.189] File does not exist: /var/www/reviewboard/htdocs/favicon.ico [Thu Aug 15 11:12:30 2013] [error] [client 140.96.29.189] File does not exist: /var/www/reviewboard/htdocs/favicon.ico [Thu Aug 15 11:12:31 2013] [error] [client 140.96.29.189] File does not exist: /var/www/reviewboard/htdocs/favicon.ico root@ubuntu:/var/www/reviewboard#
here with the /var/log/apache2/error.log.2: ========== [Mon Jul 29 09:47:27 2013] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'. [Mon Jul 29 09:47:27 2013] [error] python_init: Python executable found '/usr/bin/python'. [Mon Jul 29 09:47:27 2013] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'. [Mon Jul 29 09:47:27 2013] [notice] mod_python: Creating 8 session mutexes based on 6 max processes and 25 max threads. [Mon Jul 29 09:47:27 2013] [notice] mod_python: using mutex_directory /tmp [Mon Jul 29 09:47:27 2013] [notice] Apache/2.2.22 (Ubuntu) mod_python/3.3.1 Python/2.7.3 configured -- resuming normal operations [Mon Jul 29 09:48:49 2013] [notice] caught SIGTERM, shutting down [Mon Jul 29 09:49:00 2013] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'. [Mon Jul 29 09:49:00 2013] [error] python_init: Python executable found '/usr/bin/python'. [Mon Jul 29 09:49:00 2013] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'. [Mon Jul 29 09:49:00 2013] [notice] mod_python: Creating 8 session mutexes based on 6 max processes and 25 max threads. [Mon Jul 29 09:49:00 2013] [notice] mod_python: using mutex_directory /tmp [Mon Jul 29 09:49:00 2013] [notice] Apache/2.2.22 (Ubuntu) mod_python/3.3.1 Python/2.7.3 configured -- resuming normal operations [Mon Jul 29 07:46:38 2013] [error] [client 140.96.29.203] File does not exist: /var/www/reviewboard/htdocs/reviewboard [Mon Jul 29 07:46:38 2013] [error] [client 140.96.29.203] File does not exist: /var/www/reviewboard/htdocs/favicon.ico [Tue Jul 30 00:15:44 2013] [error] [client 140.96.29.69] File does not exist: /var/www/reviewboard/htdocs/favicon.ico [Tue Jul 30 00:15:44 2013] [error] [client 140.96.29.69] File does not exist: /var/www/reviewboard/htdocs/favicon.ico [Sun Aug 04 06:25:02 2013] [notice] SIGUSR1 received. Doing graceful restart /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-07-22 00:00:00) while time zone support is active. RuntimeWarning) /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-07-30 00:00:00) while time zone support is active. RuntimeWarning) /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-06-29 00:00:00) while time zone support is active. RuntimeWarning) /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-05-30 00:00:00) while time zone support is active. RuntimeWarning) /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-04-30 00:00:00) while time zone support is active. RuntimeWarning) /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-07-29 00:00:00) while time zone support is active. RuntimeWarning) /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-07-24 00:00:00) while time zone support is active. RuntimeWarning) /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-08-01 00:00:00) while time zone support is active. RuntimeWarning) /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-07-01 00:00:00) while time zone support is active. RuntimeWarning) /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-06-01 00:00:00) while time zone support is active. RuntimeWarning) /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-05-02 00:00:00) while time zone support is active. RuntimeWarning) /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-07-31 00:00:00) while time zone support is active. RuntimeWarning) /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-07-22 00:00:00) while time zone support is active. RuntimeWarning) /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-07-30 00:00:00) while time zone support is active. RuntimeWarning) /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-06-29 00:00:00) while time zone support is active. RuntimeWarning) /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-05-30 00:00:00) while time zone support is active. RuntimeWarning) /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-04-30 00:00:00) while time zone support is active. RuntimeWarning) /usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-07-29 00:00:00) while time zone support is active. RuntimeWarning) apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName root@ubuntu:/var/log/apache2# ==========
Would you mind attaching the entire reviewboard log and apache error/access logs? Or if you'd like, you can send them to me privately at david@beanbaginc.com
Morning, David, already sent the logs to your email box, please check it out; and thank you for the help.
After discussion via email, it turns out that this installation was done using unofficial installation instructions from 1.0 alpha, and not using rb-site. Please install and configure using the steps in our official documentation: http://www.reviewboard.org/docs/manual/1.7/admin/
-
- NeedInfo + SetupIssue
@_@ it's failed to install using the steps in your official documentation, that's the reason I followed the unofficial installation instructions from internet...
I'll reopen this, but we need to have you debugging against the official installation procedure--the unofficial one that you followed is over four years old, and things have changed a lot since then.
-
- SetupIssue + New
herewith my procedure to install Review Board inside a Ubuntu VM running on top of VMPlayer; (the attachment also forwarded to David Trowbridge <david@beanbaginc.com> and Christian Hammond <chipx86@chipx86.com>) please review the instructions and then show me how to correct it, very appreciate!
-
+
Nothing stands out as being wrong. Can you set DEBUG=True in your settings_local.py file, reload apache, and see if anything shows up when you start getting 500s?
-
- New + NeedInfo
as I mentioned to Christian Hammond <chipx86@chipx86.com> and David Trowbridge <david@beanbaginc.com> via email on 20 Aug. after set DEBUG=True, I got this message; but, how come? I already set [Alias /reviewboard/media "/var/www/reviewboard/htdocs/media"] in .conf file ============= Extensions media directory changes Your site's extensions media directory isn't properly set up. This directory is where Review Board will store various extension media files. Your extensions media directory is currently at: /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.11-py2.7.egg/htdocs/media/ext Permission problems The directory must be writable by the web server. On Linux/Unix/Mac, you can fix this by typing: $ sudo chown -R www-data "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.11-py2.7.egg/htdocs/media/ext" On Windows, right-click the data directory and change the ownership to www-data. =============
That error message *should not* include the dist-packages location if you installed correctly with rb-site. I think that that error is a result of the outdated third party blog post that you used.