Cannot get cups to work in systemd

Important informations about SolydXK including releases notes, forum rules and other anouncements
User avatar
disciple1964
Posts: 95
Joined: 03 Jan 2014 04:33
Location: Irving, Texas

Cannot get cups to work in systemd

Postby disciple1964 » 18 Jul 2014 14:45

Hello,

I am having a issue with getting cups to work in systemd. When I look in my cups error log I have this error:
E [17/Jul/2014:08:00:42 -0500] Filter "rastertopdf" not found.

This is what I have done and it doesn't seem to be working. I have installed the 071514 UP and it seems to have loaded fine

disciple1964@jstctech ~ $ systemctl status cups cups.service
cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled)
Active: failed (Result: start-limit) since Fri 2014-07-18 08:27:32 CDT; 11min ago
Docs: man:cupsd(8)
man:cupsd.conf(5)
Process: 1340 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE)


cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled)
Active: failed (Result: start-limit) since Fri 2014-07-18 08:27:32 CDT; 11min ago
Docs: man:cupsd(8)
man:cupsd.conf(5)
Process: 1340 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE)

disciple1964@jstctech ~ $ sudo systemctl status cups cups.service
[sudo] password for disciple1964:
cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled)
Active: failed (Result: start-limit) since Fri 2014-07-18 08:27:32 CDT; 12min ago
Docs: man:cupsd(8)
man:cupsd.conf(5)
Process: 1340 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE)

Jul 18 08:27:32 jstctech systemd[1]: Started CUPS Printing...
Jul 18 08:27:32 jstctech systemd[1340]: Failed at step NAM...
Jul 18 08:27:32 jstctech systemd[1]: cups.service: main pr...
Jul 18 08:27:32 jstctech systemd[1]: Unit cups.service ent...
Jul 18 08:27:32 jstctech systemd[1]: Starting CUPS Printin...
Jul 18 08:27:32 jstctech systemd[1]: cups.service start re...
Jul 18 08:27:32 jstctech systemd[1]: Failed to start CUPS ...

cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled)
Active: failed (Result: start-limit) since Fri 2014-07-18 08:27:32 CDT; 12min ago
Docs: man:cupsd(8)
man:cupsd.conf(5)
Process: 1340 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE)

Jul 18 08:27:32 jstctech systemd[1]: Started CUPS Printing...
Jul 18 08:27:32 jstctech systemd[1340]: Failed at step NAM...
Jul 18 08:27:32 jstctech systemd[1]: cups.service: main pr...
Jul 18 08:27:32 jstctech systemd[1]: Unit cups.service ent...
Jul 18 08:27:32 jstctech systemd[1]: Starting CUPS Printin...
Jul 18 08:27:32 jstctech systemd[1]: cups.service start re...
Jul 18 08:27:32 jstctech systemd[1]: Failed to start CUPS ...
disciple1964@jstctech ~ $ sudo systemctl start cups systemctl enable cups
Failed to issue method call: Unit systemctl.service failed to load: No such file or directory. See system logs and 'systemctl status systemctl.service' for details.
Failed to issue method call: Unit enable.service failed to load: No such file or directory. See system logs and 'systemctl status enable.service' for details.
disciple1964@jstctech ~ $ systemctl start cups systemctl enable cups
Failed to issue method call: Access denied
Failed to issue method call: Access denied
Failed to issue method call: Access denied
Failed to issue method call: Access denied
disciple1964@jstctech ~ $ systemctl start cups systemctl enable cups
Failed to issue method call: Access denied
Failed to issue method call: Access denied
Failed to issue method call: Access denied
Failed to issue method call: Access denied
disciple1964@jstctech ~ $ sudo systemctl start cups
[sudo] password for disciple1964:
disciple1964@jstctech ~ $ sudo systemctl enable cups
Synchronizing state for cups with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d cups defaults
Executing /usr/sbin/update-rc.d cups enable
disciple1964@jstctech ~ $ sudo systemctl status cups cups.service
cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled)
Active: failed (Result: start-limit) since Fri 2014-07-18 09:16:40 CDT; 41s ago
Docs: man:cupsd(8)
man:cupsd.conf(5)
Process: 6165 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE)

