I am considering installing Ubuntu Mate 16.04 on a variety of machines, so I am trying it out on an old laptop first.
This is a Gateway ML6226b with 1 MB of RAM and
Intel® Graphics Media Accelerator 950
The install went fine and I have brought it up to date with Software Updater.
I am used to using CUPS through my web browser to install and manage printers. But surfing to
localhost:631 got a “can’t open web page” message.
I looked at cups.org but there was nothing helpful there. Nothing on this forum either. A Google search found the advice to use
cupsctl --remote-admin
This enabled me to navigate to the CUPS main page. I then clicked on “Adding Printers and Classes” and got the “can’t open web page” error for
localhost:631/admin
Is there a user manual for the web interface to the updated CUPS?
P.S. Tried to add tags to this post but failed.
What’s the output of:
sudo systemctl status cups.service
cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2017-05-06 09:26:27 CEST; 1min 14s ago
Docs: man:cupsd(8)
Main PID: 4404 (cupsd)
CGroup: /system.slice/cups.service
├─4404 /usr/sbin/cupsd -l
├─4429 /usr/lib/cups/notifier/dbus dbus://
├─4430 /usr/lib/cups/notifier/dbus dbus://
└─4431 /usr/lib/cups/notifier/dbus dbus://
May 06 09:26:27 faustino systemd[1]: Stopped CUPS Scheduler.
May 06 09:26:27 faustino systemd[1]: Started CUPS Scheduler.
And this is weird: I refreshed the localhost:631/admin page and this time it worked! But later on refreshing got an error again as did refreshing the localhost:631 page.
I just ran that command again. This time I got
cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Sat 2017-05-06 09:32:31 CEST; 36min ago
Docs: man:cupsd(8)
Process: 4404 ExecStart=/usr/sbin/cupsd -l (code=exited, status=0/SUCCESS)
Main PID: 4404 (code=exited, status=0/SUCCESS)
May 06 09:26:27 faustino systemd[1]: Stopped CUPS Scheduler.
May 06 09:26:27 faustino systemd[1]: Started CUPS Scheduler.
And the output from cupsctl is
$ cupsctl
_debug_logging=0
_remote_admin=1
_remote_any=0
_share_printers=0
_user_cancel_any=0
BrowseLocalProtocols=dnssd
DefaultAuthType=Basic
JobPrivateAccess=default
JobPrivateValues=default
MaxLogSize=0
PageLogFormat=
SubscriptionPrivateAccess=default
SubscriptionPrivateValues=default
WebInterface=Yes
Can you please tell me the exact steps I need to do to reproduce your problem?
Well, it's hard to say. I don't think turning --remote-admin on is relevant.
All I do after installing Ubuntu Mate is reboot the machine and wait.
The latest output is
cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Sat 2017-05-06 10:17:49 CEST; 1h 41min ago
Docs: man:cupsd(8)
Process: 6179 ExecStart=/usr/sbin/cupsd -l (code=exited, status=0/SUCCESS)
Main PID: 6179 (code=exited, status=0/SUCCESS)
May 06 10:16:16 faustino systemd[1]: Started CUPS Scheduler.
Looks like it restarted itself and stopped again since my last extract.
Well, sorry but I am clueless.
For me, http://localhost:631/admin is working fine.
orschiro@x230:~$ sudo systemctl status cups.service
[sudo] password for orschiro:
● cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: ena
Active: active (running) since Sat 2017-05-06 08:24:28 CEST; 5h 37min ago
Docs: man:cupsd(8)
Main PID: 913 (cupsd)
Tasks: 1 (limit: 4915)
Memory: 7.9M
CPU: 65ms
CGroup: /system.slice/cups.service
└─913 /usr/sbin/cupsd -l
May 06 08:24:28 x230 systemd[1]: Started CUPS Scheduler.
At least it is not a general bug then…
What’s your version of CUPS?
Mine is 2.2.2-1ubuntu1
.
Hi @desconocido
I’m definitely seeing this at least 3 places:
Ubuntu-Mate 16.04 with Mate 1.16.1 ppa
Ubuntu-Mate 16.04 VM (no printers ever setup)
Ubuntu Server 16.04 (with no desktop) remote, not localhost, but same symptoms!
They recover with: sudo service cups-browsed restart
I may not have waited long enough for the 16.04VM to get entries in /var/log/syslog but the others have several per hour of this:
May 6 06:40:42 ubs3 systemd[1]: Started CUPS Scheduler.
Not sure if this is a clue or normal.
/var/log/cups has nothing helpful either.
I also suspect it’s unique to 16.04 but I may not have waited long enough in my 17.04 VM.
I’m no expert on either cups or systemd and may not have a lot of time today. Just wanted to let you know you’re not alone. Those not seeing it may not be persistent enough - it comes and goes when it wants to.
Here’s hoping this helps someone with some ideas.
EDIT: This looks like it to me and the last post is pretty recent:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1598300
1 Like
Yes, that bug seems to be it. It was discovered in July of last year but they haven't been able to fix it yet because [long story]. The interim fix is to change line
ExecStart=/usr/bin/cupsd -l
to
ExecStart=/usr/bin/cupsd -f
in /lib/systemd/system/cups.service
and then
systemctl daemon-reload
It's been running for 16 minutes now. I'll let you know how it gets on.
Meanwhile, I am now trying to add a printer and may be running into another problem.
2 Likes
It does seem to have fixed my main box and server and those “Started CUPS Scheduler.” messages also stopped.
It seems fine now. CUPS has been running for over 15 hours and I succeded in installing a driver for a Wifi Epson printer and printing to it. My version of CUPS is 2.1.3 by the way.
sudo systemctl status cups.service
has an error now but I think I can safely ignore it:
cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2017-05-06 20:23:18 CEST; 15h ago
Docs: man:cupsd(8)
Main PID: 10540 (cupsd)
CGroup: /system.slice/cups.service
└─10540 /usr/sbin/cupsd -f
May 06 20:23:18 faustino systemd[1]: Started CUPS Scheduler.
May 06 20:32:38 faustino /hpfax[10878]: [10878]: error: Failed to create /var/spool/cups/tmp/.hplip
Thanks to everyone for the help.
1 Like