Projet

Général

Profil

Tâche #37244

Scénario #37106: Traitement express MEN fermés 31/12/2025

eole-cups en erreur sur 2.9.0

Ajouté par Emmanuel GARETTE il y a 4 mois. Mis à jour il y a 2 mois.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
02/12/2025
Echéance:
% réalisé:

100%

Temps estimé:
0.00 h
Restant à faire (heures):
0.0

Description

Depuis la dernière mise à jour :

cups-common:amd64 (2.4.1op1-1ubuntu4.12, 2.4.1op1-1ubuntu4.15)

Cups ne redémarre plus :

Missing value for Printcap on line 68 of /etc/cups/cups-files.conf.

Effectivement j'ai bien une ligne avec seulement "Printcap" mais le fichier n'a pourtant pas bougé depuis 2015 ...

Révisions associées

Révision 823d8f99 (diff)
Ajouté par Klaas TJEBBES il y a 3 mois

eole-cups en erreur (Printcap) REF #37244

Historique

#1 Mis à jour par Klaas TJEBBES il y a 4 mois

Pour test, on a mis en commentaire la ligne et testé sur un scribe 2.7 et 2.10 + Seth 2.10:

# Printcap

Le service démarre bien et il ne semble pas y avoir d'effet de bord

Le fichier exemple '/usr/share/cups/cups-files.conf.default' ne comporte pas cette ligne toute seule

En attendant, on a patché /var/lib/creole/cups-files.conf

# Format of the Printcap file...
#PrintcapFormat bsd
#PrintcapFormat plist
#PrintcapFormat solaris
#
%if %%cups_printcap == 'oui'
Printcap /var/run/cups/printcap
%else
##### Printcap #####
%end if

Thierry

#2 Mis à jour par Klaas TJEBBES il y a 3 mois

  • Sur 2.7.2 le problème NE se pose PAS, le service cups redémarre normalement :
    root@scribe:~# cat /etc/eole/release 
    EOLE_MODULE=scribe
    EOLE_VERSION=2.7
    EOLE_RELEASE=2.7.2
    
    root@scribe:~# grep ^printcap /etc/cups/ -ri
    /etc/cups/cups-files.conf:Printcap
    
    root@scribe:~# service cups restart
    
    root@scribe:~# service cups status
    ● cups.service - CUPS Scheduler
       Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
       Active: active (running) since Wed 2025-12-10 15:07:19 CET; 12s ago
         Docs: man:cupsd(8)
     Main PID: 13468 (cupsd)
        Tasks: 1 (limit: 4915)
       CGroup: /system.slice/cups.service
               └─13468 /usr/sbin/cupsd -l
    
    déc. 10 15:07:19 scribe systemd[1]: Started CUPS Scheduler.
    déc. 10 15:07:19 scribe cupsd[13468]: CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    déc. 10 15:07:19 scribe cupsd[13468]: CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    déc. 10 15:07:19 scribe cupsd[13468]: CreateDevice failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    déc. 10 15:07:20 scribe cupsd[13468]: REQUEST localhost - - "POST / HTTP/1.1" 200 349 Create-Printer-Subscriptions successful-ok
    déc. 10 15:07:20 scribe cupsd[13468]: REQUEST localhost - - "POST / HTTP/1.1" 200 176 Create-Printer-Subscriptions successful-ok
    
  • Sur 2.8.1 le problème NE se pose PAS, le service cups redémarre normalement :
    root@scribe:~# cat /etc/eole/release 
    EOLE_MODULE=scribe
    EOLE_VERSION=2.8
    EOLE_RELEASE=2.8.1
    
    root@scribe:~# grep -ri ^printcap /etc/cups/
    /etc/cups/cups-files.conf:Printcap
    
    root@scribe:~# service cups restart
    
    root@scribe:~# service cups status
    ● cups.service - CUPS Scheduler
         Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
         Active: active (running) since Wed 2025-12-10 15:37:37 CET; 3s ago
    TriggeredBy: ● cups.path
                 ● cups.socket
           Docs: man:cupsd(8)
       Main PID: 17741 (cupsd)
          Tasks: 1 (limit: 7033)
         Memory: 1.9M
         CGroup: /system.slice/cups.service
                 └─17741 /usr/sbin/cupsd -l
    
    déc. 10 15:37:37 scribe systemd[1]: Started CUPS Scheduler.
    déc. 10 15:37:37 scribe cupsd[17741]: CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    déc. 10 15:37:37 scribe cupsd[17741]: CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    déc. 10 15:37:37 scribe cupsd[17741]: CreateDevice failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    déc. 10 15:37:37 scribe cupsd[17741]: REQUEST localhost - - "POST / HTTP/1.1" 200 349 Create-Printer-Subscriptions successful-ok
    déc. 10 15:37:37 scribe cupsd[17741]: REQUEST localhost - - "POST / HTTP/1.1" 200 176 Create-Printer-Subscriptions successful-ok
    
  • Sur 2.9.0 le problème existe.
    root@scribe:~# cat /etc/eole/release 
    EOLE_MODULE=scribe
    EOLE_VERSION=2.9
    EOLE_RELEASE=2.9.0
    
    root@scribe:~# grep ^printcap /etc/cups/ -ri
    /etc/cups/cups-files.conf:Printcap
    
    root@scribe:~# service cups restart
    Job for cups.service failed because the control process exited with error code.
    See "systemctl status cups.service" and "journalctl -xeu cups.service" for details.
    
    root@scribe:~# service cups status
    ○ cups.service - CUPS Scheduler
         Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
         Active: inactive (dead) (Result: exit-code) since Wed 2025-12-10 15:22:21 CET; 3s ago
    TriggeredBy: × cups.socket
                 × cups.path
           Docs: man:cupsd(8)
        Process: 4738 ExecStart=/usr/sbin/cupsd -l (code=exited, status=1/FAILURE)
       Main PID: 4738 (code=exited, status=1/FAILURE)
            CPU: 11ms
    
    déc. 10 15:22:21 scribe systemd[1]: cups.service: Scheduled restart job, restart counter is at 10.
    déc. 10 15:22:21 scribe systemd[1]: Stopped CUPS Scheduler.
    déc. 10 15:22:21 scribe systemd[1]: Dependency failed for CUPS Scheduler.
    déc. 10 15:22:21 scribe systemd[1]: cups.service: Job cups.service/start failed with result 'dependency'.
    
    

    Si on commente la ligne "Printcap" le service cups démarre normalement.
    root@scribe:~# grep ^printcap /etc/cups/ -ri
    
    root@scribe:~# service cups restart
    
    root@scribe:~# service cups status
    ● cups.service - CUPS Scheduler
         Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
         Active: active (running) since Wed 2025-12-10 15:24:01 CET; 2s ago
    TriggeredBy: ● cups.socket
                 × cups.path
           Docs: man:cupsd(8)
       Main PID: 4948 (cupsd)
         Status: "Scheduler is running..." 
          Tasks: 1 (limit: 6955)
         Memory: 1.9M
            CPU: 13ms
         CGroup: /system.slice/cups.service
                 └─4948 /usr/sbin/cupsd -l
    
    déc. 10 15:24:01 scribe systemd[1]: Starting CUPS Scheduler...
    déc. 10 15:24:01 scribe systemd[1]: Started CUPS Scheduler.
    
    
  • Sur 2.10.0 le problème existe :
    root@scribe:~# cat /etc/eole/release 
    EOLE_MODULE=scribe
    EOLE_VERSION=2.10
    EOLE_RELEASE=2.10.0
    
    root@scribe:~# grep -ri ^printcap /etc/cups/
    /etc/cups/cups-files.conf:Printcap
    
    root@scribe:~# service cups restart
    Job for cups.service failed because the control process exited with error code.
    See "systemctl status cups.service" and "journalctl -xeu cups.service" for details.
    
    root@scribe:~# service cups status
    ○ cups.service - CUPS Scheduler
         Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled; preset: enabled)
         Active: inactive (dead) (Result: exit-code) since Wed 2025-12-10 15:56:08 CET; 1s ago
    TriggeredBy: × cups.socket
                 × cups.path
           Docs: man:cupsd(8)
        Process: 4777 ExecStart=/usr/sbin/cupsd -l (code=exited, status=1/FAILURE)
       Main PID: 4777 (code=exited, status=1/FAILURE)
            CPU: 10ms
    
    déc. 10 15:56:08 scribe systemd[1]: cups.service: Scheduled restart job, restart counter is at 10.
    déc. 10 15:56:08 scribe systemd[1]: Stopped cups.service - CUPS Scheduler.
    déc. 10 15:56:08 scribe systemd[1]: Dependency failed for cups.service - CUPS Scheduler.
    déc. 10 15:56:08 scribe systemd[1]: cups.service: Job cups.service/start failed with result 'dependency'.
    

    Si on commente la ligne "Printcap" le service cups démarre normalement.
    root@scribe:~# grep -ri ^printcap /etc/cups/
    
    root@scribe:~# service cups restart
    
    root@scribe:~# service cups status
    ● cups.service - CUPS Scheduler
         Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled; preset: enabled)
         Active: active (running) since Wed 2025-12-10 15:56:43 CET; 2s ago
    TriggeredBy: ● cups.socket
                 × cups.path
           Docs: man:cupsd(8)
       Main PID: 4848 (cupsd)
         Status: "Scheduler is running..." 
          Tasks: 1 (limit: 7002)
         Memory: 2.7M (peak: 2.8M)
            CPU: 20ms
         CGroup: /system.slice/cups.service
                 └─4848 /usr/sbin/cupsd -l
    
    déc. 10 15:56:43 scribe systemd[1]: Starting cups.service - CUPS Scheduler...
    déc. 10 15:56:43 scribe cupsd[4848]: Printer drivers are deprecated and will stop working in a future version of CUPS. See https://github.com/OpenPrinting/cups/issues/103
    déc. 10 15:56:43 scribe cupsd[4848]: CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    déc. 10 15:56:43 scribe cupsd[4848]: CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    déc. 10 15:56:43 scribe cupsd[4848]: CreateDevice failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
    déc. 10 15:56:43 scribe systemd[1]: Started cups.service - CUPS Scheduler.
    

#3 Mis à jour par Joël Cuissinat il y a 3 mois

  • Tracker changé de Demande à Tâche
  • Statut changé de Nouveau à À valider
  • Assigné à mis à Klaas TJEBBES
  • % réalisé changé de 0 à 100
  • Tâche parente mis à #34668

#4 Mis à jour par Joël Cuissinat il y a 3 mois

Sans doute à l'origine des erreurs logrotate dans les tests :
error: error running shared postrotate script for '/var/log/cups/*log '

#5 Mis à jour par Joël Cuissinat il y a 2 mois

  • Statut changé de À valider à Fermé
  • Restant à faire (heures) mis à 0.0
eole-cups$ git branch -r --contains 823d8f99 
  origin/2.9.0/master
  origin/HEAD -> origin/master
  origin/dist/eole/2.10.0/master
  origin/dist/eole/2.9.0/master
  origin/master

#6 Mis à jour par Joël Cuissinat il y a 2 mois

  • Temps estimé mis à 0.00 h
  • Tâche parente changé de #34668 à #37106

Formats disponibles : Atom PDF