Jul 18 09:16:40 jstctech systemd[1]: Started CUPS Print...
Jul 18 09:16:40 jstctech systemd[6165]: Failed at step ...
Jul 18 09:16:40 jstctech systemd[1]: cups.service: main...
Jul 18 09:16:40 jstctech systemd[1]: Unit cups.service ...
Jul 18 09:16:40 jstctech systemd[1]: Starting CUPS Prin...
Jul 18 09:16:40 jstctech systemd[1]: cups.service start...
Jul 18 09:16:40 jstctech systemd[1]: Failed to start CU...

cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled)
Active: failed (Result: start-limit) since Fri 2014-07-18 09:16:40 CDT; 41s ago
Docs: man:cupsd(8)
man:cupsd.conf(5)
Process: 6165 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE)

Jul 18 09:16:40 jstctech systemd[1]: Started CUPS Print...
Jul 18 09:16:40 jstctech systemd[6165]: Failed at step ...
Jul 18 09:16:40 jstctech systemd[1]: cups.service: main...
Jul 18 09:16:40 jstctech systemd[1]: Unit cups.service ...
Jul 18 09:16:40 jstctech systemd[1]: Starting CUPS Prin...
Jul 18 09:16:40 jstctech systemd[1]: cups.service start...
Jul 18 09:16:40 jstctech systemd[1]: Failed to start CU...
disciple1964@jstctech ~ $ sudo systemctl status cups cups.service
cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled)
Active: failed (Result: start-limit) since Fri 2014-07-18 09:16:40 CDT; 1min 36s ago
Docs: man:cupsd(8)
man:cupsd.conf(5)
Process: 6165 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE)

Jul 18 09:16:40 jstctech systemd[1]: Started CUPS Print...
Jul 18 09:16:40 jstctech systemd[6165]: Failed at step ...
Jul 18 09:16:40 jstctech systemd[1]: cups.service: main...
Jul 18 09:16:40 jstctech systemd[1]: Unit cups.service ...
Jul 18 09:16:40 jstctech systemd[1]: Starting CUPS Prin...
Jul 18 09:16:40 jstctech systemd[1]: cups.service start...
Jul 18 09:16:40 jstctech systemd[1]: Failed to start CU...

cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled)
Active: failed (Result: start-limit) since Fri 2014-07-18 09:16:40 CDT; 1min 36s ago
Docs: man:cupsd(8)
man:cupsd.conf(5)
Process: 6165 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE)

Jul 18 09:16:40 jstctech systemd[1]: Started CUPS Print...
Jul 18 09:16:40 jstctech systemd[6165]: Failed at step ...
Jul 18 09:16:40 jstctech systemd[1]: cups.service: main...
Jul 18 09:16:40 jstctech systemd[1]: Unit cups.service ...
Jul 18 09:16:40 jstctech systemd[1]: Starting CUPS Prin...
Jul 18 09:16:40 jstctech systemd[1]: cups.service start...
Jul 18 09:16:40 jstctech systemd[1]: Failed to start CU...
disciple1964@jstctech ~ $ sudo systemctl start cups disciple1964@jstctech ~ $ sudo systemctl status cups cups.service
cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled)
Active: failed (Result: exit-code) since Fri 2014-07-18 09:18:23 CDT; 5s ago
Docs: man:cupsd(8)
man:cupsd.conf(5)
Process: 6359 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE)

Jul 18 09:18:23 jstctech systemd[1]: Starting CUPS Prin...
Jul 18 09:18:23 jstctech systemd[1]: Started CUPS Print...
Jul 18 09:18:23 jstctech systemd[6359]: Failed at step ...
Jul 18 09:18:23 jstctech systemd[1]: cups.service: main...
Jul 18 09:18:23 jstctech systemd[1]: Unit cups.service ...

cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled)
Active: failed (Result: exit-code) since Fri 2014-07-18 09:18:23 CDT; 5s ago
Docs: man:cupsd(8)
man:cupsd.conf(5)
Process: 6359 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE)

Jul 18 09:18:23 jstctech systemd[1]: Starting CUPS Prin...
Jul 18 09:18:23 jstctech systemd[1]: Started CUPS Print...
Jul 18 09:18:23 jstctech systemd[6359]: Failed at step ...
Jul 18 09:18:23 jstctech systemd[1]: cups.service: main...
Jul 18 09:18:23 jstctech systemd[1]: Unit cups.service ...
disciple1964@jstctech ~ $ sudo systemctl enable cups Synchronizing state for cups with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d cups defaults
Executing /usr/sbin/update-rc.d cups enable
disciple1964@jstctech ~ $ sudo systemctl status cups cups.service
cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled)
Active: failed (Result: exit-code) since Fri 2014-07-18 09:18:55 CDT; 6s ago
Docs: man:cupsd(8)
man:cupsd.conf(5)
Process: 6378 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE)

Jul 18 09:18:55 jstctech systemd[1]: Started CUPS Print...
Jul 18 09:18:55 jstctech systemd[6378]: Failed at step ...
Jul 18 09:18:55 jstctech systemd[1]: cups.service: main...
Jul 18 09:18:55 jstctech systemd[1]: Unit cups.service ...

cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled)
Active: failed (Result: exit-code) since Fri 2014-07-18 09:18:55 CDT; 6s ago
Docs: man:cupsd(8)
man:cupsd.conf(5)
Process: 6378 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE)

Jul 18 09:18:55 jstctech systemd[1]: Started CUPS Print...
Jul 18 09:18:55 jstctech systemd[6378]: Failed at step ...
Jul 18 09:18:55 jstctech systemd[1]: cups.service: main...
Jul 18 09:18:55 jstctech systemd[1]: Unit cups.service ...

Thanks for your help and if this is not the right place to post, Please forgive me.

Lenovo T61P-6gigs-15.1Screen-250gig hard drive / Desktop: Quad core Intel Core i7-4790K CPU Kernel~3.19.0-49-generic x86_64 Mem~1621.5/15928.2MB HDD~1120.2GB
Registered Linux user 566308

User avatar
Arjen Balfoort
Site Admin
Posts: 9334
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Cannot get cups to work in systemd

Postby Arjen Balfoort » 18 Jul 2014 14:55

I cannot reproduce your issue:

Code: Select all

$ sudo systemctl status cups
cups.service - CUPS Printing Service
   Loaded: loaded (/lib/systemd/system/cups.service; enabled)
   Active: active (running) since Fri 2014-07-18 07:51:56 CEST; 8h ago
     Docs: man:cupsd(8)
           man:cupsd.conf(5)
 Main PID: 6765 (cupsd)
   CGroup: name=systemd:/system/cups.service
           ├─6765 /usr/sbin/cupsd -f
           └─6795 /usr/lib/cups/notifier/dbus dbus://

Jul 18 07:51:56 solydk64 systemd[1]: Started CUPS Printing Service.

$ apt policy cups-filters
cups-filters:
  Installed: 1.0.54-1
  Candidate: 1.0.54-1
  Version table:
 *** 1.0.54-1 0
        500 http://debian.solydxk.com/production/ testing/main amd64 Packages
        100 /var/lib/dpkg/status
Could you try to reinstall cups-filters?

Code: Select all

sudo apt-get install --reinstall cups-filters


SolydXK needs you!
Development | Testing | Translations

User avatar
disciple1964
Posts: 95
Joined: 03 Jan 2014 04:33
Location: Irving, Texas

Re: Cannot get cups to work in systemd

Postby disciple1964 » 18 Jul 2014 15:55

Cups Systemd errorII.png
Cups Systemd errorII.png (52.88 KiB) Viewed 7600 times
Thanks, I tried the command and reinstalled. I have attached a screen shot. Is there other information you need to help give a better picture of the errors and why they it is not working? I have searched the net and it seems that the library that controlls the rastertopdf may be missing.


This is what is in my /var/log/cups/error.log file
E [17/Jul/2014:08:00:42 -0500] Filter "rastertopdf" not found.
E [18/Jul/2014:03:15:52 -0500] Filter "rastertopdf" not found.
E [18/Jul/2014:03:27:07 -0500] Filter "rastertopdf" not found.

Here is further information:
disciple1964@jstctech ~ $ apt policy cups-filters
cups-filters:
Installed: 1.0.54-1
Candidate: 1.0.54-1
Version table:
*** 1.0.54-1 0
500 http://debian.solydxk.nl/production/ testing/main amd64 Packages
100 /var/lib/dpkg/status

System: Host: jstctech Kernel: 3.14-1-amd64 x86_64 (64 bit gcc: 4.8.3)
Desktop: KDE 4.13.1 (Qt 4.8.6)
Distro: SolydXK 1 testing
Machine: Mobo: Gigabyte model: GA-890GPA-UD3H v: x.x
Bios: Award v: FF date: 11/24/2010
CPU: Quad core AMD Phenom II X4 970 (-MCP-) cache: 2048 KB
flags: (lm nx sse sse2 sse3 sse4a svm) bmips: 27318
Clock Speeds: 1: 3414 MHz 2: 3414 MHz
3: 3414 MHz 4: 3414 MHz
Graphics: Card: Advanced Micro Devices [AMD/ATI] Juniper XT [Radeon HD 5770]
bus-ID: 01:00.0
Display Server: X.Org 1.15.1 driver: fglrx
Resolution: 1920x1080@60.0hz
GLX Renderer: AMD Radeon HD 5700 Series
GLX Version: 4.4.12874 - CPC 13.35.1005 Direct Rendering: Yes
Audio: Card-1 Advanced Micro Devices [AMD/ATI] Juniper HDMI Audio [Radeon HD 5700 Series]
driver: snd_hda_intel bus-ID: 01:00.1
Card-2 Advanced Micro Devices [AMD/ATI] SBx00 Azalia (Intel HDA)
driver: snd_hda_intel bus-ID: 00:14.2
Sound: ALSA v: k3.14-1-amd64
Network: Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
driver: r8169 v: 2.3LK-NAPI port: ce00
bus-ID: 03:00.0
IF: eth1 state: up speed: 1000 Mbps duplex: full
mac: <filter>
Drives: HDD Total Size: 2160.5GB (2.5% used)
ID-1: /dev/sda model: ST31000528AS size: 1000.2GB
ID-2: /dev/sdb model: ST31000333AS size: 1000.2GB
ID-3: USB /dev/sdc model: External size: 160.0GB
ID-1: / size: 292G used: 9.2G (4%) fs: ext4 dev: /dev/sda2
ID-2: /home size: 620G used: 37G (7%) fs: ext4 dev: /dev/sda3
ID-3: swap-1 size: 6.00GB used: 0.00GB (0%) fs: swap dev: /dev/sda1
Sensors: System Temperatures: cpu: 34.0C mobo: 0.0C gpu: 44.00C
Fan Speeds (in rpm): cpu: 3629 fan-2: 0 fan-3: 896 fan-5: 0
Info: Processes: 174 Uptime: 2:38 Memory: 1295.2/8002.1MB
Init: systemd runlevel: 5 Gcc sys: 4.9.0
Client: Shell (bash 4.3.111) inxi: 2.1.28

Lenovo T61P-6gigs-15.1Screen-250gig hard drive / Desktop: Quad core Intel Core i7-4790K CPU Kernel~3.19.0-49-generic x86_64 Mem~1621.5/15928.2MB HDD~1120.2GB
Registered Linux user 566308

User avatar
Arjen Balfoort
Site Admin
Posts: 9334
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Cannot get cups to work in systemd

Postby Arjen Balfoort » 18 Jul 2014 16:11

I found this: https://lists.debian.org/debian-printin ... 00072.html
which suggests that cups-filters was patched from version 1.0.54-2, and has been added to Debian testing after we made our snapshot for our UP.

Could you install that package from testing, and post back if that solved your issue?
https://packages.debian.org/jessie/cups-filters


SolydXK needs you!
Development | Testing | Translations

User avatar
ulusu
Posts: 82
Joined: 12 Nov 2013 23:06
Location: Dreiländereck (Germany, Luxemburg and France)

Re: Cannot get cups to work in systemd

Postby ulusu » 18 Jul 2014 20:48

In my SolydK64 up 2014.07.15 I get this:

Code: Select all

ulusu@pn-pc ~ $ sudo systemctl status cups
Failed to get D-Bus connection: No connection to service manager.
ulusu@pn-pc ~ $ apt policy cups-filters
cups-filters:
  Installed: 1.0.54-1
  Candidate: 1.0.54-1
  Version table:
 *** 1.0.54-1 0
        500 http://debian.solydxk.com/production/ testing/main amd64 Packages
        100 /var/lib/dpkg/status
But I can print to pdf file and to my canon pixma.

Regards,
ulusu

Mac OS X Mavericks, Kubuntu 14.04 LTS, SolydK64_201407, Windows 7 Ultimate, Windows 8.1 pro

User avatar
Arjen Balfoort
Site Admin
Posts: 9334
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Cannot get cups to work in systemd

Postby Arjen Balfoort » 18 Jul 2014 21:43

I have installed three packages from the current Debian testing: libpoppler46, cups-filters-core-drivers, and cups-filters (in that order). I'm not the right person to test this (it's working for me). So, if you want to try them out, you can download the files for your architecture here: http://downloads.solydxk.nl/dev/cups

Don't forget:

Code: Select all

sudo systemctl restart cups
, and check your log files: http://127.0.0.1:631


SolydXK needs you!
Development | Testing | Translations

User avatar
ulusu
Posts: 82
Joined: 12 Nov 2013 23:06
Location: Dreiländereck (Germany, Luxemburg and France)

Re: Cannot get cups to work in systemd

Postby ulusu » 19 Jul 2014 16:50

Schoelje wrote:I have installed three packages from the current Debian testing: libpoppler46, cups-filters-core-drivers, and cups-filters (in that order). I'm not the right person to test this (it's working for me). So, if you want to try them out, you can download the files for your architecture here: http://downloads.solydxk.nl/dev/cups

Don't forget:

Code: Select all

sudo systemctl restart cups
, and check your log files: http://127.0.0.1:631
After installing these cups packages as you advised no more error: "Filter "rastertopdf" not found" is generated in the log file.

Thank you very much.

Regards,
ulusu

Mac OS X Mavericks, Kubuntu 14.04 LTS, SolydK64_201407, Windows 7 Ultimate, Windows 8.1 pro

User avatar
disciple1964
Posts: 95
Joined: 03 Jan 2014 04:33
Location: Irving, Texas

Re: Cannot get cups to work in systemd (Solved)

Postby disciple1964 » 19 Jul 2014 18:22

Thanks Schoelje,

I believe it was due to me doing the update and then changing over to systemd. However, I have redone my system with the latest iso and everything is working fine. There's no telling what happened and it wasn't because of Solydxk, but something I probably did wrong. I am currently using the 072014K iso, it may not be ready for primetime, but so far it has systemd and it is definitely working fine so far.

Lenovo T61P-6gigs-15.1Screen-250gig hard drive / Desktop: Quad core Intel Core i7-4790K CPU Kernel~3.19.0-49-generic x86_64 Mem~1621.5/15928.2MB HDD~1120.2GB
Registered Linux user 566308

eikko
Posts: 20
Joined: 23 Oct 2014 08:54

Re: Cannot get cups to work in systemd

Postby eikko » 23 Oct 2014 09:03

I have the same Problem:

Code: Select all

sudo systemctl status cups
cups.service - CUPS Printing Service
   Loaded: loaded (/lib/systemd/system/cups.service; enabled)
   Active: failed (Result: exit-code) since Do 2014-10-23 10:51:21 CEST; 7s ago
     Docs: man:cupsd(8)
           man:cupsd.conf(5)
  Process: 6745 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE)
 Main PID: 6745 (code=exited, status=226/NAMESPACE)

Okt 23 10:51:21 ew3lx systemd[1]: Started CUPS Printing Service.
Okt 23 10:51:21 ew3lx systemd[6745]: Failed at step NAMESPACE spawning /usr/sbin/cupsd: Operation not permitted
Okt 23 10:51:21 ew3lx systemd[1]: cups.service: main process exited, code=exited, status=226/NAMESPACE
Okt 23 10:51:21 ew3lx systemd[1]: Unit cups.service entered failed state.
Is there any Solution in planning?
(excuse my poor english)

Thanks eikko

User avatar
Arjen Balfoort
Site Admin
Posts: 9334
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Cannot get cups to work in systemd

Postby Arjen Balfoort » 23 Oct 2014 12:35

Hello eikko, and welcome to our forum!

Have you checked my post above?
http://forums.solydxk.nl/viewtopic.php?p=40228#p40228


SolydXK needs you!
Development | Testing | Translations

eikko
Posts: 20
Joined: 23 Oct 2014 08:54

Re: Cannot get cups to work in systemd

Postby eikko » 23 Oct 2014 12:50

Hello Schoelje,

Thank you for your Answer,
yes i read your post above,
but i hoped it would be fixed during a Update!

Im not a great Debian-Expert
and to fix it "by Hand" is a Callenge for me!


Thanks eikko

User avatar
Arjen Balfoort
Site Admin
Posts: 9334
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Cannot get cups to work in systemd

Postby Arjen Balfoort » 23 Oct 2014 14:14

Unfortunately, I never was able to replicate the issue.
As you can see from this old thread, it seems that it is an issue affecting just a few systems.

The post above mentions a link to download some packages.
That doesn't exist anymore because those packages are now in our repository and if you've fully updated your system, you should have them installed.

Just to be sure, open a terminal and run these commands:

Code: Select all

sudo apt-get install --reinstall libpoppler46 cups-filters-core-drivers cups-filters
sudo systemctl restart cups
, and check your log files: http://127.0.0.1:631


SolydXK needs you!
Development | Testing | Translations

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: Cannot get cups to work in systemd

Postby zerozero » 23 Oct 2014 16:54

eikko
at the same time please share the output of the terminal command

Code: Select all

file /tmp
bliss of ignorance

tacos40
Posts: 52
Joined: 14 Jul 2014 14:35
Location: Spain

Re: Cannot get cups to work in systemd

Postby tacos40 » 23 Oct 2014 17:02

Reading fast this thread... I remember my case, http://forums.solydxk.nl/viewtopic.php? ... 300#p40948
I regard it as relevant as I didnt find the word "tmp" in here ... (although it seems ZZ was in the line of querying it ;-))

/tmp being a symlink to other directory (/var/tmp or whatever target) is a "bug magnet"

hope it helps.

User avatar
wildman
Posts: 246
Joined: 12 Feb 2014 23:31
Location: Kentucky, USA

Re: Cannot get cups to work in systemd

Postby wildman » 23 Oct 2014 17:06

I am also having a cups problem. I get this after a reboot:

Code: Select all

~$ sudo systemctl status cups
[sudo] password for user: 
cups.service - CUPS Printing Service
   Loaded: loaded (/lib/systemd/system/cups.service; enabled)
   Active: inactive (dead) since Thu 2014-10-23 11:44:01 CDT; 7s ago
     Docs: man:cupsd(8)
           man:cupsd.conf(5)
  Process: 625 ExecStart=/usr/sbin/cupsd -f (code=exited, status=0/SUCCESS)
 Main PID: 625 (code=exited, status=0/SUCCESS)

