Samba

  • I'm testing OMV5 on proxmox... when I go to enable Samba I get the following message-error:


    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run avahi 2>&1' with exit code '1': /usr/lib/python3/dist-packages/salt/modules/file.py:32: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Iterable, Mapping /usr/lib/python3/dist-packages/salt/utils/decorators/signature.py:31: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly *salt.utils.args.get_function_argspec(original_function) /usr/lib/python3/dist-packages/salt/utils/decorators/signature.py:31: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly *salt.utils.args.get_function_argspec(original_function) debian: Data failed to compile: ---------- Rendering SLS 'base:omv.deploy.avahi.services.nfs' failed: Jinja variable 'salt.utils.templates.AliasedLoader object' has no attribute 'omv_conf.get' ---------- Rendering SLS 'base:omv.deploy.avahi.services.smb' failed: Jinja variable 'salt.utils.templates.AliasedLoader object' has no attribute 'omv_conf.get' ---------- Rendering SLS 'base:omv.deploy.avahi.services.ftp' failed: Jinja variable 'salt.utils.templates.AliasedLoader object' has no attribute 'omv_conf.get' ---------- Rendering SLS 'base:omv.deploy.avahi.services.ssh' failed: Jinja variable 'salt.utils.templates.AliasedLoader object' has no attribute 'omv_conf.get' ---------- Rendering SLS 'base:omv.deploy.avahi.services.rsync' failed: Jinja variable 'salt.utils.templates.AliasedLoader object' has no attribute 'omv_conf.get' ---------- Rendering SLS 'base:omv.deploy.avahi.services.webadmin' failed: Jinja variable 'salt.utils.templates.AliasedLoader object' has no attribute 'omv_conf.get'

    • Offizieller Beitrag

    This is probably caused by the apt clean button clearing the salt cache using:


    salt-call --local saltutil.clear_cache


    I have found the following command fixes the issue but I need to verify with @votdev that it is the proper thing to do:


    sudo salt-call --local --retcode-passthrough --no-color state.orchestrate omv.stage.prepare

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | 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

    Don't know what your intention is in clearing the cache, but it seems this will remove the sync'd modules. So you need to run at least



    Bash
    # salt-call saltutil.sync_modules


    to fix that. Alternatively use


    Bash
    # omv-salt stage run prepare
    • Offizieller Beitrag

    Don't know what your intention is in clearing the cache, but it seems this will remove the sync'd modules

    While porting the plugins, I have noticed numerous times that the salt cache does not update after installing a plugin. This might just be something I see while installing them. So, I will probably just remove the line from omv-extras. Thanks for the tips though.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | 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!

  • I've experienced simmilar issues than when trying to remove/update my samba shares (Actually I want to remove all of them to allow me disable the corresponding sharing folders and start to cleate them again cause they are not working very well)


    When I tried to excecute those commands gets this results, seems than 1 and 2 are ok but run prepare had an error output


    # salt-call --local saltutil.clear_cache

    local:

    True

    # salt-call saltutil.sync_modules

    local:

    # omv-salt stage run prepare

    raspberrypi:

    Data failed to compile:

    ----------

    No matching sls found for 'omv.stage.prepare' in env 'base'



    Did you have any idea?

    I've readed also about an issue with sharing root folders and diskstats plugins So I've tried to remove both but also receiving an error message



    Just in case for more context, this is the error message received when try to remove any folder

    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color avahi 2>&1' with exit code '100': ERROR: The state 'avahi' does not exist

    Error #0:
    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color avahi 2>&1' with exit code '100': ERROR: The state 'avahi' does not exist in /usr/share/php/openmediavault/system/process.inc:195
    Stack trace:
    #0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()
    #1 /usr/share/openmediavault/engined/rpc/config.inc(167): OMV\Engine\Module\ServiceAbstract->deploy()
    #2 [internal function]: Engined\Rpc\Config->applyChanges(Array, Array)
    #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
    #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusAG...', '/tmp/bgoutputoH...')
    #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
    #7 /usr/share/openmediavault/engined/rpc/config.inc(189): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
    #8 [internal function]: Engined\Rpc\Config->applyChangesBg(Array, Array)
    #9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
    #11 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
    #12 {main}



    And this is the one received when trying to remove the plugins


    Reading package lists...

    Building dependency tree...

    Reading state information...

    The following packages will be REMOVED:

    openmediavault-diskstats

    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.

    1 not fully installed or removed.

    After this operation, 114 kB disk space will be freed.

    (Reading database ...

    (Reading database ... 5%

    (Reading database ... 10%

    (Reading database ... 15%

    (Reading database ... 20%

    (Reading database ... 25%

    (Reading database ... 30%

    (Reading database ... 35%

    (Reading database ... 40%

    (Reading database ... 45%

    (Reading database ... 50%

    (Reading database ... 55%

    (Reading database ... 60%

    (Reading database ... 65%

    (Reading database ... 70%

    (Reading database ... 75%

    (Reading database ... 80%

    (Reading database ... 85%

    (Reading database ... 90%

    (Reading database ... 95%

    (Reading database ... 100%

    (Reading database ... 151639 files and directories currently installed.)

    Removing openmediavault-diskstats (5.1.1-1) ...

    ERROR: The state 'collectd' does not exist

    dpkg: error processing package openmediavault-diskstats (--remove):

    installed openmediavault-diskstats package post-removal script subprocess returned error exit status 100

    Errors were encountered while processing:

    openmediavault-diskstats


    Any clue will help

    Thanks in advance

  • Hello,


    I am experiencing the same issue, however on OMV6.

    I tried the suggestions above:

    Code
    root@homeserver:/home/henfri# salt-call saltutil.sync_modules
    local:
    root@homeserver:/home/henfri# omv-salt stage run prepare
    homeserver.fritz.box:
        Data failed to compile:
    ----------
        No matching sls found for 'omv.stage.prepare' in env 'base'
    root@homeserver:/home/henfri#


    After the first one, it still does not work.

    The second command fails -supposedly due to changes between OMV5 and OMV6.

    How do I fix this on OMV6?


    Best regards,

    Hendrik

    • Offizieller Beitrag

    It looks like you just did a plain su or sudo su to root instead of su - or sudo su -. If you don't use one of the latter two, you won't get root's profile.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | 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!

  • Hello,


    in fact, I did a

    Code
    sudo byobu


    I tried it with su - now. Same CLI output and same effect in the webinterface (I tride both commands from above).


    Code
    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color avahi 2>&1' with exit code '100': ERROR: The state 'avahi' does not exist


    Best regards,

    Hendrik

    • Offizieller Beitrag

    What is the output of:


    readlink -f /lib

    dpkg -l | grep openmedia

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | 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!

  • Hello Aaron,


    sorry for the delay.

    Here it is:


    Best regards,

    Hendrik

    • Offizieller Beitrag

    I would start by removing the omv 5.x package for omvextras-unionbackend


    sudo apt-get purge omvextras-unionbackend

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | 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

    Post the output of:


    sudo /usr/bin/salt-call --local saltutil.clear_cache

    sudo omv-salt stage run prepare

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | 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!

  • Hello,


    here it is:

    Code
    sudo /usr/bin/salt-call --local saltutil.clear_cache
    [sudo] Passwort für henfri:
    local:
        True
    henfri@homeserver:~$ sudo omv-salt stage run prepare
    homeserver.fritz.box:
        Data failed to compile:
    ----------
        No matching sls found for 'omv.stage.prepare' in env 'base'


    Best regards,

    Hendrik

    • Offizieller Beitrag

    sudo apt-get update

    sudo apt-get install openmediavault

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | 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!