CUPS: Internal Server Error 500 (Kubuntu 10.04)

Problemy dotyczące innych systemów operacyjnych
pavbaranov
Senior Member
Posty: 2156
Rejestracja: 29 lipca 2007, 18:06

CUPS: Internal Server Error 500 (Kubuntu 10.04)

Post autor: pavbaranov »

Kurcze, chyba tu :)
Od jakiegoś czasu mam problem z CUPSem. Każda próba wejścia do Administracji panelu CUPS dostępnego pod localhost:631 kończy się wywaleniem: Internal Server Error 500 (tyle, nic więcej) lub po prostu wyświetleniem cyfry 500.
Ostatni błąd w /var/log/cups/error.log wygląda tak:

Kod: Zaznacz cały

PID 10320 (/usr/lib/cups/cgi-bin/admin.cgi) crashed on signal 6!
Szukając w necie znalazłem różne informacje nt. "signal 9", ale raczej nie "signal 6".
Obecnie w systemie mam 3 drukarki: Samsung ML-1510 (zainstalowała się sama), Brother DCP115 (instalowana wg opisu na stronie Brothera; niejednokrotnie w ten sam sposób, zawsze działała) oraz PDF (za który odpowiada cups-pdf).
CUPS w wersji 1.4.2, dystrybucyjny z *buntu 10.04, system - właśnie ten.
Oczywiście błąd uniemożliwia drukowanie czegokolwiek, jak również administrację nimi przez www a także w innych narzędziach do konfiguracji drukarek.
Oczywiście też, kiedyś drukarki działały bez problemów.
fnmirk
Senior Member
Posty: 8321
Rejestracja: 03 grudnia 2007, 06:37

Post autor: fnmirk »

Odświeżenie tematu.
pavbaranov
Senior Member
Posty: 2156
Rejestracja: 29 lipca 2007, 18:06

Post autor: pavbaranov »

To jeszcze naprowadzę. Istnieje pewne prawdopodobieństwo, że błąd nie leży w CUPS, a w apparmor, który nie dopuszcza CUPSa (w jego ostatniej wersji nastąpiły pewne zmiany, za którymi - jak się wydaje nie nadąża apparmor) do możliwości wpisywania w /dev/shn. Problem w tym, że zmiany, które są sugerowane dokonałem, a problem dalej pozostał.
EDIT:
OK. Zatem treść /var/log/cups/error.log

Kod: Zaznacz cały

E [07/Apr/2010:00:10:17 +0200] PID 8750 (/usr/lib/cups/cgi-bin/admin.cgi) crashed on signal 6!
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] P2POutputStream: write  error
E [07/Apr/2010:08:29:19 +0200] [Job 4] Job stopped due to filter errors; please consult the error_log file for details.
D [07/Apr/2010:08:29:19 +0200] [Job 4] The following messages were recorded from 08:29:18 to 08:29:19
D [07/Apr/2010:08:29:19 +0200] [Job 4] Adding start banner page "none".
D [07/Apr/2010:08:29:19 +0200] [Job 4] Adding end banner page "none".
D [07/Apr/2010:08:29:19 +0200] [Job 4] File of type application/postscript queued by "pawel".
D [07/Apr/2010:08:29:19 +0200] [Job 4] hold_until=0
D [07/Apr/2010:08:29:19 +0200] [Job 4] Queued on "MFC210C" by "pawel".
D [07/Apr/2010:08:29:19 +0200] [Job 4] job-sheets=none,none
D [07/Apr/2010:08:29:19 +0200] [Job 4] argv[0]="MFC210C"
D [07/Apr/2010:08:29:19 +0200] [Job 4] argv[1]="4"
D [07/Apr/2010:08:29:19 +0200] [Job 4] argv[2]="pawel"
D [07/Apr/2010:08:29:19 +0200] [Job 4] argv[3]=""/usr/lib/cups/cgi-bin/admin.cgi) crashed on signal 6!" - Szukaj w Google"
D [07/Apr/2010:08:29:19 +0200] [Job 4] argv[4]="1"
D [07/Apr/2010:08:29:19 +0200] [Job 4] argv[5]="Resolution=Normal0 BRColorEnhancement=OFF BRContrast=0 BRGreen=0 BRMonoColor=Color BRColorMatching=Natural PageSize=Letter BRMirror=OFF BRBlue=0 BRBiDir=ON number-up=1 BRHalfTonePattern=Diffusion BRRed=0 BRBrightness=0 BRDocument=Photo BRColorPaperThick=Regular job-uuid=urn:uuid:e39faef6-f782-3c55-6945-6f0e176ca97b job-originating-host-name=localhost"
D [07/Apr/2010:08:29:19 +0200] [Job 4] argv[6]="/var/spool/cups/d00004-001"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[8]="HOME=/var/spool/cups/tmp"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[10]="SERVER_ADMIN=root@asus-k70-laptop"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[11]="SOFTWARE=CUPS/1.4.2"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[13]="TZ=Europe/Warsaw"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[14]="USER=root"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[17]="IPP_PORT=631"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[18]="CHARSET=utf-8"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[19]="LANG=pl_PL.UTF-8"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[20]="PPD=/etc/cups/ppd/MFC210C.ppd"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[21]="RIP_MAX_CACHE=449396k"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[22]="CONTENT_TYPE=application/postscript"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[23]="DEVICE_URI=usb://Brother/DCP-115C"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[24]="PRINTER_INFO=MFC210C"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[25]="PRINTER_LOCATION="
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[26]="PRINTER=MFC210C"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[27]="CUPS_FILETYPE=document"
D [07/Apr/2010:08:29:19 +0200] [Job 4] envp[28]="FINAL_CONTENT_TYPE=printer/MFC210C"
D [07/Apr/2010:08:29:19 +0200] [Job 4] Started filter /usr/lib/cups/filter/pstopdf (PID 2981)
D [07/Apr/2010:08:29:19 +0200] [Job 4] Started filter /usr/lib/cups/filter/pdftopdf (PID 2982)
D [07/Apr/2010:08:29:19 +0200] [Job 4] Started filter /usr/lib/cups/filter/cpdftocps (PID 2983)
D [07/Apr/2010:08:29:19 +0200] [Job 4] Started filter /usr/lib/cups/filter/brlpdwrapperMFC210C (PID 2984)
D [07/Apr/2010:08:29:19 +0200] [Job 4] Started backend /usr/lib/cups/backend/usb (PID 2985)
D [07/Apr/2010:08:29:19 +0200] [Job 4] STATE: +connecting-to-device
D [07/Apr/2010:08:29:19 +0200] [Job 4] Printer using device file "/dev/usblp0"...
D [07/Apr/2010:08:29:19 +0200] [Job 4] STATE: -connecting-to-device
D [07/Apr/2010:08:29:19 +0200] [Job 4] backendRunLoop(print_fd=0, device_fd=5, snmp_fd=-1, addr=(nil), use_bc=0, side_cb=0x7f9086dbb670)
D [07/Apr/2010:08:29:19 +0200] [Job 4] pstopdf 6 args: 4 pawel "/usr/lib/cups/cgi-bin/admin.cgi) crashed on signal 6!" - Szukaj w Google 1 Resolution=Normal0 BRColorEnhancement=OFF BRContrast=0 BRGreen=0 BRMonoColor=Color BRColorMatching=Natural PageSize=Letter BRMirror=OFF BRBlue=0 BRBiDir=ON number-up=1 BRHalfTonePattern=Diffusion BRRed=0 BRBrightness=0 BRDocument=Photo BRColorPaperThick=Regular job-uuid=urn:uuid:e39faef6-f782-3c55-6945-6f0e176ca97b job-originating-host-name=localhost /var/spool/cups/d00004-001
D [07/Apr/2010:08:29:19 +0200] [Job 4] PPD: /etc/cups/ppd/MFC210C.ppd
D [07/Apr/2010:08:29:19 +0200] [Job 4] /usr/lib/cups/filter/cpdftocps: 31: cannot create /dev/null: Permission denied
D [07/Apr/2010:08:29:19 +0200] [Job 4] Resolution: 
D [07/Apr/2010:08:29:19 +0200] [Job 4] pdftops argv[5] = 4 pawel "/usr/lib/cups/cgi-bin/admin.cgi) crashed on signal 6!" - Szukaj w Google 1 Resolution=Normal0 BRColorEnhancement=OFF BRContrast=0 BRGreen=0 BRMonoColor=Color BRColorMatching=Natural PageSize=Letter BRMirror=OFF BRBlue=0 BRBiDir=ON number-up=1 BRHalfTonePattern=Diffusion BRRed=0 BRBrightness=0 BRDocument=Photo BRColorPaperThick=Regular job-uuid=urn:uuid:e39faef6-f782-3c55-6945-6f0e176ca97b job-originating-host-name=localhost
D [07/Apr/2010:08:29:19 +0200] [Job 4] PPD: /etc/cups/ppd/MFC210C.ppd
D [07/Apr/2010:08:29:19 +0200] [Job 4] /usr/bin/pdftops supports '-origpagesizes': no
D [07/Apr/2010:08:29:19 +0200] [Job 4] PostScript Level: 2
D [07/Apr/2010:08:29:19 +0200] [Job 4] Page size: Letter
D [07/Apr/2010:08:29:19 +0200] [Job 4] Duplex: no
D [07/Apr/2010:08:29:19 +0200] [Job 4] Resolution: 
D [07/Apr/2010:08:29:19 +0200] [Job 4] Page size: Letter
D [07/Apr/2010:08:29:19 +0200] [Job 4] Width: , height: , absolute margins: 0, 0, , 
D [07/Apr/2010:08:29:19 +0200] [Job 4] Relative margins: , , , 
D [07/Apr/2010:08:29:19 +0200] [Job 4] PPD options: 
D [07/Apr/2010:08:29:19 +0200] [Job 4] PostScript to be injected: 
D [07/Apr/2010:08:29:19 +0200] [Job 4] Running cat | /usr/bin/ps2pdf13 -dAutoRotatePages=/None -dAutoFilterColorImages=false                -dNOPLATFONTS -dPARANOIDSAFER -sstdout=%stderr -dColorImageFilter=/FlateEncode                 -dPDFSETTINGS=/printer -dDoNumCopies  - -
D [07/Apr/2010:08:29:19 +0200] [Job 4] Width: , height: , absolute margins: 0, 0, , 
D [07/Apr/2010:08:29:19 +0200] [Job 4] Relative margins: , , , 
D [07/Apr/2010:08:29:19 +0200] [Job 4] PPD options: -level2
D [07/Apr/2010:08:29:19 +0200] [Job 4] PostScript to be injected: 
D [07/Apr/2010:08:29:19 +0200] [Job 4] Can't open /dev/null: Permission denied
D [07/Apr/2010:08:29:19 +0200] [Job 4] GPL Ghostscript 8.71: Set UseCIEColor for UseDeviceIndependentColor to work properly.
D [07/Apr/2010:08:29:19 +0200] [Job 4] cat: błąd zapisu: Broken pipe
D [07/Apr/2010:08:29:19 +0200] [Job 4] Set job-printer-state-message to "P2POutputStream: write  error", current level=ERROR
D [07/Apr/2010:08:29:19 +0200] [Job 4] /dev/null: Permission denied.
D [07/Apr/2010:08:29:19 +0200] [Job 4] End of messages
D [07/Apr/2010:08:29:19 +0200] [Job 4] printer-state=3(idle)
D [07/Apr/2010:08:29:19 +0200] [Job 4] printer-state-message="P2POutputStream: write  error"
D [07/Apr/2010:08:29:19 +0200] [Job 4] printer-state-reasons=none
Z powyższego najistotniejsze wydają się być dwie informacje:

Kod: Zaznacz cały

printer-state-message="P2POutputStream: write  error"
oraz:

Kod: Zaznacz cały

(/usr/lib/cups/cgi-bin/admin.cgi) crashed on signal 6!
Jeśli chodzi o tę drugą informację - w zasadzie otrzymywane odpowiedzi są obojętne. W przypadku pierwszej, najistotniejszą wydaje się być ta, zawarta tutaj: https://bugs.launchpad.net/ubuntu/+sour ... bug/276573 a w szczególności w jej #13. Wynikałoby z niej, że problem leży w apparmorze. Cóż, zrobiłem to, co jest tam podane i różnica jest taka, że obecnie po puszczeniu czegokolwiek do druku, drukarka "odzywa się", tj. coś tam posapie, "rozgrzeje się" i tyle.
Po nakazaniu wydruku, CUPS przechodzi w stan (wydruk) "zatrzymany".
W systemie, jak wspomniałem CUPS 1.4.2, apparmor 2.5-0ubuntu3, foomatic-filters 4.0.4-0ubuntu1
ODPOWIEDZ