Can't use network printer via samba, how to debug the problem?

I've got a network printer available through samba and I'd like to use it from my Ubuntu 14.04. Unfortunately simply adding it through Printers is not enough. If I try to use it it says: Connection failed: NT_STATUS_UNSUCCESSFUL and then Unable to connect to CIFS host, will retry in 60 seconds...

How can I debug these things and learn the reason it doesn't work?

/var/log/cups/error_log

E [23/Jul/2014:13:58:41 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:58:42 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:58:43 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:58:43 +0200] [Job 5] Unable to connect to CIFS host, will retry in 60 seconds...
E [23/Jul/2014:13:59:44 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:59:45 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:59:46 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:59:46 +0200] [Job 5] Unable to connect to CIFS host, will retry in 60 seconds...
E [23/Jul/2014:14:00:47 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:14:00:48 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:14:00:49 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:14:00:49 +0200] [Job 5] Unable to connect to CIFS host, will retry in 60 seconds...

2 Answers

Maybe it will be helpful for someone.

I encountered the same problem on Ubuntu 14.04. Steps below solved it for me:

  • remove printer added via System Settings->Printers
  • open localhost:631in the browser
  • go to Administration tab, click Add Printer button and follow the instructions

I don't know why, but only after adding printer in such way it works for me and for my colleagues.

I solved this by modifying the printer Device URI to include the username and password, in the format:

smb://username:password@

(to change this, go to System settings > Printers, then right-click on the printer icon)

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like