zha*_*tar 2 printing macos logging
我想打印文档时遇到打印机问题,打印机队列显示“后端失败”然后暂停。
我的电脑是mac os x,版本是sierra 10.12.6,打印机是Canon IR ADV4235,使用smb协议访问。我尝试了以下方法:
但仍然是同样的问题。
所以,我想找到具体的错误,我用关键字“backend”搜索了 /var/log 但没有相关结果。有人可以提供一些帮助吗?提前致谢。
更新:使用命令cupsctl --debug-logging?我收到了更多消息。以下错误消息似乎有帮助。
D [31/Jul/2017:13:47:44 +0800] [Job 25] PID 55276 (/usr/libexec/cups/backend/smb) crashed on signal 4.
...
D [31/Jul/2017:13:47:46 +0800] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [31/Jul/2017:13:47:46 +0800] [Job 25] PID 55275 (/Library/Printers/Canon/CUPS_Printer/Bins/capdftopdl) stopped with status 1.
I [31/Jul/2017:13:47:46 +0800] [Job 25] Backend returned status -4 (crashed)
D [31/Jul/2017:13:47:46 +0800] Discarding unused job-state-changed event...
I [31/Jul/2017:13:47:46 +0800] [Job 25] Printer stopped due to backend errors; please consult the error_log file for details.
但是,我试着跑了/usr/libexec/cups/backend/smb,没问题。不知道其他参数会不会导致崩溃。
有人可以给我一个提示吗?
您想要的日志文件是/var/log/cups/error_log,但默认情况下它不包含太多信息。您可以通过打开调试日志记录来大量增加日志记录cupsctl --debug-logging(并使用 关闭它cupsctl --no-debug-logging)。在macOS 10.12 中,这会立即生效,但在某些旧版本中,您需要使用sudo launchctl stop org.cups.cupsd.
| 归档时间: |
|
| 查看次数: |
5045 次 |
| 最近记录: |