Skip to content
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

hotplug-initd-observer error #1064

Open
ilario opened this issue Nov 17, 2023 · 2 comments · May be fixed by #1148
Open

hotplug-initd-observer error #1064

ilario opened this issue Nov 17, 2023 · 2 comments · May be fixed by #1148

Comments

@ilario
Copy link
Member

ilario commented Nov 17, 2023

Observed the logs shared by @LaneaLucy in LibreMesh chat:


Fri Apr 28 09:41:28 2023 daemon.err hotplug-initd-observer[11153]: /usr/bin/lua: /usr/bin/hotplug-initd-observer:13: bad argument #3 to 'format' (string expected, got nil)
Fri Apr 28 09:41:28 2023 daemon.err hotplug-initd-observer[11153]: stack traceback:
Fri Apr 28 09:41:28 2023 daemon.err hotplug-initd-observer[11153]: 	[C]: in function 'format'
Fri Apr 28 09:41:28 2023 daemon.err hotplug-initd-observer[11153]: 	/usr/bin/hotplug-initd-observer:13: in function </usr/bin/hotplug-initd-observer:10>
Fri Apr 28 09:41:28 2023 daemon.err hotplug-initd-observer[11153]: 	[C]: in function 'run'
Fri Apr 28 09:41:28 2023 daemon.err hotplug-initd-observer[11153]: 	/usr/bin/hotplug-initd-observer:23: in main chunk
Fri Apr 28 09:41:28 2023 daemon.err hotplug-initd-observer[11153]: 	[C]: ?
Fri Apr 28 09:41:30 2023 daemon.err hostapd: rmdir[ctrl_interface=/var/run/hostapd]: Permission denied
Fri Apr 28 09:41:35 2023 daemon.err babeld[2223]: send: Address not available
Fri Apr 28 09:41:38 2023 daemon.err hotplug-initd-observer[31750]: /usr/bin/lua: /usr/bin/hotplug-initd-observer:13: bad argument #3 to 'format' (string expected, got nil)
Fri Apr 28 09:41:38 2023 daemon.err hotplug-initd-observer[31750]: stack traceback:
Fri Apr 28 09:41:38 2023 daemon.err hotplug-initd-observer[31750]: 	[C]: in function 'format'
Fri Apr 28 09:41:38 2023 daemon.err hotplug-initd-observer[31750]: 	/usr/bin/hotplug-initd-observer:13: in function </usr/bin/hotplug-initd-observer:10>
Fri Apr 28 09:41:38 2023 daemon.err hotplug-initd-observer[31750]: 	[C]: in function 'run'
Fri Apr 28 09:41:38 2023 daemon.err hotplug-initd-observer[31750]: 	/usr/bin/hotplug-initd-observer:23: in main chunk
Fri Apr 28 09:41:38 2023 daemon.err hotplug-initd-observer[31750]: 	[C]: ?
@ilario
Copy link
Member Author

ilario commented Nov 7, 2024

As inspected by @pony1k in #1068, this error happens when evData.service is nil.
A possible solution is to replace evData.service with evData.service or '' in this line (untested):

@ilario
Copy link
Member Author

ilario commented Nov 7, 2024

Seems that that SERVICE variable is used only here:

[ "$SERVICE" == "babeld" ] && [ "$ACTION" == "service.start" ] &&

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants