LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cups server error I cannot resolve (https://www.linuxquestions.org/questions/linux-newbie-8/cups-server-error-i-cannot-resolve-4175653498/)

sudo1 05-07-2019 02:36 PM

Cups server error I cannot resolve
 
3 Attachment(s)
For about 2 months now, I cannot seem to get my cups server to connect for my hp printer. Using Linux Mint 19 system. I'm fairly new to linux systems. I have researched endless sites and still I'm at a loss. Any help is greatly appreciated. I've attached the screenshots of the errors.

sevendogsbsd 05-07-2019 02:47 PM

Going to need more info, like printer model and connection method (wireless, usb, etc). Also, do you have the hplip package installed?

sudo1 05-07-2019 02:54 PM

Okay. My computer system is a dell optiplex with linux mint 19 installed. the printer is HP office jet pro. I have tried usb/wireless.I have the hplip package installed.

Oli_Gendebien 05-07-2019 02:54 PM

CUPS server name is showing a path, that doesn't look right

sevendogsbsd 05-07-2019 03:02 PM

Agree, should be an IP. What happens when you plug localhost:631 in a browser? what do you get back?

michaelk 05-07-2019 03:16 PM

From what I can tell the errors look normal because either the cups server is not running, is not installed or maybe the firewall isn't allowing a connection. What happens when you run the command.

Code:

sudo systemctl start cups

sudo1 05-07-2019 05:49 PM

When I plug localhost:631, the address reads as "unable to connect to server localhost:631". I turned off my firewall for a few, and I still receive that "unable to connect" address. When I type "sudo systemctl start cups", and enter my password, it is accepted in terminal and waiting for the next code I think? Cups is not running or is disabled I think.

michaelk 05-07-2019 05:58 PM

If nothing happens and all you see is the command line prompt then cups started properly. You can verify by typing in the command
Code:

sudo systemctl status cups
You can enable cups to start at boot time by running the command
Code:

sudo systemctl enable cups
Now try adding your printer using the printers wizard.

sudo1 05-07-2019 06:07 PM

Okay, when I add "sudo systemctl status cups", a list comes up, and at the bottom in red, it says failed.

sudo1 05-07-2019 06:08 PM

"Failed to start CUPS"

michaelk 05-07-2019 06:14 PM

Can you post the list?

hydrurga 05-07-2019 06:18 PM

Can you please paste the entire command-output text here please (use shift-ctrl-c to copy it from your terminal and then ctrl-v to paste it here).

If possible, please do that within CODE tags (see https://www.linuxquestions.org/quest...og.php?b=36313).

For example:

Code:

$ sudo systemctl status cups
.... output....


sudo1 05-07-2019 06:21 PM

$ sudo systemctl status cups
● cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: ena
Active: failed (Result: start-limit-hit) since Tue 2019-05-07 18:56:12 EDT; 8
Docs: man:cupsd(8)
Main PID: 1200 (code=killed, signal=TERM)

May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: cups.service: Service
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: cups.service: Schedule
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: Stopped CUPS Scheduler
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: Started CUPS Scheduler
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: cups.service: Service
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: cups.service: Schedule
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: Stopped CUPS Scheduler
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: cups.service: Start re
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: cups.service: Failed w
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: Failed to start CUPS S
lines 1-16/16 (END)

hydrurga 05-07-2019 06:28 PM

Just a quick note that if you expand your terminal to a larger size (full screen, perhaps), and then run the command again, then it won't truncate the text at the right-hand side as it has done above. In saying that, I'll now hand you back to the safe hands of michaelk to analyse the output.

sudo1 05-07-2019 06:32 PM

$ sudo systemctl status cups
[sudo] password for theseanmmoreband:
● cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit-hit) since Tue 2019-05-07 18:56:12 EDT; 34min ago
Docs: man:cupsd(8)
Main PID: 1200 (code=killed, signal=TERM)

May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: cups.service: Service hold-off time over, scheduling restart.
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: cups.service: Scheduled restart job, restart counter is at 4.
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: Stopped CUPS Scheduler.
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: Started CUPS Scheduler.
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: cups.service: Service hold-off time over, scheduling restart.
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: cups.service: Scheduled restart job, restart counter is at 5.
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: Stopped CUPS Scheduler.
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: cups.service: Start request repeated too quickly.
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: cups.service: Failed with result 'start-limit-hit'.
May 07 18:56:12 theseanmmoreband-OptiPlex-790 systemd[1]: Failed to start CUPS Scheduler.


All times are GMT -5. The time now is 10:46 PM.