Samba Log File Generation Not Working

  • This (https://wiki.libreelec.tv/support/log-files#samba-smb):

    Quote

    If Samba (SMB Sharing) is enabled you can collect the log file by accessing the Logfile folder over the network. This is a special folder. When you access the folder it triggers a task to collect the current Kodi log and system configuration, and package everything into a single zip file that can be copied back to your local machine or unpacked in the share.

    doesn't work on my system. Instead, whenever I open smb://libreelec/logfiles a new folder ~/logfiles;createlog is created (but remains empty).

    When I start createlog manually via SSH, log-2024-10-16-16.44.27.zip is created in ~/logfiles. So that seems to work.

    I had the log running while opening the smb folder, but I can't find anything useful.


    https://paste.libreelec.tv/top-malamute.log

  • I found it. My smb.cnf read:

    [Logfiles]
     path = /storage/logfiles
     available = yes
     browseable = yes
     public = yes
     writeable = yes
     root preexec = mkdir -p /storage/logfiles;createlog
    # root preexec = createlog
    That was easy to correct ...