Oct 23 11:42:56 amd-quad systemd[1]: Started CUPS Printing Service.
And then this:

Code: Select all

~$ sudo systemctl restart cups

~$ sudo systemctl status cups
cups.service - CUPS Printing Service
   Loaded: loaded (/lib/systemd/system/cups.service; enabled)
   Active: active (running) since Thu 2014-10-23 11:49:22 CDT; 20s ago
     Docs: man:cupsd(8)
           man:cupsd.conf(5)
 Main PID: 2251 (cupsd)
   CGroup: /system.slice/cups.service
           └─2251 /usr/sbin/cupsd -f

Oct 23 11:49:22 amd-quad systemd[1]: Starting CUPS Printing Service...
Oct 23 11:49:22 amd-quad systemd[1]: Started CUPS Printing Service.
The error log was empty and the access log had this:

Code: Select all

localhost - - [23/Oct/2014:11:22:26 -0500] "GET /admin/log/error_log HTTP/1.1" 200 0 - -
localhost - - [23/Oct/2014:11:22:37 -0500] "GET /admin/log/access_log HTTP/1.1" 200 89 - -
localhost - - [23/Oct/2014:11:23:11 -0500] "GET /admin/log/page_log HTTP/1.1" 200 0 - -
localhost - - [23/Oct/2014:11:39:45 -0500] "POST / HTTP/1.1" 200 4235967 CUPS-Get-PPDs -
localhost - - [23/Oct/2014:11:46:36 -0500] "GET /admin/log/error_log HTTP/1.1" 200 0 - -
localhost - - [23/Oct/2014:11:46:44 -0500] "GET /admin/log/access_log HTTP/1.1" 200 446 - -
Next I tried this as suggested by Schoelje:

Code: Select all

sudo apt-get install --reinstall libpoppler46 cups-filters-core-drivers cups-filters
sudo systemctl restart cups
After a reboot the result was the same. Here are the policies for those three packages:

Code: Select all

~$ apt policy cups-filters
cups-filters:
  Installed: 1.0.58-1
  Candidate: 1.0.58-1
  Version table:
 *** 1.0.58-1 0
        500 http://debian.solydxk.com/production/ testing/main amd64 Packages
        100 /var/lib/dpkg/status

~$ apt policy cups-filters-core-drivers
cups-filters-core-drivers:
  Installed: 1.0.58-1
  Candidate: 1.0.58-1
  Version table:
 *** 1.0.58-1 0
        500 http://debian.solydxk.com/production/ testing/main amd64 Packages
        100 /var/lib/dpkg/status

~$ apt policy libpoppler46
libpoppler46:
  Installed: 0.26.4-1
  Candidate: 0.26.4-1
  Version table:
 *** 0.26.4-1 0
        500 http://debian.solydxk.com/production/ testing/main amd64 Packages
        100 /var/lib/dpkg/status
And for ZZ:

Code: Select all

~$ file /tmp
/tmp: sticky, directory
Wildman
May the Source be with you.

eikko
Posts: 20
Joined: 23 Oct 2014 08:54

Re: Cannot get cups to work in systemd

Postby eikko » 24 Oct 2014 08:01

Hi at all,

the reinstall of:
sudo apt-get install --reinstall libpoppler46 cups-filters-core-drivers cups-filters
sudo systemctl restart cups
don't fix the Problem!
sudo systemctl status cups
cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled)
Active: failed (Result: start-limit) since Fr 2014-10-24 09:53:48 CEST; 3min 34s ago
Docs: man:cupsd(8)
man:cupsd.conf(5)
Process: 7149 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE)
Main PID: 7149 (code=exited, status=226/NAMESPACE)

