Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lp: Error - add '/version=1.1' to server name. #6242

Open
rihanalkamim opened this issue Jan 15, 2025 · 2 comments
Open

lp: Error - add '/version=1.1' to server name. #6242

rihanalkamim opened this issue Jan 15, 2025 · 2 comments

Comments

@rihanalkamim
Copy link

I'm that error when try send impression to another server.

lp -h 172.20.1.110:631 -dPR04 imp.txt
lp: Error - add '/version=1.1' to server name.

Can anyone help me?

@jsmeix
Copy link

jsmeix commented Jan 15, 2025

I remember this from older times, cf.
https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12/index.html#fate-314630
that reads in particular (excerpt)

CUPS >= 1.6 has major incompatible changes
compared to CUPS up to version 1.5.4
in particular when printing via network:

The IPP protocol default version increased from 1.1 to 2.0.
Older IPP servers like CUPS 1.3.x (for example ...)
reject IPP 2.0 requests with "Bad Request" (see ...).
By adding '/version=1.1' to ServerName in client.conf
(e.g., ServerName older.server.example.com/version=1.1)
or to the CUPS_SERVER environment variable value
or by adding it to the server name value of the '-h' option
(e.g., lpstat -h older.server.example.com/version=1.1 -p)
the older IPP protocol version for older servers
must be specified explicitly. 

By the way:
unless you really have Apple CUPS (e.g. on macOS)
current CUPS upstream has moved to
https://github.com/OpenPrinting/cups

@rihanalkamim
Copy link
Author

I remember this from older times, cf. https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12/index.html#fate-314630 that reads in particular (excerpt)

CUPS >= 1.6 has major incompatible changes
compared to CUPS up to version 1.5.4
in particular when printing via network:

The IPP protocol default version increased from 1.1 to 2.0.
Older IPP servers like CUPS 1.3.x (for example ...)
reject IPP 2.0 requests with "Bad Request" (see ...).
By adding '/version=1.1' to ServerName in client.conf
(e.g., ServerName older.server.example.com/version=1.1)
or to the CUPS_SERVER environment variable value
or by adding it to the server name value of the '-h' option
(e.g., lpstat -h older.server.example.com/version=1.1 -p)
the older IPP protocol version for older servers
must be specified explicitly. 

By the way: unless you really have Apple CUPS (e.g. on macOS) current CUPS upstream has moved to https://github.com/OpenPrinting/cups

Dear,
Very thank you, with this documentation im solved the problem, basically im add that parameter "/version=1.1" in paremeter -h.

lp -h 172.20.1.110/version=1.1 -dPR04 imp.txt

This resolved my problem, thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants