MySQL Install / Uninstall issue

  • Trying to uninstall / re-install MySQL via plugin.


    Uninstall error:



    Then see the following error on plugin install:


    Then if enbled...

    • Offizieller Beitrag

    The first error is a browser cache and/or nginx restarting error. Clear your browser cache. nginx restarting error is nothing to worry about.


    Bad gateway is probably a nginx restarting error.


    Last box shows the plugin installed fine but the database is missing. Do you have any existing databases? If not, try (as root): mysql_install_db

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Thanks. Cleared cache but same outcome. Used alternative browser, same again.
    Followed you instruction to create dbs..



    Enabling the service..

    • Offizieller Beitrag

    What options do you have in extra options?

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    You must have had a database installed at /media/26ca4497-4a5c-47d3-80cc-1ff71b99321c/MySQL/ previously though. I recommend purging the plugin, mysql, and users. I would also remove the /var/lib/mysql dir if it exists and /etc/mysql.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Removed plugin (which should purge mysql?). Not sure how to delete users?
    deleted /var/lib/mysql & /etc/mysql


    Installed plugin..



    Tried changing data directory & bind address, saved:


    enabling the service..

    • Offizieller Beitrag

    removing the plugin might not purge the plugin. I would purge individually and check output of dpkg -l to verify that it isn't just removed. Removing the config files is important too.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Thanks, sadly im not a linux expert. But managed to purge a few with SQL references but not all.


    root@OMV:~# dpkg --purge mysql-common
    dpkg: dependency problems prevent removal of mysql-common:
    mysql-client-5.5 depends on mysql-common (>= 5.5.44-0+deb7u1).
    libmysqlclient18:amd64 depends on mysql-common (>= 5.5.44-0+deb7u1).


    root@OMV:~# dpkg --purge mysql-client-5.5
    (Reading database ... 32030 files and directories currently installed.)
    Removing mysql-client-5.5 ...
    Processing triggers for man-db ...


    root@OMV:~# dpkg --purge mysql-common
    dpkg: dependency problems prevent removal of mysql-common:
    libmysqlclient18:amd64 depends on mysql-common (>= 5.5.44-0+deb7u1).
    dpkg: error processing mysql-common (--purge):
    dependency problems - not removing
    Errors were encountered while processing:
    mysql-common


    root@OMV:~# dpkg --purge mysql-server-5
    dpkg: warning: ignoring request to remove mysql-server-5 which isn't installed
    root@OMV:~#


    root@OMV:~# dpkg --purge mysql-server-c
    dpkg: warning: ignoring request to remove mysql-server-c which isn't installed
    root@OMV:~#


    root@OMV:~# dpkg --purge mywebsql
    (Reading database ... 31975 files and directories currently installed.)
    Removing mywebsql ...
    Purging configuration files for mywebsql ...
    rm: cannot remove `/var/lib/mywebsql': No such file or directory
    dpkg: error processing mywebsql (--purge):
    subprocess installed post-removal script returned error exit status 1
    Errors were encountered while processing:
    mywebsql

  • Now installing the plugin error as below..


    http://txt.do/a3ro7

    Then tried this .. apt-get -f install
    Now installs ok
    But when try to enable...
    Error #4000:
    exception 'OMVException' with message 'Failed to execute command 'omv-mkconf mysql 2>&1': Unable to get current database location.' in /usr/share/openmediavault/engined/module/mysql.inc:88
    Stack trace:
    #0 /usr/share/openmediavault/engined/rpc/config.inc(180): OMVModuleMySQL->applyConfig()
    #1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
    #2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
    #3 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
    #4 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
    #5 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
    #6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
    #7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
    #8 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
    #9 {main}

    • Offizieller Beitrag

    If things don't go as planned, don't keep installing the plugin.


    mkdir -p /var/lib/mywebsql
    apt-get purge mysql* mywebsql
    rm -rfv /etc/mysql


    If dpkg -l | grep mysql returns nothing then install again. if not, don't install the plugin and post the output.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!