Bug 24135 - Manage Printing returns: Firefox can’t establish a connection to the server at localhost:631 because CUPS is not running
Summary: Manage Printing returns: Firefox can’t establish a connection to the server a...
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Neal Gompa
QA Contact:
URL:
Whiteboard:
Keywords: 7beta1, 7beta3
Depends on:
Blocks:
 
Reported: 2019-01-05 05:51 CET by Ben McMonagle
Modified: 2021-01-29 08:28 CET (History)
7 users (show)

See Also:
Source RPM: mageia-release
CVE:
Status comment:


Attachments
install report (187.18 KB, application/x-xz)
2019-01-05 05:51 CET, Ben McMonagle
Details

Description Ben McMonagle 2019-01-05 05:51:09 CET
Description of problem: invoking Manage Printing returns: Firefox can’t establish a connection to the server at localhost:631.


Version-Release number of selected component (if applicable):
Mageia-7-beta2-x86_64
DATE.txt: Thu Jan  3 22:20:48 CET 2019
md5sum:   67149f7c9505f98ca4431a1163ebe946


How reproducible: every time


Steps to Reproduce:
1. install XFCE DE from above .iso. reboot and login
2. invoke Manage Printing from application launcher menu
3.
Comment 1 Ben McMonagle 2019-01-05 05:51:49 CET
Created attachment 10645 [details]
install report
Ben McMonagle 2019-01-05 05:52:03 CET

Keywords: (none) => 7beta1

Comment 2 Marja Van Waes 2019-01-05 18:12:25 CET
I don't understand this bug report, what does FF have to do with managing printing?

Anyway, assigning to the Xfce maintainer.

CC: (none) => marja11
Assignee: bugsquad => jani.valimaa

Comment 3 Jani Välimaa 2019-01-05 18:44:19 CET
(In reply to ben mcmonagle from comment #0)
> Description of problem: invoking Manage Printing returns: Firefox can’t
> establish a connection to the server at localhost:631.
> 

Sounds more like a problem in cups. Assigning back to bugsquad.

Assignee: jani.valimaa => bugsquad

Comment 4 Ben McMonagle 2019-01-05 20:38:13 CET
not sure, but I think the "Managing Printing" is meant to open a html file that should be on the system (somewhere).
may be related to bug # 24122 ? since it affects a broad range of issues
Comment 5 Marja Van Waes 2019-01-05 23:37:37 CET
(In reply to Jani Välimaa from comment #3)
 
> Sounds more like a problem in cups. Assigning back to bugsquad.

Assigning to Thierry, then.


(In reply to ben mcmonagle from comment #4)
> not sure, but I think the "Managing Printing" is meant to open a html file
> that should be on the system (somewhere).

You're right, it seems to be the same as going to http://localhost:631/ in a Firefox window. I had read this report in too much of a hurry :-/

> may be related to bug # 24122 ? since it affects a broad range of issues

No idea. Thierry will know :-)

Assignee: bugsquad => thierry.vignaud
Source RPM: (none) => cups
CC: (none) => thierry.vignaud

Comment 6 Thierry Vignaud 2019-01-08 04:34:35 CET
Works for me

Keywords: (none) => NEEDINFO

Comment 7 Bit Twister 2019-01-08 05:14:37 CET
(In reply to ben mcmonagle from comment #0)
> Description of problem: invoking Manage Printing returns: Firefox can’t
> establish a connection to the server at localhost:631.

My first guess would be that cups service is not running. Easy check:
  systemctl status cups
Comment 8 Ben McMonagle 2019-01-08 08:01:41 CET
(In reply to Bit Twister from comment #7)
 
> My first guess would be that cups service is not running. Easy check:
>   systemctl status cups

$ systemctl status cups
● cups.service - CUPS Scheduler
   Loaded: loaded (/usr/lib/systemd/system/cups.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:cupsd(8)

$ systemctl start cups.service
*****@localhost ~]$ systemctl status cups
● cups.service - CUPS Scheduler
   Loaded: loaded (/usr/lib/systemd/system/cups.service; disabled; vendor preset: disabled)
   Active: active (running) since Tue 2019-01-08 19:57:43 NZDT; 7s ago
     Docs: man:cupsd(8)
 Main PID: 6318 (cupsd)
   Status: "Scheduler is running..."
   CGroup: /system.slice/cups.service
           └─6318 /usr/sbin/cupsd -l

starting cups service corrects the issue.
Comment 9 Ben McMonagle 2019-01-08 08:04:12 CET
needed to reinstall from scratch and again this issue.

should cups.service be enabled by default?
Comment 10 Bit Twister 2019-01-08 15:08:34 CET
(In reply to ben mcmonagle from comment #9)
> needed to reinstall from scratch and again this issue.
> 
> should cups.service be enabled by default?

Well, your status shows ; vendor preset: disabled

Seen a few discussions about systemd services defaults.
I do not like package installs/updates starting services I have disabled.

CC: (none) => bittwister2

Comment 11 Martin Whitaker 2019-01-08 19:12:40 CET
See https://ml.mageia.org/l/arc/dev/2018-10/msg00367.html.

I foresaw this sort of problem.

CC: (none) => mageia
Keywords: NEEDINFO => (none)

Comment 12 Bit Twister 2019-01-08 22:48:33 CET
For this case/bug it seems like a compromise would be for mcc 
"Set up the printer" to start cups service and ask if user wants
it always enabled.

We have seen more and more security updates fixing local exploits, released, so
less unneeded services running, the better the security.

Currently my web cams have been hacked and are scanning my lan nodes for open
ports. I can not even re-flash them to get rid of malware. 
Glad I have shorewall running.

Several times something has been tracking my mouse movements and no telling
what else. I hear the disk heads doing a lot of movement when moving the mouse.

I believe it is/was malware picked up from surfing. 
Latest firefox-64.0 install and reboot seems to have cleared up the problem.
All firefox usage is done in separate user accounts, surfing and one each
for account needing id/pw, bank, credit card, isp,....
Comment 13 Thierry Vignaud 2019-01-09 03:41:48 CET
That's not a cups issue.
This is because of neal changes in mageia-release...

Assignee: thierry.vignaud => ngompa13
Source RPM: cups => mageia-release

Comment 14 Lewis Smith 2019-01-14 22:24:44 CET
M7 Classic beta2, running XFCE, I have just installed task-printing, and the "Manage printing" menu item does indeed go to & show http://localhost:631/
"CUPS 2.2.10" etc.

# systemctl -l status cups
● cups.service - CUPS Scheduler
   Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2019-01-14 21:56:16 CET; 9min ago

I think that Cups should be started routinely. If you do not want that, it is easy enough via MCC-Services to stop it being started automatically. Here, MCC shows Cups 'to be started'. To see on re-boot.

The problem here is not knowing why the reported problem happens. All right once you know...

CC: (none) => lewyssmith

Comment 15 Lewis Smith 2019-01-25 20:57:44 CET
M7Beta2 Xfce Live.
Manage printing works as it should here. Is it just the Classic ISO?

CC: (none) => westel

Comment 16 Ben McMonagle 2019-01-25 22:31:40 CET
(In reply to Lewis Smith from comment #15)
> M7Beta2 Xfce Live.
> Manage printing works as it should here. Is it just the Classic ISO?

yes - only the CI .

rumour has it Martin will be building some new ones shortly, so I will see if the problem is reproducible in them
Comment 17 Lewis Smith 2019-02-01 11:34:31 CET
Classic beta2 round 2 end January. All 6 desktops installed.
Under Xfce at least, I cannot find 'manage printing' at all in the Tools menu. Possibly hidden under a translation, but I tried all English & Welsh possibilities in the menu type-in box, which functions OK.
'Print settings', yes - which immediately asks to install task-printing. Perhaps that would add 'manage printing'.
Without task-printing, 'manage printing' seems irrelevant, and better absent.
-> Ben.
Comment 18 Lewis Smith 2019-02-01 14:27:54 CET
Classic beta2 round 2 end January. All 6 desktops installed. x64
Without having 'task-printing' installed, I cannot find 'manage printing' in the menus of any of the desktops. Sensible. For me this bug is dead.
However, I will install task-printing to see whether manage-printing gets pulled in.
Comment 19 Lewis Smith 2019-02-04 12:58:05 CET
Installed task-printing (93 pkgs), but did nothing further.
'Manage printing' does indeed then show in the menus.
From Gnome, it worked.
Tried it from Xfce (original bug title), it works.
Then from LXDE (the PAD, for 32-bit Classic ISO), it works.
Given that the problem came from CUPs not running (comments  7-9) - *that* is the issue, already agreed. What is special about Ben's case?

Summary: XFCE, Manage Printing returns: Firefox can’t establish a connection to the server at localhost:631. => Manage Printing returns: Firefox can’t establish a connection to the server at localhost:631 because CUPS is not running

Comment 20 Martin Whitaker 2019-02-04 22:09:00 CET
(In reply to Lewis Smith from comment #19)
> What is special about Ben's case?

Ben didn't install task-printing. What he did do was select the "LSB" category in the installer. This caused the cups package to be selected, which is what adds the "Manage printing" entry to the applications menu. But installing the cups package no longer enables the cups service. See comment 11 for why.

In your case you installed task-printing, which in turn installed the hplip package. When it is installed, the hplip package enables the cups service:

[root@localhost drakx]# rpm -q --scripts hplip
preinstall scriptlet (using /bin/sh):
/usr/bin/systemctl start cups &>/dev/null ||:
/usr/bin/systemctl enable cups &>/dev/null ||:
Len Lawrence 2019-03-31 10:53:56 CEST

CC: (none) => tarazed25
Keywords: (none) => 7beta3

Comment 21 Ben McMonagle 2021-01-29 08:28:32 CET
last comment nearly 2 years ago
closing as old

Resolution: (none) => OLD
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.