You are not logged in.
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
Don't do that. https://wiki.archlinux.org/title/Genera … es#Bumping
oh apologies
Offline
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
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
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
Offline
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
No in the grub config, read the GRUB section in the linked article.
Offline
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
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
You add "random.trust_cpu=on" to the line where "quiet" and "splash" are …
Offline
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
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
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
Offline
Not grep. The journal. Avahi is uninteresting atm.
Offline
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
No, I mean the system journal…
sudo journalctl -b | curl -F 'file=@-' 0x0.st
Offline
No, I mean the system journal…
sudo journalctl -b | curl -F 'file=@-' 0x0.st
oh alright, here:
http://0x0.st/ouBu.txt
Offline
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
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
df -ih: http://0x0.st/oS9_.txt
Offline
Nope - you're neither out of space nor out of inodes
Offline
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
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
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…
Offline
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…
do you mean everything or just the root partition?
Offline
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