/etc/cups/mime.types getting re-written

Anonymous anonymous at easysw.com
Sun Apr 30 15:31:50 PDT 2006


> Tim Harvey wrote:
> > I'm having trouble with my cups system where the /etc/cups/mime.types file continues to get re-written, perhaps once a day but I'm not sure.  Every time it gets re-written, I run into the issue here: http://samba.imasd.elmundo.es/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.html#cups-raw regarding 'application/octet-stream' getting commented.
> >
> > What could be causing this?  I'm running on a fairly standard FC4 system:
> > cups-1.1.23-15.1
> > samba-3.0.14a-2
>
> The file will get rewritten whenever you update CUPS.
>
> You probably want to create a separate .types file in /etc/cups with
> your changes in it (you can duplicate MIME type definitions without
> difficulties...)
>

So I figured out that cups itself is overwriting the config files following some sort of cups error when you try to print to a printer that is not online.  That's not very convenient!

Here is a snippet from /var/log/cups/error:
D [30/Apr/2006:15:24:23 -0700] StartJob: filterfds[0] = [ -1 11 ]
D [30/Apr/2006:15:24:23 -0700] start_process("/usr/lib/cups/backend/usb", 0xbfe3f150, 0xbfe3e6c8, 10, 11, 9)
I [30/Apr/2006:15:24:23 -0700] Started backend /usr/lib/cups/backend/usb (PID 10250) for job 332.
D [30/Apr/2006:15:24:23 -0700] ProcessIPPRequest: 6 status_code=0
D [30/Apr/2006:15:24:23 -0700] CloseClient: 6
E [30/Apr/2006:15:24:23 -0700] [Job 332] Unable to open USB device "usb://Canon/CP510": No such device
E [30/Apr/2006:15:24:23 -0700] PID 10250 stopped with status 1!
D [30/Apr/2006:15:24:23 -0700] UpdateJob: job 332, file 0 is complete.
D [30/Apr/2006:15:24:23 -0700] StopJob: id = 332, force = 0
I [30/Apr/2006:15:24:23 -0700] Saving printers.conf...
D [30/Apr/2006:15:24:23 -0700] StopJob: printer state is 5
D [30/Apr/2006:15:24:24 -0700] AcceptClient: 6 from localhost:631.

What's with the 'Saving printers.conf...'!?
It seems to clobber my Listen/Browse statements and change mime.types possibly to some default settings?

cups-1.1.23-15.1

Tim






More information about the cups mailing list