LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Canīt access http://localhost:631 (https://www.linuxquestions.org/questions/linux-newbie-8/can%B4t-access-http-localhost-631-a-4175690346/)

pepitolindo 02-11-2021 04:35 PM

Canīt access http://localhost:631
 
I have downloaded and installed CUPS as instructed to install an HP Deskjet 2700 series in wireless mode in a Toshiba laptop running Linux Mint 19.3
Every time I try to access http://localhost:631 I get "Unable to connect" message. No proxy has been selected and I donīt think cupsd is running. Please help.

computersavvy 02-11-2021 05:00 PM

I believe cupsd has to be running in order for that port to be available

pepitolindo 02-11-2021 06:11 PM

How can I make sure cupsd is installed?

michaelk 02-11-2021 06:32 PM

What happens when you run the command

sudo systemctl start cups

pepitolindo 02-11-2021 09:40 PM

nothing happens when I run this sudo

master@hal:~$ sudo systemctl start cups
[sudo] password for master:
master@hal:~$ sudo systemctl start cups
master@hal:~$ ^C
master@hal:~$
master@hal:~$ sudo systemctl start cups
[sudo] password for master:
master@hal:~$

frankbell 02-11-2021 09:51 PM

What do you get when you run this command?

Code:

ps -A | grep cups
If CUPS is running, it should return something like

Code:

[some process number] ?        00:00:15 cupsd
This article may help: https://ubuntu.com/server/docs/service-cups

michaelk 02-12-2021 04:38 AM

No response means the command ran successfully.

I did not phrase my response correctly. hopefully cups is started you should be able to see its web configuration page i.e. localhost:631

pepitolindo 02-12-2021 12:48 PM

Hi Michaelk,
if the sudo run correctly, what would be the next step to access localhost:631?

pepitolindo 02-12-2021 12:51 PM

Hi Frankbell,

I run the code twice and nothing happened ....

master@hal:~$ ps -A | grep cups
master@hal:~$ ps -A | grep cups
master@hal:~$

michaelk 02-12-2021 12:57 PM

Open your file browser i.e. firefox etc and enter as the URL localhost:631 as you originally posted.
What are you trying to accomplish?

Have you already setup the printer using hplip yet? The min version for hplip for your printer is 3.20.5 and if Mint 19 version is not at least that version you will need to update it first. Your printer requires a plugin which is downloaded when the printer is setup.

https://developers.hp.com/hp-linux-i..._devices/index

Look at the output of the command:

sudo systemctl status cups

computersavvy 02-12-2021 01:16 PM

I have ubuntu 20.10 installed on my Pi and 20.04 in a VM. On both I had hplip installed by default, but the hplip-gui package was not there. Without the hplip-gui package you can only do command line control of the printer and it is difficult to set it up.

I ran "sudo apt install hplip hplip-gui" and it verified the hplip version and installed the matching hplip-gui with all the dependencies.

I then ran "hp-setup" and was able to identify the printer and set it up. While hp-setup is running it will download and install the plugin that is needed for the scanner to be accessed.

Try all that and see if things work better afterward. It should work since Mint is similar to Ubuntu.

pepitolindo 02-12-2021 01:43 PM

Hello Computersavvy,
Thanks for your directions, however it looks like I did not run hp-setup correctly.....

Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for dbus (1.12.2-1ubuntu1.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
master@hal:~$ hp-setup
Traceback (most recent call last):
File "/usr/bin/hp-setup", line 48, in <module>
from base import device, utils, tui, models, module, services, os_utils
File "/usr/share/hplip/base/device.py", line 42, in <module>
from . import status
File "/usr/share/hplip/base/status.py", line 50, in <module>
import hpmudext
ImportError: /usr/lib/python2.7/dist-packages/hpmudext.so: undefined symbol: ipAddressBuff
master@hal:~$

pepitolindo 02-12-2021 01:55 PM

Hello Michaelk,
I have Linux Mint 19.3 and I think I also have version 3.20.5 of HPLIP.

Then I run the command you suggested:

master@hal:~$ 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 Fri 2021-02-12 10:57:30 CST; 2
Docs: man:cupsd(8)
Main PID: 2636 (code=killed, signal=TERM)

Feb 12 10:57:30 hal systemd[1]: cups.service: Service hold-off time over, schedu
Feb 12 10:57:30 hal systemd[1]: cups.service: Scheduled restart job, restart cou
Feb 12 10:57:30 hal systemd[1]: Stopped CUPS Scheduler.
Feb 12 10:57:30 hal systemd[1]: cups.service: Start request repeated too quickly
Feb 12 10:57:30 hal systemd[1]: cups.service: Failed with result 'start-limit-hi
Feb 12 10:57:30 hal systemd[1]: Failed to start CUPS Scheduler.
lines 1-12/12 (END)

pepitolindo 02-12-2021 01:58 PM

Hi Michaelk,

I just checked and I have HPLIP version 3.20.9

michaelk 02-12-2021 02:53 PM

Make sure your /etc/cups/cups.conf file contains more then one line. Check out this thread:

https://forums.linuxmint.com/viewtopic.php?t=310426


All times are GMT -5. The time now is 08:59 PM.