Error when applying activation of SMB/CIFS

  • Hello OMV experts,

    as a newbee I installed Raspian Buster and OMV 5 on a RASpi 4. Following the documentation, I managed to create a file system, users, a user group and shared folders with the appropriate permissions (at least, I think so :)). But when I try to activate SMB/CIFS I get the following error message after approx. 5 minutes:

    Code
    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 samba 2>&1' with exit code '1': raspberrypi: ---------- ID: configure_samba_global Function: file.managed Name: /etc/samba/smb.conf Result: True Comment: File /etc/samba/smb.conf updated Started: 08:50:00.859478 Duration: 187.957 ms Changes: ---------- diff: --- +++ @@ -39,52 +39,3 @@ min receivefile size = 16384 getwd cache = yes write cache size = 524288 -#======================= Share Definitions ======================= -[Dokumente] -path = /srv/dev-disk-by-uuid-eba46336-630f-4a3c-9db7-c106e006fd41/Dokumente/ -guest ok = no -guest only = no -read only = no -browseable = yes -inherit acls = yes -inherit permissions = no -ea support = no -store dos attributes = no -vfs objects = -printable = no -create mask = 0664 -force create mode = 0664 -directory mask = 0775 -force directory mode = 0775 -hide special files = yes -follow symlinks = yes -hide dot files = yes -valid users = @"Blumes" -invalid users = -read list = -write list = @"Blumes" - -[Fotos] -path = /srv/dev-disk-by-uuid-eba46336-630f-4a3c-9db7-c106e006fd41/Fotos/ -guest ok = no -guest only = no -read only = no -browseable = yes -inherit acls = yes -inherit permissions = no -ea support = no -store dos attributes = no -vfs objects = -printable = no -create mask = 0664 -force create mode = 0664 -directory mask = 0775 -force directory mode = 0775 -hide special files = yes -follow symlinks = yes -hide dot files = yes -valid users = @"Blumes" -invalid users = -read list = -write list = @"Blumes" - ---------- ID: configure_samba_shares Function: file.append Name: /etc/samba/smb.conf Result: True Comment: Appended 49 lines Started: 08:50:01.047836 Duration: 324.807 ms Changes: ---------- diff: --- +++ @@ -39,3 +39,52 @@ min receivefile size = 16384 getwd cache = yes write cache size = 524288 +#======================= Share Definitions ======================= +[Dokumente] +path = /srv/dev-disk-by-uuid-eba46336-630f-4a3c-9db7-c106e006fd41/Dokumente/ +guest ok = no +guest only = no +read only = no +browseable = yes +inherit acls = yes +inherit permissions = no +ea support = no +store dos attributes = no +vfs objects = +printable = no +create mask = 0664 +force create mode = 0664 +directory mask = 0775 +force directory mode = 0775 +hide special files = yes +follow symlinks = yes +hide dot files = yes +valid users = @"Blumes" +invalid users = +read list = +write list = @"Blumes" + +[Fotos] +path = /srv/dev-disk-by-uuid-eba46336-630f-4a3c-9db7-c106e006fd41/Fotos/ +guest ok = no +guest only = no +read only = no +browseable = yes +inherit acls = yes +inherit permissions = no +ea support = no +store dos attributes = no +vfs objects = +printable = no +create mask = 0664 +force create mode = 0664 +directory mask = 0775 +force directory mode = 0775 +hide special files = yes +follow symlinks = yes +hide dot files = yes +valid users = @"Blumes" +invalid users = +read list = +write list = @"Blumes" + ---------- ID: configure_samba_recyclebin_cron Function: file.managed Name: /etc/cron.daily/openmediavault-samba-recycle Result: True Comment: File /etc/cron.daily/openmediavault-samba-recycle is in the correct state Started: 08:50:01.373064 Duration: 6.457 ms Changes: ---------- ID: remove_samba_recyclebin_cron_scripts Function: module.run Result: True Comment: file.find: [] Started: 08:50:01.381788 Duration: 3.783 ms Changes: ---------- file.find: ---------- ID: configure_default_wsdd Function: file.managed Name: /etc/default/wsdd Result: True Comment: File /etc/default/wsdd is in the correct state Started: 08:50:01.385954 Duration: 6.033 ms Changes: ---------- ID: divert_default_wsdd Function: omv_dpkg.divert_add Name: /etc/default/wsdd Result: True Comment: Leaving 'local diversion of /etc/default/wsdd to /etc/default/wsdd.distrib' Started: 08:50:01.393891 Duration: 44.694 ms Changes: ---------- ID: divert_samba_smb_config Function: omv_dpkg.divert_add Name: /etc/samba/smb.conf Result: True Comment: Leaving 'local diversion of /etc/samba/smb.conf to /etc/samba/smb.conf.distrib' Started: 08:50:01.439422 Duration: 43.361 ms Changes: ---------- ID: test_samba_service_config Function: cmd.run Name: samba-tool testparm --suppress-prompt Result: True Comment: Command "samba-tool testparm --suppress-prompt" run Started: 08:50:01.487991 Duration: 212.878 ms Changes: ---------- pid: 17796 retcode: 0 stderr: stdout: # Global parameters [global] disable spoolss = Yes encrypt passwords = Yes getwd cache = Yes guest account = nobody log file = /var/log/samba/log.%m logging = syslog log level = 0 max log size = 1000 min receivefile size = 16384 pam password change = Yes panic action = /usr/share/samba/panic-action %d passdb backend = tdbsam passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . passwd program = /usr/bin/passwd %u printcap name = /dev/null server string = %h server socket options = TCP_NODELAY IPTOS_LOWDELAY unix extensions = Yes workgroup = WORKGROUP fruit:aapl = yes aio read size = 16384 aio write size = 16384 create mask = 0777 directory mask = 0777 use sendfile = Yes write cache size = 524288 [Dokumente] create mask = 0664 directory mask = 0775 ea support = No force create mode = 0664 force directory mode = 0775 hide special files = Yes inherit acls = Yes path = /srv/dev-disk-by-uuid-eba46336-630f-4a3c-9db7-c106e006fd41/Dokumente/ read only = No store dos attributes = No valid users = @Blumes write list = @Blumes [Fotos] create mask = 0664 directory mask = 0775 ea support = No force create mode = 0664 force directory mode = 0775 hide special files = Yes inherit acls = Yes path = /srv/dev-disk-by-uuid-eba46336-630f-4a3c-9db7-c106e006fd41/Fotos/ read only = No store dos attributes = No valid users = @Blumes write list = @Blumes ---------- ID: start_samba_service Function: service.running Name: smbd Result: True Comment: Service smbd has been enabled, and is running Started: 08:50:01.757238 Duration: 2503.227 ms Changes: ---------- smbd: True ---------- ID: start_samba_service_nmbd Function: service.running Name: nmbd Result: False Comment: Job for nmbd.service failed because a timeout was exceeded. See "systemctl status nmbd.service" and "journalctl -xe" for details. Started: 08:51:34.483292 Duration: 90249.196 ms Changes: ---------- ID: start_wsdd_service Function: service.running Name: wsdd Result: True Comment: Service wsdd has been enabled, and is running Started: 08:53:04.733657 Duration: 1081.862 ms Changes: ---------- wsdd: True Summary for raspberrypi ------------- Succeeded: 10 (changed=6) Failed: 1 ------------- Total states run: 11 Total run time: 94.664 s

    Strange thing is that SMB seems to work afterwards. At least I can access the shared folders from my Mac and I can copy files, create folders, etc. But I cannot use OMV anymore as the process of activating SMB cannot be finished.


    What did I do wrong?


    In this forum I found the solution to similar problems to clear the browser cache. But that didn't help for me.


    Thank you and greetings

    Peter

  • Hi macom,


    as long as there appears the yellow box on top (see attachment) I cannot make other changes in OMV. So I have to finish the activation of SMB/CIFS somehow before I can make further adjustments.


    And here is the output of systemctl status nmbd.service:


    Ah, and now I see that there seems to be a problem with the NetBIOS name. But I don't know how to change it.

  • Helfen kann ich im Moment nicht, aber kann es sein, dass du nur IPv6 eingeschaltet hast?


    Kein IPv4 loopback

    Netbios not supported for IPv6

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • sudo omv-salt deploy run samba brings up one failure message at the end:


    Code
    ----------
              ID: start_samba_service_nmbd
        Function: service.running
            Name: nmbd
          Result: False
         Comment: Job for nmbd.service failed because a timeout was exceeded.
                  See "systemctl status nmbd.service" and "journalctl -xe" for details.
         Started: 11:26:14.984963
        Duration: 90264.456 ms
         Changes:   

    Zoki: In the config page of my router the RASpi appears with IPv4 address 192.168.2.173. But the network settings in OMV look strange:

  • Now I have set a static IPv4 address in the network settings of OMV. And that solved the problem. Thank you for the hints! Anyway, strange behavior. I don't know why it didn't work with DHCP.


    Thanks again!

  • macom

    Hat das Label gelöst hinzugefügt.
    • Offizieller Beitrag

    According to the image in publication No. 6, you had IPv6 enabled with DHCP

  • Do you have a working DHCP IP6 in your network?

    OMV should work with dynamiy IPv4, at least mine does.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • I have reinstalled now Raspian Buster and OMV 5 to see step by step why IPv4 is not automatically enabled in OMV. There are two things I have learned so far and that might be of interest to other beginners with similar problems:


    1. Take a close look which IPv4 address is assigned to the RASpi by your router. My router seemed to assign an IPv6 address although I left the option "Use local IPv6 addresses" unchecked in the router configuration. So chente: Apparently DHCP for IPv6 had been activated "by accident".


    2. I think much of my problem has been caused by the fact that the RASpi is not directly connected to the router. There is a network switch between router and RASpi. This is not the best choice, I think


    Anyway, assigning a static IPv4 address solved the problem for me. Even with the RASpi still connected to a switch.

    • Offizieller Beitrag

    Apparently DHCP for IPv6 had been activated "by accident".

    This is strange ... Maybe you did it without realizing it? It doesn't matter, don't answer.

    Zoki's question could be relevant here. If you have an IPv6 DHCP server running on your network, the server would connect through an IPv6 type IP, activating this network.

    I think much of my problem has been caused by the fact that the RASpi is not directly connected to the router. There is a network switch between router and RASpi. This is not the best choice, I think

    This should not be a problem.

Jetzt mitmachen!

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