Error restarting smb service from webgui

  • Hi,


    ich upgrade from OMV 1.X to OMV 2.X.


    After that I cant change any options in the smb/cifs configuration. When i try to apply the changes I get the following error:



    I think there is something wrong with the startup script. Anyone got an idea how to fix this? If you need any futher log files please let me know.


    Regards Monchi!

    • Offizieller Beitrag
    Code
    update-rc.d -f samba remove
    update-rc.d samba defaults
    update-rc.d samba enable

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


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


    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!

  • Hi ryecoaaron,


    thanks for the reply but this still doesn't fix the problem.


    Executing update-rc.d samba enable throws the same error:

    Code
    update-rc.d: using dependency based boot sequencing
    update-rc.d: error: samba Default-Start contains no runlevels, aborting.


    This is the current start script:

  • in /etc/init.d/ there is second script which seems to start the samba service. It's called smbd:


    My guess it that the samba script is a leftover from the old version und the smbd is the current version.


    Samba version installed:

    Code
    Samba version 4.1.17-Debian


    EDIT: a quick an dirty fix is to copy the content from smbd to samba file but i would prefere a clean solution. any ideas?

  • ok samba backports ships with four init scripts but the default samba starts the other three as clearly states in it content.
    what you did will leave you with no netbios daemon, the Windows announce thing.
    You can try and revert what you did and add the runlevels manually to init.d/samba


    I've added the following informations to the /etc/init.d/samba script:

    Code
    # Required-Start:    $network $local_fs $remote_fs
    # Required-Stop:     $network $local_fs $remote_fs
    # Default-Start:     2 3 4 5
    # Default-Stop:      0 1 6


    after that the error is gone. Thank you very much!

Jetzt mitmachen!

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