available devices

Craig ccs_dba at hotmail.com
Mon Mar 2 08:48:52 PST 2009


Need some help..

I am developing an embedded Linux solution based on a Gentoo distro (2.6.24 kernel).  My development environment is an external USB hard drive that is plugged into the embedded solution.  I have printing working in the development environment (cups v1.3.9), but when I copy things to the flash and start the target embedded environment I cannot see any available USB printers (lpinfo -v).  I am using the same kernel in both environments.  The cups logs files are below,
access_log:
localhost - - [03/Mar/2009:07:25:37 -0700] "POST / HTTP/1.1" 200 948 CUPS-Get-Devices -

error_log:
I [03/Mar/2009:07:25:24 -0700] Listening to 127.0.0.1:631 (IPv4)
I [03/Mar/2009:07:25:24 -0700] Listening to /var/run/cups/cups.sock (Domain)
I [03/Mar/2009:07:25:24 -0700] Loaded configuration file "/etc/cups/cupsd.conf"
I [03/Mar/2009:07:25:24 -0700] Using default TempDir of /var/spool/cups/tmp...
I [03/Mar/2009:07:25:24 -0700] Configured for up to 100 clients.
I [03/Mar/2009:07:25:24 -0700] Allowing up to 100 client connections per host.
I [03/Mar/2009:07:25:24 -0700] Using policy "default" as the default!
I [03/Mar/2009:07:25:24 -0700] Full reload is required.
I [03/Mar/2009:07:25:24 -0700] Loaded MIME database from '/etc/cups': 35 types, 38 filters...
I [03/Mar/2009:07:25:24 -0700] Loading job cache file "/var/cache/cups/job.cache"...
I [03/Mar/2009:07:25:24 -0700] Full reload complete.
I [03/Mar/2009:07:25:24 -0700] Cleaning out old temporary files in "/var/spool/cups/tmp"...
E [03/Mar/2009:07:25:24 -0700] Unable to find IP address for server name "Newhost"!
I [03/Mar/2009:07:25:24 -0700] Listening to 127.0.0.1:631 on fd 1...
I [03/Mar/2009:07:25:24 -0700] Listening to /var/run/cups/cups.sock on fd 3...
I [03/Mar/2009:07:25:24 -0700] Resuming new connection processing...
I [03/Mar/2009:07:25:37 -0700] Started "/usr/libexec/cups/daemon/cups-deviced" (pid=2666)
I [03/Mar/2009:07:26:10 -0700] Scheduler shutting down normally.
I [03/Mar/2009:07:26:10 -0700] Saving job cache file "/var/cache/cups/job.cache"...

I have compared the files used by both environments with lsof, this is what it shows:
cupsd     2784  root  cwd       DIR        3,1    1024          2 /
cupsd     2784  root  rtd       DIR        3,1    1024          2 /
cupsd     2784  root  txt       REG        3,1  342852      11776 /usr/sbin/cupsd
cupsd     2784  root  mem       REG        3,1   34244       9882 /lib/libnss_files.so.2
cupsd     2784  root  mem       REG        3,1    9612       9910 /lib/libdl-2.6.1.so
cupsd     2784  root  mem       REG        3,1 1187940       9804 /lib/libc-2.6.1.so
cupsd     2784  root  mem       REG        3,1   21836       9883 /lib/libcrypt-2.6.1.so
cupsd     2784  root  mem       REG        3,1  153352       9802 /lib/libm-2.6.1.so
cupsd     2784  root  mem       REG        3,1  113841       9886 /lib/libpthread-2.6.1.so
cupsd     2784  root  mem       REG        3,1  211404      12528 /usr/lib/libcups.so.2
cupsd     2784  root  mem       REG        3,1   10628      12514 /usr/lib/libpaper.so.1.1.2
cupsd     2784  root  mem       REG        3,1 1262108      12526 /usr/lib/libcrypto.so.0.9.8
cupsd     2784  root  mem       REG        3,1  253796      12524 /usr/lib/libssl.so.0.9.8
cupsd     2784  root  mem       REG        3,1   75160       9911 /lib/libz.so.1.2.3
cupsd     2784  root  mem       REG        3,1  104892       9914 /lib/ld-2.6.1.so
cupsd     2784  root    0u     0000        0,6       0         10 anon_inode
cupsd     2784  root    1u     IPv4       2315                TCP localhost:631 (LISTEN)
cupsd     2784  root    2u      REG        3,1    1111       3979 /var/log/cups/error_log
cupsd     2784  root    3u     unix 0xdfc76500               2316 /var/run/cups/cups.sock
cupsd     2784  root    4u     IPv4       2318                UDP *:631
cupsd     2784  root    5r     FIFO        0,5               2319 pipe
cupsd     2784  root    6w     FIFO        0,5               2319 pipe

I don't have a browser in the embedded environment to check things locally and haven't changed the config to allow externally.

Have I missed something here?  Does anybody know what is required for cups to see the USB devices as they come online?  (dmesg output shows the USB devices)

Thanks for your time,

-Craig




More information about the cups mailing list