Cups running on Ubuntu 15.10 server and so far so good.
When an OS X device tries to print through the ubuntu cups server, I get this error:
IPP client-error-not-authorized for Create-Job
On the OS X device in the print job I get the message:
Hold for Authorization
Made the standard tweaks to cupsd.conf and printers.conf (see below), but no joy.
Any cups experts have any advice?
Thanks
Luis
cupsd.conf:
#
# Configuration file for the CUPS scheduler. See "man cupsd.conf" for a
# complete description of this file.
#
# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel debug
PageLogFormat
# Deactivate CUPS' internal logrotating, as we provide a better one, especially
# LogLevel debug2 gets usable now
MaxLogSize 0
# Only listen for connections from the local machine.
#Listen localhost:631
Port 631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseLocalProtocols dnssd
#BrowseAllow all
# Default authentication type, when authentication is required...
DefaultAuthType None
# Web interface setting...
WebInterface Yes
# Restrict access to the server...
<Location />
Order allow,deny
Allow all
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow all
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow all
</Location>
# Set the default printer/job policies...
<Policy default>
# Job/subscription privacy...
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Ren
ew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Canc
el-My-Jobs Close-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-Dev
ices>
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-J
ob-After Cancel-Jobs 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>
# Set the authenticated printer/job policies...
<Policy authenticated>
# Job/subscription privacy...
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
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 Ren
ew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Canc
el-My-Jobs Close-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-J
ob-After Cancel-Jobs 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>
printers.conf:
# Printer configuration file for CUPS v2.1.0
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer SHARP_MX-2640N>
UUID urn:uuid:ce9f69de-ba08-3630-7365-088439080a0f
AuthInfoRequired none
Info SHARP MX-2640NPCL_PS
Location Local Printer
MakeModel Sharp MX-2640N PS, 1.1
DeviceURI lpd://192.168.25.52/lp
State Idle
StateTime 1449759918
ConfigTime 1449702658
Type 8401116
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser all
OpPolicy default
ErrorPolicy retry-job
Attribute marker-colors #00FFFF,#FF00FF,#FFFF00,#000000,none,#00FFFF,#FF00FF,#FFFF00,#000000,#00FFFF,#FF00FF,#FFFF00,#000
000,none
Attribute marker-levels 35,50,-1,75,0,73,73,73,63,73,73,73,63,-1
Attribute marker-names Cyan Toner,Magenta Toner,Yellow Toner,Black Toner,Waste Toner,Cyan Photoconductive Drum,Magenta Pho
toconductive Drum,Yellow Photoconductive Drum,Black Photoconductive Drum,Cyan Developer,Magenta Developer,Yellow Developer
,Black Developer,Fusing Unit
Attribute marker-types toner,toner,toner,toner,waste-toner,opc,opc,opc,opc,developer,developer,developer,developer,fuser
Attribute marker-change-time 1449759918
</Printer>
I have been trying to print to my HP Photosmart 5520 for about week but have not figured out how to solve this problem.
I did cat /var/log/cups/error_log which gave me
E [10/Feb/2016:08:20:49 -0500] [Client 58] Returning IPP client-error-not-authorized for Resume-Printer (ipp://localhost/printers/Photosmart_5520) from localhost
E [10/Feb/2016:08:22:14 -0500] [Client 64] Returning IPP client-error-not-authorized for Resume-Printer (ipp://localhost/printers/Photosmart_5520) from localhost
E [10/Feb/2016:08:23:28 -0500] [Client 73] Returning IPP client-error-not-authorized for Resume-Printer (ipp://localhost/printers/Photosmart_5520) from localhost
E [10/Feb/2016:08:25:05 -0500] [Client 75] Returning IPP client-error-not-authorized for Create-Job (ipp://localhost:631/printers/Photosmart_5520) from localhost
E [10/Feb/2016:08:27:13 -0500] [Client 88] Returning HTTP Forbidden for Pause-Printer (ipp://localhost/printers/Photosmart_5520) from localhost
E [10/Feb/2016:08:28:02 -0500] [Client 98] Returning IPP client-error-not-authorized for Resume-Printer (ipp://localhost/printers/Photosmart_5520) from localhost
So from my understanding, its saying I don’t have the permissions to print. So I took a look at the cups.conf file
#
# Configuration file for the CUPS scheduler. See "man cupsd.conf" for a
# complete description of this file.
#
# Disable cups internal logging - use logrotate instead
MaxLogSize 0
# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn
#PageLogFormat
# Only listen for connections from the local machine.
Listen localhost:631
Listen /run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseLocalProtocols dnssd
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Web interface setting...
WebInterface Yes
# Restrict access to the server...
<Location />
Order allow,deny
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow all
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
</Location>
# Restrict access to log files...
<Location /admin/log>
AuthType Default
Require user @SYSTEM
Order allow,deny
</Location>
# Set the default printer/job policies...
<Policy default>
# Job/subscription privacy...
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
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 Cancel-My-Jobs Close-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 Cancel-Jobs 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>
# Set the authenticated printer/job policies...
<Policy authenticated>
# Job/subscription privacy...
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
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 Cancel-My-Jobs Close-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 Cancel-Jobs 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>
Anything wrong with the permissions?
UPDATE: So I went on the cups web interface and it kept denying my root username and password so I was not able to turn on sharing permissions. I simply uninstalled cups and reinstalled it then added my printer. I have to remember to always try reinstalling a program if I am having problems with it.
Last edited by Zaku140 (2016-02-13 15:28:18)
Version: 1.3.8
CUPS.org User: drzed
Since upgrading from to 1.3.8 printing on polled printers fails:
user@client-host:$ lpstat -p
printer mfp_4730 is idle. enabled since Thu 19 Mar 2009 10:38:44 CET
CEST
[…]
user@client-host:$ lp -d mfp_4730 /tmp/cpuinfo
lp: The printer or class is not shared!
The server log looks like this:
/var/log/cups/access_log:
192.168.2.2 — — [19/Mar/2009:11:44:00 +0100] «POST / HTTP/1.1» 200 417
CUPS-Get-Classes successful-ok
192.168.2.2 — — [19/Mar/2009:11:44:01 +0100] «POST / HTTP/1.1» 200 417
CUPS-Get-Classes successful-ok
192.168.2.2 — — [19/Mar/2009:11:44:01 +0100] «POST /printers/mfp_4730
HTTP/1.1″ 200 1674 Print-Job client-error-not-authorized
My Server config is quite (Debian Lenny) default:
http://rafb.net/p/tf5aNK96.html
Of course printing from any GUI e.g. kdeprint also fails.
Just for testing a attached an old printer on my local sever — which
works fine, however for my purpose cups is (since the upgrade) unusable
for me and all users on the network.
To make sure that this is no networking issue, I did a tcpdump which
revealed that the local cups server does not even try to contact the
remote server.
If you need some more information on the setup plz don’t hesitate to
contact me.
The debug Log can be found at:
http://rafb.net/p/3zJGpG45.html
Cheers,
Sigmund
Copy link
Collaborator
Author
CUPS.org User: mike
Are you using BrowsePoll in the client’s cupsd.conf file, or ServerName in the client.conf file?
Try the following on the server system:
lpadmin -p mfp_4730 -o printer-is-shared=true
The cups-polld program should be filtering out non-shared printers (it only asks for shared printers), but if you are using ServerName in client.conf you bypass those restrictions.
Copy link
Collaborator
Author
CUPS.org User: drzed
On the client I’m using client.conf (ServerName)
The setup looks something like this:
[client]—[local_cups]—[remote_cups]===[printer]
The mentioned command worked in an rather unexpected way (I invoked it on the local_cups server):
A new printer named «mfp_4730@remote_cups» was added, and the mfp_4730 was stopped and rejected jobs; after activating both options (via webinterface) printing on the mfp_4730 worked. However the newly added mfp_4739@remote_cups fails with the same error message.
Also interesting is that the mfp_4730 now is described like this (in the webinterface):
Printer Driver: Local Raw Printer
Printer State: idle, accepting jobs, published.
Device URI: file:/dev/null
The mfp_4730@remote_cups now has the correct description (Device URI, etc).
This new problem now is that this new printer is quite irritating for the users. Neither do I have an idea how to get rid of it nor for what purpose it is there at all.
Copy link
Collaborator
Author
CUPS.org User: drzed
I’ve to correct myself: Printing does not work, there is no error message but the printer actually does not do anything at all — which is kind of understandable as the output device is /dev/null
Copy link
Collaborator
Author
CUPS.org User: mike
The issue seems to be that we are returning non-shared printers to CUPS-Get-Printers/Classes requests (and CUPS-Get-Default) to non-local connections.
Should be an easy fix.
Copy link
Collaborator
Author
CUPS.org User: drzed
What has happened to this easy fix? I did not get it yet.
Copy link
Collaborator
Author
CUPS.org User: mike
Fixed in Subversion repository.
Copy link
Collaborator
Author
«str3147.patch»:
Index: scheduler/ipp.c
— scheduler/ipp.c (revision 8525)
+++ scheduler/ipp.c (working copy)
@@ -7615,6 +7615,7 @@
const char username; / Current user /
char *first_printer_name; / first-printer-name attribute /
cups_array_t *ra; / Requested attributes array */
- int local; /* Local connection? */
cupsdLogMessage(CUPSD_LOG_DEBUG2, «get_printers(%p[%d], %x)», con,
@@ -7672,6 +7673,8 @@
else
printer_mask = 0;
- local = httpAddrLocalhost(&(con->http.hostaddr));
if ((attr = ippFindAttribute(con->request, «printer-location»,
IPP_TAG_TEXT)) != NULL)
location = attr->values[0].string.text;
@@ -7704,6 +7707,9 @@
count < limit && printer;
printer = (cupsd_printer_t *)cupsArrayNext(Printers))
{
- if (!local && !printer->shared)
-
if ((!type || (printer->type & CUPS_PRINTER_CLASS) == type) &&
(printer->type & printer_mask) == printer_type &&
(!location ||
Cups running on Ubuntu 15.10 server and so far so good.
When an OS X device tries to print through the ubuntu cups server, I get this ошибка:
IPP client-error-not-authorized for Create-Job
On the OS X device in the print job I get the message:
Hold for Authorization
Made the стандарт tweaks to cupsd.conf and printers.conf (see below), but не joy.
Any cups experts have any advice?
Thanks
Луис
cupsd.conf:
#
# Configuration file for the CUPS scheduler. See "man cupsd.conf" for a
# complete description of this file.
#
# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel debug
PageLogFormat
# Deactivate CUPS' internal logrotating, as we provide a better one, especially
# LogLevel debug2 gets usable now
MaxLogSize 0
# Only listen for connections from the local machine.
#Listen localhost:631
Port 631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseLocalProtocols dnssd
#BrowseAllow all
# Default authentication type, when authentication is required...
DefaultAuthType None
# Web interface setting...
WebInterface Yes
# Restrict access to the server...
<Location />
Order allow,deny
Allow all
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow all
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow all
</Location>
# Set the default printer/job policies...
<Policy default>
# Job/subscription privacy...
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Ren
ew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Canc
el-My-Jobs Close-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-Dev
ices>
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-J
ob-After Cancel-Jobs 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>
# Set the authenticated printer/job policies...
<Policy authenticated>
# Job/subscription privacy...
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
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 Ren
ew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Canc
el-My-Jobs Close-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-J
ob-After Cancel-Jobs 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>
printers.conf:
# Printer configuration file for CUPS v2.1.0
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer SHARP_MX-2640N>
UUID urn:uuid:ce9f69de-ba08-3630-7365-088439080a0f
AuthInfoRequired none
Info SHARP MX-2640NPCL_PS
Location Local Printer
MakeModel Sharp MX-2640N PS, 1.1
DeviceURI lpd://192.168.25.52/lp
State Idle
StateTime 1449759918
ConfigTime 1449702658
Type 8401116
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser all
OpPolicy default
ErrorPolicy retry-job
Attribute marker-colors #00FFFF,#FF00FF,#FFFF00,#000000,none,#00FFFF,#FF00FF,#FFFF00,#000000,#00FFFF,#FF00FF,#FFFF00,#000
000,none
Attribute marker-levels 35,50,-1,75,0,73,73,73,63,73,73,73,63,-1
Attribute marker-names Cyan Toner,Magenta Toner,Yellow Toner,Black Toner,Waste Toner,Cyan Photoconductive Drum,Magenta Pho
toconductive Drum,Yellow Photoconductive Drum,Black Photoconductive Drum,Cyan Developer,Magenta Developer,Yellow Developer
,Black Developer,Fusing Unit
Attribute marker-types toner,toner,toner,toner,waste-toner,opc,opc,opc,opc,developer,developer,developer,developer,fuser
Attribute marker-change-time 1449759918
</Printer>
задан
10 December 2015 в 18:39
поделиться
2 ответа
После того, как МНОГО поиска нашло проблему.
В printers.conf изменился
AllowUser all
к
AllowUser
и да, который является всем, что я должен был изменить… человека со странностями!
ответ дан Luis Zuniga
30 September 2019 в 01:57
поделиться
Я заметил, что была непрерывная ошибка ‘Создавать-задание client-error-not-authorized: принтер или класс не совместно используются!’ в ошибочных журналах CUPS, когда задание печати было поставлено в очередь на локальной очереди печати ПК. Я удалил HP laserjet 6MP принтер при администраторе CUPS снова и установил его как вЂShare Этот Printer’ с настройками. На этот раз я использовал драйвер PCL 6 с его опциями по умолчанию. Это зафиксировало его. Тестовое задание печати работало от ПК. Установка ре принтера IPP не требовалась на ПК.
ответ дан Peter MacFarlane
30 September 2019 в 01:57
поделиться
Другие вопросы по тегам:
Похожие вопросы:
Не подключается удалённый принтер [решено]
-
metalizer
- Сообщения: 15
- Зарегистрирован: 14 окт 2014, 09:40
- Operating system: Ubuntu 14.04 LTS
ROSA Desktop Fresh
Не подключается удалённый принтер [решено]
Необходимо подключить удалённый принтер, который подключен к windows компьютеру.
Я зашёл в «Настройка рабочего стола» > «Настройка принтеров, очередей печати…» > «Добавить» > «Найти сетевой принтер» в поле «сервер:» вписываю нужный ip адрес и нажимаю «Найти» затем выскакивает окно с просьбой ввести данные для аутентификации на удалённом компьютере где нужный принтер подключен, естественно ввожу правильные данные, после чего в строке smb появляется прописанный путь до нужного принтера в следующем виде — smb://192.168.207.250/EPSON-T50
Но при нажатии кнопки вперёд дальше ничего не происходит.
Запустил через терминал команду «system-config-printer» чтобы посмотреть что пишет терминал во время нажатия кнопки «Вперёд», вот выхлоп:
Traceback (most recent call last):
File «/usr/share/system-config-printer/newprinter.py», line 898, in on_btnNPForward_clicked
self.nextNPTab()
File «/usr/share/system-config-printer/newprinter.py», line 1049, in nextNPTab
stderr=file(«/dev/null»))
File «/usr/lib64/python2.7/subprocess.py», line 710, in __init__
errread, errwrite)
File «/usr/lib64/python2.7/subprocess.py», line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] Нет такого файла или каталога
- Вложения
-
- Скрин к вышеописанному
Dell Optiplex XE2
i3-4330 / 8Gb RAM / Intel HD Graphics 4600 / ROSA Desktop Fresh R5 x86-64
-
metalizer
- Сообщения: 15
- Зарегистрирован: 14 окт 2014, 09:40
- Operating system: Ubuntu 14.04 LTS
ROSA Desktop Fresh
Re: Не подключается удалённый принтер
Сообщение
metalizer » 15 окт 2014, 10:02
Попробовал я установить и настроить SMB-принтер через Turboprint2. Скачал rpm пакет отсюда (http://www.turboprint.info), установил, потом через конфигурационную утилиту даже удалось добавить принтер в систему (т.е. появился значёк в разделе принтеры), но печатать почему-то всё равно не хочет ![]()
Dell Optiplex XE2
i3-4330 / 8Gb RAM / Intel HD Graphics 4600 / ROSA Desktop Fresh R5 x86-64
-
Галахов Роман
- Сообщения: 2332
- Зарегистрирован: 26 фев 2012, 20:02
- Operating system: Rosa R12.1 Fresh Plasma (HP ProBook 440 G4 (y7z81ea))
- Откуда: Моск. обл. Волоколамск
Re: Не подключается удалённый принтер
Сообщение
Галахов Роман » 15 окт 2014, 19:15
metalizer писал(а):Попробовал я установить и настроить SMB-принтер через Turboprint2. Скачал rpm пакет отсюда (http://www.turboprint.info), установил, потом через конфигурационную утилиту даже удалось добавить принтер в систему (т.е. появился значёк в разделе принтеры), но печатать почему-то всё равно не хочет
А сама локальная сеть работает?
Пробовали подключать принтер напрямую к Linux ПК?
RPM пакет который вы скачали не протрстирован на соместимость с ROSA и может непраильно работать.
Этот драйвер пробовали?
Rosa 2021.1 Fresh KDE5 x64-86 (HP ProBook 440 G4 (y7z81ea))
-
metalizer
- Сообщения: 15
- Зарегистрирован: 14 окт 2014, 09:40
- Operating system: Ubuntu 14.04 LTS
ROSA Desktop Fresh
Re: Не подключается удалённый принтер
Сообщение
metalizer » 15 окт 2014, 22:54
Галахов Роман писал(а):
А сама локальная сеть работает?
Пробовали подключать принтер напрямую к Linux ПК?
RPM пакет который вы скачали не протрстирован на соместимость с ROSA и может непраильно работать.
Локальная сеть работает, я без проблем скачиваю файлы с «расшаренной» папки именно с того компьютера к которому нужный мне принтер подключен.
Непосредственно напрямую принтер я не пробовал подключать. С самого начала когда я только решил подключится к этому принтеру я никаких rpm пакетов не устанавливал в систему. На убунту мне хватало и открытого драйвера для EPSON T50, поэтому я и на Росе собирался его же и поставить. Но вот когда список с выбором драйверов для принтера ни в какую не открывался я уже начал импровизировать скачав сразу RPM-пакет с официального сайта EPSON (именно оттуда как и у вас на скриншоте), а потом уже и Turboprint. Но увы ничего не вышло.
Dell Optiplex XE2
i3-4330 / 8Gb RAM / Intel HD Graphics 4600 / ROSA Desktop Fresh R5 x86-64
-
slavyanix
- Сообщения: 888
- Зарегистрирован: 04 авг 2012, 20:05
- Operating system: Rosa Fresh R10
Re: Не подключается удалённый принтер
Сообщение
slavyanix » 16 окт 2014, 00:31
принтер в системе на другом компьютере числится как для всех или только для того пк? просто может с сетевой настройкой что то не то. гляньте в браузере по адресу http://localhost:631/. это адрес сервера печати внутри компа с линукс. там же и настройка. естественно смотреть на том компе к которому принтер подключен. если там линукс естественно.
-
metalizer
- Сообщения: 15
- Зарегистрирован: 14 окт 2014, 09:40
- Operating system: Ubuntu 14.04 LTS
ROSA Desktop Fresh
Re: Не подключается удалённый принтер
Сообщение
metalizer » 16 окт 2014, 11:10
slavyanix писал(а):принтер в системе на другом компьютере числится как для всех или только для того пк? просто может с сетевой настройкой что то не то. гляньте в браузере по адресу http://localhost:631/. это адрес сервера печати внутри компа с линукс. там же и настройка. естественно смотреть на том компе к которому принтер подключен. если там линукс естественно.
Тот принтер числится как общедоступный для всех. С ноутбука с Ubuntu 14.04 на тот принтер я спокойно печатаю через локальную сеть. А вот стационарник с ROSA R4 через ту же локальную сеть — ни в какую.
Ещё вот порывшись в интернете и поспрашивав мне подсказали, что это может быть из-за того что в том окне, где добавлять новый принтер отсутствует пункт «Принтер windows через samba». Я глянул в ubuntu там этот пункт есть, а в Росе вы можете убедится по скриншоту из первого поста, что этого пункта там нет.
- Вложения
-
Dell Optiplex XE2
i3-4330 / 8Gb RAM / Intel HD Graphics 4600 / ROSA Desktop Fresh R5 x86-64
-
keleg
- Сообщения: 5485
- Зарегистрирован: 15 сен 2011, 01:58
Re: Не подключается удалённый принтер
Сообщение
keleg » 16 окт 2014, 13:02
А «найти сетевой принтер» не помогает?
-
metalizer
- Сообщения: 15
- Зарегистрирован: 14 окт 2014, 09:40
- Operating system: Ubuntu 14.04 LTS
ROSA Desktop Fresh
Re: Не подключается удалённый принтер
Сообщение
metalizer » 16 окт 2014, 13:59
keleg писал(а):А «найти сетевой принтер» не помогает?
Нет, не помогает. Я туда вписываю нужный ip-адрес, потом появляется окно с просьбой ввести имя пользователя и пароль от удалённой машины и в случае когда имя и пароль введены правильные ничего не происходит. А если к примеру я ввожу неправильный пароль, то мне сообщается что подключится не удалось. Значит правильный пароль принимается, но дальше какой-то сбой получается уже на следующем этапе.
Dell Optiplex XE2
i3-4330 / 8Gb RAM / Intel HD Graphics 4600 / ROSA Desktop Fresh R5 x86-64
-
metalizer
- Сообщения: 15
- Зарегистрирован: 14 окт 2014, 09:40
- Operating system: Ubuntu 14.04 LTS
ROSA Desktop Fresh
Re: Не подключается удалённый принтер
Сообщение
metalizer » 28 окт 2014, 21:20
Блин, обидно, с того времени как я установил R4 у меня к РОСе нету никаких претензий кроме как этот минус с невозможностью подключится к SMB пинтеру. Всё железо определилось и работает отлично, внешняя веб-камера Logitech работает тоже исправно, сканер Canon lide110 заработал из коробки. Злополучный принтер кстати тоже работает, но только непосредственно при USB подключении.
Завтра вот попробую LXDE версию установить, посмотрим может это в KDE проблемы.
Dell Optiplex XE2
i3-4330 / 8Gb RAM / Intel HD Graphics 4600 / ROSA Desktop Fresh R5 x86-64
-
ans
- Сообщения: 2714
- Зарегистрирован: 11 сен 2011, 08:42
- Operating system: Rosa
- Откуда: Ekaterinburg
- Контактная информация:
Re: Не подключается удалённый принтер
Сообщение
ans » 29 окт 2014, 09:13
metalizer писал(а):Блин, обидно, с того времени как я установил R4 у меня к РОСе нету никаких претензий кроме как этот минус с невозможностью подключится к SMB пинтеру.
А родные драйверы для линукс есть?
-
metalizer
- Сообщения: 15
- Зарегистрирован: 14 окт 2014, 09:40
- Operating system: Ubuntu 14.04 LTS
ROSA Desktop Fresh
Re: Не подключается удалённый принтер
Сообщение
metalizer » 29 окт 2014, 10:11
ans писал(а):
metalizer писал(а):Блин, обидно, с того времени как я установил R4 у меня к РОСе нету никаких претензий кроме как этот минус с невозможностью подключится к SMB пинтеру.
А родные драйверы для линукс есть?
Да,есть.
Dell Optiplex XE2
i3-4330 / 8Gb RAM / Intel HD Graphics 4600 / ROSA Desktop Fresh R5 x86-64
-
ans
- Сообщения: 2714
- Зарегистрирован: 11 сен 2011, 08:42
- Operating system: Rosa
- Откуда: Ekaterinburg
- Контактная информация:
Re: Не подключается удалённый принтер
Сообщение
ans » 29 окт 2014, 10:35
metalizer писал(а):Да,есть.
Я как-то устанавливал Brother по сети, сначала родные драйверы, потом в свойствах путь к ip принтера
-
keleg
- Сообщения: 5485
- Зарегистрирован: 15 сен 2011, 01:58
Re: Не подключается удалённый принтер
Сообщение
keleg » 29 окт 2014, 10:41
Попробуйте еще погуглить настройки самбы и cups для доступа к самба-принтерам. Возможно, мы что-то упустили в конфигах.
-
metalizer
- Сообщения: 15
- Зарегистрирован: 14 окт 2014, 09:40
- Operating system: Ubuntu 14.04 LTS
ROSA Desktop Fresh
Re: Не подключается удалённый принтер
Сообщение
metalizer » 01 ноя 2014, 16:40
Было бы неплохо исправить эту проблему. Поскольку компьютер на который я установил Росу рабочий, мне пришлось снести данный дистрибутив, т.к. для работы в офисе это критический недостаток. Если бы мне удалось настроить SMB-печать я оставил бы эту ОС на постоянно.
Dell Optiplex XE2
i3-4330 / 8Gb RAM / Intel HD Graphics 4600 / ROSA Desktop Fresh R5 x86-64
-
d_uragan
- Сообщения: 505
- Зарегистрирован: 23 ноя 2011, 21:27
Re: Не подключается удалённый принтер
Сообщение
d_uragan » 22 ноя 2014, 21:52
Должно быть исправлено в обновленном system-config-printer.
-
webbymaster
- Сообщения: 1
- Зарегистрирован: 25 ноя 2014, 20:28
- Operating system: ROSA_Fresh_KDE_R4
Re: Не подключается удалённый принтер
Сообщение
webbymaster » 26 ноя 2014, 02:30
Всем привет! У меня такая проблема:
пытаюсь подключить сетевой принтер EPSON L800 Series… Скачал пакет epson-inkjet-l800-1.0.0-1lsb3.2.x86_64.rpm, установил драйвер…
Настройка принтера, Добавить сетевой принтер…
Определился Принтер Windows через SAMBA, выбрал его в базе драйверов…
И тут сообщение:
Ошибка сервера CUPS
«Ошибка во время операции CUPS:»client-error-not-possible»
Зашел по адресу http://localhost:631/ попытался добавить свой принтер, при запросе логина и пароля вводил и системные данные и данные root… Не пустил.
Зарегился на сайте CUPS, ввел данные на странице http://localhost:631/ — не вошел….
Подключал принтер напрямую-работает, значит пакет нормальный epson-inkjet-l800-1.0.0-1lsb3.2.x86_64.rpm
Как же мне всё-таки принтер свой добавить?!
Не ругайте меня. Я вот решил ваще от винды отказаться. Патриот я.
, ROSA моя первая система на базе lInux… ![]()
Зараннее благодарю за любой исход ответа.
-
J-Son
- Сообщения: 23
- Зарегистрирован: 05 ноя 2014, 09:34
- Operating system: ROSA Desktop Fresh R4
- Откуда: г. Челябинск
Re: Не подключается удалённый принтер
Сообщение
J-Son » 26 ноя 2014, 15:21
Та же самая проблема. Установил R4 на рабочий комп и хотел настроить печать на расшаренный в Винде принтер. Из Убунты эта связка работает. А в R4 я получаю:
Ошибка сервера CUPS
«Ошибка во время операции CUPS:»client-error-not-possible»
Делаю все так же — настройка принтера — Сетевой принтер — Найти сетевой принтер — вбиваю IP. Затем принтер находит, просит указать драйвер. Указываю нужный и получаю ошибку, которая выше.
Печать на работе нужна. Было бы замечательно, если бы как-то удалось это дело победить.
UPD: погуглил — рекомендуют ставить в систему пакет smbclient. В R4 такого не вижу — может просто он как-то по-другому называется..
-
J-Son
- Сообщения: 23
- Зарегистрирован: 05 ноя 2014, 09:34
- Operating system: ROSA Desktop Fresh R4
- Откуда: г. Челябинск
Re: Не подключается удалённый принтер
Сообщение
J-Son » 27 ноя 2014, 12:04
keleg писал(а):
У меня заработало.
У меня тоже всё заработало! Спасибо за оперативное реагирование! ![]()
А подключённый источник так и оставить в системе или можно удалить позже? Я так понимаю, что когда пакеты попадут в основной репозиторий, то необходимость в этом временно контейнере отпадёт.
-
Галахов Роман
- Сообщения: 2332
- Зарегистрирован: 26 фев 2012, 20:02
- Operating system: Rosa R12.1 Fresh Plasma (HP ProBook 440 G4 (y7z81ea))
- Откуда: Моск. обл. Волоколамск
Re: Не подключается удалённый принтер
Сообщение
Галахов Роман » 27 ноя 2014, 18:50
J-Son писал(а):
keleg писал(а):
У меня заработало.У меня тоже всё заработало! Спасибо за оперативное реагирование!
А подключённый источник так и оставить в системе или можно удалить позже? Я так понимаю, что когда пакеты попадут в основной репозиторий, то необходимость в этом временно контейнере отпадёт.
Лучше удалить, чтобы не мешался, это, проще говоря, временный источник, который через некоторое время перестает существовать, но запись о нем на ПК пользователя приходится удалять вручную.
Rosa 2021.1 Fresh KDE5 x64-86 (HP ProBook 440 G4 (y7z81ea))
-
d_uragan
- Сообщения: 505
- Зарегистрирован: 23 ноя 2011, 21:27
Re: Не подключается удалённый принтер
Сообщение
d_uragan » 29 ноя 2014, 23:02
J-Son писал(а):
А подключённый источник так и оставить в системе или можно удалить позже? Я так понимаю, что когда пакеты попадут в основной репозиторий, то необходимость в этом временно контейнере отпадёт.
Btw, в последних версиях urpmi есть такая фича, как автоматическое добавление контейнера при установке пакета из сети и автоматическое удаление этого контейнера сразу после установки. То есть в нашем случае с самбой можно было выполнить что-нибудь такое:
Код: Выделить всё
urpmi http://abf-downloads.rosalinux.ru/rosa2014.1/container/2334092/i586/main/release/samba-client-4.1.9-11-rosa2014.1.i586.rpm
urpmi сам бы подключил контейнер в качестве репозитория, поставил бы пакет со всеми нужными зависимостями, и отключил бы этот репозиторий.
Впрочем, тут кому как удобнее. Если надо из контейнера поставить несколько пакетов, которые по зависимостям друг друга не притянут, то может проще и руками контейнер подключить.