I have installed an ARA portal to watch the Ansible playbook executed status. But, I always got an error as below said from ARA portal:
sqlalchemy.exc.OperationalError OperationalError: (pymysql.err.OperationalError) (2006, "MySQL server has gone away (error(32, 'Broken pipe'))") [SQL: u'SELECT files.id AS files_id, files.playbook_id AS files_playbook_id, files.path AS files_path, files.content_id AS files_content_id, files.is_playbook AS files_is_playbook \nFROM files \nWHERE files.id = %(param_1)s'] [parameters: {u'param_1': u'9e533f28-1780-49ac-99d8-306040567d9b'}] (Background on this error at: http://sqlalche.me/e/e3q8)
I ensure my ARA installation was following the below link:
https://ara.readthedocs.io/en/latest/installation.html
My setting showing in below:
OS: Ubuntu 16.04
Python: 3.5, and also tried using Python 2.7, but both error.
MySQL: 5.7.23 ( All dbs and tables use the utf8mb4 )
pymysql: 0.9.2, and also tried using 0.7.1 version, but both error.
sqlalchemy: 1.2.11
I used below command to start ARA portal:
export ARA_DATABASE="mysql+pymysql://ara:password@localhost/ara?charset=utf8mb4"
ara-manage runserver -h <server_ip> -p 9191 -d
I have confirmed my ARA and connection to MySQL, and MySQL 'ara' database keep Ansible playbook executed logs.
Could anyone help me?