FedoraForum.org - Fedora Support Forums and Community
Results 1 to 14 of 14
  1. #1
    Join Date
    Nov 2008
    Location
    Central NJ
    Posts
    388
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    samba issues on FC15

    Been having issues with Samba (or maybe Netbios, not sure now) with FC 15. Was working fine on FC13, then upgraded to 14, started having some problems, so I got a totally new machine (used, but new for me), and installed FC15. Had tons of trouble with getting Apache configured (but this is working now), and also FTP (was working fine last night, but now having problems again - can't even connect).

    But the one issue I haven't been able to figure out is Samba. Have uninstalled and reinstalled several times, downloaded and installed WebMin tool. Checked firewall (ok), checked everything else I can think of, but I still get an error trying to browse my home network from FC15. I open the file browser (Nautilus) and click "Network". Sometimes this works, sometimes I get a big "dbus" error. When it works, I can see my workgroup, but when I click on that, it tells me that itfailed to retrieve the share list from the server.

    nmb log:
    Code:
    [2011/07/27 14:24:31,  0] nmbd/nmbd.c:857(main)
      nmbd version 3.5.8-68.fc15 started.
      Copyright Andrew Tridgell and the Samba Team 1992-2010
    [2011/07/27 14:27:45.385615,  0] nmbd/nmbd.c:71(terminate)
      Got SIGTERM: going down...
    [2011/07/27 14:27:45,  0] nmbd/nmbd.c:857(main)
      nmbd version 3.5.8-68.fc15 started.
      Copyright Andrew Tridgell and the Samba Team 1992-2010
    [2011/07/27 14:53:20.302436,  0] nmbd/nmbd.c:71(terminate)
      Got SIGTERM: going down...
    smb log:
    Code:
      smbd_open_once_socket: open_socket_in: Address already in use
    [2011/07/27 14:24:23.100865,  0] smbd/server.c:500(smbd_open_one_socket)
      smbd_open_once_socket: open_socket_in: Address already in use
    [2011/07/27 14:27:44,  0] smbd/server.c:1119(main)
      smbd version 3.5.8-68.fc15 started.
      Copyright Andrew Tridgell and the Samba Team 1992-2010
    [2011/07/27 14:27:44.914415,  0] smbd/server.c:500(smbd_open_one_socket)
      smbd_open_once_socket: open_socket_in: Address already in use
    [2011/07/27 14:27:44.926044,  0] smbd/server.c:500(smbd_open_one_socket)
      smbd_open_once_socket: open_socket_in: Address already in use
    Not sure what the "address already in use" means, but I think that's what is causing my issues.

    ---------- Post added 28th July 2011 at 12:27 AM ---------- Previous post was 27th July 2011 at 03:47 PM ----------

    Strange update...

    I can "map" to a windows machine, by IP address, which is ultimately what I was trying to do (either by name or IP), as I was trying to automount a cifs share at bootup (which I have done, and works fine).

    But why would I still have this error as I have described?

  2. #2
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    16,569
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)

    Re: samba issues on FC15

    I don't know the answer to your question but I do know that adding the ip addresses of all the networked machines to /etc/hosts seems to help quite a bit for me.

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

    Re: samba issues on FC15

    I had the same problem with a recent install of FC15. I was able to fix it by adding this to my smb.conf (Of course you would use your ip)

    interfaces = lo eth0 127.0.0.1 192.168.10.3
    bind interfaces only = yes


    -Damon

  4. #4
    Join Date
    Aug 2011
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: samba issues on FC15

    Thanks. I can confirm that, after two days trying everything else, this suggestion allowed me to finally connect to my Windows machines from FC15.

    I'm not sure if this is overkill, allowing me to see resources that are not "public" and are inaccessible even with proper credentials.??

    For the benefit of others who may be a new to this as I am, the hosts file format is:
    xxx.xxx.x.xxx Machine1
    xxx.xxx.x.xxx Machine2

    Quote Originally Posted by glennzo
    I don't know the answer to your question but I do know that adding the ip addresses of all the networked machines to /etc/hosts seems to help quite a bit for me.

  5. #5
    Join Date
    Aug 2011
    Location
    ~
    Posts
    2,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: samba issues on FC15

    I fixed browsing by also enabling the nmb service.
    The error message about the socket is still there though but all is fine.

  6. #6
    Join Date
    Aug 2010
    Location
    Al Ain, UAE
    Posts
    2,028
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: samba issues on FC15

    Howdy,

    Always bear in mind that services depend on the network being configured right: IP address, network mask, hostname, localhost address, default route, DNS - then and only then start a service like Samba, Apache or FTP. You cannot debug a network stack from the top down...

    The 'already in use' warning means that the service that you are trying to start, is already running and glommed onto the port already. Either do a 'restart' or kill the service manually first.

  7. #7
    Join Date
    Aug 2009
    Location
    Waldorf, Maryland
    Posts
    7,343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: samba issues on FC15

    Your system is not unusual.

    Part of the problem is with systemd - it doesn't wait for the network to be ready before starting other services such as samba or mounting remote shares. Another issue with systemd is that it requires dbus (a messaging service) to be functioning before systemd will function "properly". Systemd now manages most (nearly all) network services and it starts all of them at the same time - whether the network is up or not. This causes some services to fail - sometimes.

    Part of the problem is NetworkManager, which tends to not start the network until a user is logged in.

    There could be other problems, but most of the ones I've read about (I've only been able to test Fedora 15 in a VM) seem to be timing errors.

    If you want reliable network services go with Fedora 14. Though there are still some NetworkManager problems, you can work around them by disabling NetworkManager and enabling network.

  8. #8
    Join Date
    Aug 2009
    Posts
    11,390
    Mentioned
    98 Post(s)
    Tagged
    0 Thread(s)

    Re: samba issues on FC15

    there are a few timing issues between systemd and networkmanager as jpollard stated above... But, they are easily remedied.

    You can have networkmanager start at boot instead of when a user logs in by specifying that the connection is available to all users, and to start at boot.

    To have it wait to start some of the services until after the network is up and settled:

    as root::
    Code:
    systemctl enable NetworkManager-wait-online.service
    You can get reliable network services in F15, using networkmanager

  9. #9
    Join Date
    Nov 2008
    Location
    Canada
    Posts
    2,729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: samba issues on FC15

    The easiest solution is still:

    chkconfig Network on

    Works 100% of time. NIC is guaranteed to be up before other services who bind to said NIC (samba, openvpn...) start. Of course systemctl will eventually be the only route and Network Services will likely disappear but things are still half baked so... well... not as bad as was F9.

  10. #10
    Join Date
    Aug 2011
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: samba issues on FC15

    Perhaps someone can explain how to resolve the IPv6 listening to IPv4 connections as mentioned
    In the bug track
    Last edited by BartonC; 17th August 2011 at 01:28 AM. Reason: Fixed link

  11. #11
    Join Date
    Aug 2009
    Location
    Waldorf, Maryland
    Posts
    7,343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: samba issues on FC15

    Not a valid bug URL (the trailing " shouldn't be there). The proper link is
    https://bugzilla.redhat.com/show_bug.cgi?id=726936

    In the past, I've only seen this occur when the socket is not properly closed/reclaimed - usually due to something keeping it open. The one final cleanup is the network timeout that will occur eventually (say, 10 minutes or so) and it will then be available again. I had this problem when I was debugging a service that was faulting and aborting. Until I identified the fault, and provided bug recovery (basically just closing the socket) I had to wait for the timeout.

    I'm not convinced that report has anything to do with it. If you open a socket for any address, and specific socket, then the TCP stack is supposed to listen for any address connection. Doesn't matter if it is IPv6 or IPv4. No different than it is when listening to multiple networks.
    Last edited by jpollard; 17th August 2011 at 01:14 AM.

  12. #12
    Join Date
    Mar 2009
    Location
    Belgium - Willebroek
    Age
    41
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: samba issues on FC15

    I tried DBelton's solution but to no avail, it seems my system setup is missing something

    Version Info
    Code:
    $ uname -iosrpv
    Linux 2.6.35.14-96.fc14.i686 #1 SMP Thu Sep 1 12:49:38 UTC 2011 i686 i386 GNU/Linux
    
    # sudo rpm -qa | grep NetworkManager
    NetworkManager-glib-0.8.4-2.git20110622.fc14.i686
    NetworkManager-gnome-0.8.4-2.git20110622.fc14.i686
    NetworkManager-0.8.4-2.git20110622.fc14.i686
    Code:
    # systemctl enable NetworkManager-wait-online.service
    Couldn't find NetworkManager-wait-online.service.
    Smolt Public UUID: pub_fa9bf31e-0b2b-41ec-bf38-df8ccf77f0fd

  13. #13
    Join Date
    Aug 2009
    Posts
    11,390
    Mentioned
    98 Post(s)
    Tagged
    0 Thread(s)

    Re: samba issues on FC15

    You couldn't find NetworkManager-wait-online.service because you are running Fedora 14. That service isn't on F14, and it's not needed, either. (F14 isn't using systemd)

    What issues are you having?

  14. #14
    Join Date
    Mar 2009
    Location
    Belgium - Willebroek
    Age
    41
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: samba issues on FC15

    The same issue with open_socket_one plagues me as well
    Code:
    [2011/09/17 13:30:13.674117,  0] smbd/server.c:501(smbd_open_one_socket)
      smbd_open_once_socket: open_socket_in: Address already in use
    The end result is that the shares I added are not showing up.
    Smolt Public UUID: pub_fa9bf31e-0b2b-41ec-bf38-df8ccf77f0fd

Similar Threads

  1. [SOLVED] Issues installing wine (FC15)
    By TyroSe7en in forum Using Fedora
    Replies: 10
    Last Post: 1st October 2011, 09:19 PM
  2. [SOLVED] FC15 preupgrade failue on java-1.5.0-gcj-javadoc-1.5.0.0-35.fc15.i686
    By gkasica in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 29th May 2011, 12:18 PM
  3. Gnome3 multiple display issues after fc15 upgrade.
    By Gangrif in forum Using Fedora
    Replies: 7
    Last Post: 27th May 2011, 11:24 PM
  4. Issues with 2.6.38-0.rc6.git4.1.fc15.x86_64
    By twohot in forum F16 Development
    Replies: 6
    Last Post: 5th March 2011, 06:41 PM
  5. Samba issues
    By miguelon in forum Servers & Networking
    Replies: 6
    Last Post: 31st October 2006, 07:15 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
  •