Okt 24 09:53:48 ew3lx systemd[1]: Started CUPS Printing Service.
Okt 24 09:53:48 ew3lx systemd[7149]: Failed at step NAMESPACE spawning /usr/sbin/cupsd: Operation not permitted
Okt 24 09:53:48 ew3lx systemd[1]: cups.service: main process exited, code=exited, status=226/NAMESPACE
Okt 24 09:53:48 ew3lx systemd[1]: Unit cups.service entered failed state.
Okt 24 09:53:48 ew3lx systemd[1]: Starting CUPS Printing Service...
Okt 24 09:53:48 ew3lx systemd[1]: cups.service start request repeated too quickly, refusing to start.
Okt 24 09:53:48 ew3lx systemd[1]: Failed to start CUPS Printing Service.
the command:
file /tmp
results
file /tmp
/tmp: symbolic link to `/var/tmp'
Thanks eikko

kurotsugi
Posts: 2240
Joined: 09 Jan 2014 00:17

Re: Cannot get cups to work in systemd

Postby kurotsugi » 24 Oct 2014 08:41

Code: Select all

~$ sudo systemctl status cups
[sudo] password for user:
cups.service - CUPS Printing Service
   Loaded: loaded (/lib/systemd/system/cups.service; enabled)
   Active: inactive (dead) since Thu 2014-10-23 11:44:01 CDT; 7s ago
     Docs: man:cupsd(8)
           man:cupsd.conf(5)
  Process: 625 ExecStart=/usr/sbin/cupsd -f (code=exited, status=0/SUCCESS)
 Main PID: 625 (code=exited, status=0/SUCCESS)

Oct 23 11:42:56 amd-quad systemd[1]: Started CUPS Printing Service.
it actually means cups is [theorically should be] working. if cups die you'll got something like this.

Code: Select all

cups.service - CUPS Printing Service
Loaded: loaded (/lib/systemd/system/cups.service; enabled)
Active: failed (Result: start-limit) since Fr 2014-10-24 09:53:48 CEST; 3min 34s ago

#followed by lots of error message like this one 
Okt 24 09:53:48 ew3lx systemd[1]: Started CUPS Printing Service.
Okt 24 09:53:48 ew3lx systemd[7149]: Failed at step NAMESPACE spawning /usr/sbin/cupsd: Operation not permitted
Okt 24 09:53:48 ew3lx systemd[1]: cups.service: main process exited, code=exited, status=226/NAMESPACE
Okt 24 09:53:48 ew3lx systemd[1]: Unit cups.service entered failed state.
Okt 24 09:53:48 ew3lx systemd[1]: Starting CUPS Printing Service...
Okt 24 09:53:48 ew3lx systemd[1]: cups.service start request repeated too quickly, refusing to start.
Okt 24 09:53:48 ew3lx systemd[1]: Failed to start CUPS Printing Service.
anyway, if you also got this

Code: Select all

file /tmp
/tmp: symbolic link to `/var/tmp'
please run these command.

Code: Select all

sudo rm /tmp
sudo mv /var/tmp /tmp
sudo mkdir -m 1777 /var/tmp
I'm not quite sure whether if it will solve cups issue but the previous message basicly means something is wrong with your system.

User avatar
wildman
Posts: 246
Joined: 12 Feb 2014 23:31
Location: Kentucky, USA

Re: Cannot get cups to work in systemd

Postby wildman » 24 Oct 2014 21:57

kurotsugi wrote: it actually means cups is [theorically should be] working.
Well, I'm feeling a little silly. :oops: I had not installed my printer yet. After installing it, things are as they should be. Sorry about that.
Wildman
May the Source be with you.

eikko
Posts: 20
Joined: 23 Oct 2014 08:54

Re: Cannot get cups to work in systemd

Postby eikko » 29 Oct 2014 07:31

Is an Re-Install the only Solution for my Problem? :(

Thanks eikko

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: Cannot get cups to work in systemd

Postby zerozero » 29 Oct 2014 11:43

eikko
please read the last part of http://forums.solydxk.nl/viewtopic.php? ... 351#p46752 the post just 2 posts above yours.
bliss of ignorance


Return to “News & Anouncements”

Who is online

Users browsing this forum: No registered users and 2 guests