Re: HELP: OperationalError: (2003, "Can't connect to MySQL server on '127.0.0.1' (13)")

From: Axel Schwenke <axel.schwenke_at_gmx.de>
Date: Fri, 3 Feb 2017 12:39:51 +0100
Message-ID: <o71q2u$6hs$1_at_dont-email.me>


On 03.02.2017 11:20, janpeterkoenig96_at_gmail.com wrote:
>> I have installed Reviewboard2.5, MySql5.7 on RHEL6.4.
>> While launching the site I am getting below error:
>>
>> [Fri Aug 19 11:43:45 2016] [error] ERROR:root:Could not load siteconfig: (2003, "Can't connect to MySQL server on '127.0.0.1' (13)")
>> [Fri Aug 19 11:43:46 2016] [error] CRITICAL:root:Unable to load SiteConfiguration: (2003, "Can't connect to MySQL server on '127.0.0.1' (13)")
>> [Fri Aug 19 11:43:46 2016] [error] Traceback (most recent call last):
>> [Fri Aug 19 11:43:46 2016] [error] File "/usr/lib/python2.6/site-packages/ReviewBoard-2.5.6.1-py2.6.egg/reviewboard/admin/middleware.py", line 44, in process_request
>> [Fri Aug 19 11:43:46 2016] [error] siteconfig = SiteConfiguration.objects.get_current()

Those error messages are from the python connector. Probably not a MySQL problem at all. However the error code gives at least a clue:

~ $perror 13
OS error code 13: Permission denied

The Python process got a "permission denied" error when trying to access MySQL. This could be some SElinux or firewalling problem. Check the syslog for related messages.

I also suggest you review the configuration of that Python stuff. If the MySQL server runs on the same machine, it's recommended to connect through the UNIX socket (something like /var/lib/mysql/mysql.sock) instead of using the TCP stack (via 127.0.0.1) Received on Fri Feb 03 2017 - 12:39:51 CET

Original text of this message