LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Deepin
User Name
Password
Linux Deepin This forum is for the discussion of Linux Deepin.

Notices


Reply
  Search this Thread
Old 03-08-2018, 11:17 AM   #16
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,691

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894

Code:
Listen /run/cups/cups.sock
Listen /run/cups/cups.sock
There is two listen directives but I suspect that the first should be port directive i.e. port 631. Is cups running? Look at the output of the command.

systemctl status cups
 
Old 03-08-2018, 11:33 AM   #17
Sawsmith
LQ Newbie
 
Registered: Mar 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
Please excuse my naivety. Do I reboot after the changes?
 
Old 03-08-2018, 11:34 AM   #18
Sawsmith
LQ Newbie
 
Registered: Mar 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
john@john-PC:~$ systemctl status cups
● cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2018-03-08 12:07:27 GMT; 5h 26min ago
Docs: man:cupsd(8)
Main PID: 474 (cupsd)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/cups.service
└─474 /usr/sbin/cupsd -l

Warning: Journal has been rotated since unit was started. Log output is incomplete or u
lines 1-10/10 (END)
 
Old 03-08-2018, 11:38 AM   #19
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Usually no need to reboot, this isn't Windows reread my previous post https://www.linuxquestions.org/quest...9/#post5828735
 
Old 03-08-2018, 11:56 AM   #20
Sawsmith
LQ Newbie
 
Registered: Mar 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
Still the same fault I'm afraid
 
Old 03-08-2018, 12:08 PM   #21
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Are you able to use the webbrowser now?

I guess a person could try lpadmin run man lpadmin for more info.
 
Old 03-08-2018, 12:09 PM   #22
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
@Sawsmith:I noticed that your 'systemctl status cups' output has cupsd starting with
Code:
/usr/sbin/cupsd -l
When launched with the '-l' option, systemd socket activation is usually employed. You can check that with
Code:
systemctl status cups.socket
It also explains why /etc/cups/cupsd.conf only had the 'Listen /run/cups/cups.sock' directive.

This means cupsd is only launched when required (on demand with a pending print job for example). It also means cupsd stops again after a period of inactivity. There nothing wrong with that (for most users), but that is why you couldn't reach the CUPS web interface via a browser. I have found it problematic when configuring network printers though as cupsd (CUPS server daemon) isn't running when needed for configuration. However, socket activation can be disabled if required, and /lib/systemd/system/cups.service can be adjusted to start with 'cupsd -f' instead. (Usually best accomplished by creating a custom unit file in/etc/systemd/system/ directory.)
 
1 members found this post helpful.
Old 03-08-2018, 12:28 PM   #23
Sawsmith
LQ Newbie
 
Registered: Mar 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
To answer you both:

Mill J - I am reading this in my web browser, so yes. I have tried to run your lpadmin script, but it doesn't like the 'run' command.

john@john-PC:~$ lpadmin run man lpadmin
lpadmin: Unknown argument "run".

Ferrari - Here is what was produced from your 'systemctl status cups.socket' command:

john@john-PC:~$ systemctl status cups.socket
● cups.socket - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.socket; enabled; vendor preset: enabled)
Active: active (running) since Thu 2018-03-08 12:07:27 GMT; 6h ago
Listen: /run/cups/cups.sock (Stream)

Warning: Journal has been rotated since unit was started. Log output is incomplete or u
lines 1-6/6 (END
 
Old 03-08-2018, 01:11 PM   #24
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Ok, that confirms socket activation is in use. As I said, there is nothing wrong with that, but it means cupsd is not permanently running from boot. IIRC, the act of running
Code:
lpinfo -v
can trigger it, and cupsd will stay active for 30 seconds or so. You can confirm that with
Code:
ps -aux|grep cupsd
While cupsd is active you can prceed with configuration, either with a printer configuration utility (I'm not familar with deepin), or via a browser pointed at 'localhost:631' as already mentioned.
 
Old 03-08-2018, 01:25 PM   #25
Sawsmith
LQ Newbie
 
Registered: Mar 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
Neither works I'm afraid.

I've instigated that command several times and tried both configuring the printer and typing localhost:631 into my browser. Both created the same error message as at start.
 
Old 03-08-2018, 02:16 PM   #26
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
I don't know what you mean by "neither works". I assume that the 'ps' command did not show cupsd active? Try restarting with
Code:
sudo systemctl restart cups
and then see if you can reach the web interface via a browser. Alternatively, what printer configuration utility does deepin provide (usually under a system menu)?
 
Old 03-08-2018, 02:45 PM   #27
Sawsmith
LQ Newbie
 
Registered: Mar 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
What I mean by neither works is that typing localhost:631 into my browser and/or configuring my printer using the printer control panel, doesn't work.

I've already tried 'sudo systemctl restart cups' as well. No go.

I have wasted an entire day trying to get this printer working as a lot of effort went into it before I got to this forum. I've even contacted Deepin technical themselves (no answer as yet).

Many thanks Ferrari and Mill J, for all of your efforts, but I think I'll go back to Mint.
 
Old 03-08-2018, 03:02 PM   #28
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
Many thanks Ferrari and Mill J, for all of your efforts, but I think I'll go back to Mint.
Well, that's one option.

If you want to disable socket activation, you can do the following
Code:
sudo systemctl stop cups.socket
Code:
sudo systemctl stop cups.path
Code:
sudo systemctl disable cups.socket
Code:
sudo systemctl disable cups.path
Create a custom cups.service in /etc/systemd/system/ directory (to override the cups package cups.service)
Code:
sudo nano /etc/systemd/system/cups.service
and add
Code:
[Unit]
Description=CUPS Scheduler
Documentation=man:cupsd(8)

[Service]
ExecStart=/usr/sbin/cupsd -f
Type=simple

[Install]
WantedBy=printer.target
Save when done, then
Code:
sudo systemctl daemon-reload
Code:
sudo systemctl enable cups
Code:
sudo systemctl start cups
Now cupsd will be started each and every boot (rather than on demand).

FWIW, here's a recent Ubuntu bug report dealing with socket activation issues...
https://bugs.launchpad.net/ubuntu/+s...s/+bug/1598300
 
Old 03-08-2018, 03:06 PM   #29
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
BTW, you would also need to add the directives (added to cupsd.conf) mentioned by Mill J back in post #12.
 
Old 03-09-2018, 02:42 AM   #30
Sawsmith
LQ Newbie
 
Registered: Mar 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
Thanks again Ferrari.

I will try this on my other machine, but for now and to keep me up and running, Mint is the way forward and it's already working.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Hung with error message: ERROR: Message hist queue is filling up iprince Linux - Enterprise 7 02-10-2014 09:40 AM
server-error-internal-error with CUPS "Configure Printer" fskmh Slackware 6 06-05-2013 01:51 PM
Installed printer won't print - CUPS error message refers to temp file fotofill1969 Linux - Hardware 1 03-10-2013 12:39 AM
[SOLVED] Cups server error 'client-error-not-possible'. jlfkeefe Linux - Newbie 1 05-13-2010 06:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Deepin

All times are GMT -5. The time now is 03:46 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