OpenWrt Forum Archive

Topic: Crashing WL-500gP while using USB stick and CUPS

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Recently I installed print server CUPS http://www.cups.org/ , followed this howto: http://blog.jameslick.com/?p=867 . I followed http://wiki.openwrt.org/PrinterSharingHowto and http://wiki.openwrt.org/UsbStorageHowto .
USB stick is spool for CUPS. With fdisk I deleted partition and created new one, formated to ext3 and mounted as ext3 to /mnt.

The problem is since then router from time to time stop printing. I can login to router, I can connect to openVPN installed on router, but I can't login to CUPS console. Even more router don't respond to 'reboot'. The only way is to plug out and in router. After that everything is ok until next 'crash'.

I have no idea where to start from that. Where should I look and what is the problem.

Hi,
could you please post your cupsd.conf?
It should look like that.
RequestRoot /spooler
TempDir /spooler
(/spooler is your usbstick)

With "I cannot access the Cupsconsole" you mean the Cupswebside? (routerip:631)

For me it looks like the router is running out of free spacec (if it is connected to cups) or some other error which is not related to cups in any way but to usbload or something like that.

with best reagrds

p90

p90 wrote:

could you please post your cupsd.conf?

########################################################################
#                                                                      #
# This is the CUPS configuration file.  If you are familiar with       #
# Apache or any of the other popular web servers, we've followed the   #
# same format.  Any configuration variable used here has the same      #
# semantics as the corresponding variable in Apache.  If we need       #
# different functionality then a different name is used to avoid       #
# confusion...                                                         #
#                                                                      #
########################################################################


AccessLog syslog
ErrorLog syslog
LogLevel info
PageLog syslog
PreserveJobHistory Yes
PreserveJobFiles No
AutoPurgeJobs Yes
MaxJobs 25
MaxPrinterHistory 1
#Printcap /etc/printcap
#PrintcapFormat BSD
RequestRoot /mnt/usb/cups
#RemoteRoot remroot
User root
Group root
RIPCache 512k
TempDir /mnt/usb/cups
Port 631
HostNameLookups Off
KeepAlive On
Browsing On
BrowseProtocols cups

<Location />
AuthType None
AuthClass Anonymous
Order Allow,Deny
Allow From All
</Location>

<Location /admin>
AuthType Basic
AuthClass System
Order Allow,Deny
Allow From All
</Location>

p90 wrote:

With "I cannot access the Cupsconsole" you mean the Cupswebside? (routerip:631)

yes.

p90 wrote:

For me it looks like the router is running out of free spacec (if it is connected to cups) or some other error which is not related to cups in any way but to usbload or something like that.

I'll look for it. 256MB USB stick is plugged in so I think it is enough space for spool.

Hi,
how much jobs does your router have to manage at the same time?
I'm using a Wl-500gx and havent had any probs yet so I do not think it is CPU-load which causes this.
(the gx has a weaker CPU and less Ram than the gP)
But I'm using a 1Gb usb-stick. I read on this forum that one job can use more than 200mb while spooling.
Can you see if your usbstick is active during printing? Maybe it has a LED indicating traffic?

with best regards
p90

p90 wrote:

how much jobs does your router have to manage at the same time?

max 2

p90 wrote:

I do not think it is CPU-load

I've checked and while crash CPU-load is max 20%

p90 wrote:

But I'm using a 1Gb usb-stick. I read on this forum that one job can use more than 200mb while spooling.

Most of the documents have 1 or 2 pages so it should not be a problem.

p90 wrote:

Can you see if your usbstick is active during printing?

No I can't see it because its remote router.

Since morning route has crashed 2 times. In the 2nd time I have logged in and dmesg showed in this lines:

Adding Swap: 98028k swap-space (priority -1)
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
printer.c: usblp2: out of paper
printer.c: usblp2: ok
printer.c: usblp1: error -150 writing to printer
printer.c: usblp1: error -150 writing to printer
printer.c: usblp1: error -150 writing to printer
printer.c: usblp2: out of paper
printer.c: usblp2: ok
printer.c: usblp1: error -150 writing to printer
printer.c: usblp1: error -150 writing to printer
printer.c: usblp2: out of paper
printer.c: usblp1: error -150 writing to printer

I looked to /mnt/usb (where I mount partitnion from USB stick) and it was empty! There should be 2 directories. df showed that mounted partition like everything was ok.

Any ideas what to do?

The discussion might have continued from here.