#hoopla

  • Startseite
  • Kontakt
  • Hoopla?!
  • Datenschutz
  • Impressum
  • « Sonata: Fill, save, and update multiple-entry field
  • Fahrradfahren: Autos auf Abstand halten »

MySQL dying and not restarting on Ubuntu 14.04.3 LTS

Eingetragen von fayon am 28 Jun 2017 in Arbeit

I loaded an SQL dump via a web interface. It timed out. Afterwards the database server responded for any requested database 'SQLSTATE[HY000]: General error: 2006 MySQL server has gone away'. The MySQL process was still there though.

Problem 1: AppArmor
I could neither stop the process via service mysql stop nor start it via service mysql start. None of the commands returned. No error message, not on the command line, not in the logs. This is a symptom for AppArmor going wild. apparmor_status showed that mysql was in enforced mode, so it looked like it wasn't even allowed to start, which explains why there is no error in the logs. I added it to complain with aa-complain /etc/apparmor.d/*mysql*, which didn't change anything. So I deactivated apparmor testwise with service apparmor teardown. After that, mysql would at least log errors again while the start fails.

Problem 2: Changed default settings after update of MySQL to 5.5.x
The first error in the log (/var/log/mysql/error.log) was [ERROR] Failed to access directory for --secure-file-priv. I added into the section [mysqld] of my.cnf secure-file-priv = "" which solved this problem. MySQL starts as usual. I assumed that the SQL dump I was trying to load before wasn't read completely, so I re-read it from commandline via mysql < dump.sql. It loaded without error, but the MySQL server immediately went down again after connecting to the database. The log in /var/log/mysql/error.log said [ERROR] Cannot find or open table ... from the internal data dictionary of InnoDB though the .frm file for the table exists. This error was not related to the problem though: I found that with a version update of MySQL somewhere around 5.5.55 the default max_allowed_packet size decreased, so I set it in my.cnf within [mysqld] to max_allowed_packet = 32M. Voila, after a restart of MySQL everything worked again.

After a machine reboot, everything still works, so AppArmor seems to behave.

Dieser Eintrag wurde eingetragen von fayon und ist abgelegt unter Arbeit.

Noch kein Feedback


Formular wird geladen...

Kommentar-Feed für diesen Eintrag

Suche

Neueste Posts

  • MariaDB boolean comparison syntax
  • Software archeology: how to send customized HTML mails with Drupal 7
  • Connect to IP-restricted Azure MSSQL database via tunnel
  • Postgres: Convert numeric currency value to German bookkeeping standard
  • Computer scientist's way to clean up a room for online conferences
  • JTL5 + Nova Template + Youtube: "Dieses Video ist nicht verfügbar"
  • JTL5 + Nova Child Template + Google Analytics 4
  • Office 365: SMTP with Basic Auth made (im)possible
  • How to migrate from Exchange to Office365
  • Install Ubuntu 20 with a USB flash drive. Go for the old-fashioned way.

Neueste Kommentare

  • Katrin am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • Inga am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • Pulsotronic-Anlagentechnik GmbH am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • Stephan am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • Lopez am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • Heike am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • Renata am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • Sandman am Kopierstempel in Photoshop innerhalb VirtualBox funktioniert nicht
  • treviris am Kopierstempel in Photoshop innerhalb VirtualBox funktioniert nicht
  • Mike am Netzwerkscanner auf Ubuntu einrichten
  • Carlos am Nautilus 3.10 on Ubuntu 14.04: Show full date and time in list view column
  • Carlos am Nautilus 3.10 on Ubuntu 14.04: Show full date and time in list view column
  • Mohsen am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • David am Nautilus 3.10 on Ubuntu 14.04: Show full date and time in list view column
  • Conny am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • Markus am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • SK am Elster: Zertifikat verlängern gibt "Es ist ein Fehler aufgetreten! Bitte starten Sie den Browser erneut und führen Sie diese Aktion nochmal durch."
  • Menzel am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • Angelika am Elster: Zertifikat verlängern gibt "Es ist ein Fehler aufgetreten! Bitte starten Sie den Browser erneut und führen Sie diese Aktion nochmal durch."
  • Michael am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"

©2022 by ff • Kontakt • Hilfe

CMS + user community