[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:44346] can't print with CUPS



ç”°æ‘ã§ã™ã€‚

sid 環境ã«ã¦ CUPS 経由ã§ã®å°åˆ·ãŒã§ããªããªã‚Šã¾ã—ãŸã€‚
自力解決を試ã¿ã¾ã—ãŸãŒæ–­å¿µã—ã€ãŠå°‹ã­ã™ã‚‹æ¬¡ç¬¬ã§ã™ã€‚

1. 環境
・sid を使用
・gs-esp & gs-common 㯠hold 中。他ã¯æœ€æ–°ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã€‚
・プリンタã¯ãƒ–ラザー製 MFC-3820JNã€ãƒ«ãƒ¼ã‚¿çµŒç”±ã§ãƒãƒƒãƒˆãƒ¯ãƒ¼ã‚¯æŽ¥ç¶šã€‚
・åŒç¤¾æ供㮠LPR 用ドライãƒãŠã‚ˆã³ CUPS 用ドライãƒã‚’使用。
・åŒã˜ãルータ経由ã§ãƒãƒƒãƒˆãƒ¯ãƒ¼ã‚¯æŽ¥ç¶šã—ã¦ã„ã‚‹ Win2K マシンã‹ã‚‰ã¯
  å•é¡Œãªãå°åˆ·ã§ãる。よã£ã¦ãƒ—リンタã®æ•…éšœã§ã¯ãªã„ã¨æ€ã‚れる。

2. 状æ³
・最後ã«å°åˆ·ã—ãŸã®ã¯å…ˆæœˆä¸­æ—¬ã€‚ãã®éš›ã¯å•é¡Œãªã—。
・ãã®å¾Œã€é–¢é€£ãŒã‚ã‚‹ã¨æ€ã‚れるパッケージã¨ã—ã¦ã¯ cupsys ãŒ
  1.1.23-11 ã«ã‚¢ãƒƒãƒ—グレードã•ã‚Œã¦ã„る。
・先日ã€ä¹…々ã«å°åˆ·ã—よã†ã¨ã—ã¦ä¸å¯èƒ½ãªã®ã«æ°—ã¥ã„ãŸã€‚
・症状ã¯ã€ãƒ—リンタãŒä¸€åˆ‡å¿œç­”ã—ãªã„。
・ブラウザã«ã¦ CUPS ã®è¨­å®šç”»é¢ã‚’é–‹ãã€ãƒ—リンタã¨å¯¾è©± (ジョブ
  å–消ãªã©) ã™ã‚‹ã“ã¨ã¯å¯èƒ½ã€‚

3. ログファイル
/var/log/cups/error_log ã®å‡ºåŠ›ã‚’以下ã«ç¤ºã—ã¾ã™ã€‚
/etc/cups/cupsd.conf ã«ã¦ "LogLevel debug" ã¨æŒ‡å®šã—ã¦ã‚ã‚Šã¾ã™ã€‚

D [05/Aug/2005:03:35:30 +0900] StartJob(27, 0x8093618)
D [05/Aug/2005:03:35:30 +0900] StartJob() id = 27, file = 0/1
D [05/Aug/2005:03:35:30 +0900] job-sheets=none,none
D [05/Aug/2005:03:35:30 +0900] banner_page = 0
D [05/Aug/2005:03:35:30 +0900] StartJob: argv = "MFC3820JN","27","root","Test Page","1","","/var/spool/cups/d00027-001"
D [05/Aug/2005:03:35:30 +0900] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
D [05/Aug/2005:03:35:30 +0900] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [05/Aug/2005:03:35:30 +0900] StartJob: envp[2]="USER=root"
D [05/Aug/2005:03:35:30 +0900] StartJob: envp[3]="CHARSET=utf-8"
D [05/Aug/2005:03:35:30 +0900] StartJob: envp[4]="LANG=ja"
D [05/Aug/2005:03:35:30 +0900] StartJob: envp[5]="TZ=Asia/Tokyo"
D [05/Aug/2005:03:35:30 +0900] StartJob: envp[6]="PPD=/etc/cups/ppd/MFC3820JN.ppd"
D [05/Aug/2005:03:35:30 +0900] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups"
D [05/Aug/2005:03:35:30 +0900] StartJob: envp[8]="RIP_MAX_CACHE=8m"
D [05/Aug/2005:03:35:30 +0900] StartJob: envp[9]="TMPDIR=/var/spool/cups/tmp"
D [05/Aug/2005:03:35:30 +0900] StartJob: envp[10]="CONTENT_TYPE=application/postscript"
D [05/Aug/2005:03:35:30 +0900] StartJob: envp[11]="DEVICE_URI=lpd://192.168.1.11/queue"
D [05/Aug/2005:03:35:30 +0900] StartJob: envp[12]="PRINTER=MFC3820JN"
D [05/Aug/2005:03:35:30 +0900] StartJob: envp[13]="CUPS_DATADIR=/usr/share/cups"
D [05/Aug/2005:03:35:30 +0900] StartJob: envp[14]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [05/Aug/2005:03:35:30 +0900] StartJob: envp[15]="CUPS_SERVER=localhost"
D [05/Aug/2005:03:35:30 +0900] StartJob: envp[16]="IPP_PORT=631"
D [05/Aug/2005:03:35:30 +0900] StartJob: statusfds = [ 9 10 ]
D [05/Aug/2005:03:35:30 +0900] StartJob: filterfds[1] = [ 11 -1 ]
D [05/Aug/2005:03:35:30 +0900] StartJob: filter = "/usr/lib/cups/filter/pstops"
D [05/Aug/2005:03:35:30 +0900] StartJob: filterfds[0] = [ 12 13 ]
D [05/Aug/2005:03:35:30 +0900] start_process("/usr/lib/cups/filter/pstops", 0xbf8de710, 0xbf8ddc88, 11, 13, 10)
I [05/Aug/2005:03:35:30 +0900] Started filter /usr/lib/cups/filter/pstops (PID 5753) for job 27.
D [05/Aug/2005:03:35:30 +0900] StartJob: filter = "/usr/lib/cups/filter/brlpdwrapperMFC3820JN"
D [05/Aug/2005:03:35:30 +0900] StartJob: filterfds[1] = [ 11 14 ]
D [05/Aug/2005:03:35:30 +0900] start_process("/usr/lib/cups/filter/brlpdwrapperMFC3820JN", 0xbf8de710, 0xbf8ddc88, 12, 14, 10)
I [05/Aug/2005:03:35:30 +0900] Started filter /usr/lib/cups/filter/brlpdwrapperMFC3820JN (PID 5754) for job 27.
D [05/Aug/2005:03:35:30 +0900] StartJob: backend = "/usr/lib/cups/backend/lpd"
D [05/Aug/2005:03:35:30 +0900] StartJob: filterfds[0] = [ -1 12 ]
D [05/Aug/2005:03:35:30 +0900] start_process("/usr/lib/cups/backend/lpd", 0xbf8de710, 0xbf8ddc88, 11, 12, 10)
I [05/Aug/2005:03:35:30 +0900] Started backend /usr/lib/cups/backend/lpd (PID 5757) for job 27.
D [05/Aug/2005:03:35:30 +0900] ProcessIPPRequest: 7 status_code=0
D [05/Aug/2005:03:35:30 +0900] [Job 27] Page = 595x842; 9,9 to 586,833
D [05/Aug/2005:03:35:30 +0900] [Job 27] slowcollate=0, slowduplex=0, sloworder=0
D [05/Aug/2005:03:35:30 +0900] [Job 27] 0 %%BoundingBox: 0 0 612 792
D [05/Aug/2005:03:35:30 +0900] [Job 27] 0 %%Pages: 1
D [05/Aug/2005:03:35:30 +0900] [Job 27] 0 %%LanguageLevel: 1
D [05/Aug/2005:03:35:30 +0900] [Job 27] 0 %%DocumentData: Clean7Bit
D [05/Aug/2005:03:35:30 +0900] [Job 27] 0 %%DocumentSuppliedResources: procset testprint/1.1
D [05/Aug/2005:03:35:30 +0900] [Job 27] 0 %%DocumentNeededResources: font Helvetica Helvetica-Bold Times-Roman
D [05/Aug/2005:03:35:30 +0900] [Job 27] 0 %%Creator: Michael Sweet, Easy Software Products
D [05/Aug/2005:03:35:30 +0900] [Job 27] 0 %%CreationDate: May 11, 1999
D [05/Aug/2005:03:35:30 +0900] [Job 27] 0 %%Title: Test Page
D [05/Aug/2005:03:35:30 +0900] [Job 27] 0 %%EndComments
D [05/Aug/2005:03:35:30 +0900] [Job 27] 0 %%BeginProlog
D [05/Aug/2005:03:35:30 +0900] [Job 27] 0 %%BeginResource procset testprint 1.1 0
D [05/Aug/2005:03:35:30 +0900] [Job 27] 0 %%EndResource
D [05/Aug/2005:03:35:30 +0900] [Job 27] 0 %%EndProlog
D [05/Aug/2005:03:35:30 +0900] [Job 27] 0 %%Page: 1 1
D [05/Aug/2005:03:35:30 +0900] [Job 27] 0 %%Page: 1 1
D [05/Aug/2005:03:35:30 +0900] [Job 27] pw = 577.0, pl = 824.0
D [05/Aug/2005:03:35:30 +0900] [Job 27] PageLeft = 9.0, PageRight = 586.0
D [05/Aug/2005:03:35:30 +0900] [Job 27] PageTop = 833.0, PageBottom = 9.0
D [05/Aug/2005:03:35:30 +0900] [Job 27] PageWidth = 595.0, PageLength = 842.0
D [05/Aug/2005:03:35:30 +0900] [Job 27] 0 %%EOF
D [05/Aug/2005:03:35:30 +0900] [Job 27] Saw EOF!
D [05/Aug/2005:03:35:30 +0900] CloseClient: 7
D [05/Aug/2005:03:35:30 +0900] ReadClient: 5 GET /favicon.ico HTTP/1.1
D [05/Aug/2005:03:35:30 +0900] SendError: 5 code=404 (Not Found)
D [05/Aug/2005:03:35:30 +0900] CloseClient: 5
D [05/Aug/2005:03:35:34 +0900] AcceptClient: 5 from localhost:631.
D [05/Aug/2005:03:35:34 +0900] ReadClient: 5 GET /printers/MFC3820JN HTTP/1.1
D [05/Aug/2005:03:35:34 +0900] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID = 6571
I [05/Aug/2005:03:35:34 +0900] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=6571)
D [05/Aug/2005:03:35:34 +0900] SendCommand: 5 file=8
D [05/Aug/2005:03:35:34 +0900] AcceptClient: 7 from localhost:631.
D [05/Aug/2005:03:35:34 +0900] ReadClient: 7 POST / HTTP/1.1
D [05/Aug/2005:03:35:34 +0900] ProcessIPPRequest: 7 status_code=1
D [05/Aug/2005:03:35:34 +0900] ReadClient: 7 POST / HTTP/1.1
D [05/Aug/2005:03:35:34 +0900] ProcessIPPRequest: 7 status_code=1
D [05/Aug/2005:03:35:34 +0900] ReadClient: 7 POST / HTTP/1.1
D [05/Aug/2005:03:35:34 +0900] ProcessIPPRequest: 7 status_code=1
D [05/Aug/2005:03:35:34 +0900] CloseClient: 7
D [05/Aug/2005:03:35:34 +0900] ReadClient: 5 GET /favicon.ico HTTP/1.1
D [05/Aug/2005:03:35:34 +0900] SendError: 5 code=404 (Not Found)
D [05/Aug/2005:03:35:34 +0900] CloseClient: 5
D [05/Aug/2005:03:35:38 +0900] [Job 27] Connected on ports 515 (local 1023)...
D [05/Aug/2005:03:35:38 +0900] [Job 27] lpd_command 02 queue
D [05/Aug/2005:03:35:38 +0900] [Job 27] Sending command string (7 bytes)...
D [05/Aug/2005:03:35:38 +0900] [Job 27] Reading command status...
W [05/Aug/2005:03:40:38 +0900] [Job 27] Remote host did not respond with command status byte after 300 seconds!
D [05/Aug/2005:03:40:38 +0900] [Job 27] lpd_command returning 4
E [05/Aug/2005:03:40:38 +0900] PID 5757 stopped with status 1!
D [05/Aug/2005:03:40:38 +0900] UpdateJob: job 27, file 0 is complete.
D [05/Aug/2005:03:40:38 +0900] StopJob: id = 27, force = 0
I [05/Aug/2005:03:40:38 +0900] Saving printers.conf...
D [05/Aug/2005:03:40:38 +0900] StopJob: printer state is 5

4. ログを見ã¦æ°—ã¥ã„ãŸç‚¹
・ãƒãƒƒã‚¯ã‚¨ãƒ³ãƒ‰ã¨ã—㦠/usr/lib/cups/backend/lpd (PID 5757) ãŒå‘¼ã³
  出ã•ã‚Œã¦ã„る。
・リモートホスト (プリンタ) ãŒå¿œç­”ã—ãªã„ã¨ã„ã†è­¦å‘ŠãŒã‚る。
・ãã®å¾Œã€lpd_command ãŒã‚¹ãƒ†ãƒ¼ã‚¿ã‚¹  4 ã‚’è¿”ã™ã€‚
・最終的ã«ã€ãƒãƒƒã‚¯ã‚¨ãƒ³ãƒ‰ã¯ã‚¹ãƒ†ãƒ¼ã‚¿ã‚¹ 1 ã‚’è¿”ã—ã¦åœæ­¢ã—ã¦ã—ã¾ã†ã€‚
・途中ã®ãƒ•ã‚£ãƒ«ã‚¿å‡¦ç†ãªã©ã«å•é¡ŒãŒã‚るよã†ã«ã¯è¦‹ãˆãªã„。
・"SendError: 5 code=404 (Not Found)" ã¨ã„ã†è¡¨ç¤ºãŒè¦‹ã‚‰ã‚Œã‚‹ã®ãŒã€
  æ°—ã«ãªã‚‹ã€‚

以上ã§ã™ã€‚皆様ã®ã‚¢ãƒ‰ãƒã‚¤ã‚¹ã‚’頂戴ã—ãŸãã€å®œã—ããŠé¡˜ã„致ã—ã¾ã™ã€‚

--
ç”°æ‘ ä¸€å¹³ <ippei1@xxxxxxxxxxxx>