FS#2961 - Rsyslog doesn't create spool nor disk-assisted queue files and imfile module is missing #7739
Labels
core packages
pull request/issue for core (in-tree) packages
flyspray
release/19.07
pull request/issue targeted (also) for OpenWrt 19.07 release
N1ghtshad0w:
Device problem occurs on
TP-Link TL-WR1043ND v2
TP-LINK TD-W8970
Software versions of OpenWrt/LEDE release, packages, etc.
openwrt-19.07 branch git-20.093.48508-e2aaef6
rsyslogd 8.39.0
Steps to reproduce
The first issue is that rsyslog doesn't write to or create directories/files inside the /var/log directory beside the log files.
needed to create a work directory for spool and disk-assisted queue files.
using
$CreateDirs on
and$WorkDirectory /var/log/rsyslog
I getApr 2 10:35:34 OpenWrt : $WorkDirectory: /var/log/rsyslog can not be accessed, probably does not exist - directive ignored [v8.39.0 try http://www.rsyslog.com/e/2181 ]
I created the directory manually and the error was gone but the directory remained empty even after disconnecting the log server for 24hrs, no spool files were created nor disk-assisted queue files were created either and as a result when connecting the server back after 24hrs the in-memory queue got sent to the server which equals roughly to 10min worth of logs while the WorkDirectory /var/log/rsyslog remained empty.04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:22:19 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:22:52 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:23:25 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:23:58 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:24:32 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:25:05 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:25:38 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:26:11 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:26:44 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:27:17 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:27:50 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:28:23 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:28:57 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:29:30 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Info 192.168.1.1 Apr 4 08:29:45 OpenWrt : -- MARK -- 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:30:03 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:30:36 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:31:09 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:31:42 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Error 192.168.1.1 Apr 4 08:32:15 OpenWrt : cannot connect to 192.168.1.100:514: Host is unreachable [v8.39.0 try http://www.rsyslog.com/e/2027 ] 04-04-2020 10:32:45 Syslog.Info 192.168.1.1 Apr 4 08:32:45 OpenWrt : action 'action-13-builtin:omfwd' resumed (module 'builtin:omfwd') [v8.39.0 try http://www.rsyslog.com/e/2359 ]
even when using /var/log directly as a WorkDirectory the results remained the same.The second issue is that for a work around I tried using the imfile module to access the log files directly without the need to disk-assisted queues but got this error
Apr 3 22:16:18 OpenWrt : could not load module 'imfile', errors: trying to load module /usr/lib/rsyslog/imfile.so: Error loading shared library /usr/lib/rsyslog/imfile.so: No such file or directory [v8.39.0 try http://www.rsyslog.com/e/2066 ]
The text was updated successfully, but these errors were encountered: