Logs from Samba stop working

NethServer Version: NS8
Module: Samba

I recently update the samba from Update interface and after that the logs from cluster-admin of samba module just stop working.

Anyone knows how to solve this issue?

traceID=4dc98814349e5541 msg="GET /loki/api/v1/query_range?direction=BACKWARD&end=1720666799000000000&limit=500&query=%7Bmodule_id%3D%22samba1%22%7D+%7C+json+syslog_id%3D%22SYSLOG_IDENTIFIER%22%2C+message%3D%22MESSAGE%22+%7C+line_format+%22%5B%7B%7B.node_id%7D%7D%3A%7B%7B.module_id%7D%7D%3A%7B%7B.syslog_id%7D%7D%5D+%7B%7B.message%7D%7D%22&start=1719802800000000000 (500) 57.401303ms Response: \"err while creating labelset for {message=\\\"/usr/sbin/smbd: process_usershare_file: stat of /var/lib/samba/usershares/p\ufffdblica failed. Permission denied\\\\n\\\", module_id=\\\"samba1\\\", node_id=\\\"1\\\", syslog_id=\\\"samba-dc\\\"}: 1:10: parse error: invalid UTF-8 rune\\n\" ws: false; Accept-Encoding: gzip; User-Agent: loki-logcli/2.9.2; X-Forwarded-For: 10.0.2.100; X-Forwarded-Host: 10.5.4.1:20001; X-Forwarded-Port: 20001; X-Forwarded-Proto: http; X-Forwarded-Server: loki; X-Real-Ip: 10.0.2.100; "
2024-07-10T18:39:44-03:00 [1::api-server] [SOCKET] error executing Cmd for dump: exit status 1
2024-07-10T18:39:58-03:00 [1:loki1:loki-server] level=warn ts=2024-07-10T21:39:58.278282343Z caller=logging.go:71 traceID=2255a391a28586f3 msg="GET /loki/api/v1/query_range?direction=BACKWARD&end=1720666799000000000&limit=500&query=%7Bmodule_id%3D%22samba1%22%7D+%7C+json+syslog_id%3D%22SYSLOG_IDENTIFIER%22%2C+message%3D%22MESSAGE%22+%7C+line_format+%22%5B%7B%7B.node_id%7D%7D%3A%7B%7B.module_id%7D%7D%3A%7B%7B.syslog_id%7D%7D%5D+%7B%7B.message%7D%7D%22&start=1719802800000000000 (500) 60.673527ms Response: \"err while creating labelset for {message=\\\"/usr/sbin/smbd: process_usershare_file: stat of /var/lib/samba/usershares/p\ufffdblica failed. Permission denied\\\\n\\\", module_id=\\\"samba1\\\", node_id=\\\"1\\\", syslog_id=\\\"samba-dc\\\"}: 1:10: parse error: invalid UTF-8 rune\\n\" ws: false; Accept-Encoding: gzip; User-Agent: loki-logcli/2.9.2; X-Forwarded-For: 10.0.2.100; X-Forwarded-Host: 10.5.4.1:20001; X-Forwarded-Port: 20001; X-Forwarded-Proto: http; X-Forwarded-Server: loki; X-Real-Ip: 10.0.2.100; "
2024-07-10T18:39:58-03:00 [1::api-server] [SOCKET] error executing Cmd for dump: exit status 1

I think there is a permissions issue

1 Like

Yes a permission error is logged, and the path contains an invalid UTF-8 sequence that breaks the parse function of Logs page.

Do you have a shared folder with that name?

  • How did you create it?
  • As workaround, can you remove it and recreate with a different name?

Hello David,

Sorry for delay in reply to you.

Yes, I have a share folder with a letter: ú that was created via Web Interface.

Thank you for the confirmation. I took note of it NethServer 8 · GitHub