Project

General

Profile

Bug #1330

Samba Logging

Added by bigfoot65 over 6 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Medium
Assignee:
Category:
file sharing
Target version:
Start date:
03/23/2014
Due date:
% Done:

0%


Description

Apparently with the workgroup setting in Samba, it logs to /var/log/messages every 10 seconds:

Mar 23 16:26:41 zeus nmbd830: [2014/03/23 16:26:41.271701, 0] ../source3/nmbd/nmbd_browsesync.c:591(collect_all_workgroup_names_from_wins_server)
Mar 23 16:26:41 zeus nmbd830: collect_all_workgroup_names_from_wins_server:
Mar 23 16:26:41 zeus nmbd830: Cannot find my workgroup WORKGROUP on subnet UNICAST_SUBNET.

I have been researching and not found a solution. My concern is this will fill the log up quickly. Although they will rotate, space is wasted on the drive.

Not sure if this actually means anything, but wanted to document it as I search for a possible fix.

History

#1 Updated by bigfoot65 over 6 years ago

Still have not found much that is helpful on the internet.

What I did try is setting the Workgroup back to WORKGROUP and the messages stopped.

I also noticed the HDA was not in my Windows Workgroups until I set it back to WORKGROUP.

#2 Updated by bigfoot65 over 6 years ago

Think I might be on to something. I added this to the smb.conf file in the General area:

name resolve order = bcast lmhosts host wins

Restarted smb and nmb services. Now the messages have disappeared and the HDA shows in Windows networks again.

#3 Updated by bigfoot65 over 6 years ago

The default smb.conf file for Amahi 7 is as follows:

[global]
        workgroup = WORKGROUP
        server string = amahi.net
        netbios name = hda
        printing = cups
        printcap name = cups
        load printers = yes
        cups options = raw
        log file = /var/log/samba/%m.log
        log level = 0
        max log size = 150
        preferred master = yes
        os level = 60
        time server = yes
        unix extensions = no
        wide links = yes
        security = user
        username map script = /usr/share/hda-platform/hda-usermap
        large readwrite = yes
        encrypt passwords = yes
        dos charset = CP850
        unix charset = UTF8
        guest account = nobody
        map to guest = Bad User
        wins support = yes

[homes]
        comment = Home Directories
        valid users = %S
        browseable = no
        writable = yes
        create mask = 0644
        directory mask = 0755

[print$]
        path = /var/lib/samba/drivers
        read only = yes
        force group = root
        write list = @ntadmin root
        force group = root
        create mask = 0664
        directory mask = 0775
        guest ok = yes

[printers]
        path = /var/spool/samba
        writeable = yes
        browseable = yes
        printable = yes
        public = yes

[Books]
        comment = Books
        path = /var/hda/files/books
        writeable = yes
        browseable = yes
        create mask = 0775
        force create mode = 0664
        directory mask = 0775
        force directory mode = 0775

[Docs]
        comment = Docs
        path = /var/hda/files/docs
        writeable = yes
        browseable = yes
        create mask = 0775
        force create mode = 0664
        directory mask = 0775
        force directory mode = 0775

[Movies]
        comment = Movies
        path = /var/hda/files/movies
        writeable = yes
        browseable = yes
        create mask = 0775
        force create mode = 0664
        directory mask = 0775
        force directory mode = 0775

[Music]
        comment = Music
        path = /var/hda/files/music
        writeable = yes
        browseable = yes
        create mask = 0775
        force create mode = 0664
        directory mask = 0775
        force directory mode = 0775

[Pictures]
        comment = Pictures
        path = /var/hda/files/pictures
        writeable = yes
        browseable = yes
        create mask = 0775
        force create mode = 0664
        directory mask = 0775
        force directory mode = 0775

[Public]
        comment = Public
        path = /var/hda/files/public
        writeable = yes
        browseable = yes
        create mask = 0775
        force create mode = 0664
        directory mask = 0775
        force directory mode = 0775

[Videos]
        comment = Videos
        path = /var/hda/files/videos
        writeable = yes
        browseable = yes
        create mask = 0775
        force create mode = 0664
        directory mask = 0775
        force directory mode = 0775

#4 Updated by bigfoot65 over 6 years ago

I was getting messages like these:

../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
find_domain_master_name_query_fail:
Unable to find the Domain Master Browser name WORKGROUP<1b> for the workgroup WORKGROUP.
Unable to sync browse lists in this workgroup

Added these two lines to the [General] section section fixed it:

domain master = yes
local master = yes

Now I see in the log:

Samba name server HDA is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.11.xx.

This is something I would anticipate we need to run by the Samba folks.

#5 Updated by bigfoot65 over 6 years ago

This was in the /var/log/messages until I added the two lines. It has now stopped.

Apr  8 16:36:08 zeus nmbd[3971]:   Unable to find the Domain Master Browser name WORKGROUP<1b> for the workgroup WORKGROUP.
Apr  8 16:36:08 zeus nmbd[3971]:   Unable to sync browse lists in this workgroup.

#6 Updated by bigfoot65 over 6 years ago

Saw this tutorial and thought it might be helpful:
https://calomel.org/samba.html

#7 Updated by bigfoot65 over 6 years ago

Think I have found the ideal configuration for Samba in a Windows network. I have not had any error messages in days. It appears to be working correctly now.

The lines I added are:

domain master = yes
name resolve order = bcast lmhosts host wins
socket options = TCP_NODELAY

The last line is to improve Samba performance based on research I have done.

#8 Updated by bigfoot65 almost 6 years ago

  • Category set to file sharing
  • Assignee set to cpg
  • Priority changed from Normal to Medium

Also available in: Atom