Bug#710297: cups: server-error-internal-error encountered when setting up new printer (Dell 5130cdn color laser)
reassign 710297 system-config-printer found 710297 1.4.1-2 thanks On Fri 31 May 2013 at 12:06:28 +0100, Brian Potkin wrote: CUPS appears to think it is dealing with a System V interface script, not a PPD. I do not have access to system-config-printer at present but in the meantime I downloaded the zip file above, used alien as you did and extracted Dell_C3760dn_Color_Laser.ppd.gz to my home directory. I have now installed system-config-printer on an unstable machine using --no-install-recommends and the outcome is identical with what the bug submitter gets. That is, CUPS says: Unable to copy interface script - No such file or directory Uncompressing a PPD sees the print queue set up. This does not look like a bug in CUPS, so reassigning. Wirawan, it would be helpful if you ran system-config-printer --debug with the gzipped PPD and added to the bug report by attaching the output. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#710297: cups: server-error-internal-error encountered when setting up new printer (Dell 5130cdn color laser)
retitle 710297 cups: server-error-internal-error encountered when setting up new printer (Dell C3760dn color laser) thanks On Wed 29 May 2013 at 12:30:40 -0400, Wirawan Purwanto wrote: Helo Wirawan. Thank you for your report. In Debian 7 stable with the provided cups (1.5.3-5) I tried to add a new printer with external PPD file. The printer is: Dell C3760DN color laser printer, and I used the PPD given by Dell. The driver (PPD actually) was obtained from http://www.dell.com/support/drivers/us/en/04/DriverDetails/Product/dell- c3760dn?driverId=YN48JosCode=LNUXfileId=2998271512languageCode=ENcategoryId=DD I converted the RPM to DEB with alien. Installed it, and tried to set up the printer using the GTK GUI (system-config-printer command). I then specified the PPD location manually in the dialog titled Choose Driver. But when I clicked Apply in the Describe Printer, an error message shows up with this error: CUPS server error There was an error during the CUPS operation: 'server-error-internal-error'. I increased the log level to 'debug2' in /etc/cups/cupsd.conf and I found this portion surrounding the error message in /var/log/cups/error_log: d [29/May/2013:11:59:33 -0400] cupsdAddPrinter(dellcolor) d [29/May/2013:11:59:33 -0400] cupsdAddPrinter: Adding dellcolor to Printers I [29/May/2013:11:59:33 -0400] Setting dellcolor device-uri to socket://prism.physics.wm.edu:9100 (was file:///dev/null.) d [29/May/2013:11:59:33 -0400] set_printer_defaults: printer-info d [29/May/2013:11:59:33 -0400] set_printer_defaults: printer-location d [29/May/2013:11:59:33 -0400] set_printer_defaults: device-uri d [29/May/2013:11:59:33 -0400] copy_file(/var/spool/cups/0001, /etc/cups/interfaces/dellcolor) D [29/May/2013:11:59:33 -0400] CUPS-Add-Modify-Printer server-error-internal-error: Unable to copy interface script - No such file or directory CUPS appears to think it is dealing with a System V interface script, not a PPD. I do not have access to system-config-printer at present but in the meantime I downloaded the zip file above, used alien as you did and extracted Dell_C3760dn_Color_Laser.ppd.gz to my home directory. First - a couple of quick checks: brian@desktop:~$ file Dell_C3760dn_Color_Laser.ppd Dell_C3760dn_Color_Laser.ppd: PPD file, version 4.3 brian@desktop:~$ cupstestppd Dell_C3760dn_Color_Laser.ppd Dell_C3760dn_Color_Laser.ppd: PASS Using localhost:631 I installed a print queue by providing the PPD to CUPS. Compressed or uncompressed the install was successful. I also did lpadmin -v socket://191.168.7.200:9105 -p test -P /home/brian/Dell_C3760dn_Color_Laser.ppd.gz with similar success. E [29/May/2013:11:59:33 -0400] Returning IPP server-error-internal-error for CUPS-Add-Modify-Printer (ipp://localhost/printers/dellcolor) from localhost d [29/May/2013:11:59:33 -0400] cupsdProcessIPPRequest: ippLength(response)=153 I checked that in my installation (which is debian 7 amd64, xfce desktop, installed from LiveCD), there is no subdir /etc/cups/interfaces . I made that subdirectory manually, and the printer setup process continues. But in the end I saw a blank /etc/cups/interfaces/dellcolor, while I saw no /etc/cups/interfaces/dellcolor.ppd . This is strange! I am reporting this bug per chance someone can help out and fix this problem. From my perspective there is nothing to fix. :) Regards, Brian. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#710297: cups: server-error-internal-error encountered when setting up new printer (Dell 5130cdn color laser)
Package: cups Version: 1.5.3-5 Severity: normal Dear Maintainer, In Debian 7 stable with the provided cups (1.5.3-5) I tried to add a new printer with external PPD file. The printer is: Dell C3760DN color laser printer, and I used the PPD given by Dell. The driver (PPD actually) was obtained from http://www.dell.com/support/drivers/us/en/04/DriverDetails/Product/dell- c3760dn?driverId=YN48JosCode=LNUXfileId=2998271512languageCode=ENcategoryId=DD I converted the RPM to DEB with alien. Installed it, and tried to set up the printer using the GTK GUI (system-config-printer command). I then specified the PPD location manually in the dialog titled Choose Driver. But when I clicked Apply in the Describe Printer, an error message shows up with this error: CUPS server error There was an error during the CUPS operation: 'server-error-internal-error'. I increased the log level to 'debug2' in /etc/cups/cupsd.conf and I found this portion surrounding the error message in /var/log/cups/error_log: d [29/May/2013:11:59:33 -0400] cupsdAddPrinter(dellcolor) d [29/May/2013:11:59:33 -0400] cupsdAddPrinter: Adding dellcolor to Printers I [29/May/2013:11:59:33 -0400] Setting dellcolor device-uri to socket://prism.physics.wm.edu:9100 (was file:///dev/null.) d [29/May/2013:11:59:33 -0400] set_printer_defaults: printer-info d [29/May/2013:11:59:33 -0400] set_printer_defaults: printer-location d [29/May/2013:11:59:33 -0400] set_printer_defaults: device-uri d [29/May/2013:11:59:33 -0400] copy_file(/var/spool/cups/0001, /etc/cups/interfaces/dellcolor) D [29/May/2013:11:59:33 -0400] CUPS-Add-Modify-Printer server-error-internal- error: Unable to copy interface script - No such file or directory E [29/May/2013:11:59:33 -0400] Returning IPP server-error-internal-error for CUPS-Add-Modify-Printer (ipp://localhost/printers/dellcolor) from localhost d [29/May/2013:11:59:33 -0400] cupsdProcessIPPRequest: ippLength(response)=153 I checked that in my installation (which is debian 7 amd64, xfce desktop, installed from LiveCD), there is no subdir /etc/cups/interfaces . I made that subdirectory manually, and the printer setup process continues. But in the end I saw a blank /etc/cups/interfaces/dellcolor, while I saw no /etc/cups/interfaces/dellcolor.ppd . This is strange! I am reporting this bug per chance someone can help out and fix this problem. Thanks, Wirawan -- System Information: Debian Release: 7.0 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages cups depends on: ii adduser3.113+nmu3 ii bc 1.06.95-2+b1 ii cups-client1.5.3-5 ii cups-common1.5.3-5 ii cups-filters 1.0.18-2.1 ii cups-ppdc 1.5.3-5 ii debconf [debconf-2.0] 1.5.49 ii dpkg 1.16.10 ii ghostscript9.05~dfsg-6.3 ii libavahi-client3 0.6.31-2 ii libavahi-common3 0.6.31-2 ii libc-bin 2.13-38 ii libc6 2.13-38 ii libcups2 1.5.3-5 ii libcupscgi11.5.3-5 ii libcupsimage2 1.5.3-5 ii libcupsmime1 1.5.3-5 ii libcupsppdc1 1.5.3-5 ii libdbus-1-31.6.8-1 ii libgcc11:4.7.2-5 ii libgnutls262.12.20-6 ii libgssapi-krb5-2 1.10.1+dfsg-5 ii libkrb5-3 1.10.1+dfsg-5 ii libldap-2.4-2 2.4.31-1+nmu2 ii libpam0g 1.1.3-7.1 ii libpaper1 1.1.24+nmu2 ii libslp11.2.1-9 ii libstdc++6 4.7.2-5 ii libusb-1.0-0 2:1.0.11-1 ii lsb-base 4.1+Debian8 ii poppler-utils 0.18.4-6 ii procps 1:3.3.3-3 ii ssl-cert 1.0.32 Versions of packages cups recommends: ii avahi-daemon 0.6.31-2 pn colord none ii foomatic-filters 4.0.17-1 ii ghostscript-cups 9.05~dfsg-6.3 ii printer-driver-gutenprint 5.2.9-1 Versions of packages cups suggests: ii cups-bsd 1.5.3-5 pn cups-pdf none ii foomatic-db-compressed-ppds [foomatic-db] 20120523-1 ii hplip 3.12.6-3.1 ii printer-driver-hpcups 3.12.6-3.1 ii smbclient 2:3.6.6-6 ii udev 175-7.2 -- debconf information: cupsys/raw-print: true cupsys/backend: ipp, lpd, socket, usb, snmp, dnssd -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#710297: cups: server-error-internal-error encountered when setting up new printer (Dell 5130cdn color laser)
One more thing I found: the dellcolor printer was shown as Local System V Printer as the Model. This is not correct. This is why the ppd does not exist. Upon inspecting the source code of cups (using apt-get source cups to download), I found a probable explanation. See file cups-1.5.3/scheduler/ipp.c , subroutine add_printer , where it detects the file type (whether it is a PPD file or an interface script file). This means that either: 1) the compressed PPD file (Dell_C3760dn_Color_Laser.ppd.gz) was not read in properly. If this is the case, then the PPD is not decompressed before being passed to add_printer function call. 2) something was erroneous in uncompressing the .ppd.gz file, because I discovered that the final copied file (/etc/cups/interfaces/dellcolor) is empty. I would lean toward hypothesis 2. If anyone I can do to help hunt the problem, let me know. Wirawan -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org