-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] rsyslog addon will not run in LibreELEC as currently built because of incorrect library paths #8044
Comments
Hi @adriankaylor - the rsyslog logs above are not from a current version of the addon. Can you please update your addon first and share the logs. The addon logs shown above are from LE-9.1 |
Appologies, I must have grabbed those from my original post.
|
I started poking around with building a new version of the addon locally and figured it out. When I added " --libdir=/storage/.kodi/addons/service.rsyslog/lib " to the PKG_CONFIGURE_OPTS_TARGET in its package.mk I was able to get rid of the library errors. Hard coding the path probably isn't the best fix, but I think it at least proves the point. Unfortunately, there may be some other issues with the addon. Now that it runs, the command parameters in the unit file don't seem to be correct. Still poking around there, but I'll submit those as another bug report when I have more specific info. |
The following sets the environment for the modules, so no need to change the compile. So if you set this while debugging you should be good to go. LibreELEC.tv/packages/addons/service/rsyslog/source/system.d/service.rsyslog.service Line 8 in c46fefd
I just tested here, and with setting the ip address to 1.1.1.1 and then systemctl start service.rsyslog.service / status. Looks right.
|
You're right, it's not the library path, total red herring. I was getting the debug messages about the missing libraries because I was running the rsyslogd directly from the cli so it wasn't picking up the environment settings. Once I go that out of my head and kept digging I figure out the reason my service wouldn't start was it wasn't getting any of its config files. The problem is profiles. I'm using multiple profiles and the unit file is looking for the addon settings in .kodi/userdata/addon_data/service.rsyslog/[rsyslog.conf,settings.xml] but because I'm in a profile the GUI settings are going to .kodi/userdata/profiles/Adrian/addon_data/.... Is there an environment variable that points to the active profile path and not Master settings? I tweaked the unit file and the service is starting for me now. Still no logs on my syslog server, but I'm still poking around with that. |
Closing as addon is running. Please reopen/update title if still a bug. If general support please use forum. |
Will do, thanks for your help. I think I tracked down an actual bug, but it's way different than what I originally posted. I'll file something new for clarity. |
Describe the bug
The rsyslog addon will not run as built. The rsyslogd binary is looking for its libraries in "/usr/lib/rsyslog/" instead of "/storage/kodi/addons/service.rsyslog/lib/rsyslog".
With /usr/lib being read only I haven't been able create a link back to the right folder to see if the app will load.
To Reproduce
Steps to reproduce the behavior:
Informations
Log file
In previous builds I saw this error in journald, but as of 11.03 I'm not seeing anything.
systemd[1]: service.rsyslog.service: Main process exited, code=exited, status=1/FAILURE
11.03 shows this at boot
Running "~/.kodi/addons/service.rsyslog/bin/rsyslogd -d -n" will produce
Additional context
The text was updated successfully, but these errors were encountered: