Re: Admin page can only be accessed with DEBUG=True

2018-09-06 Thread Christian Hammond
Hi Xu, This shouldn't be a common problem. Generally a site directory maps to a database, and once created it's rare to move it. In your case, you hit some sort of bug with our logging failing due to the moved site directory, causing the other logic that would normally detect the move to fail.

Re: Admin page can only be accessed with DEBUG=True

2018-09-06 Thread Yuanyuan Xu
Hi Christian, Yes, I was reusing the same database when setting up a different site. After replacing the old url with the new one in siteconfig table, it all works. Thank you very much. But I am really keen to know that what is the proper way of getting rid of the unwanted site please? Is

Re: Admin page can only be accessed with DEBUG=True

2018-09-04 Thread Christian Hammond
Hi, These paths are stored in the database, so if you're reusing the same database between different site locations, that's probably it. The paths are all in the siteconfig_siteconfiguration table, so you can look in there and see if you're seeing the old paths. You can then replace them with the

Re: Admin page can only be accessed with DEBUG=True

2018-09-04 Thread Yuanyuan Xu
Hi Christian, Thanks for the head up. I will reset the key and password as you said. I didn't see any error pages when trying to sue DEBUG=True. By running the rb-site manage command with the path of sitedir( let's call it 'new sitedir'), I got an error message complaining about 'permission

Re: Admin page can only be accessed with DEBUG=True

2018-09-03 Thread Christian Hammond
Do you see error pages when trying to use DEBUG=True? Let's try a workaround. We're going to ensure that logging is turned on. Try running: rb-site manage /path/to/sitedir set-siteconfig -- --key=logging_enabled --value=true Then restart Apache. See if you get any further. Make sure to

Re: Admin page can only be accessed with DEBUG=True

2018-08-30 Thread Yuanyuan Xu
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

Re: Admin page can only be accessed with DEBUG=True

2018-08-29 Thread Christian Hammond
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 wrote: > The

Re: Admin page can only be accessed with DEBUG=True

2018-08-29 Thread Yuanyuan Xu
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

Admin page can only be accessed with DEBUG=True

2018-08-28 Thread Yuanyuan Xu
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