巨大的日志.samba-bgqd

巨大的日志.samba-bgqd

自更新至 22.04 以来,samba 已开始生成一个名为 log.samba-bgqd 的附加日志文件,其中每 12 分钟左右会记录 1,000 行错误信息。错误消息如下所示:

[2022/10/08 11:46:08,  1] ../../source3/printing/print_standard.c:147(std_pcap_cache_reload)
  std_pcap_cache_reload: WARNING: You have some printer names that are longer than 15 characters. These may not be accessible to some older clients!
[2022/10/08 11:46:08,  3] ../../source3/printing/pcap.c:194(pcap_cache_reload)
  reload status: ok
[2022/10/08 11:46:08,  3] ../../source3/lib/util_procid.c:53(pid_to_procid)
  pid_to_procid: messaging_dgm_get_unique failed: No such file or directory
[2022/10/08 11:46:08,  3] ../../source3/lib/messages.c:918(send_all_fn)
  send_all_fn: messaging_send_buf to 1043 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2022/10/08 11:46:08,  3] ../../source3/lib/util_procid.c:53(pid_to_procid)
  pid_to_procid: messaging_dgm_get_unique failed: No such file or directory
[2022/10/08 11:46:08,  3] ../../source3/lib/messages.c:918(send_all_fn)
  send_all_fn: messaging_send_buf to 1179 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2022/10/08 11:46:08,  3] ../../source3/lib/util_procid.c:53(pid_to_procid)
  pid_to_procid: messaging_dgm_get_unique failed: No such file or directory
[2022/10/08 11:46:08,  3] ../../source3/lib/messages.c:918(send_all_fn)
  send_all_fn: messaging_send_buf to 18889 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2022/10/08 11:46:08,  3] ../../source3/lib/util_procid.c:53(pid_to_procid)
  pid_to_procid: messaging_dgm_get_unique failed: No such file or directory
[2022/10/08 11:46:08,  3] ../../source3/lib/messages.c:918(send_all_fn)
  send_all_fn: messaging_send_buf to 873 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2022/10/08 11:46:08,  3] ../../source3/lib/util_procid.c:53(pid_to_procid)
  pid_to_procid: messaging_dgm_get_unique failed: No such file or directory
[2022/10/08 11:46:08,  3] ../../source3/lib/messages.c:918(send_all_fn)
  send_all_fn: messaging_send_buf to 1012 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2022/10/08 11:46:08,  3] ../../source3/lib/util_procid.c:53(pid_to_procid)
  pid_to_procid: messaging_dgm_get_unique failed: No such file or directory
[2022/10/08 11:46:08,  3] ../../source3/lib/messages.c:918(send_all_fn)
  send_all_fn: messaging_send_buf to 1294 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2022/10/08 11:46:08,  3] ../../source3/lib/util_procid.c:53(pid_to_procid)
  pid_to_procid: messaging_dgm_get_unique failed: No such file or directory
[2022/10/08 11:46:08,  3] ../../source3/lib/messages.c:918(send_all_fn)
  send_all_fn: messaging_send_buf to 846 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2022/10/08 11:46:08,  3] ../../source3/lib/util_procid.c:53(pid_to_procid)
  pid_to_procid: messaging_dgm_get_unique failed: No such file or directory
[2022/10/08 11:46:08,  3] ../../source3/lib/messages.c:918(send_all_fn)
  send_all_fn: messaging_send_buf to 876 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2022/10/08 11:46:08,  3] ../../source3/lib/util_procid.c:53(pid_to_procid)
  pid_to_procid: messaging_dgm_get_unique failed: No such file or directory
[2022/10/08 11:46:08,  3] ../../source3/lib/messages.c:918(send_all_fn)
  send_all_fn: messaging_send_buf to 1340 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2022/10/08 11:46:08,  3] ../../source3/lib/util_procid.c:53(pid_to_procid)
  pid_to_procid: messaging_dgm_get_unique failed: No such file or directory
[2022/10/08 11:46:08,  3] ../../source3/lib/messages.c:918(send_all_fn)
  send_all_fn: messaging_send_buf to 1529 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2022/10/08 11:46:08,  3] ../../source3/lib/util_procid.c:53(pid_to_procid)
  pid_to_procid: messaging_dgm_get_unique failed: No such file or directory
[2022/10/08 11:46:08,  3] ../../source3/lib/messages.c:918(send_all_fn)
  send_all_fn: messaging_send_buf to 902 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2022/10/08 11:46:08,  3] ../../source3/lib/util_procid.c:53(pid_to_procid)
  pid_to_procid: messaging_dgm_get_unique failed: No such file or directory
[2022/10/08 11:46:08,  3] ../../source3/lib/messages.c:918(send_all_fn)
  send_all_fn: messaging_send_buf to 852 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2022/10/08 11:46:08,  3] ../../source3/lib/util_procid.c:53(pid_to_procid)
  pid_to_procid: messaging_dgm_get_unique failed: No such file or directory
[2022/10/08 11:46:08,  3] ../../source3/lib/messages.c:918(send_all_fn)
  send_all_fn: messaging_send_buf to 16917 failed: NT_STATUS_OBJECT_NAME_NOT_FOUND

知道错误是什么吗?我该如何修复它?我没有注意到/收到有关客户端任何问题的投诉。

此外,如果这个日志文件不会不断增长就好了,因为它已经淹没了我的启动盘。

Samba 会议:

workgroup = MYGROUP
server string = %h server (Samba, Ubuntu)
wins support = yes
dns proxy = no
guest account = nobody
os level = 33
local master = yes
log file = /var/log/samba/log.%m
log level = 3 auth:10
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = user
obey pam restrictions = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
printing = bsd
socket options = TCP_NODELAY

[netstore]
   comment = data
   path = /srv/netstore
   guest ok = yes
   available = yes
   force create mode = 0777
   force directory mode = 0777
   hosts allow = 192.168.1.0/24 192.168.2.0/24 10.8.0.0/24
   browsable = yes
   public = no
   writable = yes

[Webpages]
   comment = websites
   path = /var/www
   guest ok = no
   available = yes
   force create mode = 0777
   force directory mode = 0777
   browsable = yes
   public = no
   writable = yes

谢谢!

相关内容