hughsie/colord

failed to get session / CdMain: failed to read erros on every boot

Closed this issue · 10 comments

Hello!

On every boot colord.service throws errors like:

colord[1135]: failed to get session [pid 1157]: No such process
colord[1135]: CdMain: failed to read /proc/1157/cmdline
colord[1135]: failed to get session [pid 1099]: No such process
colord[1135]: CdMain: failed to read /proc/1099/cmdline: Failed to open file “/proc/1099/cmdline”: No such file or directory
colord[1135]: failed to get session [pid 1395]: No such process
colord[1135]: CdMain: failed to read /proc/1395/cmdline: Failed to open file “/proc/1395/cmdline”: No such file or directory
colord[1135]: failed to get session [pid 1395]: No such process
colord[1135]: CdMain: failed to read /proc/1395/cmdline: Failed to open file “/proc/1395/cmdline”: No such file or directory

I didn't notice any unusual behavior other than those errors but I think those should be either fixed or reduced it's priority (currently it's warning.

Those errors are already well known elsewhere:
https://mail.gnome.org/archives/gnome-list/2017-March/msg00005.html
https://bugs.launchpad.net/ubuntu/+source/colord/+bug/1442050
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813334

Here's some code analyze: https://bugs.archlinux.org/task/37014#comment131583

Tested on:
colord 1.3.3,1.3.5
Archlinux,debian

colord doesn't support cups exiting on idle. It wasn't something that I knew could happen.

Thank you for the reply. Is it fixable in colord in your opinion?

Sure, but I think this is the kind of thing to discuss on the colord mailing list.

I don't really have anything to add in discussion beside what's in my first post.

@hughsie can you at least hide those messages behind some debug option in order to prevent spam syslog?

@hughsie Is this on the roadmap?

Isn't this fixed in 513bfa4?

@hughsie actually Arch Linux package does contain this commit and it doesn't help:

journalctl -b -u colord
systemd[1]: Starting Manage, Install and Generate Color Profiles...
systemd[1]: Started Manage, Install and Generate Color Profiles.
colord[2011]: CdMain: failed to read /proc/2010/cmdline: Failed to open file “/proc/2010/cmdline”: No such file or directory
colord[2011]: CdMain: failed to read /proc/2010/cmdline: Failed to open file “/proc/2010/cmdline”: No such file or directory

It works partially. The failed to get session [pid xxx]: No such process doesn't occur but above still spams system log. Maybe you could downgrade that message as well.

@hughsie I opened #104 which should fix this for good.