Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Problem running avahi (Read 1112 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Problem running avahi

Hello there. I found this forum entry (https://forum.artixlinux.org/index.php/topic,956.0.html) while searching for some fix to an issue I'm having trying to connect to my network printer.

I'm using an old netbook with Ubuntu Server to share my HP LaserJet P1006 using CUPS. Every other machine in my house is able to connect to this printer without issues. Right now I'm using Artix with runit (Plasma desktop) on a Thinkpad T520 I use as daily driver, and every time I add the printer by manual URI, it throws a "filter failed" error when I try to send a printing job.

I used Devuan with Plasma desktop previously, and there I was able to open System Preferences>Printers and my network printer will already appear listed and functional. I can't find how to get this feature to work on Artix. I've already installed both avahi-runit and cups packages.

cupsd service is running fine, but the sudo sv status avahi-daemon command returns
Code: [Select]
fail: avahi-daemon: unable to change to service directory: file does not exist 

I've also already enabled it by following the instructions on the forum entry I first mentioned.

Any advice on a possible fix or some step I'm either missing or simply doing wrong will be highly appreciated.


 

Re: Problem running avahi

Reply #2
Any advice on a possible fix or some step I'm either missing or simply doing wrong will be highly appreciated.
See if avahi is running, just a "ps ax|grep avahi" should show it. If not, try to launch it from the terminal. FWIW, I don't think avahi is the culprit for the "filter failed" error; the cupsd logs will reveal more.
Perhaps cups-filters is lacking for your printer and gutenprint is better. You may also try hplip, which should work with every HP printer around.

Re: Problem running avahi

Reply #3
See if avahi is running, just a "ps ax|grep avahi" should show it. If not, try to launch it from the terminal. FWIW, I don't think avahi is the culprit for the "filter failed" error; the cupsd logs will reveal more.
Perhaps cups-filters is lacking for your printer and gutenprint is better. You may also try hplip, which should work with every HP printer around.

The ps ax|grep avahi command shows the following output:
Code: [Select]
16531 pts/1    S+     0:00 grep --colour=auto avahi


I'm not sure if this means the service is actually running.

And cups error log shows this:
Code: [Select]
E [14/Feb/2022:21:22:24 -0300] [CGI] ippfind (PID 29266) stopped with status 2!
E [14/Feb/2022:21:22:24 -0300] [cups-deviced] PID 29243 (driverless) stopped with status 2!
E [14/Feb/2022:21:22:54 -0300] [CGI] ippfind (PID 29376) stopped with status 2!
E [14/Feb/2022:21:22:54 -0300] [CGI] ippfind (PID 29377) stopped with status 2!
W [14/Feb/2022:21:23:33 -0300] CreateProfile failed: org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1
W [14/Feb/2022:21:23:33 -0300] CreateProfile failed: org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1
W [14/Feb/2022:21:23:33 -0300] CreateDevice failed: org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1
E [14/Feb/2022:21:24:39 -0300] [CGI] ippfind (PID 29790) stopped with status 2!
E [14/Feb/2022:21:24:39 -0300] [cups-deviced] PID 29772 (driverless) stopped with status 2!
E [14/Feb/2022:21:25:24 -0300] [CGI] ippfind (PID 29967) stopped with status 2!
E [14/Feb/2022:21:25:24 -0300] [CGI] ippfind (PID 29971) stopped with status 2!
W [14/Feb/2022:21:25:48 -0300] CreateProfile failed: org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1
W [14/Feb/2022:21:25:48 -0300] CreateProfile failed: org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1
W [14/Feb/2022:21:25:48 -0300] CreateDevice failed: org.freedesktop.DBus.Error.Spawn.ChildExited:Launch helper exited with unknown return code 1
E [14/Feb/2022:21:26:24 -0300] [Client 27] Returning IPP client-error-not-possible for Cancel-Job (ipp://nicogarcia95@localhost:631/printers/URI_manual) from localhost.
W [14/Feb/2022:21:27:45 -0300] [Job 10] Backend returned status 1 (failed)

I've already installed hplip to install the printer via USB, and it works fine. Should I install gutenprint then?

Re: Problem running avahi

Reply #4
The ps ax|grep avahi command shows the following output:
Code: [Select]
16531 pts/1    S+     0:00 grep --colour=auto avahi

I'm not sure if this means the service is actually running.
Obviously not, that's the grep command you ran. To avoid the confusion, one can add | grep -v grep:
Code: [Select]
ps aux | grep process_to_look_for | grep -v grep

Re: Problem running avahi

Reply #5
No, avahi isn't running. See our wiki on how to install and start services in runit. If you got your printer to work with hplip, don't bother anymore, avahi is just additional clutter for service auto-discovery.

Re: Problem running avahi

Reply #6
Everything working now! I manually started avahi-daemon from command line, and then the network printer was visible at System Preferences>Printers>Add new printer.
However, it wasn`t functional at first. For some reason, once I selected the correct driver and named the printer, default settings pointed to an incorrect URI. I had to enter the correct one manually and problem solved.

Thanks everyone for the quick support!  ;)