You are not logged in.

#1 2024-08-02 08:24:34

abee
Member
From: Ukraine
Registered: 2024-08-01
Posts: 6

Problems with the Canon LBP network printer.

Hello! I have a problem with the Canon LBP printer. When connected locally, the printer prints, everything is normal. But if this printer is connected to a Windows computer, I cannot connect to it. Although I have access to a Windows computer through Samba.
I used this instruction to connect the printer.
https://gist.github.com/anonymous/90ab39ee42a1fe4b8746

Maybe someone will tell a newbie what the problem might be?

Offline

#2 2024-08-02 10:29:39

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,889

Re: Problems with the Canon LBP network printer.

That instruction is from 10 years ago and only for printers using the CAPT protocol.

Canon LBP devices are known to use one of UFRII, CARPS, cnijfilter, CAPT . The newest models even support ipp everywhere .

What is the exact model & type of your printer ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#3 2024-08-05 12:44:13

abee
Member
From: Ukraine
Registered: 2024-08-01
Posts: 6

Re: Problems with the Canon LBP network printer.

Canon LBP6020.

That's how I see him

$ smbclient -L \\192.168.137.1
Password for [WORKGROUP\oleks]:

	Sharename       Type      Comment
	---------       ----      -------
	ADMIN$          Disk      Remote Admin
	C$              Disk      Default share
	Canon_LBP6020   Printer   Canon_LBP6020
	Canon_LBP6020-2 Printer   Canon LBP6020
	IPC$            IPC       Remote IPC
	print$          Disk      Драйвери принтера
	Users           Disk      
	ОМР          Disk      
SMB1 disabled -- no workgroup available

But I don't have access anymore

 $ smbclient -L \\192.168.137.1\Canon_LBP6020
do_connect: Connection to 192.168.137.1Canon_LBP6020 failed (Error NT_STATUS_UNSUCCESSFUL)

And I can't see it online either

$ lpinfo -v
network beh
network https
network http
network ipp
network ipps
network lpd
network socket
direct ccp
network smb
network socket://192.168.31.72
network dnssd://Canon%20MF750C%20Series._ipps._tcp.local/?uuid=6d4ff0ce-6b11-11d8-8020-f8a26defe47f
network dnssd://EPSON%20M1120%20Series._pdl-datastream._tcp.local/
network dnssd://EPSON%20M1170%20Series._ipp._tcp.local/?uuid=cfe92100-67c4-11d4-a45f-389d92aa2513

Offline

#4 2024-08-05 20:45:48

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: Problems with the Canon LBP network printer.

If you're exposing the printer via smb, why don't you use smb?
https://wiki.archlinux.org/title/CUPS#Network_2

smbclient -L \\192.168.137.1\Canon_LBP6020

is completely nonsensical, -L inspects host services.

Offline

#5 2024-08-06 09:06:58

abee
Member
From: Ukraine
Registered: 2024-08-01
Posts: 6

Re: Problems with the Canon LBP network printer.

I try different ways. Here are some of my options:

ccp://192.168.137.1:59787/Canon_LBP6020
smb://192.168.137.1:631/Canon_LBP6020

But it all doesn't work

Only the local version works:

ccp://localhost:59787

Offline

#6 2024-08-06 09:13:50

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: Problems with the Canon LBP network printer.

"smb://192.168.137.1:631/Canon_LBP6020" is nonsense, 631 is the cups port, samba ports would default to 139 or 445 but first try without
smb://192.168.137.1/Canon_LBP6020

You might have to issue workgroup, user and a password, though. See https://man.archlinux.org/man/smbspool.8

Also "does not work" isn't an error message.
https://bbs.archlinux.org/viewtopic.php?id=57855
https://wiki.archlinux.org/title/CUPS/T … #Debug_log

Offline

#7 2024-08-06 12:31:57

abee
Member
From: Ukraine
Registered: 2024-08-01
Posts: 6

Re: Problems with the Canon LBP network printer.

With this option smb://192.168.137.1/Canon_LBP6020 The printer asks for authentication, but when I enter the name and password, the authentication fails and asks for authentication again.

  sudo tail -n 100 -f /var/log/cups/error_log
W [06/Aug/2024:15:28:19 +0300] [Job 116] Backend smb returned status 2 (authentication required)
E [06/Aug/2024:15:28:28 +0300] [Job 115] NT_STATUS_ACCESS_DENIED opening remote spool Test Page
W [06/Aug/2024:15:28:29 +0300] [Job 115] Backend smb returned status 2 (authentication required)
E [06/Aug/2024:15:28:29 +0300] [Job 116] NT_STATUS_ACCESS_DENIED opening remote spool Test Page
W [06/Aug/2024:15:28:30 +0300] [Job 116] Backend smb returned status 2 (authentication required)

And thank you for the smart tips

Offline

#8 2024-08-06 12:36:28

abee
Member
From: Ukraine
Registered: 2024-08-01
Posts: 6

Re: Problems with the Canon LBP network printer.

Considering all the difficulties of the local disconnection of the Canon LBP6020, I thought that this printer should have been connected via the capt  ccp:// .

Offline

#9 2024-08-06 14:36:50

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: Problems with the Canon LBP network printer.

Did you see the linked wiki and manpage about how to add login and password to the URL?
Did you enable the debug level for the cups log?


Afaiu you can access a remote printer via CCP, but not necessarily through windows and certainly not as an SMB share.

Offline

#10 2024-08-07 08:15:38

abee
Member
From: Ukraine
Registered: 2024-08-01
Posts: 6

Re: Problems with the Canon LBP network printer.

Did you see the linked wiki and manpage about how to add login and password to the URL?

Yes.

Did you enable the debug level for the cups log?

Yes.
when I try to print a test page, I get this response in the terminal

D [07/Aug/2024:11:44:23 +0300] [Client 87] Waiting for CGI data.
D [07/Aug/2024:11:44:23 +0300] PID 6937 (/usr/lib/cups/daemon/cups-driverd) exited with no errors.
D [07/Aug/2024:11:44:23 +0300] [Client 87] con->http=0x61750c775190
D [07/Aug/2024:11:44:23 +0300] [Client 87] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=6937, file=22
D [07/Aug/2024:11:44:23 +0300] [Client 87] Waiting for CGI data.
D [07/Aug/2024:11:44:23 +0300] [Client 87] CGI data ready to be sent.
D [07/Aug/2024:11:44:23 +0300] [Client 87] con->http=0x61750c775190
D [07/Aug/2024:11:44:23 +0300] [Client 87] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=6937, file=22

but printing does not occur

Last edited by abee (2024-08-07 09:05:44)

Offline

#11 2024-08-07 08:45:32

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: Problems with the Canon LBP network printer.

Those aren't actually yes or no questions, what happes if you add the credentials to the printer URI and what is the resulting debug output in the logs (nb. that #7 only includes warnings and errors, you've to restart cups after the change)

Offline

Board footer

Powered by FluxBB