Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pending jobs are lost when cupsd starts #46

Closed
michaelrsweet opened this issue Apr 24, 2003 · 5 comments
Closed

Pending jobs are lost when cupsd starts #46

michaelrsweet opened this issue Apr 24, 2003 · 5 comments
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.1.19rc2
CUPS.org User: steve.p.walsh.hp

When cups is stopped/started with jobs outstanding in a queue, the jobs are deleted.
The message:

LoadAllJobs: Unable to read job control file "/var/spool/cups/c00001"!
LoadAllJobs: Auto-typing document file d00001-001.....
LoadAllJobs: Orphaned print file "/var/spool/cups/d00001-001"!
appears in error_log

c00001 is 600 lp:sys zero length

Jobs are text. Printer is offline ( switched off ) both before and after cups stop/start. Tried with both parallel and lpd.

OS is Solaris 8. compiler gcc 3.2
cups built as follows:

PATH=/usr/local/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb:/usr/ccs/bin
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib
LDFLAGS="-R/usr/local/lib:/usr/local/ssl/lib -L/usr/local/lib"
DSOFLAGS=="-R/usr/local/lib:/usr/local/ssl/lib -L/usr/local/lib"
./configure --with-openssl-includes=/usr/local/ssl/include
--with-openssl-libs=/usr/local/ssl/lib --mandir=/usr/share/man

cupsd.conf as shipped with debug2 set.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Steve,

Do you see this with all jobs (all job control files 0 length)?

Is /var/spool/cups a local filesystem?

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: steve.p.walsh.hp

Yes, always zero length. /var/spool/cups is a local file system.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

OK, thanks, we're looking into it (so far we haven't been able to duplicate it, but several people have reported the same problem...)

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: jlovell

This patch fixes the problem.

Index: cups/ipp.c

RCS file: /home/anoncvs/cups/cups/ipp.c,v
retrieving revision 1.89
diff -u -d -b -w -r1.89 ipp.c
--- cups/ipp.c 8 Apr 2003 03:45:15 -0000 1.89
+++ cups/ipp.c 27 Apr 2003 15:37:21 -0000
@@ -1395,6 +1395,7 @@
{
DEBUG_printf(("ippWriteFile(%d, %p)\n", fd, ipp));

  • ipp->state = IPP_IDLE;
    return (ippWriteIO(&fd, (ipp_iocb_t)ipp_write_file, 1, NULL, ipp));
    }

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

OK, this is now fixed in CVS, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant