はじめての自宅サーバ構築 - Fedora/CentOS -
Last Update 2018/05/30
[ 更新履歴 ] [ サイト マップ ] [ 質問掲示板 ] [ 雑談掲示板 ] [ リンク ]
トップ >> 当サイト情報 >> スレッド

????????????????????¨????°???¨??§????????°???????¨??????¬???????????°?????±??????????????§??????

このスレッドはクローズされています。記事の閲覧のみとなります。

 Cupsエラー
????????? 2007/07/10 14:50
????????? pepe

以前同じくCups関係で投稿させていただきましたが、
またCups関係でトラブルがありまして、壁にぶつかってしまったので、投稿させていただきます。

Os  CentOS 4.5
cups varsion 1.2.11
プリンター:Canon LBP3210

症状
1.https;//●●:631/ でアクセスできない。(http://●●:631ではアクセス可能)
2.エラーが出て印刷できない(Linux上でテスト印刷もクライアントからの印刷も不可)

補足
通常のhttps://●●/でのSSL通信はできますが、症状1はどう確認していけばよいか迷ってます。
2番目のエラーは、ログに出ていて、

/var/log/cups/error_log
I [10/Jul/2007:14:46:15 +0900] Listening to 192.168.1.100:631 (IPv4)
I [10/Jul/2007:14:46:15 +0900] Listening to /var/run/cups/cups.sock (Domain)
I [10/Jul/2007:14:46:15 +0900] Loaded configuration file "/etc/cups/cupsd.conf"
I [10/Jul/2007:14:46:15 +0900] Using default TempDir of /var/spool/cups/tmp...
I [10/Jul/2007:14:46:15 +0900] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [10/Jul/2007:14:46:15 +0900] Configured for up to 100 clients.
I [10/Jul/2007:14:46:15 +0900] Allowing up to 100 client connections per host.
I [10/Jul/2007:14:46:15 +0900] Using policy "default" as the default!
I [10/Jul/2007:14:46:15 +0900] Full reload is required.
I [10/Jul/2007:14:46:15 +0900] Saving job cache file "/var/cache/cups/job.cache"...
I [10/Jul/2007:14:46:15 +0900] Loaded MIME database from '/etc/cups': 34 types, 39 filters...
I [10/Jul/2007:14:46:15 +0900] Loading job cache file "/var/cache/cups/job.cache"...
I [10/Jul/2007:14:46:15 +0900] Full reload complete.
I [10/Jul/2007:14:46:15 +0900] Listening to 192.168.1.100:631 on fd 1...
I [10/Jul/2007:14:46:15 +0900] Listening to /var/run/cups/cups.sock on fd 3...
I [10/Jul/2007:14:46:20 +0900] commptr="?op=print-test-page"
I [10/Jul/2007:14:46:20 +0900] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=10575)
I [10/Jul/2007:14:46:20 +0900] Adding start banner page "none" to job 10.
I [10/Jul/2007:14:46:20 +0900] Adding end banner page "none" to job 10.
I [10/Jul/2007:14:46:20 +0900] Job 10 queued on "LBP3210" by "root".
I [10/Jul/2007:14:46:20 +0900] Started filter /usr/lib/cups/filter/pstops (PID 10576) for job 10.
I [10/Jul/2007:14:46:20 +0900] Started filter /usr/lib/cups/filter/pstocapt (PID 10577) for job 10.
I [10/Jul/2007:14:46:20 +0900] Started backend /usr/lib/cups/backend/ccp (PID 10578) for job 10.
I [10/Jul/2007:14:46:21 +0900] Job 10 was canceled by "root".
E [10/Jul/2007:14:46:21 +0900] PID 10578 (/usr/lib/cups/backend/ccp) stopped with status 1!
I [10/Jul/2007:14:46:21 +0900] Hint: Try setting the LogLevel to "debug" to find out more.
I [10/Jul/2007:14:46:22 +0900] commptr=""
I [10/Jul/2007:14:46:22 +0900] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=10583)


Hint: Try setting the LogLevel to "debug" to find out more.
ログレベルをdebugにしろとの事だったので、
confを以下に変えました。
が、膨大なログの量になり、どこ見ればいいか全然わからなくなってしまいました。
どのあたりを見ればいいか検討もつかないので、そこからご教授いただければ幸いです。
何卒宜しくお願いします。

cups.conf内容

LogLevel debug
SystemGroup sys root
Listen 192.168.1.100:631
Listen /var/run/cups/cups.sock

Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL

DefaultAuthType Basic

<Location />
 Order allow,deny
 Allow localhost
 Allow 192.168.1.0/24
</Location>

# Restrict access to the admin pages...
<Location /admin>
 Encryption Required
 Order allow,deny
 Allow localhost
 Allow 192.168.1.0/24
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
 AuthType Basic
 Require user @SYSTEM
 Order allow,deny
 Allow localhost
 Allow 192.168.1.0/24
</Location>

# Set the default printer/job policies...
<Policy default>
 # Job-related operations must be done by the owner or an adminstrator...
 <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
  Require user @OWNER @SYSTEM
  Order deny,allow
 </Limit>

 # All administration operations require an adminstrator to authenticate...
 <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
  AuthType Basic
  Require user @SYSTEM
  Order deny,allow
 </Limit>

 # Only the owner or an administrator can cancel or authenticate a job...
 <Limit Cancel-Job CUPS-Authenticate-Job>
  Require user @OWNER @SYSTEM
  Order deny,allow
 </Limit>

 <Limit All>
  Order deny,allow
 </Limit>
</Policy>

#
# End of "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $".
#
ServerCertificate /etc/httpd/conf/server.crt
ServerKey /etc/httpd/conf/server.key

■ コンテンツ関連情報

 Re: Cupsエラー ( No.1 )
????????? 2007/07/10 22:31
????????? CupsMaster

https;//●●:631/ ではアクセスできないのは当然。

それともタイプミス?

仮に https://●●:631/ だったとして、ServerCertificate /etc/httpd/conf/server.crtとServerKey /etc/httpd/conf/server.keyで作ったサーバ名はアクセス名と一致してるんでしょうか?

あと、印刷できない理由としてドライバ等(プリンタ選択)が完全一致してますかね?

 Re: Cupsエラー ( No.2 )
????????? 2007/07/11 12:47
????????? pepe

CupsMaster様

コメントありがとうございます。
>https;//●●:631/ ではアクセスできないのは当然。
すいません。これは説明不足でした。
ここには、サーバドメインかIPの192.168.1.100
を入れてアクセスを試みています。

また、ご指摘の
>仮に https://●●:631/ だったとして、ServerCertificate /etc/httpd/conf/server.crtとServerKey /etc/httpd/conf/server.keyで作ったサーバ名はアクセス名と一致してるんでしょうか?

これがちょっと不安だった為、もう一度キーを作成しなおしてたところ、
https://192.168.1.100:631/
はアクセスできるようになりました。
ありがとうございます。
しかし、テストプリントもクライアントWINDOWSからのプリントも以前と同じようなエラーがまだ出ています。
※LogLevel debug だと貼り付けきらないので、infoのタイプで貼り付けます。

テストページを印刷しようとした時のlog
I [11/Jul/2007:12:37:35 +0900] commptr="?op=print-test-page"
I [11/Jul/2007:12:37:35 +0900] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=21155)
I [11/Jul/2007:12:37:35 +0900] Adding start banner page "none" to job 16.
I [11/Jul/2007:12:37:35 +0900] Adding end banner page "none" to job 16.
I [11/Jul/2007:12:37:35 +0900] Job 16 queued on "LBP3210" by "root".
I [11/Jul/2007:12:37:35 +0900] Started filter /usr/lib/cups/filter/pstops (PID 21156) for job 16.
I [11/Jul/2007:12:37:35 +0900] Started filter /usr/lib/cups/filter/pstocapt (PID 21157) for job 16.
I [11/Jul/2007:12:37:35 +0900] Started backend /usr/lib/cups/backend/ccp (PID 21158) for job 16.
I [11/Jul/2007:12:37:37 +0900] commptr=""
I [11/Jul/2007:12:37:37 +0900] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=21226)
I [11/Jul/2007:12:37:47 +0900] commptr=""
I [11/Jul/2007:12:37:47 +0900] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=21514)
I [11/Jul/2007:12:37:57 +0900] commptr=""
I [11/Jul/2007:12:37:57 +0900] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=21860)

クライアントWINDOWSから印刷しようとした時のlog
I [11/Jul/2007:12:38:08 +0900] commptr=""
I [11/Jul/2007:12:38:08 +0900] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=22130)
I [11/Jul/2007:12:38:18 +0900] commptr=""
I [11/Jul/2007:12:38:18 +0900] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=22478)
I [11/Jul/2007:12:38:28 +0900] commptr=""
I [11/Jul/2007:12:38:28 +0900] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=22772)
I [11/Jul/2007:12:38:38 +0900] commptr=""
I [11/Jul/2007:12:38:38 +0900] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=23094)
I [11/Jul/2007:12:38:48 +0900] commptr=""
I [11/Jul/2007:12:38:48 +0900] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=23384)
I [11/Jul/2007:12:38:58 +0900] commptr=""
I [11/Jul/2007:12:38:58 +0900] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=23687)
I [11/Jul/2007:12:39:01 +0900] commptr="?op=cancel-job&job_id=16&job_printer_uri=/printers/LBP3210"
I [11/Jul/2007:12:39:01 +0900] Started "/usr/lib/cups/cgi-bin/jobs.cgi" (pid=23730)
I [11/Jul/2007:12:39:01 +0900] Job 16 was canceled by "root".
E [11/Jul/2007:12:39:01 +0900] PID 21158 (/usr/lib/cups/backend/ccp) stopped with status 1!
I [11/Jul/2007:12:39:01 +0900] Hint: Try setting the LogLevel to "debug" to find out more.
I [11/Jul/2007:12:39:17 +0900] Adding start banner page "none" to job 17.
I [11/Jul/2007:12:39:17 +0900] Adding end banner page "none" to job 17.
I [11/Jul/2007:12:39:17 +0900] Job 17 queued on "LBP3210" by "Pay".
I [11/Jul/2007:12:39:17 +0900] Started backend /usr/lib/cups/backend/ccp (PID 24232) for job 17.

この
PID 21158 (/usr/lib/cups/backend/ccp) stopped with status 1!
というのがちょっと引っかかります。

一歩前進しましたが、申し訳ありませんが、どなたかご教授宜しくお願いいたします。
 Re: Cupsエラー ( No.3 )
????????? 2007/07/11 18:20
????????? CupsMaster

>https;//●●:631/ ではアクセスできないのは当然。
>すいません。これは説明不足でした

指摘したのは●●ではなくって、”;”のところです。
いづれにしても、解決できてよかったですね。

system-config-printerの新規プリンタの追加で、該当のプリンタを選択し直して見てはどうでしょう。
まれに(50%の確立??)、ブラウザから設定したプリンタでは動かない事が多々あります。

これでも駄目なら、メーカサイトに行ってみてLinux用ドライバがあるかどうかを探してみるのも手です。
同メーカ海外サイトも忘れずに見てみてください。日本サイトになくって海外サイトにある場合もありますので。
 Re: Cupsエラー ( No.4 )
????????? 2007/07/11 20:03
????????? pepe

CupsMaster様

ご指摘ありがとうございます。

すいません。いろいろ初歩的なことを伺います。
system-config-printerの新規プリンタ追加とは、
プリントスプーラとccpdデーモンにプリンタを追加するというのと一緒の意味でしょうか?
/usr/sbin/lpadmin -p LBP3210 -m CNCUPSLBP3210CAPTJ.ppd -v ccp:/var/ccpd/fifo0 -E
/usr/sbin/ccpdadmin -p LBP3210 -o /dev/usb/lp0
上記のコマンドでは、/var/log/cups/error_logのエラー内容は変わりませんでした。

今になって気づきましたが、
/var/log/message
にエラーログがありました。

Jul 11 19:56:52 centos last message repeated 23855 times
Jul 11 19:56:52 centos init: open(/dev/pts/0): No such file or directory
Jul 11 19:56:52 centos kernel: drivers/usb/class/usblp.c: usblp0: error -32 reading printer status
Jul 11 19:56:52 centos last message repeated 11 times
Jul 11 19:56:52 centos init: open(/dev/pts/0): No such file or directory
Jul 11 19:56:52 centos kernel: drivers/usb/class/usblp.c: usblp0: error -32 reading printer status
Jul 11 19:56:52 centos last message repeated 11 times
Jul 11 19:56:52 centos init: open(/dev/pts/0): No such file or directory
Jul 11 19:56:52 centos kernel: drivers/usb/class/usblp.c: usblp0: error -32 reading printer status
Jul 11 19:56:52 centos last message repeated 11 times
Jul 11 19:56:52 centos init: open(/dev/pts/0): No such file or directory
Jul 11 19:56:52 centos kernel: drivers/usb/class/usblp.c: usblp0: error -32 reading printer status
Jul 11 19:56:52 centos last message repeated 11 times
Jul 11 19:56:52 centos init: open(/dev/pts/0): No such file or directory
Jul 11 19:56:52 centos kernel: drivers/usb/class/usblp.c: usblp0: error -32 reading printer status
Jul 11 19:56:53 centos last message repeated 11 times
Jul 11 19:56:53 centos init: open(/dev/pts/0): No such file or directory
Jul 11 19:56:53 centos kernel: drivers/usb/class/usblp.c: usblp0: error -32 reading printer status
Jul 11 19:56:53 centos last message repeated 11 times
Jul 11 19:56:53 centos init: open(/dev/pts/0): No such file or directory
Jul 11 19:56:53 centos kernel: drivers/usb/class/usblp.c: usblp0: error -32 reading printer status
Jul 11 19:56:53 centos last message repeated 11 times
Jul 11 19:56:53 centos init: open(/dev/pts/0): No such file or directory
Jul 11 19:56:53 centos kernel: drivers/usb/class/usblp.c: usblp0: error -32 reading printer status
Jul 11 19:56:53 centos last message repeated 22 times
Jul 11 19:56:53 centos init: open(/dev/pts/0): No such file or directory
Jul 11 19:56:53 centos kernel: drivers/usb/class/usblp.c: usblp0: error -32 reading printer status
Jul 11 19:56:53 centos last message repeated 11 times
Jul 11 19:56:54 centos init: open(/dev/pts/0): No such file or directory
Jul 11 19:56:54 centos kernel: drivers/usb/class/usblp.c: usblp0: error -32 reading printer status
Jul 11 19:56:54 centos last message repeated 11 times
Jul 11 19:56:54 centos init: Id "x" respawning too fast: disabled for 5 minutes
Jul 11 19:56:54 centos kernel: drivers/usb/class/usblp.c: usblp0: error -32 reading printer status



>これでも駄目なら、メーカサイトに行ってみてLinux用ドライバがあるかどうかを探してみるのも手です。
>同メーカ海外サイトも忘れずに見てみてください。日本サイトになくって海外サイトにある場合もありますので。


CanonLBP3210はLinuxのプリンタドライバがメーカーに公開されており、
Linuxのドライバを使った印刷と、本サイトのwindowsのドライバを使用して印刷する
という2パターンを試していますが、いづれもうまくいってません。

すいません。Linux用のドライバがあって、ドライバインストールしているというのを先にお伝えするべきでした。

結果的には、windowsクライアントから印刷できるようになればいいため、
Linuxのドライバを使用しても、しないで、winのドライバで印刷してもかまいません。

宜しくお願いいたします。
 Re: Cupsエラー ( No.5 )
????????? 2007/07/11 21:32
????????? まさ

割り込み失礼致します。

