Hi Christian,

Thank you very much for your reply.

Here is the content of the Apache error log. The last four entries were 
created when I tried to access the web site on the local machine with 
'localhost:8080/bot2' and hit HTTP 500 with DEBUG=False. I have configured 
the server to use port 8080 for this site and it works with DEBUG=True.

[Thu Aug 30 00:05:27.731341 2018] [mpm_prefork:notice] [pid 21967] AH00163: 
Apache/2.4.29 (Ubuntu) mod_wsgi/4.5.17 Python/2.7 configured -- resuming 
normal operations
[Thu Aug 30 00:05:27.731962 2018] [core:notice] [pid 21967] AH00094: 
Command line: '/usr/sbin/apache2'
[Thu Aug 30 10:06:56.403979 2018] [mpm_prefork:notice] [pid 991] AH00163: 
Apache/2.4.29 (Ubuntu) mod_wsgi/4.5.17 Python/2.7 configured -- resuming 
normal operations
[Thu Aug 30 10:06:56.404200 2018] [core:notice] [pid 991] AH00094: Command 
line: '/usr/sbin/apache2'
[Thu Aug 30 10:30:59.183996 2018] [mpm_prefork:notice] [pid 991] AH00169: 
caught SIGTERM, shutting down
[Thu Aug 30 10:30:59.273617 2018] [mpm_prefork:notice] [pid 3970] AH00163: 
Apache/2.4.29 (Ubuntu) mod_wsgi/4.5.17 Python/2.7 configured -- resuming 
normal operations
[Thu Aug 30 10:30:59.273663 2018] [core:notice] [pid 3970] AH00094: Command 
line: '/usr/sbin/apache2'
[Thu Aug 30 09:31:19.244229 2018] [wsgi:error] [pid 3972] [client 
127.0.0.1:36812] No handlers could be found for logger 
"djblets.extensions.manager"


And here is the content of the 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
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'reviewboard',
        'USER': 'bot2',
        'PASSWORD': 'bot2',
        'HOST': 'localhost',
        'PORT': '',
    },
}

# Unique secret key. Don't share this with anybody.
SECRET_KEY = '-1q@jfk_ow$uti6m36pyf)(gx1$%&zoh6qovfq*##(+*3fm72x'

# Cache backend settings.
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': 'localhost:11211',
    },
}

# Extra site information.
SITE_ID = 1
SITE_ROOT = '/bot2/'
FORCE_SCRIPT_NAME = ''
DEBUG = False
ALLOWED_HOSTS = ['reviews.abcd.com']


I couldn't find any other logs/information that may give any clue to this 
problem. Your help is very much appreciated.


Cheers,

Xu

On Wednesday, 29 August 2018 23:19:15 UTC+1, Christian Hammond wrote:
>
> Hi,
>
> You should never need to set DEBUG=True in a production environment. Can 
> you find any other error information in Apache's error_log when you hit the 
> HTTP 500? And the full details of the one error log entry you mentioned?
>
> Christian
>
> On Wed, Aug 29, 2018 at 8:19 AM Yuanyuan Xu <yuanyua...@gmail.com 
> <javascript:>> wrote:
>
>> The system I am working with:
>>
>> Ubuntu 18.04.1 LTS
>> Python 2.7.15rcl
>> Review board 3.0.8
>>
>> On Tuesday, 28 August 2018 17:32:43 UTC+1, Yuanyuan Xu wrote:
>>>
>>> Hi,
>>>
>>> I had a new Review Board site set up from scratch following the document 
>>> in Ubuntu. However, I got Error 500 when I tried to access my site. But if 
>>> I set DEBUG=True in the setting py file, I was able to access the admin UI 
>>> successfully. I have set the whole $site_folder Owner to 'www-data'. And 
>>> tried upgrading the whole system for several times. Still got this error. 
>>> In the error log, there are lots of "no handlers could be found for logger 
>>> djblets.extensions.manager" messages. The 'site allowed' entry in the 
>>> settings py file is correct, although I always use the IP address directly 
>>> instead. Could somebody help please? Thanks very much.
>>>
>>> Something broke! (Error 500)It appears something broke when you tried 
>>> to go to here. This is either a bug in Review Board or a server 
>>> configuration error. Please report this to your administrator. 
>>>
>>> Cheers,
>>> Xu
>>>
>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Review Board Community" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" 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.

Reply via email to