[SOLVED] Can't install samba

Hello everyone.

I had installed osmc on my RPi2. I also had installed samba and transmission
1TB disk was connected via usb.So I was able to see shares from any device(android,osx,ios,windows) in my network.
Everything worked fine until I did last update.
Since that moment I don’t have access to shares.
I did clean re-install osmc using images 2016.04.1 and 2016.02.3. Installation is ok.
But I can’t install samba.

After command: osmc@osmc:~$ sudo /etc/init.d/samba restart

I receive below output:

[…] Restarting nmbd (via systemctl): nmbd.serviceJob for nmbd.service failed. See ‘systemctl status nmbd.service’ and ‘journalctl -xn’ for details.
[FAIL failed!
osmc@osmc:~$
osmc@osmc:~$ systemctl status nmbd.service

  • nmbd.service - LSB: start Samba NetBIOS nameserver (nmbd)
    Loaded: loaded (/etc/init.d/nmbd)
    Active: failed (Result: exit-code) since Fri 2016-04-29 17:31:33 IST; 42s ago
    Process: 1875 ExecStop=/etc/init.d/nmbd stop (code=exited, status=0/SUCCESS)
    Process: 1885 ExecStart=/etc/init.d/nmbd start (code=exited, status=1/FAILURE)
    osmc@osmc:~$ journalctl -xn
    No journal files were found.

Can you help me?Never had that kind of issue.

Before you ask , I tried installing samba from app-store , situation was same.

Thank you for your future help
Regards,
csm31458

sudo journalctl -xn

How did you install Samba? Via the App Store?

@sam_nazarko , Yes I tried that , and result was same

@ActionA , see below:

osmc@osmc:~$ sudo journalctl -xn
Apr 29 19:31:55 osmc systemd[2360]: Startup finished in 41ms.
– Subject: System start-up is now complete
– Defined-By: systemd
– Support: systemd-devel Info Page

– All system services necessary queued for starting at boot have been
– successfully started. Note that this does not mean that the machine is
– now idle as services might still be busy with completing start-up.

– Kernel start-up required KERNEL_USEC microseconds.

– Initial RAM disk start-up required INITRD_USEC microseconds.

– Userspace start-up required 41676 microseconds.
Apr 29 19:34:04 osmc sudo[2374]: osmc : TTY=pts/0 ; PWD=/home/osmc ; USER=root ; COMMAND=/bin/journalctl -xn
Apr 29 19:34:04 osmc sudo[2374]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)

osmc@osmc:~$ sudo /etc/init.d/samba restart
[…] Restarting nmbd (via systemctl): nmbd.serviceJob for nmbd.service failed. See ‘systemctl status nmbd.service’ and ‘journalctl -xn’ for details.
failed!

osmc@osmc:~$ systemctl status nmbd.service

  • nmbd.service - LSB: start Samba NetBIOS nameserver (nmbd)
    Loaded: loaded (/etc/init.d/nmbd)
    Active: failed (Result: exit-code) since Fri 2016-04-29 19:43:12 IST; 8s ago
    Process: 1875 ExecStop=/etc/init.d/nmbd stop (code=exited, status=0/SUCCESS)
    Process: 2399 ExecStart=/etc/init.d/nmbd start (code=exited, status=1/FAILURE)

    osmc@osmc:~$ sudo journalctl -xn
    – Logs begin at Thu 2016-04-28 18:02:47 IST, end at Fri 2016-04-29 19:43:28 IST. –
    Apr 29 19:42:57 osmc sudo[2374]: pam_unix(sudo:session): session closed for user root
    Apr 29 19:43:11 osmc sudo[2388]: osmc : TTY=pts/0 ; PWD=/home/osmc ; USER=root ; COMMAND=/etc/init.d/samba restart
    Apr 29 19:43:11 osmc sudo[2388]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)
    Apr 29 19:43:12 osmc nmbd[2399]: Starting NetBIOS name server: nmbd failed!
    Apr 29 19:43:12 osmc systemd[1]: nmbd.service: control process exited, code=exited status=1
    Apr 29 19:43:12 osmc systemd[1]: Failed to start LSB: start Samba NetBIOS nameserver (nmbd).
    – Subject: Unit nmbd.service has failed
    – Defined-By: systemd
    – Support: systemd-devel Info Page

    – Unit nmbd.service has failed.

    – The result is failed.
    Apr 29 19:43:12 osmc systemd[1]: Unit nmbd.service entered failed state.
    Apr 29 19:43:12 osmc sudo[2388]: pam_unix(sudo:session): session closed for user root
    Apr 29 19:43:28 osmc sudo[2435]: osmc : TTY=pts/0 ; PWD=/home/osmc ; USER=root ; COMMAND=/bin/journalctl -xn
    Apr 29 19:43:28 osmc sudo[2435]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)

Did you install Samba manually before installing the App Store version? Did you purge the old version fully?

no Sam , I did full wipe of sd card and fresh install

@sam_nazarko , please see below some update:
(fresh wipe microsd , fresh image download 2016.04-1) after that, install sudo samba etc , the result is same:

osmc@osmc:~$ sudo journalctl -xn

– Logs begin at Sun 2016-05-01 16:50:22 EDT, end at Sun 2016-05-01 17:15:38 EDT. –
May 01 17:14:28 osmc sudo[695]: pam_unix(sudo:session): session closed for user root
May 01 17:14:36 osmc sudo[714]: osmc : TTY=pts/0 ; PWD=/home/osmc ; USER=root ; COMMAND=/usr/sbin/service smbd start
May 01 17:14:36 osmc sudo[714]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)
May 01 17:14:38 osmc smbd[733]: Starting SMB/CIFS daemon: smbd failed!
May 01 17:14:38 osmc systemd[1]: smbd.service: control process exited, code=exited status=1
May 01 17:14:38 osmc systemd[1]: Failed to start LSB: start Samba SMB/CIFS daemon (smbd).

– The result is failed.
May 01 17:14:38 osmc systemd[1]: Unit smbd.service entered failed state.
May 01 17:14:38 osmc sudo[714]: pam_unix(sudo:session): session closed for user root
May 01 17:15:38 osmc sudo[749]: osmc : TTY=pts/0 ; PWD=/home/osmc ; USER=root ; COMMAND=/bin/journalctl -xn
May 01 17:15:38 osmc sudo[749]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)

May 01 17:14:38 osmc systemd[1]: Unit smbd.service entered failed state.
May 01 17:14:38 osmc sudo[714]: pam_unix(sudo:session): session closed for user root
May 01 17:15:38 osmc sudo[749]: osmc : TTY=pts/0 ; PWD=/home/osmc ; USER=root ; COMMAND=/bin/journalctl -xn
May 01 17:15:38 osmc sudo[749]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)
May 01 17:15:38 osmc sudo[749]: pam_unix(sudo:session): session closed for user root
May 01 17:15:49 osmc sudo[752]: osmc : TTY=pts/0 ; PWD=/home/osmc ; USER=root ; COMMAND=/bin/journalctl -xe
May 01 17:15:49 osmc sudo[752]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)
May 01 17:17:03 osmc sudo[752]: pam_unix(sudo:session): session closed for user root
May 01 17:17:27 osmc sudo[756]: osmc : TTY=pts/0 ; PWD=/home/osmc ; USER=root ; COMMAND=/etc/init.d/samba restart
May 01 17:17:27 osmc sudo[756]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)
May 01 17:17:29 osmc nmbd[767]: Starting NetBIOS name server: nmbd failed!
May 01 17:17:29 osmc systemd[1]: nmbd.service: control process exited, code=exited status=1
May 01 17:17:29 osmc systemd[1]: Failed to start LSB: start Samba NetBIOS nameserver (nmbd).
– Subject: Unit nmbd.service has failed

whatever I do the result is same , can you help me?

regards,

Provide full logs with grab-logs -A

hi everyone,

issue solved , my friend who knows Linux advised me to run testparm.
the problem was one of parameters in my smb-local.conf file

regards,