You are not logged in.

#76 2022-06-11 14:34:10

seth
Member
Registered: 2012-09-03
Posts: 29,771

Re: Printer not getting connected due to some issue in avahi

avahi-daemon reproducibly fails because it lacks access permissions (when called as root) to /etc/passwd
systemd-hostnamed fails because it lacks permissions to libsystemd-shared-251.1-1.so - but only on dbus activation. Otherwise it runs fine.

None of the permission errors can be explained by the file permissions.

This is nuts. Neither makes any sense and the combination even less so.

I'd ask you to try the LTS kernel, but you're already running that.

Let's roll w/ the late crng because of

May 30 19:02:55 Joker kernel: random: dbus-daemon: uninitialized urandom read (12 bytes read)

https://wiki.debian.org/BoottimeEntropyStarvation
https://wiki.archlinux.org/title/Haveged

Offline

#77 2022-06-12 03:34:22

kashishme
Member
Registered: 2021-01-08
Posts: 155

Re: Printer not getting connected due to some issue in avahi

oh apologies

Offline

#78 2022-06-14 13:19:35

kashishme
Member
Registered: 2021-01-08
Posts: 155

Re: Printer not getting connected due to some issue in avahi

seth wrote:

avahi-daemon reproducibly fails because it lacks access permissions (when called as root) to /etc/passwd
systemd-hostnamed fails because it lacks permissions to libsystemd-shared-251.1-1.so - but only on dbus activation. Otherwise it runs fine.

None of the permission errors can be explained by the file permissions.

This is nuts. Neither makes any sense and the combination even less so.

I'd ask you to try the LTS kernel, but you're already running that.

Let's roll w/ the late crng because of

May 30 19:02:55 Joker kernel: random: dbus-daemon: uninitialized urandom read (12 bytes read)

https://wiki.debian.org/BoottimeEntropyStarvation
https://wiki.archlinux.org/title/Haveged

