USB label printer issue - looks good, but 100% locked
Posted: 16. Sep 2014, 20:13
background:
host: ubuntu 12
guest: windows xp
We use xp as a guest because we have a specific label printer that does not have any available drivers for linux, so the xp guest basically just polls a directory and every time we dump a file into it, it sends it to the printer. We have a filter setup for the specific label printer we use. Most of the time it works.
Here is where it gets weird:
Every once in a while, one of these will break. Jobs will continue getting sent to the printer but they will just pile up in the queue. The first job will be stuck in a "printing" status but never actually prints. This job cannot be deleted without turning off the spooler and deleting the files in the system32\spool\printers directory and then starting the spooler again. However, once this has happened, printing cannot be restored. The very next job sent to the printer will instantly get stuck in "printing" status again and will never print.
Restarting the guest vm (or the entire host for that matter) will not clear the queue either. I have tried deleting the printer and then re-adding it in the xp guest, but once again the problem immediately begins again without even a single successful print.
Yesterday I went as far as to uninstall virtualbox, reinstall it, recreate the vm from scratch and it STILL persisted. The only thing I have been able to do to make the setup usable again is to rebuild the entire system, host and guest. This is not practical to have to reinstall the host OS and then do a full puppet run on it just to re-enable printing....especially since I can't reinstall the host OS remotely with the current setup...but even if I could, that is an absurd solution to this problem.
I haven't had enough opportunity to play with it, but (unless it was a coincidence due to some other circumstances) when I booted the computer off a bootable usb that had a cloned image from the actual system, I could print from it, then when I booted back to the actual system on disk printing was restored again. So it would seem that something about booting the system to something else "cleared" the issue. Note: it was not a livecd, it was a full ubuntu install (with virtualbox xp setup identical to actual system) on a 32gb usb drive.
I have read a lot about windows print queues getting stuck like this (I am not a windows guy, so I am far from an expert here) but the steps to fix it don't help me here. They get me back to an empty print queue but of course the problem persists. I am wondering if there is some sort of something interrupting communication between the host and guest that causes the printer to appear to be functional but is actually not reachable or something. I have been pulling my hair out trying to find answers to this but don't really know what else to try.
Please let me know what other info I can provide that might help diagnose this.
virtualbox version: 4.2.26 (I know it is a bit outdated, this setup has been in use for a few years now, but I am hesitant to upgrade as I still read about various usb issues in newer versions and since it works MOST of the time I really don't want to upgrade without concrete proof that something is actually going to improve)
Computer: one of a couple different Dell all-in-one Inspiron's - the kind that look sort of like iMacs.
Printer: Toshiba TEC label printer.
all help is GREATLY appreciated.
host: ubuntu 12
guest: windows xp
We use xp as a guest because we have a specific label printer that does not have any available drivers for linux, so the xp guest basically just polls a directory and every time we dump a file into it, it sends it to the printer. We have a filter setup for the specific label printer we use. Most of the time it works.
Here is where it gets weird:
Every once in a while, one of these will break. Jobs will continue getting sent to the printer but they will just pile up in the queue. The first job will be stuck in a "printing" status but never actually prints. This job cannot be deleted without turning off the spooler and deleting the files in the system32\spool\printers directory and then starting the spooler again. However, once this has happened, printing cannot be restored. The very next job sent to the printer will instantly get stuck in "printing" status again and will never print.
Restarting the guest vm (or the entire host for that matter) will not clear the queue either. I have tried deleting the printer and then re-adding it in the xp guest, but once again the problem immediately begins again without even a single successful print.
Yesterday I went as far as to uninstall virtualbox, reinstall it, recreate the vm from scratch and it STILL persisted. The only thing I have been able to do to make the setup usable again is to rebuild the entire system, host and guest. This is not practical to have to reinstall the host OS and then do a full puppet run on it just to re-enable printing....especially since I can't reinstall the host OS remotely with the current setup...but even if I could, that is an absurd solution to this problem.
I haven't had enough opportunity to play with it, but (unless it was a coincidence due to some other circumstances) when I booted the computer off a bootable usb that had a cloned image from the actual system, I could print from it, then when I booted back to the actual system on disk printing was restored again. So it would seem that something about booting the system to something else "cleared" the issue. Note: it was not a livecd, it was a full ubuntu install (with virtualbox xp setup identical to actual system) on a 32gb usb drive.
I have read a lot about windows print queues getting stuck like this (I am not a windows guy, so I am far from an expert here) but the steps to fix it don't help me here. They get me back to an empty print queue but of course the problem persists. I am wondering if there is some sort of something interrupting communication between the host and guest that causes the printer to appear to be functional but is actually not reachable or something. I have been pulling my hair out trying to find answers to this but don't really know what else to try.
Please let me know what other info I can provide that might help diagnose this.
virtualbox version: 4.2.26 (I know it is a bit outdated, this setup has been in use for a few years now, but I am hesitant to upgrade as I still read about various usb issues in newer versions and since it works MOST of the time I really don't want to upgrade without concrete proof that something is actually going to improve)
Computer: one of a couple different Dell all-in-one Inspiron's - the kind that look sort of like iMacs.
Printer: Toshiba TEC label printer.
all help is GREATLY appreciated.