FedoraForum.org - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2010
    Location
    Mebane NC
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Samba Timing Out On Startup

    'systemctl start smb'

    fails.

    systemctl status smb.service gives this:

    Apr 06 20:44:30 systemd[1]: Starting Samba SMB Daemon...
    Apr 06 20:44:30 smbd[11088]: [2015/04/06 20:44:30.949037, 0] ../lib/util/become_daemon.c:124(daemon_ready)
    Apr 06 20:44:30 smbd[11088]: STATUS=daemon 'smbd' finished starting up and ready to serve connections
    Apr 06 20:46:00 systemd[1]: smb.service start operation timed out. Terminating.
    Apr 06 20:46:00 smbd[11088]: [2015/04/06 20:46:00.946312, 0] ../lib/util/pidfile.c:153(pidfile_unlink)
    Apr 06 20:46:00 smbd[11088]: Failed to delete pidfile /run/smbd.pid. Error was No such file or directory
    Apr 06 20:46:00 systemd[1]: Failed to start Samba SMB Daemon.
    Apr 06 20:46:00 systemd[1]: Unit smb.service entered failed state.
    Apr 06 20:46:00 systemd[1]: smb.service failed.

    this is from journalctl

    * * pr 06 20:44:30 curie.raleigh.ibm.com sudo[11066]: crokett : TTY=pts/4 ; PWD=/etc/samba ; USER=root ; COMMAND=/bin/systemctl start smb.service
    -- Subject: Unit smb.service has begun start-up
    -- Unit smb.service has begun starting up.
    Apr 06 20:44:30 curie.raleigh.ibm.com smbd[11088]: [2015/04/06 20:44:30.949037, 0] ../lib/util/become_daemon.c:124(daemon_ready)
    Apr 06 20:44:30 curie.raleigh.ibm.com smbd[11088]: STATUS=daemon 'smbd' finished starting up and ready to serve connections
    Apr 06 20:45:12 curie.raleigh.ibm.com sudo[11176]: crokett : TTY=pts/4 ; PWD=/etc/samba ; USER=root ; COMMAND=/bin/systemctl start smb.service
    Apr 06 20:46:00 curie.raleigh.ibm.com systemd[1]: smb.service start operation timed out. Terminating.
    Apr 06 20:46:00 curie.raleigh.ibm.com smbd[11088]: [2015/04/06 20:46:00.946312, 0] ../lib/util/pidfile.c:153(pidfile_unlink)
    Apr 06 20:46:00 curie.raleigh.ibm.com smbd[11088]: Failed to delete pidfile /run/smbd.pid. Error was No such file or directory
    -- Subject: Unit smb.service has failed
    -- Unit smb.service has failed.
    Apr 06 20:46:00 curie.raleigh.ibm.com systemd[1]: Unit smb.service entered failed state.
    Apr 06 20:46:00 curie.raleigh.ibm.com unknown[1]: <audit-1130> pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=smb comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
    Apr 06 20:46:00 curie.raleigh.ibm.com systemd[1]: smb.service failed.


    I have removed and re-installed Samba and I have added the the interfaces statement to smb.conf

    Any other ideas? I need samba running so that my windows VM can share a drive with Fedora, although if there are alternatives to doing this with libvirt/virtmanager that don't require Samba I can try those.
    Lenovo W530
    Fedora 21 With Gnome

  2. #2
    Join Date
    May 2011
    Location
    Confoederatio Helvetica (Swissh)
    Age
    46
    Posts
    4,526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Samba Timing Out On Startup

    You are trying to login to your samba as root.
    Does that user exist there?
    I would recomend to use a credentials file.
    * Shell Wrapper and Runtime Modifier (SWARM): https://github.com/sri-arjuna/SWARM
    * Yet Another Simple Script Installer (YASSI): https://forums.fedoraforum.org/showthread.php?323099
    * EFI Cheatsheet :: http://forums.fedoraforum.org/showthread.php?t=298546
    * Windows 8+ & Fedora 20+ Dualboot :: http://forums.fedoraforum.org/showthread.php?t=298161

  3. #3
    Join Date
    Jul 2008
    Posts
    1,347
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Samba Timing Out On Startup

    You might be having the same problem I saw, in which samba actually starts but systemd
    reports the timeout. I believe this is due to the newer samba packages being compiled against
    newer systemd packages and there is some interaction issue.

    To fix it, I copied nmb.service and smb.service from /usr/lib/systemd/system/ into
    /etc/systemd/system/. I then edited the /etc/ copies to change the [Service] Type
    from 'notify' to 'forking'. You should then do a "systemctl daemon-reload". I've not
    had any further issues since making this change.

  4. #4
    Join Date
    Jul 2010
    Location
    Mebane NC
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Samba Timing Out On Startup

    Awesomeness. This fixed it. Thanks. This is not something I would have ever figured out.



    Quote Originally Posted by vallimar
    You might be having the same problem I saw, in which samba actually starts but systemd
    reports the timeout. I believe this is due to the newer samba packages being compiled against
    newer systemd packages and there is some interaction issue.

    To fix it, I copied nmb.service and smb.service from /usr/lib/systemd/system/ into
    /etc/systemd/system/. I then edited the /etc/ copies to change the [Service] Type
    from 'notify' to 'forking'. You should then do a "systemctl daemon-reload". I've not
    had any further issues since making this change.
    Lenovo W530
    Fedora 21 With Gnome

  5. #5
    Join Date
    Jul 2008
    Posts
    1,347
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Samba Timing Out On Startup

    The problems looks to be fixed in the samba-4.2.0-3 packages.
    You can remove the workaround before/after updating to those.

Similar Threads

  1. Samba as startup in boot
    By input in forum Using Fedora
    Replies: 7
    Last Post: 13th January 2014, 05:18 PM
  2. Samba on boot startup problems
    By teraquad in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 16th January 2012, 06:00 PM
  3. F16 no Samba startup script
    By warrenb in forum Servers & Networking
    Replies: 1
    Last Post: 7th December 2011, 12:24 PM
  4. Samba problems at startup
    By pepito33 in forum Servers & Networking
    Replies: 5
    Last Post: 19th September 2011, 05:15 PM
  5. Dram timing is too tightly so reload timing
    By Query in forum Hardware
    Replies: 3
    Last Post: 23rd December 2007, 07:44 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •