LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-21-2014, 10:03 AM   #1
tombelcher7
Member
 
Registered: Feb 2008
Location: Surrey
Distribution: Debian
Posts: 214

Rep: Reputation: 5
Question CUPS on PIDORA not starting (it seems)


I am opening this thread as a new issue; the old thread is here:

http://www.linuxquestions.org/questi...on-4175519612/

I am just collating some supporting information to better describe the issue and will reply back here shortly.
 
Old 09-21-2014, 10:07 AM   #2
tombelcher7
Member
 
Registered: Feb 2008
Location: Surrey
Distribution: Debian
Posts: 214

Original Poster
Rep: Reputation: 5
Question

Here is the issue:

Code:
$ sudo service cups status
Redirecting to /bin/systemctl status  cups.service
cups.service - CUPS Printing Service
   Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled)
   Active: active (running) since Sun 2014-09-21 15:50:48 BST; 3min 18s ago
 Main PID: 702 (cupsd)
   CGroup: /system.slice/cups.service
           └─702 /usr/sbin/cupsd -f

Sep 21 15:53:28 systemd[1]: Started CUPS Printing Service.

$ ps -ef|grep 702
root       702     1  0 15:50 ?        00:00:00 /usr/sbin/cupsd -f
Yet the cups error_log is empty and I cannot connect to the web gui on port 631:

firewalld is running and I created a persistent rule to allow from LAN to port 631 (see old thread (url above)).

Can anyone help with this?
 
Old 09-21-2014, 04:47 PM   #3
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Rep: Reputation: Disabled
My cups error_log is empty until there is an actual error or debug message, so I do not think the empty error log means it isn't running. Try this, to see if cupsd is listening:
Code:
$ netstat -an | egrep '/cups|:631'
Response should be 1, 2, or 3 lines showing cupsd is listening on TCP port 631, tcp6 port 631 (if supported), and a Unix socket, something like /var/run/cups/cups.sock possibly.

If cupsd is running (as you found), and is listening on ports, the next step is to figure out why you can't connect to it. (If it isn't listening, you need to debug that first.)
 
Old 09-21-2014, 05:33 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,688

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
By default the cups web interface can only be accessed on the same computer. Have you tried going to localhost:631 in a web browser. If that works then all is good.

By changing the directive listen localhost 631 to port 631 in /etc/cups/cupsd.conf will allow others computers to access the cups web interface.
 
Old 09-22-2014, 03:44 PM   #5
tombelcher7
Member
 
Registered: Feb 2008
Location: Surrey
Distribution: Debian
Posts: 214

Original Poster
Rep: Reputation: 5
The admin GUI runs locally but not remotely:

(Clearly a firewall issue)

$ telnet 10.0.0.29 631
Trying 10.0.0.29...
telnet: connect to address 10.0.0.29: Connection refused

Though I think I will give up at this point as the dell driver is (X86/I686) and will not install on the raspberry PI (unless there's a way of getting the libraries? --would this be ia32-libs or whatever its called?)
 
Old 09-22-2014, 03:52 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,688

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Not necessarily. As I said cups will only listen to localhost on the server by default regardless of the firewall. You need to modify cups.conf to allow all interfaces and restart cups.

What is the model of your Dell printer?
 
1 members found this post helpful.
Old 09-23-2014, 07:55 AM   #7
tombelcher7
Member
 
Registered: Feb 2008
Location: Surrey
Distribution: Debian
Posts: 214

Original Poster
Rep: Reputation: 5
Printer is Dell 2150CDN from memory

I did check the 'listen on' directive which was 631

Later today I will post the cupsd.conf

I will also when I get home check the previous item posted by ljb643:

netstat -an | egrep '/cups|:631'

Last edited by tombelcher7; 09-23-2014 at 08:00 AM.
 
Old 09-23-2014, 01:28 PM   #8
tombelcher7
Member
 
Registered: Feb 2008
Location: Surrey
Distribution: Debian
Posts: 214

Original Poster
Rep: Reputation: 5
netstat -an | egrep '/cups|:631'
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 1 0 127.0.0.1:60779 127.0.0.1:631 CLOSE_WAIT
tcp 1 0 127.0.0.1:60778 127.0.0.1:631 CLOSE_WAIT
tcp 1 0 127.0.0.1:60781 127.0.0.1:631 CLOSE_WAIT
tcp 1 0 127.0.0.1:60780 127.0.0.1:631 CLOSE_WAIT
tcp6 0 0 ::1:631 :::* LISTEN
unix 2 [ ACC ] STREAM LISTENING 4861 /var/run/cups/cups.sock
 
Old 09-23-2014, 01:40 PM   #9
tombelcher7
Member
 
Registered: Feb 2008
Location: Surrey
Distribution: Debian
Posts: 214

Original Poster
Rep: Reputation: 5
Hi Michael,

You were right: Problem with cupsd.conf

Changed from listen local to my LAN through CIDR..........

# Only listen for connections from the local machine.
Port 631
Listen 10.0.0.0/24
Listen /var/run/cups/cups.sock

The access to CUPS remotely is fixed; the only lasting issue is the compatability of the RPM with PIDORA running on raspberry PI (do you have any ideas?)



Quote:
Originally Posted by michaelk View Post
Not necessarily. As I said cups will only listen to localhost on the server by default regardless of the firewall. You need to modify cups.conf to allow all interfaces and restart cups.

What is the model of your Dell printer?
 
Old 09-23-2014, 01:43 PM   #10
tombelcher7
Member
 
Registered: Feb 2008
Location: Surrey
Distribution: Debian
Posts: 214

Original Poster
Rep: Reputation: 5
I am going to mark this Thread as solved and link this one from a new post as this will begin to go down the tangent of the driver issue.
 
Old 09-23-2014, 02:02 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,688

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Still looks like cups is only listening to localhost. If it was configured to accept any connection on the LAN then you should see:
Quote:
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN
tcp 0 0 :::631 :::* LISTEN
.

I see I was a bit late.
 
Old 09-23-2014, 02:29 PM   #12
tombelcher7
Member
 
Registered: Feb 2008
Location: Surrey
Distribution: Debian
Posts: 214

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by michaelk View Post
Still looks like cups is only listening to localhost. If it was configured to accept any connection on the LAN then you should see:
.

I see I was a bit late.
The Output of netstat was before my fix (as I can access the GUI remotely now)

But I would encourage you to take a llok at the new post:

http://www.linuxquestions.org/questi...58#post5243058

Any help is vastly appreciated.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] PIDORA as CUPS Server and AirPrint Station tombelcher7 Fedora 3 09-21-2014 10:00 AM
pidora graphical desktop not starting lapishater276 Fedora 4 08-23-2014 03:07 AM
CUPS, and CUPS-PDF error when restarting, or starting process Predatorian Linux - Desktop 0 10-28-2009 09:21 AM
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 06:39 PM
Starting CUPS sharpie Slackware 6 04-18-2004 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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