I know there are older posts concerning this subject, but I couldn't found similar situations.
I'm running Mint 9 (Gnome) and every thing was going fine, until I needed to connect to a printer in a Windows work group.
I tried several solutions, witch included adding two files in /usr/share/cups. A *.ppd file and one filter, I think it was it.
I created and removed several times one two printers (the ones I had available with no success.
Nevertheless, I finally gave up and used a pen to print from another pc (a windows one). Not very good for my image of Linux enthusiastic, but that's me not being very handy.
Now the problem:
At the moment I go to Printing and have the indication "Not connected" in the bottom of the window and have the window without any printer. Before I had also, by default, a virtual printer to print to pdf.
I try to connect selecting Server > Connect menu and localhost. It returns me the error "CUPS server error: There was an error during the CUPS operation:'failed to connect to server'".
I already tried:
- /usr/share/cups start
- sudo /usr/sbin/cupsd
- sudo initctl start cups
They all return that the service is running.
Anyone can help me?
[SOLVED] CUPS server error
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
-
psg
[SOLVED] CUPS server error
Last edited by psg on Thu Jul 08, 2010 8:11 am, edited 1 time in total.
-
RedWagon
Re: CUPS server error
This will show you all running cups processes:
My output (cups running as it should) looks like this:
Most likely it's running, but something's up with it. I would run
and see if that fixes it. For future reference the /etc/init.d/ scripts are usually the best method for starting and stopping services.
Lastly CUPS has a built in web interface that you might want to check out at http://127.0.0.1:631
If you can access the CUPS web interface, then CUPS is running.
Code: Select all
ps aux | grep -v grep | grep cupsCode: Select all
verdow@techcage-07 ~ $ ps aux | grep -v grep | grep cups
root 1748 0.0 0.1 76272 2376 ? Ss Jun28 0:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
verdow@techcage-07 ~ $
Code: Select all
sudo /etc/init.d/cups restartLastly CUPS has a built in web interface that you might want to check out at http://127.0.0.1:631
If you can access the CUPS web interface, then CUPS is running.
Re: CUPS server error
The only problem with that statement is that it's now become a moving target as upstart slowly replaces the standard way of starting services. Case in point is the old "samba" service.For future reference the /etc/init.d/ scripts are usually the best method for starting and stopping services.
First the "samba" service no longer exists. It's been replaced by it's original component daemons: smbd and nmbd
nmbd is in /etc/init.d, smbd is not.
The way you start samba since Ubuntu 10.04 ( Mint 9 ) is:
Code: Select all
sudo service smbd startThe whole thing's a mess.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
-
psg
Re: CUPS server error
You are right altair4, I tried:
and returned me Fail.
But with only Start it gave me:
@RedWagon:
With
nothing happens
Concerning the http://127.0.0.1:631 I can't access almost anything, except the foruns and drivers. It means I don't have Cups running, right?
What else can I do?
Code: Select all
sudo /etc/init.d/cups restartBut with only Start it gave me:
Code: Select all
cupsd: Child exited on signal 15!
[ OK ]With
Code: Select all
ps aux | grep -v grep | grep cupsConcerning the http://127.0.0.1:631 I can't access almost anything, except the foruns and drivers. It means I don't have Cups running, right?
What else can I do?
Re: CUPS server error
I don't know if this fits all your symptoms but it appears there's a bug report for that:
https://bugs.launchpad.net/ubuntu/+sour ... bug/436148
You might want to make sure that /etc/cups/cupsd.conf is in fact either missing or empty first. No need to replace it if it isn't broke.
https://bugs.launchpad.net/ubuntu/+sour ... bug/436148
Since you're copying the default you will no doubt have to reinstall your printers.This worked for me:
dereck@yakisoba:~$ sudo cp /etc/cups/cupsd.conf.default /etc/cups/cupsd.conf
You might want to make sure that /etc/cups/cupsd.conf is in fact either missing or empty first. No need to replace it if it isn't broke.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
-
psg
Re: CUPS server error
You were right altair4, I had the cupsd.conf empty.
Issued:
and problem solved.
But still I wonder why cupsd.conf had gone empty?
Thank you all for the help. Once again Mint forum proved to have valuable members.
Issued:
Code: Select all
sudo cp /etc/cups/cupsd.conf.default /etc/cups/cupsd.conf
sudo /etc/init.d/cups restartBut still I wonder why cupsd.conf had gone empty?
Thank you all for the help. Once again Mint forum proved to have valuable members.
Re: CUPS server error
That I do not know. If I read the bug report correctly it appeared that the contents of his /etc/fstab had somehow found it's way into cupsd.conf. So consider yourself luckypsg wrote:But still I wonder why cupsd.conf had gone empty?
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
