twisted - 1045 access denied for user 'root'@'localhost'

Bug #1014012 reported by martin suchanek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
poker-network (Ubuntu)
New
Undecided
Unassigned

Bug Description

I have came across of following error appeared in poker-network-server.log:

Traceback (most recent call last):
2012-06-16 09:04:34+0100 [-] File "/usr/bin/twistd", line 14, in <module>
2012-06-16 09:04:34+0100 [-] run()
2012-06-16 09:04:34+0100 [-] File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 27, in run
2012-06-16 09:04:34+0100 [-] app.run(runApp, ServerOptions)
2012-06-16 09:04:34+0100 [-] File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 652, in run
2012-06-16 09:04:34+0100 [-] runApp(config)
2012-06-16 09:04:34+0100 [-] File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 23, in runApp
2012-06-16 09:04:34+0100 [-] _SomeApplicationRunner(config).run()
2012-06-16 09:04:34+0100 [-] File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 390, in run
2012-06-16 09:04:34+0100 [-] self.postApplication()
2012-06-16 09:04:34+0100 [-] File "/usr/lib/python2.7/dist-packages/twisted/scripts/_twistd_unix.py", line 208, in postApplication
2012-06-16 09:04:34+0100 [-] self.startApplication(self.application)
2012-06-16 09:04:34+0100 [-] File "/usr/lib/python2.7/dist-packages/twisted/scripts/_twistd_unix.py", line 326, in startApplication
2012-06-16 09:04:34+0100 [-] app.startApplication(application, not self.config['no_save'])
2012-06-16 09:04:34+0100 [-] File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 674, in startApplication
2012-06-16 09:04:34+0100 [-] service.IService(application).startService()
2012-06-16 09:04:34+0100 [-] File "/usr/lib/python2.7/dist-packages/twisted/application/service.py", line 282, in startService
2012-06-16 09:04:34+0100 [-] service.startService()
2012-06-16 09:04:34+0100 [-] File "/usr/lib/python2.7/dist-packages/twisted/application/service.py", line 282, in startService
2012-06-16 09:04:34+0100 [-] service.startService()
2012-06-16 09:04:34+0100 [-] File "/usr/lib/python2.7/dist-packages/pokernetwork/pokerservice.py", line 229, in startService
2012-06-16 09:04:34+0100 [-] self.db = PokerDatabase(self.settings)
2012-06-16 09:04:34+0100 [-] File "/usr/lib/python2.7/dist-packages/pokernetwork/pokerdatabase.py", line 62, in __init__
2012-06-16 09:04:34+0100 [-] passwd = self.parameters["root_password"]
2012-06-16 09:04:34+0100 [-] File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect
2012-06-16 09:04:34+0100 [-] return Connection(*args, **kwargs)
2012-06-16 09:04:34+0100 [-] File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in __init__
2012-06-16 09:04:34+0100 [-] super(Connection, self).__init__(*args, **kwargs2)
2012-06-16 09:04:34+0100 [-] _mysql_exceptions.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: NO)")

lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04

apt-cache policy python-poker-network
python-poker-network:
  Installed: 1.7.7-3.2ubuntu2
  Candidate: 1.7.7-3.2ubuntu2
  Version table:
 *** 1.7.7-3.2ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
        100 /var/lib/dpkg/status

expected: properly installed and work
happened: Access denied for user 'root'@'localhost' (using password: NO)
(in my case it should be YES and somewhere defined proper conncetion to database.)
(probably causing twistd crash)

regards,
M.

Revision history for this message
NginUS (wetyourself) wrote :

Resolved by adding MySQL root password between the "" at line 121 of /etc/poker-network/poker.server.xml

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.