Cups returning ipp client error bad request

Ошибка во время операции CUPS: "client-error-bad-request"

Здравствуйте. Debian 9, xfce. Принтер Canon i-sensys mf-3010. Установил драйвер от производителя. При попытки печатать с локальной машины документ отправляется на печать и пропадает из очереди. При попытке распечатать пробную страницу, выдает ошибку  — «Ошибка во время операции CUPS: «client-error-bad-request»». На дебиан 8 тоже при отправке документа он пропадал из очереди но все же через раз печатал. Подскажите пожалуйста как решить проблему?


Есть ли возможность показать логи (/var/log/cups/)?

Debian GNU/Linux Stretch, kernel 4.9.0-5-amd64,
LXQt/KDE/OpenBox AMD Phenon X4 / 16Gb RAM / ATI HD7750 Silent
_______________________________
Debian GNU/Linux Stretch, kernel 4.9.0-5-amd64, LXQt/KDE/OpenBox
Acer Aspire One 722 AMD C60 / 4Gb RAM / ATI HD6290


Цитата: ihammers от 28 июня 2017, 05:47:38
Есть ли возможность показать логи (/var/log/cups/)?

Да конечно. А какой именно? Тут их несколько.
Вот error_log.1:

Открыть содержимое (спойлер)

E [26/Jun/2017:09:50:01 +0300] [cups-deviced] PID 12622 (gutenprint52+usb) stopped with status 1!
E [26/Jun/2017:09:53:47 +0300] Scheduler shutting down due to program error.
E [26/Jun/2017:09:54:03 +0300] [Client 3] Returning IPP client-error-bad-request for Print-Job (ipp://localhost/printers/MF3010) from localhost
E [26/Jun/2017:09:58:04 +0300] [cups-deviced] PID 832 (gutenprint52+usb) stopped with status 1!
E [26/Jun/2017:10:07:46 +0300] [Client 178] Returning IPP client-error-bad-request for Print-Job (ipp://localhost/printers/MF3010) from localhost

[свернуть]

Вот access_log:

Открыть содержимое (спойлер)

localhost — — [28/Jun/2017:00:07:02 +0300] «POST / HTTP/1.1» 200 349 Create-Printer-Subscriptions successful-ok
localhost — — [28/Jun/2017:00:07:02 +0300] «POST / HTTP/1.1» 200 176 Create-Printer-Subscriptions successful-ok

[свернуть]

Вот access_log.1:

Открыть содержимое (спойлер)

localhost — — [27/Jun/2017:00:06:11 +0300] «POST / HTTP/1.1» 200 349 Create-Printer-Subscriptions successful-ok
localhost — — [27/Jun/2017:00:06:11 +0300] «POST / HTTP/1.1» 200 176 Create-Printer-Subscriptions successful-ok
localhost — — [27/Jun/2017:15:47:01 +0300] «POST / HTTP/1.1» 200 349 Create-Printer-Subscriptions successful-ok
localhost — — [27/Jun/2017:15:47:01 +0300] «POST / HTTP/1.1» 200 176 Create-Printer-Subscriptions successful-ok
localhost — — [28/Jun/2017:00:07:02 +0300] «POST / HTTP/1.1» 401 123 Cancel-Subscription successful-ok
localhost — root [28/Jun/2017:00:07:02 +0300] «POST / HTTP/1.1» 200 123 Cancel-Subscription successful-ok
localhost — — [28/Jun/2017:00:07:02 +0300] «POST / HTTP/1.1» 200 152 Cancel-Subscription successful-ok

[свернуть]

Есть ещё error_log.1 и page_log но они пустые.


Есть предположение, что это происходит из-за выбранного протокола соединения принтера и вашего компьютера. Попробуйте изменить ipp, на socket или что-нибудь другое.

Debian GNU/Linux Stretch, kernel 4.9.0-5-amd64,
LXQt/KDE/OpenBox AMD Phenon X4 / 16Gb RAM / ATI HD7750 Silent
_______________________________
Debian GNU/Linux Stretch, kernel 4.9.0-5-amd64, LXQt/KDE/OpenBox
Acer Aspire One 722 AMD C60 / 4Gb RAM / ATI HD6290


Цитата: ihammers от 28 июня 2017, 07:56:20
Есть предположение, что это происходит из-за выбранного протокола соединения принтера и вашего компьютера. Попробуйте изменить ipp, на socket или что-нибудь другое.

Как ему сменить протокол? Он по usb подключен к компьютеру.


obana, логи видать старые (26/Jun/2017), нужны свежие логи. После обновления проблемы? http://localhost:631/admin нужно отметить пункт «Сохранять отладочную информацию в журнале» с дальнейшим сохранением. Удалите/пересините старые лог-фалы, пробуйте печатать и новые логи посмотрим. Убедитесь что printer-driver-gutenprint установлен. Заодно можно глянуть свежий /var/cache/cups/job.cache если имеется.


Цитата: mrgoodvin от 28 июня 2017, 12:24:16
obana, логи видать старые (26/Jun/2017), нужны свежие логи. После обновления проблемы? http://localhost:631/admin нужно отметить пункт «Сохранять отладочную информацию в журнале» с дальнейшим сохранением. Удалите/пересините старые лог-фалы, пробуйте печатать и новые логи посмотрим. Убедитесь что printer-driver-gutenprint установлен. Заодно можно глянуть свежий /var/cache/cups/job.cache если имеется.

Спасибо за подсказки. printer-driver-gutenprint установлен. Установил флаг — «Сохранять отладочную информацию в журнале».  Удалил старые логи. Попробовал распечатать, новые логи не создаются. Содержимое файла job.cache:

Открыть содержимое (спойлер)

# Job cache file for CUPS v2.2.1
# Written by cupsd
NextJobId 9
<Job 1>
State 9
Created 1498459901
Completed 1498459910
Priority 50
Username obana
Name migration-notification.pdf
Destination MF3010
DestType 0
KOctets 141
NumFiles 0
</Job>
<Job 2>
State 9
Created 1498459931
Completed 1498459940
Priority 50
Username obana
Name migration-notification.pdf
Destination MF3010
DestType 0
KOctets 141
NumFiles 0
</Job>
<Job 3>
State 9
Created 1498460171
Completed 1498460180
Priority 50
Username obana
Name migration-notification.pdf
Destination MF3010
DestType 0
KOctets 141
NumFiles 0
</Job>
<Job 4>
State 9
Created 1498460392
Completed 1498460401
Priority 50
Username obana
Name migration-notification.pdf
Destination MF3010
DestType 0
KOctets 141
NumFiles 0
</Job>
<Job 5>
State 9
Created 1498460797
Completed 1498460806
Priority 50
Username obana
Name migration-notification.pdf
Destination MF3010
DestType 0
KOctets 141
NumFiles 0
</Job>
<Job 6>
State 9
Created 1498460854
Completed 1498460862
Priority 50
Username obana
Name Test Page
Destination MF3010
DestType 0
KOctets 1
NumFiles 0
</Job>
<Job 7>
State 9
Created 0
Completed 1498644334
Priority 50
Username obana
Destination MF3010
DestType 0
KOctets 1
NumFiles 0
</Job>
<Job 8>
State 9
Created 0
Completed 1498644521
Priority 50
Username obana
Destination MF3010
DestType 0
KOctets 16
NumFiles 0
</Job>

[свернуть]


Попробовать распечатать что-то в pdf-файл. Будут ли при этом создаваться логи?
Не совсем понятно при двух последних записях job.cache:

<Job 7>
State 9
Created 0
Completed 1498644334
Priority 50
Username obana
Destination MF3010
DestType 0
KOctets 1
NumFiles 0
</Job>
<Job 8>
State 9
Created 0
Completed 1498644521
Priority 50
Username obana
Destination MF3010
DestType 0
KOctets 16
NumFiles 0
</Job>

название документа удалено из лога специально?
Проверить установку пакетов foomatic-db-gutenprint, ghostscript и gsfonts, ijsgutenprint и при отсутствии до установить.
Почитать это https://wiki.archlinux.org/index.php/CUPS_(Русский), может что-то от туда поможет. В частности заменить LogLevel warn на LogLevel debug в /etc/cups/cupsd.conf, посмотреть может логи будут создаваться. Поэкспериментировать с разделом «Проблемы в результате обновления» (хоть там о версии ниже, но может помочь).


Debian GNU/Linux Stretch, kernel 4.9.0-5-amd64,
LXQt/KDE/OpenBox AMD Phenon X4 / 16Gb RAM / ATI HD7750 Silent
_______________________________
Debian GNU/Linux Stretch, kernel 4.9.0-5-amd64, LXQt/KDE/OpenBox
Acer Aspire One 722 AMD C60 / 4Gb RAM / ATI HD6290


Всем спасибо. Откатил систему на 8.8 этой пользоваться пока невозможно.


I have two printers, a Dell V715w and a HP LaserJet P2015, connected by USB to a computer running Ubuntu for sharing to all of the laptops in my house with CUPS. I installed both printers locally on the Ubuntu computer, configured CUPS, started it, and tested printing locally, with no problems.

I connected to the HP printer on all of the laptops fine, and tested printing from all of them, also with no problems.

I’ve tried connecting to the Dell printer on two of the four laptops, running Vista, unsuccessfully. It errors with:

Windows cannot connect to the printer. Make sure that you have typed the name correctly, and the printer is connected to the network.

The Dell printer has wireless networking built in, but I would prefer to use USB. I’m mostly sure that I’ve installed it correctly, because it does print, just not over the network. The «server» computer and one of the laptops I’ve tried it on are directly connected to my wireless router through Ethernet. Is there anything that could be causing it to go wrong?

cups error log, as requested:

E [13/Jun/2011:16:23:06 -0400] Unable to remove temporary file "/var/spool/cups/tmp/.hplip" - Is a directory
E [13/Jun/2011:16:33:22 -0400] Unable to remove temporary file "/var/spool/cups/tmp/.hplip" - Is a directory
E [13/Jun/2011:16:46:31 -0400] [cups-driverd] Bad driver information file "/usr/share/cups/drv/sample.drv"!
E [13/Jun/2011:17:01:42 -0400] [cups-driverd] Bad driver information file "/usr/share/cups/drv/sample.drv"!
W [13/Jun/2011:17:25:41 -0400] Duplicate listen address "0.0.0.0" ignored!
W [13/Jun/2011:17:25:41 -0400] Duplicate listen address "::" ignored!
E [13/Jun/2011:17:25:42 -0400] Unable to remove temporary file "/var/spool/cups/tmp/.hplip" - Is a directory
E [13/Jun/2011:17:25:42 -0400] Unable to bind socket for address 0.0.0.0:631 - Address already in use.
E [13/Jun/2011:17:25:42 -0400] Unable to bind socket for address :::631 - Address already in use.
E [13/Jun/2011:17:25:42 -0400] Unable to bind broadcast socket - Address already in use.
W [13/Jun/2011:17:26:28 -0400] Duplicate listen address "0.0.0.0" ignored!
W [13/Jun/2011:17:26:28 -0400] Duplicate listen address "::" ignored!
E [13/Jun/2011:17:26:28 -0400] Unable to remove temporary file "/var/spool/cups/tmp/.hplip" - Is a directory
E [13/Jun/2011:17:26:28 -0400] Unable to bind socket for address 0.0.0.0:631 - Address already in use.
E [13/Jun/2011:17:26:28 -0400] Unable to bind socket for address :::631 - Address already in use.
E [13/Jun/2011:17:26:28 -0400] Unable to bind broadcast socket - Address already in use.
E [13/Jun/2011:17:27:22 -0400] Missing printer-uri, job-uri, or ppd-name attribute!
E [13/Jun/2011:17:27:22 -0400] Returning IPP client-error-bad-request for windows-ext (no URI) from 192.168.1.2
E [13/Jun/2011:17:30:20 -0400] Missing printer-uri, job-uri, or ppd-name attribute!
E [13/Jun/2011:17:30:20 -0400] Returning IPP client-error-bad-request for windows-ext (no URI) from 192.168.1.6
E [13/Jun/2011:17:33:39 -0400] Missing printer-uri, job-uri, or ppd-name attribute!
E [13/Jun/2011:17:33:39 -0400] Returning IPP client-error-bad-request for windows-ext (no URI) from 192.168.1.3
E [13/Jun/2011:17:37:16 -0400] Missing printer-uri, job-uri, or ppd-name attribute!
E [13/Jun/2011:17:37:16 -0400] Returning IPP client-error-bad-request for windows-ext (no URI) from 192.168.1.5
E [13/Jun/2011:18:01:11 -0400] [cups-driverd] Bad driver information file "/usr/share/cups/drv/sample.drv"!
E [13/Jun/2011:18:02:08 -0400] [cups-driverd] Bad driver information file "/usr/share/cups/drv/sample.drv"!
E [13/Jun/2011:18:03:25 -0400] [cups-driverd] Bad driver information file "/usr/share/cups/drv/sample.drv"!
E [13/Jun/2011:18:57:20 -0400] [Job 3] 
E [13/Jun/2011:18:57:25 -0400] [Job 3] 
W [13/Jun/2011:18:58:45 -0400] Duplicate listen address "0.0.0.0" ignored!
W [13/Jun/2011:18:58:45 -0400] Duplicate listen address "::" ignored!
E [13/Jun/2011:18:58:45 -0400] Unable to remove temporary file "/var/spool/cups/tmp/.hplip" - Is a directory
E [13/Jun/2011:18:58:45 -0400] Unable to bind socket for address 0.0.0.0:631 - Address already in use.
E [13/Jun/2011:18:58:45 -0400] Unable to bind socket for address :::631 - Address already in use.
E [13/Jun/2011:18:58:45 -0400] Unable to bind broadcast socket - Address already in use.
E [13/Jun/2011:19:01:54 -0400] [cups-driverd] Bad driver information file "/usr/share/cups/drv/sample.drv"!
E [13/Jun/2011:19:06:25 -0400] Missing printer-uri, job-uri, or ppd-name attribute!
E [13/Jun/2011:19:06:25 -0400] Returning IPP client-error-bad-request for windows-ext (no URI) from 192.168.1.2

cupsd.conf, also as requested:

LogLevel warn
MaxLogSize 0
SystemGroup lpadmin
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
Listen 631
# Share local printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseRemoteProtocols
BrowseAllow all
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS dnssd
DefaultAuthType Basic
<Location />
  # Allow shared printing...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin>
  # Restrict access to the admin pages...
  Order allow,deny
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  # Restrict access to the configuration files...
  Order allow,deny
</Location>
<Policy default>
  <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 CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer 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-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
<Policy authenticated>
  <Limit Create-Job Print-Job Print-URI>
  AuthType Default
  Order deny,allow
</Limit>
  <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 CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  AuthType Default
  Require user @SYSTEM
  Order deny,allow
    </Limit>
  <Limit Pause-Printer Resume-Printer 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-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
      </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
      AuthType Default
      Require user @OWNER @SYSTEM
      Order deny,allow
        </Limit>
  <Limit All>
        Order deny,allow
          </Limit>
</Policy>

  • Печать

Страницы: [1]   Вниз

Тема: CUPS error логи  (Прочитано 2401 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
gamayun

Есть два старых принтера(Deskjet-F300-series,Samsung-ML-1210)подключенных к стационарному компу с ubuntu 14.04.
Работают нормально.К ноутбуку с xubuntu 16.04 подключены как сетевые.Печать с ноута через сеть проходит нормально из всех
приложений,единственное вылетает сообщение об ошибке принтера и cups тиражирует error-логи.
Можно конечно забить на это,так как печатает,но всё же:
Чё ему не так?
Лог приложен.


Оффлайн
Пользователь

Попробовал перевести сообщение об ошибке.

E [05/Jul/2016:10:44:17 -0400] [Client 5] Returning IPP client-error-bad-request for CUPS-Add-Modify-Printer (ipp://localhost:631/printers/Deskjet-F300-series) from localhost

Ошибка [05/Июль/2016:10:44:17 -0400] [Клиент 5] Возврат IPP:  ошибка клиента, плохой запрос для CUPS (ipp://localhost:631/printers/Deskjet-F300-series), с локального хоста (то есть компьютера к которому принтер подключен напрямую, не по сети).

Поискал информацию в интернете, пишут разные идеи.
Например высказали, что System-config-printer может не соответствовать версии CUPS, что то делает не так.
А как известно, родной интерфейс CUPS — это веб интерфейс.
Можно попробовать удалить/добавить принтер через веб интерфейс.

Возможно адрес принтера не нравится, например localhost заменить на IP адрес.

« Последнее редактирование: 07 Июля 2016, 17:15:51 от Пользователь »


Оффлайн
gamayun

Ну,да,поэкспериментирую.Так то ничего,логи только лепит кучей,удалять надоело.


Пользователь добавил сообщение 08 Июля 2016, 10:33:46:


Пользователь, спасибо что напомнил про веб интерфейс.Выяснил,что после установки 16.04 в апреле я уже добавлял эти принтеры как сетевые,но они не заработали из-за неправильных настроек samba.Потом я настройки исправил,принтеры по новой добавил,все заработало,первые из «настройки-принтеры»убрал,а вчера открыл localhost:631,а они там есть.Убрал.Все,error-логи больше не штампует,печать идет как обычно. ;)

« Последнее редактирование: 08 Июля 2016, 10:33:46 от gamayun »

Не бери в голову


  • Печать

Страницы: [1]   Вверх

Skip to navigation
Skip to main content

Red Hat Customer Portal

Infrastructure and Management

  • Red Hat Enterprise Linux

  • Red Hat Virtualization

  • Red Hat Identity Management

  • Red Hat Directory Server

  • Red Hat Certificate System

  • Red Hat Satellite

  • Red Hat Subscription Management

  • Red Hat Update Infrastructure

  • Red Hat Insights

  • Red Hat Ansible Automation Platform

Cloud Computing

  • Red Hat OpenShift

  • Red Hat CloudForms

  • Red Hat OpenStack Platform

  • Red Hat OpenShift Container Platform

  • Red Hat OpenShift Data Science

  • Red Hat OpenShift Online

  • Red Hat OpenShift Dedicated

  • Red Hat Advanced Cluster Security for Kubernetes

  • Red Hat Advanced Cluster Management for Kubernetes

  • Red Hat Quay

  • OpenShift Dev Spaces

  • Red Hat OpenShift Service on AWS

Storage

  • Red Hat Gluster Storage

  • Red Hat Hyperconverged Infrastructure

  • Red Hat Ceph Storage

  • Red Hat OpenShift Data Foundation

Runtimes

  • Red Hat Runtimes

  • Red Hat JBoss Enterprise Application Platform

  • Red Hat Data Grid

  • Red Hat JBoss Web Server

  • Red Hat Single Sign On

  • Red Hat support for Spring Boot

  • Red Hat build of Node.js

  • Red Hat build of Thorntail

  • Red Hat build of Eclipse Vert.x

  • Red Hat build of OpenJDK

  • Red Hat build of Quarkus

Integration and Automation

  • Red Hat Process Automation

  • Red Hat Process Automation Manager

  • Red Hat Decision Manager

All Products

Issue

  • Printing works fine using CUPS in RHEL 6. but below messages keeps showing up in /var/log/cups/error_log:

    E [11/Feb/2016:14:08:34 -0500] Returning IPP client-error-bad-request for Send-Document (ipp://localhost:631/printers/prt123) from localhost
    I [11/Feb/2016:14:08:34 -0500] [Job 65584] Canceled by "root".
    E [11/Feb/2016:14:08:34 -0500] Returning IPP client-error-bad-request for Send-Document (ipp://localhost:631/printers/PRT234) from localhost
    I [11/Feb/2016:14:08:34 -0500] [Job 65585] Canceled by "root".
    
  • In RHEL 7, some jobs are not printing and we see the following messages in the error_log:

    E [02/Feb/2019:12:23:52 -0500] Returning IPP client-error-bad-request for Send-Document (ipp://localhost:631/printers/prab2) from localhost
    E [02/Feb/2019:12:37:34 -0500] Returning IPP client-error-bad-request for Send-Document (ipp://localhost:631/printers/ltrpt08) from localhost
    

Environment

  • Red Hat Enterprise Linux (RHEL) 6 & 7
  • Common Unix Printing System (CUPS) 1.4.2 & 1.6.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

  • Remove From My Forums
  • Question

  • I am having an odd issue.

    I have an IPP printer on my network (Debian running CUPS), and I normally just install it by installing the driver and then pasting the URL in the add printer wizard.

    For whatever the reason, I cannot connect to the print on my netbook. When I paste the URL in to the wizard, and hit next, Windows almost immediately comes up with a error that reads «Windows cannot connect to the printer.», and under details it says «Operation failed with error 0x00000214.».

    Anybody have any idea what that means? This setup works flawlessly on my Win7 X64 desktop.

    EDIT: I have checked the connectivity between the netbook and the printer server. The netbook can access the print server fine.

Answers

  • Hi Chris,

    Sorry for the inaccurate format. Please just enter http://<print server name>:631/printers/HP_Deskjet_D2500_series_USB_1  (the address of the printer) as the port name and then continue.

    I suspect that this is a driver issue. The drivers for 32bit and 64bit are different.

    Additionally, I found that the driver can also be downloaded from HP website. Please see:

    HP Imaging and Printing Software and Driver Information for Windows® 7

    The driver can be downloaded from:

    HP Customer Care>HP Deskjet D2530 Printer 

    Important Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.

    After installing the driver you may follow the steps in my previous post to add the IPP printer.

    During the installation, if it prompts that whether you would like to install a local printer or a network shard printer, you can directly select the correct option and finish the installation. The printer address should be the address you mentioned above.


    Arthur Xie — MSFT

    • Marked as answer by

      Wednesday, November 4, 2009 9:59 AM

cups error when printing from windows 7

I installed my brother printer (connected to my Ubuntu 10.04 LTS desktop) on a new HP/Windows 7 Home Premium laptop. Installed it as a network printer with the same configuration as I’ve used on Windows XP and Windows 2000 machines. It was «successfully installed», but can’t print a test page.

Immediately after trying to print I found this message in my cups access_log:

<the laptop’s lan address> — — [22/Mar/2012:12:58:27 -0400] «POST /printers/HL-5150D-series HTTP/1.1» 200 75 windows-ext client-error-bad-request

and I found these messages in my cups error_log:

E [22/Mar/2012:12:58:27 -0400] Missing printer-uri, job-uri, or ppd-name attribute!
E [22/Mar/2012:12:58:27 -0400] Returning IPP client-error-bad-request for windows-ext (no URI) from <the laptop’s lan address>

I have checked that printer name a dozen times — as far as I can see it is exactly correct, same hyphenation, same uppercase/lowercase characters, no spaces, and so on.

What can be causing these errors?

Here is the corresponding message in the access_log after printing from another laptop (running Windows XP):
<WinXP laptop lan address> — — [22/Mar/2012:14:39:54 -0400] «POST /printers/HL-5150D-series HTTP/1.1» 200 177847 Print-Job successful-ok

I also tried to print from the Win2K machine and couldn’t — somehow the properties page for that one was messed up and it had no port at all checked for this printer. That produced cups messages EXACTLY THE SAME (except for the lan address) as the error messages produced when printing from Windows 7:
<Win2K lan address> — — [22/Mar/2012:14:52:27 -0400] «POST /printers/HL-5150D-series HTTP/1.1» 200 75 windows-ext client-error-bad-request
E [22/Mar/2012:14:52:27 -0400] Missing printer-uri, job-uri, or ppd-name attribute!
E [22/Mar/2012:14:52:27 -0400] Returning IPP client-error-bad-request for windows-ext (no URI) from <Win2K lan address>

But I reinstalled the printer in the Win2K machine and now it too can print normally and the access log now shows:
<Win2K lan address> — — [22/Mar/2012:14:53:35 -0400] «POST /printers/HL-5150D-series HTTP/1.1» 200 158521 Print-Job successful-ok

Last edited by r.stiltskin; March 22nd, 2012 at 08:05 PM.

Reason: addl information for comparison


Re: cups error when printing from windows 7

well on w7, a printer connected to other computer is not understood as network printer but it is local printer.

Try to install it as local printer and then enter the path to it and it should work.


Re: cups error when printing from windows 7

Is this a Windows 7 question? Or a Linux CUPS question?

If it’s strictly a problem with Win7, you should post the problem to a Win7 forum: sevenforums.com.

Ubuntu 20.04, Mint 19.10; MS Win10 Pro.
Will not respond to PM requests for support — use the forums.


Re: cups error when printing from windows 7

To be honest, Mark, I’m not sure. For a while, when I saw what seem to be ambiguous or contradictory cups error messages I thought it might be a cups problem. Now I think, probably not.

But here are two explicitly cups questions:

Can you suggest a way to capture the exact, full contents of the requests that are being received by cups, to aid in diagnosis?

Also, referring to the «Missing printer-uri, job-uri, or ppd-name attribute!» messages, do you know of any resource that would be helpful in deciphering exactly what cups is complaining about?

and @ottosykora: it doesn’t work when designated as a local printer either.

Last edited by r.stiltskin; March 22nd, 2012 at 09:52 PM.


Re: cups error when printing from windows 7

http://www.owlfish.com/thoughts/wini…003-07-20.html

this **** look SO complicated. I wish I had configured this once before, because I don’t want to experiment with all this now for the first time. Do me a favor and pm me. I want to get on xchat and try some troubleshooting configuring windows 7 to use a cups printer. But did the admins say you installed the printer as a host based printer and not a network based printer? Amazing, that won’t work. Also I can’t parallel the method I would explain for you to use, especially since windows 7 doesn’t have supported drivers for my printer in any way shape or form, but it’d be nice because if we both used the same method, it’d be easy to come back to this thread and post a fix to solve the problem. Pm me if you wish maybe we can work something out. Btw have you looked at this page?

https://help.ubuntu.com/8.04/serverguide/C/cups.html

now if you want to set up the printer on windows 7 as a network based printer I believe you simply need to install printer drivers that are network based printer drivers from the printer manufacturers web site, then I’m not sure how to configure it with a network i.p. address, assign a port in the router, ping the port, etc. Windows obviously doesn’t use cups it uses another spooler service

Last edited by imachavel; March 22nd, 2012 at 10:03 PM.


Re: cups error when printing from windows 7

I think I can say at this point that it’s not a cups problem at all, but a Windows 7 problem. The error messages that I described earlier occur while the Win 7 printer installation wizard is running. I tried doing some wireshark captures, but as far as I can see, after «installation», when I try to print from the Win7 machine it doesn’t generate any network activity at all.


Re: cups error when printing from windows 7


Re: cups error when printing from windows 7

Thanks sammiev, but there’s nothing new there. I’ve already been configuring the port in Win7 as <server lan address>:631/printers/HL-5150D-series, exactly the same as the ones in my WinXP and Win2K machines (which work). But Windows 7 just isn’t communicating with that port.

I can enter that address in a browser on the Windows 7 machine and that opens up the Brother printer in the browser, but of course that does me no good in terms of printing.

This is a pre-installed HP version of Windows 7, so HP must have done something odd in some obscure corner of Windows settings that’s mucking things up.


Re: cups error when printing from windows 7

Apologies to anyone who objects to discussing a «Windows problem» here, but I feel that enough of us want to make our printers available to Windows clients to consider this a Linux problem too.

There are a number of threads about this problem on various forums which contain a lot of misinformation. In most of them, people are explaining how to install the CUPS printer as a network printer using procedures that worked for older versions of Windows but don’t work for Windows 7 (at least not my Windows 7). In some, people talk about installing the printer in Windows 7 as a local, not a network, printer; that one works for standalone network printers but not printers managed by CUPS attached to a Linux server. And a couple of them talk about adding a «PreferredConnection» entry in the Windows registry under HKEY_CURRENT_USERPrintersSettings. These solutions may have worked for some people (I’m not convinced) but they don’t work for the version of Windows 7 that HP preinstalled in my laptop. HP, or MS, seem to have completely disabled IPP in this version of Windows.

The solution I ended up with (which in retrospect should have been obvious) was to create a Samba share of the printer: Samba makes the printer available to Windows, Samba sends the print job to CUPS, voila! All I needed were a few minor changes to /etc/samba/smb.conf. It already had

Code:

  printing = cups
  printcap = cups

in the [global] section, so CUPS support was already there.
I didn’t want to share all printers this way, so I set (also in [global])
And then I added this to create the share for the laser printer, making it available to anyone who can access my lan (HL-5150D-series is just the name of the printer as I installed it in CUPS)

Code:

[HL-5150D-series]
   browseable = yes
   path = /var/spool/samba
   printable = yes
   guest ok = yes
   use client driver = yes
   create mask = 0700


Re: cups error when printing from windows 7

did you use this driver on the windows 7 side?
select a Manufacturer of «Generic» and the Printer «MS Publisher Imagesetter»

it should work.

you have to open port 631 on windows 7 also
it’s a bit complicated as Iremember

Last edited by davidvandoren; March 23rd, 2012 at 06:50 PM.


Hi bluesdog,

this weekend I gave it another go but still I didn’t get far.
First I removed the packages I had taken from ubuntu. Those were libgtk1.2, libgtk1.2-common and the three driver packages for my printer (I had aliened them on ubuntu earlier).
So this time I aliened the .rpm’s on my current Debian installation. The dependency of the required libraries (libgtk, libglib) was a bit more complicated. One of the printer’s driver packages needs libgtk1.2 and libglib1.2ldbl .
In the Squeeze or Sid repository I can’t find these libraries. In older repos (etch, lenny) I do. Now Debian’s libgtk1.2 needs libglib1.2 . But libglib1.2 conflicts with libglib1.2ldbl which is needed by the printer’s driver package.
To get rid of the problem, I edited the control file inside the libgtk1.2 package, so it depends on the -ldbl version now. This went well. At least dpkg installed them all for me without errors. As for the freshly aliened driver packages, which I had to install. Else the system would complain about missing filters.

There’s some progress to it. Now I can send some data to the printer, but it’ll just blink for a moment and do nothing. When I viewed the log files, I saw many new successful jobs (those never got printed) and this error message:

Code: Select all

localhost - - [28/Feb/2010:16:47:03 +0100] "POST /printers/Canon_iP1500 HTTP/1.1" 200 260 Print-Job client-error-document-format-not-supported

When I wanted to permit binary streams by uncommenting the respective line in /etc/cups/mime.types and mime.convs, I had to notice that these files didn’t even exist in that path.

I’m a bit stuck in nowhere now. Is there anything more you can advise me to?

Thanks a lot by now.

gilzad

edit: Forgot to mention that I couldn’t find any ppd for the iP1500 on openprinting.org.

——————————————————————————————————————————

edit2: SOLVED — Thanks everyone for the attention, especially bluesdog.

Something must have gone wrong when I aliened the rpm’s myself. I just thought I’d try the debian packages from here.
While I was trying to install them, they depended on more packages and some different ones than my self-aliened .debs. Namely libcupsys2-gnutls10, libglib1.2 (not libglib1.2ldbl), libxml1, libgtk1.2 and libpng10-0.
Fortunately all these libraries can be downloaded from the Etch repositories.
The only more thing one has to do, is to make libcupsys2-gnutls10 depend on the newer libcups2 instead of libcupsys2. This can easily be done by editing the file control in libcupsys2-gnutls10_1.2.7-4+etch9_all.deb.
To save you the hassle, I put up the edited version here.
I learned how to do it from a German tutorial but it should be clear for anyone.

Looks like no one’s replied in a while. To start the conversation again, simply

ask a new question.

Hi everyone,

Recently i have started facing an issue with my Macbook (13.3″ early 2009 model running OS X10.7.1. ) while trying to print using a common netwrok printer.
The issue is that when i press the print button nothing quite happens, i check the print que of the printer and see that the job has not been created.

I deleted and re-added the printer but the issue still persists, on openening up the CUPS error_log file and see the following message :

«[30/Aug/2011:14:19:20 +0800] Returning IPP client-error-bad-request for CUPS-Add-Modify-Printer (ipp://localhost/printers/pstsc) from localhost»

The printer that i am trying to use is a «Lexmark T 642». Can some one please advise me on what to do?

Regards,
Ashish

MacBook,

Mac OS X (10.7.1)

Posted on Aug 29, 2011 11:54 PM

Unable to print on a network printer

ОС debian squeeze. Принтер hp 1022. Печать осуществляется локально и по сети — с windows (1с) и linux (debian squeeze). Подключение по всех случаях через http.
Принтер замечательно работал и я уже подумал, что наконец то закончился глюкодром при работе принтеров в linux (после сноса ASP11.2 и установки debian squeeze).

И тут я совершил «ошибку». Отдал принтер на ТО, а вместо него установил такую же модель. Здесь стоит обратить внимание, что принтер при подключении к компьютеру сам определился. Но имя его меня не устраивало и я произвел установку принтера вручную, т. к. интервейс капса не позволяет переименовать принтер.

Запустил тестовую страницу. Локально печатает. По сети с винды печатает. С клиента linux не печатает.

На клиентах linux принтер я не устанавливал. Т. к. увидел, что принтер установился автоматически.

Но это автоматически нифига не печатает!

Вообщем задача состоит в том, чтоб вразумить капс ничего не устанавливать без моего ведома и чтоб капс перестал плеваться ошибками..

Вот что капс гадит в лог на клиенте

error_log

Код: Выделить всё

D [28/Dec/2009:09:34:50 +0200] [Job 8] Connecting to 192.168.37.174:49631
D [28/Dec/2009:09:34:50 +0200] [Job 8] Подключение к принтеру…
D [28/Dec/2009:09:34:50 +0200] [Job 8] STATE: -connecting-to-device
D [28/Dec/2009:09:34:50 +0200] [Job 8] Подключен к принтеру…
D [28/Dec/2009:09:34:50 +0200] [Job 8] Connected to 192.168.37.174:49631 (IPv4)...
D [28/Dec/2009:09:34:50 +0200] [Job 8] Getting supported attributes...
D [28/Dec/2009:09:34:50 +0200] [Job 8] Set job-printer-state-message to "Целевой принтер не существует!", current level=ERROR
D [28/Dec/2009:09:34:50 +0200] [Job 8] Backend returned status 4 (stop printer)
D [28/Dec/2009:09:34:50 +0200] [Job 8] Printer stopped due to backend errors; please consult the error_log file for details.
D [28/Dec/2009:09:34:50 +0200] [Job 8] End of messages
D [28/Dec/2009:09:34:50 +0200] [Job 8] printer-state=5(stopped)
D [28/Dec/2009:09:34:50 +0200] [Job 8] printer-state-message="Целевой принтер не существует!"
D [28/Dec/2009:09:34:50 +0200] [Job 8] printer-state-reasons=paused
E [28/Dec/2009:09:34:50 +0200] Returning IPP client-error-bad-request for Get-Jobs (ipp://localhost/jobs/) from localhost
E [28/Dec/2009:09:39:25 +0200] [CGI] Saw EOF, expected '}'!
E [28/Dec/2009:09:42:08 +0200] [CGI] Saw EOF, expected '}'!

А это на сервере печати

error_log

Код: Выделить всё

E [28/Dec/2009:09:09:49 +0200] Returning IPP client-error-bad-request for Get-Jobs (ipp://localhost/jobs/) from localhost
W [28/Dec/2009:09:29:08 +0200] [Job 1628] Printer fault!
E [28/Dec/2009:09:29:08 +0200] Returning IPP client-error-bad-request for Get-Jobs (ipp://localhost/jobs/) from localhost
W [28/Dec/2009:09:29:27 +0200] [Job 1629] Printer fault!
E [28/Dec/2009:09:29:27 +0200] Returning IPP client-error-bad-request for Get-Jobs (ipp://localhost/jobs/) from localhost
E [28/Dec/2009:09:42:35 +0200] [CGI] Saw EOF, expected '}'!
W [28/Dec/2009:09:43:02 +0200] [Job 1630] Printer fault!
E [28/Dec/2009:09:43:02 +0200] Returning IPP client-error-bad-request for Get-Jobs (ipp://localhost/jobs/) from localhost
E [28/Dec/2009:09:43:04 +0200] [CGI] Saw EOF, expected '}'!
E [28/Dec/2009:09:43:06 +0200] Returning IPP client-error-bad-request for Get-Jobs (ipp://localhost/jobs/) from localhost
E [28/Dec/2009:09:43:06 +0200] Returning IPP client-error-bad-request for Get-Jobs (ipp://localhost/jobs/) from localhost
E [28/Dec/2009:09:43:08 +0200] Returning IPP client-error-bad-request for Get-Jobs (ipp://localhost/jobs/) from localhost
E [28/Dec/2009:09:43:14 +0200] [CGI] Saw EOF, expected '}'!
E [28/Dec/2009:09:44:55 +0200] [CGI] Saw EOF, expected '}'!
E [28/Dec/2009:09:46:16 +0200] [CGI] Saw EOF, expected '}'!
E [28/Dec/2009:09:58:23 +0200] [CGI] Saw EOF, expected '}'!

Конфиг сервера (к которому подключен принтер)

krigko:~# grep -v ‘^#’ /etc/cups/cupsd.conf |sed /^$/d

Код: Выделить всё

LogLevel warn
MaxLogSize 0
SystemGroup lpadmin
Port 49631
Listen /var/run/cups/cups.sock
<Location /printers>
  Order allow,deny
  Allow 192.168.37.
</Location>
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols CUPS
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS dnssd
DefaultAuthType Basic
<Location />
  # Allow shared printing and remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin>
  # Allow remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow @LOCAL
</Location>
<Policy default>
  <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 CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer 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-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
<Policy authenticated>
  <Limit Create-Job Print-Job Print-URI>
  AuthType Default
  Order deny,allow
</Limit>
  <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 CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  AuthType Default
  Require user @SYSTEM
  Order deny,allow
    </Limit>
  <Limit Pause-Printer Resume-Printer 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-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
      </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
      AuthType Default
      Require user @OWNER @SYSTEM
      Order deny,allow
        </Limit>
  <Limit All>
        Order deny,allow
          </Limit>
</Policy>

Конфиг одного из клиентов (debian squeeze)

admin:~# grep -v ‘^#’ /etc/cups/cupsd.conf |sed /^$/d

Код: Выделить всё

LogLevel warn
MaxLogSize 0
SystemGroup lpadmin
Listen localhost:631
Listen /var/run/cups/cups.sock
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseLocalProtocols CUPS dnssd
DefaultAuthType Basic
<Location />
  Order allow,deny
</Location>
<Location /admin>
  Order allow,deny
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>
<Policy default>
  # Job-related operations must be done by the owner or an administrator...
  <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 CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer 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-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    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>
<Policy authenticated>
  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI>
    AuthType Default
    Order deny,allow
  </Limit>
  <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 CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer 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-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    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>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

Пара скриншотов с клиента
Там где «Location Unknown» это те принтера которые самоустановлись

Изображение

Это принтер установленный ручками и который нормально печатает
Изображение

А это самоустановившийся принтер, который нихера не печатает.
Стоит обратить внимание, что в строке браузера вэб-морда сервера печати. На клиенте как будто принтер не установлен, а лишь установлен ярлык для него. Т. е. при выборе этого принтера кидает на сервер печати. Тестовая страница при запуске с сервера печати печатает.
Изображение

Понравилась статья? Поделить с друзьями:
  • Csxguard v4 error
  • Cup fan error что это
  • Cup fan error как исправить
  • Csv открывается иероглифами как исправить
  • Cumulative update windows 10 error