[cups.general] server-error-internal-error when trying to configure

Scott McDaniel scott at nofone.org
Tue Jan 4 14:35:12 PST 2005


Did you ever get this resolved?  I am experiencing the identical problem on a Redhat 8.0 system.  Was wondering if you might be able to get me on track.

For me, I have left the cups rpms in place.  I then compiled 1.1.23 and installed it into /opt/cups-1.1.23.  I put the new /etc/init.d/cups script in place and all seems to launch ok.  But get the same error when I goto configure.

Any help would be greatly appreciated.


Paul Dulaba wrote:
> I have Cups 1.1.22 compiled from source on Mandrake 9.1. All printing
> functionality works, and modifying the printer works, but when I click
> on configure in the web interface I get:
>
> Error: server-error-internal-error
>
> There is a ppd file called TEST-HP-4200.ppd located in /etc/cups/ppd
>
> Here is my cupsd.conf:
>
> LogLevel debug2
> Port 631
> <Location />
> Order Deny,Allow
> Deny From All
> Allow From 127.0.0.1
> Allow From 192.168.133.14
> Allow From 192.168.130.11
> Allow From 10.161.130.7
> </Location>
> <Location /jobs>
> Order Deny,Allow
> Deny From All
> Allow From 127.0.0.1
> Allow From 192.168.133.14
> Allow From 192.168.130.11
> Allow From 10.161.130.7
> </Location>
> <Location /printers>
> Order Deny,Allow
> Deny From All
> Allow From 127.0.0.1
> Allow From 192.168.133.14
> Allow From 192.168.130.11
> Allow From 10.161.130.7
> </Location>
> <Location /admin>
> Order Deny,Allow
> Deny From All
> Allow From 127.0.0.1
> Allow From 192.168.133.14
> Allow From 192.168.130.11
> Allow From 10.161.130.7
> </Location>
>
>
> As I have debug2 set, here is the error_log and access_log from when I
> hit the "Configure Printer" button. Any help would be appreciated!!
>
> error_log
>
> d [15/Dec/2004:10:26:41 -0700] AcceptClient(lis=0x812ece8) 0 NumClients = 0
> D [15/Dec/2004:10:26:41 -0700] AcceptClient: 5 from 10.161.130.7:631.
> d [15/Dec/2004:10:26:41 -0700] AcceptClient: Adding fd 5 to InputSet...
> d [15/Dec/2004:10:26:41 -0700] ReadClient: 5, used=0, file=-1
> D [15/Dec/2004:10:26:41 -0700] ReadClient: 5 GET
> /admin/?op=config-printer&printer_name=TEST-HP-4200 HTTP/1.1
> d [15/Dec/2004:10:26:41 -0700] decode_auth(0x4035d008): Authorization
> string = ""
> d [15/Dec/2004:10:26:41 -0700] decode_auth: 5 username=""
> d [15/Dec/2004:10:26:41 -0700] IsAuthorized: con->uri =
> "/admin/?op=config-printer&printer_name=TEST-HP-4200"
> d [15/Dec/2004:10:26:41 -0700] FindBest: uri =
> "/admin/?op=config-printer&printer_name=TEST-HP-4200"...
> d [15/Dec/2004:10:26:41 -0700] FindBest: Location / Limit 7f
> d [15/Dec/2004:10:26:41 -0700] FindBest: Location /jobs Limit 7f
> d [15/Dec/2004:10:26:41 -0700] FindBest: Location /printers Limit 7f
> d [15/Dec/2004:10:26:41 -0700] FindBest: Location /admin Limit 7f
> d [15/Dec/2004:10:26:41 -0700] FindBest: best = "/admin"
> d [15/Dec/2004:10:26:41 -0700] IsAuthorized: auth = 0, satisfy=0...
> d [15/Dec/2004:10:26:41 -0700] pipe_command:
> command="/usr/lib/cups/cgi-bin/admin.cgi",
> options="admin?op=config-printer&printer_name=TEST-HP-4200"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: argv[0] = "admin"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: argv[1] =
> "op=config-printer&printer_name=TEST-HP-4200"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[0] = "PATH=/bin:/usr/bin"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[1] =
> "SERVER_SOFTWARE=CUPS/1.1"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[2] =
> "GATEWAY_INTERFACE=CGI/1.1"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[3] =
> "SERVER_PROTOCOL=HTTP/1.1"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[4] = "REDIRECT_STATUS=1"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[5] = "CUPS_SERVER=localhost"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[6] = "IPP_PORT=631"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[7] = "SERVER_NAME=devserver"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[8] = "SERVER_PORT=631"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[9] =
> "REMOTE_ADDR=10.161.130.7"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[10] =
> "REMOTE_HOST=10.161.130.7"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[11] = "REMOTE_USER="
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[12] = "LANG=en_US.UTF-8"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[13] = "TZ=Canada/Mountain"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[14] = "TMPDIR=/root/tmp"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[15] =
> "CUPS_DATADIR=/usr/share/cups"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[16] =
> "CUPS_SERVERROOT=/etc/cups"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[17] =
> "NLSPATH=/usr/share/locale/%l/%N"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[18] =
> "HTTP_COOKIE=phpbb2mysql_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bs%3A1%3A%222%22%3B%7D"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[19] =
> "HTTP_USER_AGENT=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
> rv:1.7.5) Gecko/20041107 Firefox/1.0"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[20] = "SCRIPT_NAME=/admin/"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[21] = "REQUEST_METHOD=GET"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[22] =
> "QUERY_STRING=op=config-printer&printer_name=TEST-HP-4200"
> d [15/Dec/2004:10:26:41 -0700] pipe_command: envp[23] =
> "CUPS_ENCRYPTION=IfRequested"
> d [15/Dec/2004:10:26:41 -0700] AddCert: adding certificate for pid 11933
> D [15/Dec/2004:10:26:41 -0700] CGI /usr/lib/cups/cgi-bin/admin.cgi
> started - PID = 11933
> I [15/Dec/2004:10:26:41 -0700] Started
> "/usr/lib/cups/cgi-bin/admin.cgi" (pid=11933)
> D [15/Dec/2004:10:26:41 -0700] SendCommand: 5 file=8
> d [15/Dec/2004:10:26:41 -0700] SendCommand: Adding fd 8 to InputSet...
> d [15/Dec/2004:10:26:41 -0700] SendCommand: Adding fd 5 to OutputSet...
> d [15/Dec/2004:10:26:41 -0700] AcceptClient(lis=0x812ece8) 0 NumClients = 1
> D [15/Dec/2004:10:26:41 -0700] AcceptClient: 7 from localhost:631.
> d [15/Dec/2004:10:26:41 -0700] AcceptClient: Adding fd 7 to InputSet...
> d [15/Dec/2004:10:26:41 -0700] WriteClient: 5 Content-Type:
> text/html;charset=utf-8
> d [15/Dec/2004:10:26:41 -0700] WriteClient: 5
> d [15/Dec/2004:10:26:41 -0700] WriteClient: 5 1167 bytes
> d [15/Dec/2004:10:26:41 -0700] AcceptClient(lis=0x812ece8) 0 NumClients = 2
> D [15/Dec/2004:10:26:41 -0700] AcceptClient: 9 from localhost:631.
> d [15/Dec/2004:10:26:41 -0700] AcceptClient: Adding fd 9 to InputSet...
> d [15/Dec/2004:10:26:41 -0700] ReadClient: 9, used=0, file=-1
> D [15/Dec/2004:10:26:41 -0700] ReadClient: 9 POST / HTTP/1.1
> d [15/Dec/2004:10:26:41 -0700] decode_auth(0x40362870): Authorization
> string = ""
> d [15/Dec/2004:10:26:41 -0700] decode_auth: 9 username=""
> d [15/Dec/2004:10:26:41 -0700] IsAuthorized: con->uri = "/"
> d [15/Dec/2004:10:26:41 -0700] FindBest: uri = "/"...
> d [15/Dec/2004:10:26:41 -0700] FindBest: Location / Limit 7f
> d [15/Dec/2004:10:26:41 -0700] FindBest: Location /jobs Limit 7f
> d [15/Dec/2004:10:26:41 -0700] FindBest: Location /printers Limit 7f
> d [15/Dec/2004:10:26:41 -0700] FindBest: Location /admin Limit 7f
> d [15/Dec/2004:10:26:41 -0700] FindBest: best = "/"
> d [15/Dec/2004:10:26:41 -0700] IsAuthorized: auth = 0, satisfy=0...
> d [15/Dec/2004:10:26:41 -0700] POST /
> d [15/Dec/2004:10:26:41 -0700] CONTENT_TYPE = application/ipp
> d [15/Dec/2004:10:26:41 -0700] ReadClient: 9 con->data_encoding =
> length, con->data_remaining = 207, con->file = -1
> d [15/Dec/2004:10:26:41 -0700] ProcessIPPRequest(0x40362870[9]):
> operation_id = 000b
> d [15/Dec/2004:10:26:41 -0700] ProcessIPPRequest:
> URI="ipp://localhost/printers/TEST-HP-4200"
> d [15/Dec/2004:10:26:41 -0700] get_printer_attrs(0x40362870[9],
> ipp://localhost/printers/TEST-HP-4200)
> d [15/Dec/2004:10:26:41 -0700]
> add_printer_state_reasons(0x40362870[9], 0x80d0710[TEST-HP-4200])
> d [15/Dec/2004:10:26:41 -0700] add_queued_job_count(0x40362870[9],
> 0x80d0710[TEST-HP-4200])
> d [15/Dec/2004:10:26:41 -0700] copy_attrs(0x8103190, 0x81096e0, (nil), 0)
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x811cc10[printer-uri-supported,4,45])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x8092308[uri-authentication-supported,4,44])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80f1988[uri-security-supported,4,44])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x810b908[printer-name,4,42])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80ac180[printer-location,4,41])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80ac0a0[printer-info,4,41])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x811ce10[printer-more-info,4,45])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80dd840[job-quota-period,4,21])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80a7748[job-k-limit,4,21])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80969c8[job-page-limit,4,21])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x8112b60[job-sheets-default,4,42])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x81191c8[device-uri,4,45])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80c7070[color-supported,4,22])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80c7098[pages-per-minute,4,21])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80e4de8[printer-make-and-model,4,41])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80e7248[media-supported,4,44])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80d90c8[media-default,4,44])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80da090[output-bin-supported,4,44])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x809d550[sides-supported,4,44])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80b16d0[sides-default,4,44])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x8121910[finishings-supported,4,23])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80a67c0[finishings-default,4,23])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80a32d0[printer-type,4,23])
> d [15/Dec/2004:10:26:41 -0700] copy_attrs(0x8103190, 0x8089fa0, (nil), 0)
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x808a1e0[pdl-override-supported,4,44])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x808a010[ipp-versions-supported,4,44])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80b4080[operations-supported,4,23])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x808e7a0[multiple-document-jobs-supported,4,22])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x808e7f0[multiple-operation-time-out,4,21])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x808e898[multiple-document-handling-supported,4,44])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x808e8f0[charset-configured,4,47])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80a0da0[charset-supported,4,47])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x8095390[natural-language-configured,4,48])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80954b0[generated-natural-language-supported,4,48])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80955e0[document-format-default,4,49])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80db3b0[document-format-supported,4,80000049])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80957e0[compression-supported,4,44])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x8095850[job-priority-supported,4,21])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x8095898[job-priority-default,4,21])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80958e0[copies-supported,4,33])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x8095920[copies-default,4,21])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x8095960[page-ranges-supported,4,22])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80a6a28[number-up-supported,4,21])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x8095a20[number-up-default,4,21])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x8095a60[orientation-requested-supported,4,23])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x8095ad0[orientation-requested-default,4,23])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x8095b20[job-hold-until-supported,4,44])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x8095c40[job-hold-until-default,4,44])
> d [15/Dec/2004:10:26:41 -0700] copy_attribute(0x8103190,
> 0x80dd9d0[job-sheets-supported,4,42])
> D [15/Dec/2004:10:26:41 -0700] ProcessIPPRequest: 9 status_code=0
> d [15/Dec/2004:10:26:41 -0700] ProcessIPPRequest: Adding fd 9 to OutputSet...
> d [15/Dec/2004:10:26:41 -0700] WriteClient: Removing fd 9 from OutputSet...
> d [15/Dec/2004:10:26:42 -0700] PID 11933 exited with no errors.
> d [15/Dec/2004:10:26:42 -0700] DeleteCert: removing certificate for pid 11933
> d [15/Dec/2004:10:26:42 -0700] ReadClient: 7, used=0, file=-1
> d [15/Dec/2004:10:26:42 -0700] ReadClient: httpGets returned EOF...
> D [15/Dec/2004:10:26:42 -0700] CloseClient: 7
> d [15/Dec/2004:10:26:42 -0700] CloseClient: Removing fd 7 from
> InputSet and OutputSet...
> d [15/Dec/2004:10:26:42 -0700] ReadClient: 9, used=0, file=-1
> d [15/Dec/2004:10:26:42 -0700] ReadClient: httpGets returned EOF...
> D [15/Dec/2004:10:26:42 -0700] CloseClient: 9
> d [15/Dec/2004:10:26:42 -0700] CloseClient: Removing fd 9 from
> InputSet and OutputSet...
> d [15/Dec/2004:10:26:42 -0700] WriteClient: Removing fd 5 from OutputSet...
> d [15/Dec/2004:10:26:42 -0700] WriteClient: Removing fd 8 from InputSet...
> d [15/Dec/2004:10:26:42 -0700] WriteClient: 5 Closing data file 8.
> d [15/Dec/2004:10:26:42 -0700] ReadClient: 5, used=0, file=-1
> D [15/Dec/2004:10:26:42 -0700] ReadClient: 5 GET /favicon.ico HTTP/1.1
> d [15/Dec/2004:10:26:42 -0700] decode_auth(0x4035d008): Authorization
> string = ""
> d [15/Dec/2004:10:26:42 -0700] decode_auth: 5 username=""
> d [15/Dec/2004:10:26:42 -0700] IsAuthorized: con->uri = "/favicon.ico"
> d [15/Dec/2004:10:26:42 -0700] FindBest: uri = "/favicon.ico"...
> d [15/Dec/2004:10:26:42 -0700] FindBest: Location / Limit 7f
> d [15/Dec/2004:10:26:42 -0700] FindBest: Location /jobs Limit 7f
> d [15/Dec/2004:10:26:42 -0700] FindBest: Location /printers Limit 7f
> d [15/Dec/2004:10:26:42 -0700] FindBest: Location /admin Limit 7f
> d [15/Dec/2004:10:26:42 -0700] FindBest: best = "/"
> d [15/Dec/2004:10:26:42 -0700] IsAuthorized: auth = 0, satisfy=0...
> d [15/Dec/2004:10:26:42 -0700] get_file: 5
> filename=/usr/share/doc/cups/favicon.ico size=-1
> D [15/Dec/2004:10:26:42 -0700] SendError: 5 code=404 (Not Found)
> D [15/Dec/2004:10:26:42 -0700] CloseClient: 5
> d [15/Dec/2004:10:26:42 -0700] CloseClient: Removing fd 5 from
> InputSet and OutputSet...
> d [15/Dec/2004:10:26:43 -0700] select_timeout: 10 seconds to update
> root certificate
>
>
> access_log
>
> 10.161.130.7 - - [15/Dec/2004:10:26:41 -0700] "GET
> /admin/?op=config-printer&printer_name=TEST-HP-4200 HTTP/1.1" 200 0
> localhost - - [15/Dec/2004:10:26:41 -0700] "POST / HTTP/1.1" 200 207
> 10.161.130.7 - - [15/Dec/2004:10:26:41 -0700] "GET
> /admin/?op=config-printer&printer_name=TEST-HP-4200 HTTP/1.1" 200 1538
> 10.161.130.7 - - [15/Dec/2004:10:26:42 -0700] "GET /favicon.ico HTTP/1.1" 404 0
>





More information about the cups mailing list