mariadb crash.

Discussion in 'ISPConfig 3 Priority Support' started by felan, Apr 11, 2017.

  1. felan

    felan Member HowtoForge Supporter

    I have a big problem. Mariadb crashed last night and won't start. I tried removing the database packages through apt-get but now I can't install them again. I get the following error:

    Code:
    Preparing to unpack .../mariadb-server-core-10.1_10.1.22+maria-1~jessie_amd64.deb ...
    Unpacking mariadb-server-core-10.1 (10.1.22+maria-1~jessie) ...
    Preparing to unpack .../mariadb-server-10.1_10.1.22+maria-1~jessie_amd64.deb ...
    Failed to stop mysql.service: Unit mysql.service not loaded.
    invoke-rc.d: initscript mysql, action "stop" failed.
    invoke-rc.d returned 5
    There is a MySQL server running, but we failed in our attempts to stop it.
    Stop it yourself and try again!
    dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.1_10.1.22+maria-1~jessie_amd64.deb (--unpack):
    subprocess new pre-installation script returned error exit status 1
    Selecting previously unselected package mariadb-server.
    Preparing to unpack .../mariadb-server_10.1.22+maria-1~jessie_all.deb ...
    Unpacking mariadb-server (10.1.22+maria-1~jessie) ...
    Processing triggers for man-db (2.7.0.2-5) ...
    Errors were encountered while processing:
    /var/cache/apt/archives/mariadb-server-10.1_10.1.22+maria-1~jessie_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Check with 'ps aux | grep mysql' if there is still a mysql/mariadb process running and if yes, then stop it.
     
  3. felan

    felan Member HowtoForge Supporter

    ALready checked, none :(
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

  5. felan

    felan Member HowtoForge Supporter

    Hi Till.
    THis worked
    Now I just need to get the darn thing to run again >.<
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Which messages do you get in the syslog or mysql logs? When the innodb files crahsed, then you can set a recovery level in the mysql config file to start it anyay (don't remember the exact name of the settings at the moment).
     
  7. felan

    felan Member HowtoForge Supporter

    I have set recovery level at 4. Seams to work now, but it's slow.
     
  8. felan

    felan Member HowtoForge Supporter

    Yep recovery level 4 and now we are up again. Should probably remove that setting soon >.>
     
  9. felan

    felan Member HowtoForge Supporter

    Till, I can't get hold of Florian right now, but do you know anyone who can take a job to dump all databases, clean everything up and set mysql back to run normally then import everything again?
     
  10. felan

    felan Member HowtoForge Supporter

    NM, got hold of him :) THanks for your help!
     

Share This Page