andreknieriem / photobooth

A photobooth Web-Application for raspberry pi with gphoto2
https://photobooth.andrerinas.de/
MIT License
294 stars 163 forks source link

CUPS En pause "printer error: No paper (03)") #297

Closed HBTphoto closed 2 years ago

HBTphoto commented 2 years ago

Describe the bug

Everything work well until there is no paper in my canon Selphy CP1000

The state of the printer go to “En pause – “Printer error: No Paper (03)” IMG_20211025_220703

Even if load paper, turn Off then On the printer, the state in CUPS don’t change and there no more print I need to manually click on “start the printer” in CUPS interface, then printer is working well. IMG_20211025_220649

I have the same problem with other photobooth, so it come from CUPS. I read on the web that “ErrorPolicy retry-job” could solve this problem, but this rule seems to be already like that by default in CUPS 2.2.10 IMG_20211025_220916

Is somebody had the same problem? Thank for your help

Screenshots

andi34 commented 2 years ago

It's not a Photobooth issue, that's why I am closing the issue.

Does sudo cupsenable yourPrinterName make it work again?

To allow access to Adminpanel from all devices inside your network run

sudo cupsctl --remote-any
sudo /etc/init.d/cups restart

You might get further help at https://github.com/openprinting/cups

HBTphoto commented 2 years ago

Ok, sorry for the trouble with cups issu. Yes i run sudo cupsenable yourPrinterName and the state of the go ready to print !

MrMaavin commented 2 years ago

I think this issue should be reopend. When i try to print the photobooth should handle the print erros and show the user the issue (maybe a pop-up). So that the user can fix it for example by adding paper. My Idea:

This is only an idea how to handle it but i think the photobooth should handle print error (Maybe just disable the print button).

andi34 commented 2 years ago

What error(s) do you get visible inside the terminal while printing via command line? (E.g. while the paper is empty?)

We can catch what's returned and see if it can be handled. If we only get an unspecific message we can only show a note that there's an issue while printing.

HBTphoto commented 2 years ago

the tweak command line cupsenable yourPrinterName;lp -o landscape -o fit-to-page %s work the photo is send to the printer

via commande line in the terminal when papers is empty i have this message : request id is canon CP1000-10 (1 files(s))

And there the jobs waiting in cups panel

andi34 commented 2 years ago

Doesn't look like an specific error reported which means that there's no way for me known to catch the real error.

On my fork enable dev mode and advanced logging, this will log the return value and output from print to the Photobooth log (access via Debugpanel).

Please share the log once an issue occurs.

HBTphoto commented 2 years ago

Doesn't look like an specific error reported which means that there's no way for me known to catch the real error.

On my fork enable dev mode and advanced logging, this will log the return value and output from print to the Photobooth log (access via Debugpanel).

Please share the log once an issue occurs.

I don't see log for printing in the debug pannel

andi34 commented 2 years ago

Only if dev mode and also advanced logging is active, else it's not logged. It's added to the Photobooth log. Only on latest development version of v3, stable doesn't include it yet.