• Samba service not found (smbd.service)


    Re: Samba service not found (smbd.service)
    i think samba-4.8.0-2 is busted…

    systemctl status samba
    ● samba.service - Samba AD Daemon
       Loaded: loaded (/usr/lib/systemd/system/samba.service; disabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Tue 2018-04-24 22:30:42 EEST; 8min ago
         Docs: man:samba(8)
               man:samba(7)
               man:smb.conf(5)
      Process: 6835 ExecStart=/usr/bin/samba --foreground --no-process-group $SAMBAOPTIONS (code=exited, status=1/FAILURE)
     Main PID: 6835 (code=exited, status=1/FAILURE)
       Status: "daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details"
        Error: 22 (Invalid argument)
    
    Apr 24 22:30:42 Linux samba[6835]: root process[6835]:   Copyright Andrew Tridgell and the Samba Team 1992-2018
    Apr 24 22:30:42 Linux samba[6835]: root process[6835]: [2018/04/24 22:30:42.292210,  0] ../source4/smbd/server.c:618(binary_smbd_main)
    Apr 24 22:30:42 Linux samba[6835]: root process[6835]:   At this time the 'samba' binary should only be used for either:
    Apr 24 22:30:42 Linux samba[6835]: root process[6835]:   'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
    Apr 24 22:30:42 Linux samba[6835]: root process[6835]:   You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
    Apr 24 22:30:42 Linux samba[6835]: root process[6835]: [2018/04/24 22:30:42.292346,  0] ../lib/util/become_daemon.c:124(exit_daemon)
    Apr 24 22:30:42 Linux samba[6835]: root process[6835]:   exit_daemon: STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
    Apr 24 22:30:42 Linux systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
    Apr 24 22:30:42 Linux systemd[1]: samba.service: Failed with result 'exit-code'.
    Apr 24 22:30:42 Linux systemd[1]: Failed to start Samba AD Daemon.
    
    
    systemctl status nmbd smbd
    Unit nmbd.service could not be found.
    Unit smbd.service could not be found.
    
    pacman -Q samba
    samba 4.8.0-2
    
    pacman -Q systemd
    systemd 238.76-1
    

    since samba 4.7.6-1 all were ok, now samba isnt working… can anyone helps?
    thank you

  • cat /usr/lib/systemd/system/samba.service
    [Unit]
    Description=Samba AD Daemon
    Documentation=man:samba(8) man:samba(7) man:smb.conf(5)
    Wants=network-online.target
    After=network.target network-online.target
    
    [Service]
    Type=notify
    NotifyAccess=all
    PIDFile=/var/run/samba.pid
    LimitNOFILE=16384
    EnvironmentFile=-/usr/etc/conf.d/samba
    ExecStart=/usr/bin/samba --foreground --no-process-group $SAMBAOPTIONS
    ExecReload=/bin/kill -HUP $MAINPID
    
    
    [Install]
    WantedBy=multi-user.target
    
    
  • @qaron said in Samba service not found (smbd.service):

    systemctl status nmbd smbd

    i can take a look … but not tonight

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • seems service names was renamed:

    sudo systemctl enable nmb smb

    sudo systemctl start nmb smb

    seems to work again here with it… but take care… may this is by accident, and will change soon again 😉

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • Starting services
    Note: In samba 4.8.0-1, the units were renamed from smbd.service and nmbd.service to smb.service and nmb.service.
    Source: https://wiki.archlinux.org/index.php/samba

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • first of all thanks a lot!!!
    second in my terminal after the
    Linux systemd[1]: Started Samba SMB/NMB Daemon.
    its in red color should I’ll be worry?
    (*192.168.1.250)->kodi server database… 😄

    ● nmb.service - Samba NMB Daemon
       Loaded: loaded (/usr/lib/systemd/system/nmb.service; disabled; vendor preset: disabled)
       Active: active (running) since Wed 2018-04-25 22:30:21 EEST; 1s ago
         Docs: man:nmbd(8)
               man:samba(7)
               man:smb.conf(5)
     Main PID: 6757 (nmbd)
       Status: "nmbd: ready to serve connections..."
        Tasks: 1 (limit: 4915)
       Memory: 4.5M
       CGroup: /system.slice/nmb.service
               └─6757 /usr/bin/nmbd --foreground --no-process-group
    
    Apr 25 22:30:21 Linux systemd[1]: Starting Samba NMB Daemon...
    Apr 25 22:30:21 Linux systemd[1]: Started Samba NMB Daemon.
    Apr 25 22:30:21 Linux nmbd[6757]: [2018/04/25 22:30:21.348050,  0] ../lib/util/become_daemon.c:138(daemon_ready)
    Apr 25 22:30:21 Linux nmbd[6757]:   daemon_ready: STATUS=daemon 'nmbd' finished starting up and ready to serve connections
    Apr 25 22:30:21 Linux nmbd[6757]: [2018/04/25 22:30:21.484222,  0] ../source3/nmbd/nmbd_namequery.c:109(query_name_response)
    Apr 25 22:30:21 Linux nmbd[6757]:   query_name_response: Multiple (2) responses received for a query on subnet 192.168.1.2 for name MYGROUP<1d>.
    Apr 25 22:30:21 Linux nmbd[6757]:   This response was from IP 192.168.1.250, reporting an IP address of 192.168.1.250.
    
    ● smb.service - Samba SMB Daemon
       Loaded: loaded (/usr/lib/systemd/system/smb.service; disabled; vendor preset: disabled)
       Active: active (running) since Wed 2018-04-25 22:30:21 EEST; 1s ago
         Docs: man:smbd(8)
               man:samba(7)
               man:smb.conf(5)
     Main PID: 6758 (smbd)
       Status: "smbd: ready to serve connections..."
        Tasks: 4 (limit: 4915)
       Memory: 14.7M
       CGroup: /system.slice/smb.service
               ├─6758 /usr/bin/smbd --foreground --no-process-group
               ├─6760 /usr/bin/smbd --foreground --no-process-group
               ├─6761 /usr/bin/smbd --foreground --no-process-group
               └─6762 /usr/bin/smbd --foreground --no-process-group
    
    Apr 25 22:30:21 Linux systemd[1]: Starting Samba SMB Daemon...
    Apr 25 22:30:21 Linux systemd[1]: Started Samba SMB Daemon.
    Apr 25 22:30:21 Linux smbd[6758]: [2018/04/25 22:30:21.431314,  0] ../lib/util/become_daemon.c:138(daemon_ready)
    Apr 25 22:30:21 Linux smbd[6758]:   daemon_ready: STATUS=daemon 'smbd' finished starting up and ready to serve connections
    
  • @qaron said in Samba service not found (smbd.service):

    its in red color should I’ll be worry?

    I do not understand this warning colour for succeeded stuff also 😉

    Is all working again for you?

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

samba34 service12 smbd.service2 Posts 7Views 1405
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.