ok, i saw both the links, but the haveged one, i don't really understand what it is, and the debian page too, what are you trying to say here or you want me to do something??
btw i checked out this post on arch forum ( https://bbs.archlinux.org/viewtopic.php?id=270948 ) because even i am getting this message on boot ( https://imgur.com/a/m5rVED9 ), i am trying the things mentioned in it, but i don't understand one thing, how do i configure systemd-resolvd for mDNS ? (or is this post irrelevant to my issue?)

Last edited by kashishme (2022-06-14 13:25:45)

Offline

#79 2022-06-14 13:31:02

seth
Member
Registered: 2012-09-03
Posts: 29,771

Re: Printer not getting connected due to some issue in avahi

what are you trying to say here?

May 30 19:02:55 Joker kernel: random: dbus-daemon: uninitialized urandom read (12 bytes read)

The crng is late and at least affects dbus-daemon. I've no idea whether that's the cause of your situation, but the behavior is so wild that I don't have any rational explanation.
Haveged will provide some early entropy and if you've a qualifying CPU ("grep -i rdrand /proc/cpuinfo") you can also try to pass "random.trust_cpu=on" to the kernel.

Offline

#80 2022-06-14 13:55:08

kashishme
Member
Registered: 2021-01-08
Posts: 155

Re: Printer not getting connected due to some issue in avahi

seth wrote:

what are you trying to say here?

May 30 19:02:55 Joker kernel: random: dbus-daemon: uninitialized urandom read (12 bytes read)

The crng is late and at least affects dbus-daemon. I've no idea whether that's the cause of your situation, but the behavior is so wild that I don't have any rational explanation.
Haveged will provide some early entropy and if you've a qualifying CPU ("grep -i rdrand /proc/cpuinfo") you can also try to pass "random.trust_cpu=on" to the kernel.

grep -i rdrand /proc/cpuinfo
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp pku ospke md_clear flush_l1d arch_capabilities
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp pku ospke md_clear flush_l1d arch_capabilities
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp pku ospke md_clear flush_l1d arch_capabilities
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp pku ospke md_clear flush_l1d arch_capabilities
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp pku ospke md_clear flush_l1d arch_capabilities
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp pku ospke md_clear flush_l1d arch_capabilities
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp pku ospke md_clear flush_l1d arch_capabilities
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp pku ospke md_clear flush_l1d arch_capabilities

you can also try to pass "random.trust_cpu=on" to the kernel.

how do i do that?

Offline

#81 2022-06-14 14:09:08

seth
Member
Registered: 2012-09-03
Posts: 29,771

Offline

#82 2022-06-14 14:16:11

kashishme
Member
Registered: 2021-01-08
Posts: 155

Re: Printer not getting connected due to some issue in avahi

just trying to confirm, should i just make a file in ' /proc/sys/kernel ' with the line ' random.trust_cpu=on '? or should i do it in the grub.cfg file?

Offline

#83 2022-06-14 14:23:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 16,418

Re: Printer not getting connected due to some issue in avahi

No in the grub config, read the GRUB section in the linked article.

Offline

#84 2022-06-14 14:27:32

seth
Member
Registered: 2012-09-03
Posts: 29,771

Re: Printer not getting connected due to some issue in avahi

If you are using grub.
You can also just edit the kernel commandline in the boot manager.
And check "cat /proc/cmdline" on whether you succeeded to add it.

Offline

#85 2022-06-14 14:35:36

kashishme
Member
Registered: 2021-01-08
Posts: 155

Re: Printer not getting connected due to some issue in avahi

V1del wrote:

No in the grub config, read the GRUB section in the linked article.

oh alright, and i assume ' quiet ' and 'splash' is parameter and value respectively or do i just add the line seth said as it is?

Last edited by kashishme (2022-06-14 14:36:04)

Offline

#86 2022-06-14 14:50:21

seth
Member
Registered: 2012-09-03
Posts: 29,771

Re: Printer not getting connected due to some issue in avahi

You add "random.trust_cpu=on" to the line where "quiet" and "splash" are …

Offline

#87 2022-06-15 08:23:01

kashishme
Member
Registered: 2021-01-08
Posts: 155

Re: Printer not getting connected due to some issue in avahi

I already did that and here is the output for

sudo systemctl status avahi-daemon
× avahi-daemon.service - Avahi mDNS/DNS-SD Stack
     Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Wed 2022-06-15 13:50:35 IST; 5s ago
TriggeredBy: ● avahi-daemon.socket
    Process: 1393 ExecStart=/usr/bin/avahi-daemon -s (code=exited, status=255/EXCEPTION)
   Main PID: 1393 (code=exited, status=255/EXCEPTION)
        CPU: 2ms

Jun 15 13:50:35 Joker systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Jun 15 13:50:35 Joker systemd[1]: avahi-daemon.service: Main process exited, code=exited, status=255/EXCEPTION
Jun 15 13:50:35 Joker systemd[1]: avahi-daemon.service: Failed with result 'exit-code'.
Jun 15 13:50:35 Joker systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.

Offline

#88 2022-06-15 10:41:03

seth
Member
Registered: 2012-09-03
Posts: 29,771

Re: Printer not getting connected due to some issue in avahi

Did what when?
Please post an updated system journal - avahi still fails to start and we even know why - it just doesn't make any sense…

Offline

#89 2022-06-15 13:18:34

kashishme
Member
Registered: 2021-01-08
Posts: 155

Re: Printer not getting connected due to some issue in avahi

i added this line to my grub default:

GRUB_CMDLINE_LINUX_DEFAULT="random.trust_cpu=on"

here is the output for

sudo journalctl -b | grep -i avahi

:
http://ix.io/40dq

Offline

#90 2022-06-15 13:23:55

seth
Member
Registered: 2012-09-03
Posts: 29,771

Re: Printer not getting connected due to some issue in avahi

Not grep. The journal. Avahi is uninteresting atm.

Offline

#91 2022-06-15 13:39:53

kashishme
Member
Registered: 2021-01-08
Posts: 155

Re: Printer not getting connected due to some issue in avahi

seth wrote:

Not grep. The journal. Avahi is uninteresting atm.

do you mean this?

sudo journalctl -eu avahi-daemon.service
Jun 15 18:42:24 Joker systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Jun 15 18:42:24 Joker systemd[1]: avahi-daemon.service: Main process exited, code=exited, status=255/EXCEPTION
Jun 15 18:42:24 Joker systemd[1]: avahi-daemon.service: Failed with result 'exit-code'.
Jun 15 18:42:24 Joker systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
Jun 15 18:42:43 Joker systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Jun 15 18:42:43 Joker systemd[1]: avahi-daemon.service: Main process exited, code=exited, status=255/EXCEPTION
Jun 15 18:42:43 Joker systemd[1]: avahi-daemon.service: Failed with result 'exit-code'.
Jun 15 18:42:43 Joker systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.

Offline

#92 2022-06-15 13:46:44

seth
Member
Registered: 2012-09-03
Posts: 29,771

Re: Printer not getting connected due to some issue in avahi

No, I mean the system journal…

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

#93 2022-06-15 13:59:03

kashishme
Member
Registered: 2021-01-08
Posts: 155

Re: Printer not getting connected due to some issue in avahi

seth wrote:

No, I mean the system journal…

sudo journalctl -b | curl -F 'file=@-' 0x0.st

oh alright, here:
http://0x0.st/ouBu.txt

Offline

#94 2022-06-19 20:01:14

seth
Member
Registered: 2012-09-03
Posts: 29,771

Re: Printer not getting connected due to some issue in avahi

So the crng warnings is gone, but the rest remains the same.
Other then a security layer like firejail or selinux curtailing the access to /etc/passwd I can't explain why avahi fails to start (or rather why that error occurs) … except… maybe…

df -h
df -ih

Offline

#95 2022-06-26 10:42:15

kashishme
Member
Registered: 2021-01-08
Posts: 155

Re: Printer not getting connected due to some issue in avahi

seth wrote:

So the crng warnings is gone, but the rest remains the same.
Other then a security layer like firejail or selinux curtailing the access to /etc/passwd I can't explain why avahi fails to start (or rather why that error occurs) … except… maybe…

df -h
df -ih
df -h

http://0x0.st/oS92.txt

df -ih: http://0x0.st/oS9_.txt

Offline

#96 2022-06-26 14:32:27

seth
Member
Registered: 2012-09-03
Posts: 29,771

Re: Printer not getting connected due to some issue in avahi

Nope - you're neither out of space nor out of inodes sad

Offline

#97 2022-06-26 16:00:28

progandy
Member
Registered: 2012-05-17
Posts: 4,966

Re: Printer not getting connected due to some issue in avahi

avahi is not strictly necessary to print, if you know the IP you can manually add the printer like this:

# lpadmin -p MyPrinter -E -v "ipp://${printer_ip}/ipp/print" -m everywhere

CUPS - ArchWiki

Fixing avahi would still be a good idea.

Last edited by progandy (2022-06-26 16:00:56)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#98 2022-06-26 16:08:04

seth
Member
Registered: 2012-09-03
Posts: 29,771

Re: Printer not getting connected due to some issue in avahi

It's not only avahi, eg. the dbus activation of hostnamed fails, too and I'm completely out of ideas to explain the weird symptoms.
Since it's impossible to say what further problems will arise from the undiscovered cause, I'd (with some frustration) suggest to wipe the drive and re-install arch… hmm

Offline

#99 2022-06-27 13:46:15

kashishme
Member
Registered: 2021-01-08
Posts: 155

Re: Printer not getting connected due to some issue in avahi

seth wrote:

It's not only avahi, eg. the dbus activation of hostnamed fails, too and I'm completely out of ideas to explain the weird symptoms.
Since it's impossible to say what further problems will arise from the undiscovered cause, I'd (with some frustration) suggest to wipe the drive and re-install arch… hmm

do you mean everything or just the root partition?

Offline

#100 2022-06-27 14:56:06

seth
Member
Registered: 2012-09-03
Posts: 29,771

Re: Printer not getting connected due to some issue in avahi

The OS, that would be the root and optional boot partition - your $HOME should™ not be relevant since the problem is (so far) w/ system processes.

Offline

Board footer

Powered by FluxBB