Something went wrong while setting issue due date.
MySQL Error when updating repo: Incorrect string value
When updating the F-Droid.org repo with a MySQL database, we get this error:
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: ERROR:background_task.tasks:Rescheduling maker.tasks.update_remote_repo
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: Traceback (most recent call last):
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 65, in execute
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: return self.cursor.execute(sql, params)
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: File "/usr/local/lib/python3.5/dist-packages/django/db/backends/mysql/base.py", line 101, in execute
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: return self.cursor.execute(query, args)
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: File "/usr/lib/python3/dist-packages/MySQLdb/cursors.py", line 226, in execute
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: self.errorhandler(self, exc, value)
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: File "/usr/lib/python3/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: raise errorvalue
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: File "/usr/lib/python3/dist-packages/MySQLdb/cursors.py", line 217, in execute
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: res = self._query(query)
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: File "/usr/lib/python3/dist-packages/MySQLdb/cursors.py", line 378, in _query
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: rowcount = self._do_query(q)
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: File "/usr/lib/python3/dist-packages/MySQLdb/cursors.py", line 341, in _do_query
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: db.query(q)
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: File "/usr/lib/python3/dist-packages/MySQLdb/connections.py", line 280, in query
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: _mysql.connection.query(self, query)
Jun 09 14:02:20 repomaker.grobox.de python3[21288]: _mysql_exceptions.OperationalError: (1366, "Incorrect string value: '\\xF0\\x9F\\x9A\\x80' for column 'l_summary' at row 1")
We should of course fix this error, but maybe also catch this exception so only this problematic app isn't added and background task processing isn't stopped.
Ideally, we also run our tests on a MySQL database.