こんなのがありましたけど、当然ご覧になられていますよね?
ただサポートにCentOS4.5はなかったんですけど・・・
余計なお世話だったらすみません・・・・・

http://cweb.canon.jp/drv-upd/lasershot/linux/captlinux.html
 Re: Cupsエラー ( No.6 )
????????? 2007/07/11 23:47
????????? pepe

まさ様

コメントありがとうございます。

ちょっと文章がわかりづらかったかも知れません。

canonのLinuxドライバを使用して印刷するパターンと
本サイトのLinuxドライバを使用しないで印刷するパターン
の2パターンを試してみています。

が、いづれの場合もうまくいっていません。

どちらのパターンでも印刷できるようになれば、OKなんですが。。。

宜しくお願いいたします。
 Re: Cupsエラー ( No.7 )
????????? 2007/07/12 20:22
????????? nipe

こんにちわ。

X-WINDOW内のプリンタの追加で行ってみてはどうでしょうか?
 Re: Cupsエラー ( No.8 )
????????? 2007/07/17 21:13
????????? pepe

nipe様

コメントありがとうございます。

>X-WINDOW内のプリンタの追加で行ってみてはどうでしょうか?
認識自体はされているようです。

ちょっと時間あいてしましましたが、いろいろおこなってみました。
結果、ちょっと状況が変わりました。
結局当初の構成では打開できませんでした。
そこで、CentOS4.5にソースインストールでUPDATEしたCupsに問題があるのかな?
と考え、※結果的にはわかりませんが。

再度CentOS5をインストールし、
デフォルトのCups1.2を使用。
canonの純正プリントドライバーとプリンターデーモンをインストール
http://cweb.canon.jp/drv-upd/lasershot/linux/captlinux.html
をしました。

その結果、
https://サーバアドレス:631内でのテストプリント
Linuxサーバ内でのローカルプリント
は行えるようになりました。
が、相変わらず、クライアントPCwindowsからのプリントはできておりません。
※認識はされます。cupsLogにも書き込みあります。

/var/log/cups/error_logの内容
I [17/Jul/2007:21:01:05 +0900] Adding start banner page "none" to job 17.
I [17/Jul/2007:21:01:05 +0900] Adding end banner page "none" to job 17.
I [17/Jul/2007:21:01:05 +0900] Job 17 queued on "LBP3210" by "Pay".
I [17/Jul/2007:21:01:05 +0900] Started backend /usr/lib/cups/backend/ccp (PID 18661) for job 17.

windows上のプリントステータスは
プリンタがサポートしていないポートに接続されています。
ポートを確認してください。
と間髪あけずに表示されます。

関係しそうな設定箇所の
/etc/cups/mime.type
/etc/cups/mime.convs
は本サイトの通り
application/octet-stream
application/octet-stream    application/vnd.cups-raw    0    -
共にコメントアウトを取ってあります。

だんだん状況はよくなってきてはいますが、
ここからの確認方法などご教授いただければと思います。

宜しくお願いいたします。


 Re: Cupsエラー ( No.9 )
????????? 2007/07/23 21:56
????????? pepe

nipe様、まさ様
せっかく助言いただきましたが、
その後もいろいろ試してみましたが、
状況は一進一退で、今回はあきらめることにいたしました。

参考までに、
最後怪しかったのが、クライアントとの通信がうまくできていないようなログがsambaで有りました。
※しかしファイルサーバは問題ありません。
そのログと、cupsのクライアントからの印刷時の動作を
いろいろネットで調べてみた結果、
サーバ側から、クライアントへの接続?ができていないのでは?
のような記事もありました。

以下参考記事
http://bbs.fedora.jp/read.php?FID=8&TID=4055
http://ml.orca.med.or.jp/orca-users/thrd10.html#09661
http://lists.debian.or.jp/debian-users/200508/msg00209.html

また機会がきたら、再チャレンジしたいと思います。

ありがとうございました。

■ その他

ページ先頭へ


Copyright(©)2004-2018 First home server construction. All Right Reserved.