Closed a10kiloham closed 1 year ago
Is "avahi-daemon" running? "ps ax | grep avahi" will show...
Yep runs fine. I restarted it before and after each try but it's running without error always
Can you try the latest version of the LPrint snap?
Hm, I tried to upgrade the snap and still seems to add the same message to my syslog
7387:Jan 3 14:09:58 thishost lprint.lprint-server[12848]: E [2023-01-03T14:09:58.844Z] Unable to register system, is the Avahi daemon running?
7388:Jan 3 14:09:58 thishost lprint.lprint-server[12848]: E [2023-01-03T14:09:58.844Z] [Printer Zebra300dpi] Unable to register printer, is the Avahi daemon running?
Any further debugging tips? I noticed a message earlier about apparmor but have since disabled that without any result.
audit: type=1107 audit(1672754998.838:34): pid=836 uid=103 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/" interface="org.freedesktop.DBus.Peer" member="Ping" mask="send" name="org.freedesktop.Avahi" pid=12848 label="snap.lprint.lprint-server" peer_pid=828 peer_label="unconfined"
Hmm, how about:
sudo snap connect lprint:avahi-control
Hm that seems to eliminate the error! I don't quite unerstand snap well enough but is there a way to make the persist across reboots? many thanks!!
That should persist across reboots. If not it is a snap bug (arguably all of the connect stuff should be done automatically when you install a snap, but apparently that isn't the snap folks' opinion...)
I've got Avahi running and am currently using CUPS to act as an Airprint server for my Zebra GX printer. I can add the printer via socket://192.168.x.x and test page printing works from lprint. However I'm trying to start the server and failing every time. I've tried reinstalling everyting including lprint via CUPS. The debug log is as follows (macmini is the local hostname of the Ubuntu server). It also failed with running sudo. Any ideas?
bash$ lprint server