Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] cupsd crashes immediately after having been started
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 668
Location: Switzerland

PostPosted: Sun Mar 26, 2023 7:16 am    Post subject: [SOLVED] cupsd crashes immediately after having been started Reply with quote

When i stat cupsd, it immediately crashes without any error message:
Code:
 $  sudo /etc/init.d/cupsd status;sudo /etc/init.d/cupsd start;sudo /etc/init.d/cupsd status
 * status: stopped
 * Starting cupsd ...                                                                                                                                                   [ ok ]
 * status: crashed

Running `sudo /etc/init.d/cupsd -d start the final part of the outut looks like this:
Code:
+ ebegin 'Starting cupsd'
 * Starting cupsd ...
+ yesno ''
+ '[' -z '' ']'
+ return 1
+ yesno ''
+ '[' -z '' ']'
+ return 1
+ eval start-stop-daemon --start --exec /usr/sbin/cupsd '' '' --pidfile /run/cupsd.pid -b -m --pidfile /run/cupsd.pid -- -f -c /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf
++ start-stop-daemon --start --exec /usr/sbin/cupsd --pidfile /run/cupsd.pid -b -m --pidfile /run/cupsd.pid -- -f -c /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf
+ eend 0 'Failed to start cupsd'                                                                                                                                        [ ok ]
+ service_set_value command /usr/sbin/cupsd
+ '[' -n '' ']'
+ '[' -n /run/cupsd.pid ']'
+ service_set_value pidfile /run/cupsd.pid
+ '[' -n '' ']'
+ return 0
++ command -v start_post
+ '[' '' = start_post ']'
++ command -v cgroup_cleanup
+ '[' cgroup_cleanup = cgroup_cleanup ']'
+ '[' start = stop ']'
++ command -v cgroup2_remove
+ '[' cgroup2_remove = cgroup2_remove ']'
+ '[' start = stop ']'
+ '[' -z /usr/sbin/cupsd ']'
+ shift
+ continue 2
+ '[' -n '' ']'
+ exit 0


My cupsd´s version:
Code:
$ sudo /etc/init.d/cupsd -V
cupsd (OpenRC) 0.45.2 (Gentoo Linux)

whereas the version of net-print/cups is 2.4.2-r6.
My system:
Code:
$ uname -a
Linux quetzal 5.10.52-gentoo-dist #1 SMP Sat Aug 14 18:05:47 CEST 2021 x86_64 Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz GenuineIntel GNU/Linux


I haven't printed for several weeks, so there may have been several several updates between the last time i printed something and my current attempt. And i also haven't changed any configuration in this time.

How can this be fixed?


Last edited by jody on Mon Mar 27, 2023 9:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1652

PostPosted: Sun Mar 26, 2023 1:44 pm    Post subject: Reply with quote

What happens when you run /usr/sbin/cupsd -f -c /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf as root?
Back to top
View user's profile Send private message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 668
Location: Switzerland

PostPosted: Sun Mar 26, 2023 3:21 pm    Post subject: Reply with quote

Nothiing visible happens - the command just returns.
Code:
 $ sudo /usr/sbin/cupsd -f -c /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf
 $
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1652

PostPosted: Sun Mar 26, 2023 6:11 pm    Post subject: Reply with quote

jody wrote:
Nothiing visible happens - the command just returns.
Code:
 $ sudo /usr/sbin/cupsd -f -c /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf
 $


It should not immediately return. Check your syslog for what the issue is.
Back to top
View user's profile Send private message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 668
Location: Switzerland

PostPosted: Mon Mar 27, 2023 9:20 pm    Post subject: Reply with quote

Thank you for your advice.
When i run the command 'sudo /etc/init.d/cupsd start' the following lines are added to syslog:
Code:
Mar 27 20:37:57 quetzal cupsd: Unknown SystemGroup "jody" on line 19 of /etc/cups/cups-files.conf.
Mar 27 20:37:57 quetzal cupsd: Unable to read "/etc/cups/cups-files.conf" due to errors.


It turned out i had changed the group of user jody a few weeks ago without realizing this would have any effect on cupsd.

After modifying the "SystemGroup" property of /etc/cups/cups-files.conf correspondingly, cupsd can be started properly again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum