2.2.3 Avahi Exits after Reboot - Have to Hit "Save" to Get Running
-
Looks like it does not like the
service_start("avahi")
Crash report begins. Anonymous machine information: amd64 10.1-RELEASE-p15 FreeBSD 10.1-RELEASE-p15 #0 c5ab052(releng/10.1)-dirty: Sat Jul 25 20:20:58 CDT 2015 root@pfs22-amd64-builder:/usr/obj.amd64/usr/pfSensesrc/src/sys/pfSense_SMP.10 Crash report details: PHP Errors: [11-Aug-2015 17:43:35 America/Los_Angeles] PHP Fatal error: Call to undefined function service_start() in /usr/local/pkg/avahi.inc on line 217 Filename: /var/crash/minfree 2048
I am not sure how to fix this. I did sign up for Github though and am very interested in learning.
Thanks!
-
I put some comments on that PR 983. The functions to start and stop the service are actually called:
start_service
stop_serviceSo edit avahi.inc and fix those and see how it goes.
-
Looks like it does not like the
service_start("avahi")
Yeah it obviously doesn't like those; already fixed. :D
-
Ok so changing the sleep time does not help the problem. I tried up to 100 which just changed the position of the error in the log.
I found this on another forum saying that "enable-dbus=yes" should be set to no. I made this change and the service started after reboot and seems to be working.
Does this make sense? Does restarting the service after boot or hitting save actually start it without the dbus requirement?
Chad
-
this was where i found the info:
https://dev.openwrt.org/ticket/12971
-
~~Well frankly I'm not touching that. If you don't want dbus, then you compile the thing without dbus. It's working perfectly fine for many people without such hacks, really no idea what's wrong with dbus for you. It the dbus-daemon running? Does the socket exist?
File a bug at Redmine perhaps to get it recompiled without dbus, then all the dbus-related stuff can be simply removed from the code as there's no point in installing dbus, running and dealing with dbus in that case.~~
Scratch this. Added a checkbox to disable D-BUS to the PR linked above. Don't have time to investigate this shit, and generally no interest in using this package either. I did code-style fixes. Don't want to touch it ever again.
-
Thank you for doing the work you did.
-
Does the checkbox work for you? :P
-
Does the checkbox work for you? :P
Yes it works great. Not sure whats up with my stuff. This has persisted across several VMs. I do not even have a var/run/dbus directory. Looks alot like this bug to me:
https://redmine.pfsense.org/issues/2535Anyway - it seems to work fine without Dbus.
Thanks again.
-
I went ahead and submitted a bug on this issue after testing again in a brand new clean VM.
https://redmine.pfsense.org/issues/4932