Can't start clues with mysql database. Seems like string parsing is broken in cpyutils or wrong sample format is provided in configuration file.
Connection string in clues2.cfg file:
DB_CONNECTION_STRING=mysql://clues:clpAss@cluesdb/clues
In log I get errors:
...
WARNING: Couldn't write lextab module 'lextab'. [Errno 20] Not a directory: '/usr/local/lib/python2.7/dist-packages/cpyutils-0.24-py2.7.egg/cpyutils/lextab.py'
WARNING: Couldn't create 'parsetab'. [Errno 20] Not a directory: '/usr/local/lib/python2.7/dist-packages/cpyutils-0.24-py2.7.egg/cpyutils/parsetab.py'
...
Traceback (most recent call last):
File "/usr/bin/cluesserver", line 569, in
main_loop()
File "/usr/bin/cluesserver", line 560, in main_loop
CLUES_DAEMON = CluesDaemon(PLATFORM, active_schedulers)
File "/usr/local/lib/python2.7/dist-packages/clueslib/cluesd.py", line 185, in init
self._db_system = DBSystem.create_from_connection_string()
File "/usr/local/lib/python2.7/dist-packages/clueslib/cluesd.py", line 57, in create_from_connection_string
return DBSystem(connection_string)
File "/usr/local/lib/python2.7/dist-packages/clueslib/cluesd.py", line 61, in init
self._db = cpyutils.db.DB.create_from_string(connection_string)
File "build/bdist.linux-x86_64/egg/cpyutils/db.py", line 80, in create_from_string
NameError: global name 'db' is not defined
If I use ip address for host in connection string I get last 2 lines of same error:
File "build/bdist.linux-x86_64/egg/cpyutils/db.py", line 95, in create_from_string
cpyutils.db.MalformedConnectionString: Connection string format not recognised
Latest master branches of clues and cpyutils on Ubuntu 16.04
Can't start clues with mysql database. Seems like string parsing is broken in cpyutils or wrong sample format is provided in configuration file.
Connection string in clues2.cfg file:
DB_CONNECTION_STRING=mysql://clues:clpAss@cluesdb/clues
In log I get errors:
...
If I use ip address for host in connection string I get last 2 lines of same error:
Latest master branches of clues and cpyutils on Ubuntu 16.04