agent crashes when can't connect to mysql

Bug #1454762 reported by Aleksandr Kuzminsky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
twindb-agent
Fix Committed
Undecided
Aleksandr Kuzminsky

Bug Description

[root@db01 vagrant]# twindb --start
2015-05-13 15:55:34,642: twindb: INFO: start():2101: Starting TwinDB agent
2015-05-13 15:55:34,942: twindb: INFO: get_config():609: Got config:
{
    "config_id": "1",
    "mysql_password": "********",
    "mysql_user": "twindb_agent",
    "retention_policy_id": "1",
    "schedule_id": "1",
    "user_id": "1",
    "volume_id": "1"
}
2015-05-13 15:55:35,069: twindb: ERROR: get_mysql_connection():226: Can not connect to local MySQL server
2015-05-13 15:55:35,169: twindb: ERROR: get_mysql_connection():227: MySQL said: Access denied for user 'twindb_agent'@'localhost' (using password: YES)
2015-05-13 15:55:35,275: twindb: INFO: get_mysql_connection():229: Try to call the agent with -u and -p options to specify MySQL user and password
Traceback (most recent call last):
  File "/usr/bin/twindb", line 2340, in <module>
    main()
  File "/usr/bin/twindb", line 2298, in main
    start()
  File "/usr/bin/twindb", line 2110, in start
    report_sss(config)
  File "/usr/bin/twindb", line 631, in report_sss
    "mysql_server_id": ss["mysql_server_id"],
TypeError: 'NoneType' object is unsubscriptable
[root@db01 vagrant]#

Changed in twindb-agent:
assignee: nobody → Aleksandr Kuzminsky (akuzminsky)
milestone: none → 0.1.36
status: New → Confirmed
Changed in twindb-agent:
status: Confirmed → Fix Committed
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.