LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-02-2020, 01:42 PM   #1
Greymug
Member
 
Registered: May 2020
Posts: 51
Blog Entries: 1

Rep: Reputation: Disabled
Question cups cannot connect to server


garyh@HPLap:~$ cups-config --version
2.2.7

garyh@HPLap:~$ lpinfo -v
lpinfo: Bad file descriptor

garyh@HPLap:~$ lpstat -t
scheduler is not running
no system default destination
lpstat: Bad file descriptor
lpstat: Bad file descriptor
lpstat: Bad file descriptor
lpstat: Bad file descriptor
lpstat: Bad file descriptor

I was researching and learned the above. My printer-scanner HP 3520 is available via "Simple Scan" from the menu BUT I cannot print anything. I've uninstalled and re-installed HPLIP. Going to the settings-printers only gives option to "connect" and that /run/cups/cups.sock gives me "Cups server error".
Don't know how to proceed now.
 
Old 07-02-2020, 02:19 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
It appears that cupsd is not running. Which distro are you using?
 
1 members found this post helpful.
Old 07-02-2020, 02:25 PM   #3
Greymug
Member
 
Registered: May 2020
Posts: 51

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Linux mint 19.3 Tricia
 
Old 07-02-2020, 02:40 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Ok, try
Code:
sudo systemctl start cups
and report back if any errors etc

It should be enabled already, but if not this will get it started at boot
Code:
sudo systemctl enable cups
 
1 members found this post helpful.
Old 07-02-2020, 03:04 PM   #5
Greymug
Member
 
Registered: May 2020
Posts: 51

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
start cups .......no errors, but no change
enable cups (Re-booted)...no errors, but no change...'failed to connect to server'
 
1 members found this post helpful.
Old 07-02-2020, 03:13 PM   #6
Greymug
Member
 
Registered: May 2020
Posts: 51

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Wen requesting a "Simple scan" User@HPLap recognizes HP Deskjet_3250_series, but when it comes to printing the print side-note is "Print to file" or "Generic Printer" and neither works.
 
Old 07-02-2020, 03:33 PM   #7
Greymug
Member
 
Registered: May 2020
Posts: 51

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
my address is 127.0.0.53
 
Old 07-02-2020, 05:25 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
How is the printer connected i.e USB or wireless?

Since simple scan recognizes the printer so connectivity is not a problem.

The min version of hplip required by the printer is 3.12.6 and I believe Mint installs 3.19.3 by default so setup should not be a problem.

Does the output of this command show active running?

systemctl status cups
 
Old 07-02-2020, 07:22 PM   #9
Greymug
Member
 
Registered: May 2020
Posts: 51

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
usb
 
Old 07-02-2020, 07:40 PM   #10
Greymug
Member
 
Registered: May 2020
Posts: 51

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
/var/log/cups$ systemctl status cups
● cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit-hit) since Thu 2020-07-02 20:13:10 EDT; 26min ago
Docs: man:cupsd(8)
Main PID: 1095 (code=killed, signal=TERM)

Jul 02 20:13:10 HPLap systemd[1]: cups.service: Service hold-off time over, scheduling restart.
Jul 02 20:13:10 HPLap systemd[1]: cups.service: Scheduled restart job, restart counter is at 4.
Jul 02 20:13:10 HPLap systemd[1]: Stopped CUPS Scheduler.
Jul 02 20:13:10 HPLap systemd[1]: Started CUPS Scheduler.
Jul 02 20:13:10 HPLap systemd[1]: cups.service: Service hold-off time over, scheduling restart.
Jul 02 20:13:10 HPLap systemd[1]: cups.service: Scheduled restart job, restart counter is at 5.
Jul 02 20:13:10 HPLap systemd[1]: Stopped CUPS Scheduler.
Jul 02 20:13:10 HPLap systemd[1]: cups.service: Start request repeated too quickly.
Jul 02 20:13:10 HPLap systemd[1]: cups.service: Failed with result 'start-limit-hit'.
Jul 02 20:13:10 HPLap systemd[1]: Failed to start CUPS Scheduler.
 
Old 07-02-2020, 07:47 PM   #11
Greymug
Member
 
Registered: May 2020
Posts: 51

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
What happened was ... I tried to pipe a cat command to lp0. (unrecognized and suggested "lpr" cups-bsd.
I apt install lpr and see that cups was removed. (mistake)
I apt remove lpr -and- apt install cups-bsd (I then go to my email and begin following your suggestion.
 
Old 07-02-2020, 08:11 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
Make sure /etc/cups/cupsd.conf exists. If there is a /etc/cups/cupsd.conf.default but no cupsd.conf then copy the default and try restarting cups.

lp0 references a legacy hardware parallel port. cups has a usb back end which communicates directly with the printer.
 
1 members found this post helpful.
Old 07-02-2020, 08:31 PM   #13
Greymug
Member
 
Registered: May 2020
Posts: 51

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
root@HPLap:/etc/cups# ls -l
total 88
-rw-rwxrwx 1 root lp 108 Jun 21 21:49 classes.conf
-rw-rwxrwx 1 root root 26954 May 9 2019 cups-browsed.conf
-rw-rwxrwx 1 root lp 21 Jun 30 13:51 cupsd.conf
-rw-rwxrwx 1 root lp 4571 Jun 30 13:50 cupsd.conf.O
-rw-rwxrwx 1 root root 2923 Aug 16 2019 cups-files.conf
drwxr-xr-x 2 root root 4096 Aug 16 2019 interfaces
drwxr-xr-x 2 root lp 4096 Jun 21 22:15 ppd
-rw-rwxrwx 1 root lp 552 Jun 21 22:16 printers.conf
-rw-rwxrwx 1 root lp 552 Jun 21 21:49 printers.conf.O
-rw-rwxrwx 1 root root 240 Dec 13 2019 raw.convs
-rw-rwxrwx 1 root root 211 Dec 13 2019 raw.types
-rw-rwxrwx 1 root root 142 Aug 16 2019 snmp.conf
drwx------ 2 root lp 4096 Aug 16 2019 ssl
-rw-rwxrwx 1 root lp 1222 Jun 30 13:51 subscriptions.conf
-rw-rwxrwx 1 root lp 930 Jun 30 13:50 subscriptions.conf.O
root@HPLap:/etc/cups# open /etc/cups/cupsd.conf
root@HPLap:/etc/cups# Listen

Command 'Listen' not found, did you mean:

command 'listen' from deb ruby-listen

Try: apt install <deb name>

root@HPLap:/etc/cups# listen
Traceback (most recent call last):
5: from /usr/bin/listen:4:in `<main>'
4: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
3: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
2: from /usr/lib/ruby/vendor_ruby/listen/cli.rb:1:in `<top (required)>'
1: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- thor (LoadError)
root@HPLap:/etc/cups#
 
Old 07-02-2020, 08:53 PM   #14
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Code:
root@HPLap:/etc/cups# Listen
This is not a valid command. If you want to check cups.conf use an editor (eg nano) or the ‘cat’ command to view.
Code:
sudo cat /etc/cups/cups.conf

Last edited by ferrari; 07-02-2020 at 08:54 PM.
 
1 members found this post helpful.
Old 07-02-2020, 09:36 PM   #15
Greymug
Member
 
Registered: May 2020
Posts: 51

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
I do not have cups.conf ... cupsd.conf instead........
-------------------------------
root@HPLap:/etc/cups# sudo cat /etc/cups/cupsd.conf
PreserveJobFiles Yes
-------------------------------
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] slackware 14.2 cups clinet cannot reotely print on 14.1 cups print server louigi600 Slackware 28 06-04-2021 03:44 AM
[SOLVED] [CUPS]. Can print from windows. But cannot print from linux cups slack32 Linux - Networking 2 02-10-2013 08:09 PM
[CUPS]. Can print from windows. But cannot print from linux cups slack32 Linux - Networking 1 02-10-2013 05:44 PM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration