Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: andyj on March 27, 2020, 07:14:11 PM

Title: Hplip
Post by: andyj on March 27, 2020, 07:14:11 PM
On 64-bit at least hplip also requires bash and python3.6. I can't get the plugin installer working. I got as far as finding out that it requires python-policykit which requires pip at this point, but neither are in the repository. Pip was easy enough to install, but python-policykit 0.4 doesn't want to install because it wants python 3.7. If there is a version that works with 3.6 I haven't found it yet. Since my host box is Slackware I reinstalled the plugins there and duplicated the new file structure into an extension. I installed it, but I don't know how I can test that it is doing anything. I did finally get a two sided color test page out of my M477, so it can work. I haven't tried the scanner or fax yet. Don't know if it will work after I reboot.
Title: Re: Hplip
Post by: Juanito on March 28, 2020, 01:06:10 AM
The latest hplip has dbus-python3.6 as a dep, so python3.6 should have been loaded.

It seems that network connected (as opposed to directly connected) printers behave differently with hplip. Some years back when I had a usb connected printer, pil was required with hp-scan (so maybe python3.6-pillow will work), but now hp-scan cannot even find my printer.

I can scan using the simple-scan extension, but I need to give it the address:
Code: [Select]
$ hp-makeuri 192.168.1.170
...
CUPS URI: hp:/net/Officejet_6700?ip=192.168.1.170
SANE URI: hpaio:/net/Officejet_6700?ip=192.168.1.170
HP Fax URI: hpfax:/net/Officejet_6700?ip=192.168.1.170

$ simple-scan hpaio:/net/Officejet_6700?ip=192.168.1.170

I had understood that python3.6 contained pip, so I'll look at that and python-policykit.
Title: Re: Hplip
Post by: Juanito on March 28, 2020, 02:44:24 AM
The python3.6 extension does provide pip, but as you say, a python3.6 version of policykit does not exist:
Code: [Select]
$ sudo pip3.6 install policykit
Collecting policykit
  Could not find a version that satisfies the requirement policykit (from versions: )
No matching distribution found for policykit

policykit can be compiled for python3.6:
Code: [Select]
$ python3.6 setup.py build
$ sudo python3.6 setup.py install --root=/tmp/pkg

..but it also needs this lot:
Code: [Select]
PyYAML<6.0,>=5.1
attrs<20.0,>=19.3
click<8.0,>=7.0
colorama<0.5.0,>=0.4.1
dataclasses-json<0.4.0,>=0.3.5
delegator.py<0.2.0,>=0.1.1

..however, they can be installed with pip3.6  :)

(note that you need to use "sudo pip3.6 install 'dataclasses_json==0.3.6'"
Title: Re: Hplip
Post by: andyj on March 28, 2020, 11:11:17 AM
After all this to get the plugin installer working I'm looking back on the prize and asking what would the TC way be, and that is to have an extension that is ready to run. It's possible to get the files out of the plugin package using --noexec and --keep. A script that gets the plugin package that matches the hplip version, extracts the files, and puts them in a tree where they belong should be what a TC maintainer would need. It turns out that to print from firefox the extensions colord.tcz and rest.tcz need to be loaded, and a lot of patience. This much works without the plugins. I suppose they're needed for scan and fax, but I haven't tested that yet.
Title: Re: Hplip
Post by: Juanito on March 29, 2020, 03:13:36 AM
welcome to the cups/hplip twilight zone..
Title: Re: Hplip
Post by: techsuper on April 03, 2020, 11:33:48 AM
Hello, this looks like the right place to post this.
Sorry if I missed something obvious.
I'm getting quite frustrated over such a simple (or really should be) task.
I have cups installed and verified its running.
I can go to localhost:631/admin and add a printer, but I can't get the right driver installed (I think).
The HPLIP website shows it as a supported printer in the 3.20 branch.
On the HPLIP website, I used the recommended option and chose Others since their isn't a Core or Tiny Core listed.
Following their instructions for an automatic install (sh filename.run), yields an error. It creates the directory, but displays an error "eval:line 1/hplip-install: not found". Though there is a file with that name in the new directory.
Other posts on the net say to run hp-setup to configure, but no such file exists that I can locate using the Find command.
Any help is greatly appreciated.
Brent
Title: Re: Hplip
Post by: Juanito on April 03, 2020, 12:16:32 PM
Are you using the tinycore hplip extension?
Title: Re: Hplip
Post by: techsuper on April 04, 2020, 11:04:39 AM
yes, thank you.
I used the Download and load option for both files. (hplip_ppd.tcz and hplip.tcz)
the HPLIP site (developers.hp.com) says my p1505 printer is supported with a minimum version of 2.8.2.
The hplip_ppd.tcz in TC shows as version 3.13.11, but it doesn't have a choice for the 1505.
Silly me, thinking I could download the hplip-3.20.3.run file and use the 'SH filename' to install it as shown...

brent
Title: Re: Hplip
Post by: Juanito on April 04, 2020, 11:15:10 AM
You should only need to load the hplip extension (which will load the cups extension) - you should not need the hplip_ppd extension.

When you use the cups "add printer" dialogue, it should automatically find your printer and propose an appropriate hplip driver built in real time.

The hplip version in tc-11.x is hplip-3.20.3, which version of tinycore are you using?
Title: Re: Hplip
Post by: techsuper on April 05, 2020, 01:08:26 PM
Its TC 11.0
CUPS presents the Make as HP, wants me to choose a Model from the list - which p1505 isn't available.
If I choose something generic like HP Laserjet Series PCL 4/5 or 6, it either doesn't do anything or prints
%%%%if  you can read this, your using the wrong driver for your printer. %%%%.

Wait a minute, Developers.hp show the p1505 twice.
One entry says Driver plug-on Optional and the other says Driver plug-in Required.
Now, HOW to find a driver plug-in?
thanks for the help.
brent
Title: Re: Hplip
Post by: Juanito on April 05, 2020, 01:54:04 PM
If your printer is connected directly to your computer, what does the hp-info command show?
Title: Re: Hplip
Post by: techsuper on April 05, 2020, 09:27:03 PM
No, its networked so Win 10 pc's can print also.
you'll have to provide a little more detail, please.
Apps / browse  doesn't have a listing for hp-info.
Typing hp-info in a Terminal yields sh: hp-info: not found.
cd / and using the 'Find . -name *hp-info' yields no files found.
How do i run such a command?
thank you,
brent
Title: Re: Hplip
Post by: Rich on April 05, 2020, 09:52:28 PM
Hi techsuper
hp-info  is part of  hplip.tcz.  You said:
... I used the Download and load option for both files. (hplip_ppd.tcz and hplip.tcz) ...

That means  hplip.tcz  was not added to your  onboot.lst  file. So if you rebooted, it would not  load automatically.

If you execute:
Code: [Select]
tce-load -i hplip.tcz
does the command:
Code: [Select]
hp-infowork now?
Title: Re: Hplip
Post by: Juanito on April 06, 2020, 02:01:23 AM
@andyj is working on a script to create an hplip-plugins extension, but before that, it might be worth checking that you are using the hplip extension as intended, i.e:

* load the hplip extension (this will automatically load the cups extension)
* set a root password
* start the dbus daemon
* start the cups daemon
* open http://localhost:631/admin in a browser
* click on the "add printer" button and follow instructions
Title: Re: Hplip
Post by: techsuper on April 06, 2020, 10:56:15 AM
Thanks guys,

hp-info now runs. The last line says ImportError: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory.
Don't know if this is good or bad.

When I add the printer now their are many more choices for a driver.
The only logical one is HP Laserjet p1505, hpcups 3.17.11, requires proprietary plugin.
Which when trying a test page the job says State: "Filter failed" and nothing prints.
brent
Title: Re: Hplip
Post by: Juanito on April 06, 2020, 11:09:50 AM
If you are using tinycore 11.x, you need the latest version of the hplip extension to get rid of the libcrypto error.

You can update the extension using the apps gui maintenance/check for updates menu.

I'll post an hplip-plugins extension tomorrow.
Title: Re: Hplip
Post by: andyj on April 07, 2020, 01:10:58 AM
I tried scanning with simple-scan:

Code: [Select]
tc@box:~$ simple-scan -d

(simple-scan:13923): dbind-WARNING **: 04:57:59.012: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[+0.00s] DEBUG: simple-scan.vala:638: Starting simple-scan 3.36.0, PID=13923
[+0.00s] DEBUG: posix_spawn avoided (fd close requested)
[+0.01s] DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
[+0.01s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.08s] DEBUG: _g_io_module_get_default: Found default implementation keyfile (GKeyfileSettingsBackend) for ‘gsettings-backend’
[+0.13s] DEBUG: app-window.vala:1908: Loading state from /home/tc/.cache/simple-scan/state
[+0.13s] DEBUG: app-window.vala:1887: Restoring window to 600x424 pixels
[+0.19s] DEBUG: scanner.vala:1541: sane_init () -> SANE_STATUS_GOOD
[+0.19s] DEBUG: scanner.vala:1547: SANE version 1.0.24
[+0.19s] DEBUG: scanner.vala:1608: Requesting redetection of scan devices
[+0.19s] DEBUG: scanner.vala:828: Processing request
[+0.32s] DEBUG: app-window.vala:1983: Saving state to /home/tc/.cache/simple-scan/state
[+1.59s] DEBUG: scanner.vala:341: sane_get_devices () -> SANE_STATUS_GOOD
[+1.59s] DEBUG: scanner.vala:353: Device: name="hpaio:/net/hp_color_laserjet_mfp_m477fdw?ip=192.168.3.77&queue=false" vendor="Hewlett-Packard" model="hp_color_laserjet_mfp_m477fdw" type="all-in-one"
[+1.69s] DEBUG: app-window.vala:1983: Saving state to /home/tc/.cache/simple-scan/state
[+38.47s] DEBUG: app-window.vala:1983: Saving state to /home/tc/.cache/simple-scan/state
[+38.55s] DEBUG: simple-scan.vala:455: Requesting scan at 300 dpi from device 'hpaio:/net/hp_color_laserjet_mfp_m477fdw?ip=192.168.3.77&queue=false'
[+38.55s] DEBUG: scanner.vala:1676: Scanner.scan ("hpaio:/net/hp_color_laserjet_mfp_m477fdw?ip=192.168.3.77&queue=false", dpi=300, scan_mode=ScanMode.COLOR, depth=8, type=single, paper_width=2159, paper_height=2794, brightness=0, contrast=0, delay=3000ms)
[+38.55s] DEBUG: scanner.vala:828: Processing request
[+38.56s] DEBUG: posix_spawn avoided (fd close requested)
[+38.57s] DEBUG: scanner.vala:889: sane_open ("hpaio:/net/hp_color_laserjet_mfp_m477fdw?ip=192.168.3.77&queue=false") -> SANE_STATUS_IO_ERROR
[+38.57s] WARNING: scanner.vala:893: Unable to open device: Error during device I/O
[+38.87s] DEBUG: app-window.vala:1983: Saving state to /home/tc/.cache/simple-scan/state
[+42.06s] DEBUG: app-window.vala:1983: Saving state to /home/tc/.cache/simple-scan/state
[+42.06s] DEBUG: autosave-manager.vala:201: Deleting autosave records
[+42.06s] DEBUG: scanner.vala:1704: Stopping scan thread
[+42.06s] DEBUG: scanner.vala:828: Processing request
[+42.06s] DEBUG: scanner.vala:1715: sane_exit ()
tc@box:~$

The first message seems like a problem, but I don't know if it's preventing scanning or not. It sees the scanner, but can't open it. A reason would be helpful. Dbus and cups are running as I can print a test page.

Code: [Select]
tc@box:~$ ps faux|awk '$5'
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   3936   284 ?        Ss   Apr05   0:00 /sbin/init
root       317  0.0  0.0   4592  4056 ?        Ss   Apr05   0:03 /sbin/udevd --daemon
root     13784  0.0  0.0   4476  3880 ?        S    04:55   0:00  \_ /sbin/udevd --daemon
root     13785  0.0  0.0   4476  3884 ?        S    04:55   0:00  \_ /sbin/udevd --daemon
root       614  0.0  0.0   3936   108 ?        Ss   Apr05   0:00 /sbin/syslogd
root       616  0.0  0.0   3936   104 ?        Ss   Apr05   0:00 /sbin/klogd
tc        4967  0.0  0.0   4016  2548 tty1     Ss+  Apr05   0:00 -sh
tc        4999  0.0  0.0 240412  1492 ?        Ssl  Apr05   0:02 vmhgfs-fuse -o allow_other .host:/andy-home /mnt/hgfs/andy-home
root      5304  0.0  0.0   3936   112 ?        Ss   Apr05   0:00 /sbin/udhcpc -b -i eth0 -x hostname:box -p /var/run/udhcpc.eth0.pid
root      5465  0.1  0.8 260928 72896 tty2     Ssl+ Apr05   2:22 /usr/local/lib/xorg/Xorg -nolisten tcp
tc        5469  0.0  0.0  25124  7144 tty1     S    Apr05   0:03 flwm
tc        5504  0.1  0.5 232804 48968 tty1     Sl   Apr05   3:23 /usr/local/bin/vmtoolsd -n vmusr
tc        5533  0.0  0.0   6692  2224 tty1     S    Apr05   0:00 dbus-launch --autolaunch 24856ab4d1cf4fa9363cbed05e8a3ead --binary-syntax --close-stderr
tc        5547  0.0  0.1  31372 10848 tty1     S    Apr05   0:08 urxvt
tc        5548  0.0  0.0   4016  2604 pts/0    Ss+  Apr05   0:00  \_ sh
tc       11349  0.0  0.0  21660  7932 pts/0    S    04:21   0:00 apps
tc       12241  0.0  0.1  56552  8756 pts/0    S    04:22   0:00 wbar
tc       13910  0.0  0.1  30136  8592 pts/0    S    04:57   0:00  \_ urxvt
tc       13911  0.0  0.0   4016  2488 pts/1    Ss   04:57   0:00      \_ sh
tc       13930  0.0  0.0  15092  2816 pts/1    R+   05:05   0:00          \_ ps faux
tc       13931  0.0  0.0   3936   956 pts/1    S+   05:05   0:00          \_ awk $5
tc       13438  0.0  0.0   5412  1944 ?        Ss   04:31   0:00 /usr/local/bin/dbus-daemon --system
tc       13444  0.0  0.1 253580  9868 ?        Sl   04:31   0:00 /usr/local/lib/colord/colord
root     13463  0.0  0.0 111064  6740 ?        Ssl  04:34   0:00 /usr/local/sbin/cupsd -C /usr/local/etc/cups/cupsd.conf -s /usr/local/etc/cups/cups-files.conf
root     13684  0.0  0.0   6692  2296 pts/0    S    04:46   0:00 dbus-launch --autolaunch 24856ab4d1cf4fa9363cbed05e8a3ead --binary-syntax --close-stderr
root     13685  0.0  0.0   5388  2060 ?        Ss   04:46   0:00 /usr/local/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
root     13687  0.0  0.0 230364  5012 ?        Sl   04:46   0:00 /usr/local/lib/at-spi2-core/at-spi-bus-launcher
root     13691  0.0  0.0   5280  2404 ?        S    04:46   0:00  \_ /usr/local/bin/dbus-daemon --config-file=/usr/local/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
root     13699  0.0  0.0 162020  6196 ?        Sl   04:46   0:00 /usr/local/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
tc@box:~$

It works in Slackware so I know it's possible, but there I'm using sane and gimp.
Title: Re: Hplip
Post by: Juanito on April 07, 2020, 01:53:52 AM
I think you can ignore the error message, it's something to do with atk/at-spi2.

Has the hplip firmware been loaded in slackware?

Have you tried hp-scan in tinycore?
Title: Re: Hplip
Post by: Juanito on April 07, 2020, 02:14:20 AM
hplip-plugins extension posted - note that I don't have the hardware to test
Title: Re: Hplip
Post by: Juanito on April 07, 2020, 04:26:13 AM
I get a similiar error if I don't do "hp-makeuri printer_ip_address" first.
Title: Re: Hplip
Post by: techsuper on April 07, 2020, 11:03:12 AM
Good work guys, but something new.

I updated hplip and ghostscript. After loading hplip and trying hp-info,
the new error is 'can't execute python3: no such file or directory.'

Printer still shows the 'filter failed' in the job.

tce-load -wi hp-plugins - yields no such file or directory.
brent


Title: Re: Hplip
Post by: Juanito on April 07, 2020, 11:20:01 AM
How did you update hplip? If you used the apps gui it should have downloaded the new dep file, which would download python3.6.
Title: Re: Hplip
Post by: techsuper on April 07, 2020, 10:10:10 PM
yes, after updating hplip, hp-info now shows a python3 error instead of the libcryptoso.

Title: Re: Hplip
Post by: Juanito on April 08, 2020, 12:34:49 AM
You don't say if you're using x86 or x86_64, but the x86 hplip dep file says this:
Code: [Select]
cups.tcz
ghostscript.tcz
dbus-python3.6.tcz
libsane.tcz
net-snmp.tcz
..which means that python3.6 will be loaded when you load hplip.

What do you get from this command:
Code: [Select]
$ tce-status -i | grep python
Note also that user @andyj confirms he can now load plugins for his printer
Title: Re: Hplip
Post by: techsuper on April 08, 2020, 10:25:04 PM
I had updated hplip using your instructions.
(You can update the extension using the apps gui maintenance/check for updates menu)
Which cured the libcrypto error but created the python error.

I just ran the command tce-load -wi hp-plugins, which looks like it installed/updated hplip-plugins, dbus-python3.6, and python3.6.

Typing hp-info now reads HP LINUX Imaging and Printing System.....yada yada.....
last line is in Red. error: No device found that support this feature.

uname-a shows an i686, which I believe is 32 bit.
(how else is this achieved?)

tce-status -i | grep python
yeilds  dbus-python3.6

installing the printer using the p1505 or the p1505n driver still yields it clicking twice, the job showing the 'filter failed' with no print out. The same test to a networked p3005 yields the Data light flashing, shows Processing, goes Ready and nothing prints. The job has the same "filter failed" error.

thanks,
stay safe
brent
Title: Re: Hplip
Post by: Rich on April 08, 2020, 10:47:40 PM
Hi techsuper
... I just ran the command tce-load -wi hp-plugins, which looks like it installed/updated hplip-plugins, dbus-python3.6, and python3.6. ...
No,  tce-load  does not update anything.

Run these commands:
Code: [Select]
tce-audit builddb
tce-audit updatedeps
tce-audit fetchmissing
tce-update
Click the  Exit  icon and select reboot.
Title: Re: Hplip
Post by: andyj on April 08, 2020, 11:43:12 PM
I updated my extensions per @Rich, rebooted, loaded hplip-plugins, and tried hp-scan. It needs python3.6-pillow in one of the deps, and dbus needs to be restarted for some reason. After that, I get this:

Code: [Select]
tc@box:~$ hp-scan -m color -o scan1.jpg

HP Linux Imaging and Printing System (ver. 3.20.3)
Scan Utility ver. 2.2

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Using device hpaio:/net/hp_color_laserjet_mfp_m477fdw?ip=192.168.3.77&queue=false
Opening connection to device...

Resolution: 300dpi
Mode: color
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (215.899994mm, 296.925995mm)
  Width: 215.899994mm
  Height: 296.925995mm
Destination(s): file
Output file: /home/tc/scan1.jpg

Warming up...                                                                                                                 

Scanning...
Reading data: [*****************************************************************************************] 100%  25.6 MB   
Read 25.6 MB from scanner.
Closing device.

Outputting to destination 'file':

Done.

I didn't even have to give it a device. The one it remembers from cups is apparently good enough. Results seem a little muddy, but it works well enough for not having tweaked it at all.
Title: Re: Hplip
Post by: Rich on April 08, 2020, 11:51:02 PM
Hi andyj
... and dbus needs to be restarted for some reason. ...
Its been awhile, but this has come up before. The  dbus-daemon  does not automatically get started when  dbus.tcz  is installed.
Title: Re: Hplip
Post by: andyj on April 09, 2020, 12:11:28 AM
It is running, just something isn't right until I restart it. Strace just tells me it's broken.

Dbus is running right after I boot:

Code: [Select]
tc@box:~$ ps faux|awk '$5'
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  1.2  0.0   3936   288 ?        Ss   03:57   0:00 /sbin/init
root       316  2.6  0.0   4840  4336 ?        Ss   03:57   0:01 /sbin/udevd --daemon
root      2425  0.0  0.0   4840  4244 ?        S    03:57   0:00  \_ /sbin/udevd --daemon
root      2458  0.0  0.0   4840  4236 ?        S    03:57   0:00  \_ /sbin/udevd --daemon
root       577  0.0  0.0   3936   108 ?        Ss   03:57   0:00 /sbin/syslogd
root       579  0.0  0.0   3936   100 ?        Ss   03:57   0:00 /sbin/klogd
tc        4981  0.0  0.0   4016  2456 tty1     Ss+  03:57   0:00 -sh
tc        5026  0.0  0.0 100852   640 ?        Ssl  03:57   0:00 vmhgfs-fuse -o allow_other .host:/andy-home /mnt/hgfs/andy-home
root      5093  0.0  0.0   3936   108 ?        Ss   03:57   0:00 /sbin/udhcpc -b -i eth0 -x hostname:box -p /var/run/udhcpc.eth0.pid
root      5492  4.2  0.6 241364 53344 tty2     Ssl+ 03:57   0:01 /usr/local/lib/xorg/Xorg -nolisten tcp
tc        5496  0.3  0.0  24700  6364 tty1     S    03:57   0:00 flwm
tc        5528  0.7  0.6 232676 49096 tty1     Sl   03:57   0:00 /usr/local/bin/vmtoolsd -n vmusr
tc        5554  0.3  0.1  56376  8664 tty1     S    03:57   0:00 wbar
tc        5574  0.4  0.1  30984 10140 tty1     S    03:57   0:00  \_ urxvt
tc        5575  0.0  0.0   4016  2452 pts/0    Ss   03:57   0:00      \_ sh
tc        5591  0.0  0.0  15092  2820 pts/0    R+   03:58   0:00          \_ ps faux
tc        5592  0.0  0.0   3936   956 pts/0    S+   03:58   0:00          \_ awk $5
tc        5560  0.0  0.0   6692  2304 tty1     S    03:57   0:00 dbus-launch --autolaunch 9fc2c0577895299f3544eb305e8e9d31 --binary-syntax --close-stderr
tc        5561  0.0  0.0   5272  2056 ?        Ss   03:57   0:00 /usr/local/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
tc        5563  0.0  0.0 230380  5276 ?        Sl   03:57   0:00 /usr/local/lib/at-spi2-core/at-spi-bus-launcher
tc        5567  0.0  0.0   5280  2404 ?        S    03:57   0:00  \_ /usr/local/bin/dbus-daemon --config-file=/usr/local/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
tc        5569  0.0  0.0 162020  6208 ?        Sl   03:57   0:00 /usr/local/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
tc@box:~$

This is what strace says on the first try. Looks OK initially, but then it goes wrong (first bazillion lines snipped):

Code: [Select]
write(1, "\n", 1
)                       = 1
write(1, "Resolution: 300dpi\n", 19Resolution: 300dpi
)    = 19
write(1, "Mode: color\n", 12Mode: color
)           = 12
write(1, "Compression: JPEG\n", 18Compression: JPEG
)     = 18
write(1, "Scan area (mm):\n", 16Scan area (mm):
)       = 16
write(1, "  Top left (x,y): (0.000000mm, 0.000000mm)\n", 43  Top left (x,y): (0.000000mm, 0.000000mm)
) = 43
write(1, "  Bottom right (x,y): (215.899994mm, 296.925995mm)\n", 51  Bottom right (x,y): (215.899994mm, 296.925995mm)
) = 51
write(1, "  Width: 215.899994mm\n", 22  Width: 215.899994mm
) = 22
write(1, "  Height: 296.925995mm\n", 23  Height: 296.925995mm
) = 23
write(1, "Destination(s): file\n", 21Destination(s): file
)  = 21
write(1, "Output file: /home/tc/scan3.jpg\n", 32Output file: /home/tc/scan3.jpg
) = 32
write(1, "\nWarming up...", 14
Warming up...)         = 14
write(1, "\n", 1
)                       = 1
ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
write(1, "\10 \10", )                  = 3
write(1, "\n", 1
)                       = 1
write(1, "\nScanning...", 12
Scanning...)           = 12
write(1, "\n", 1
)                       = 1
getpid()                                = 7396
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(8289), sin_addr=inet_addr("192.168.3.77")}, 16) = 0
select(5, NULL, [4], NULL, {45, 0})     = 1 (out [4], left {44, 999995})
sendto(4, "POST / HTTP/1.1\r\nHost: http:0\r\nUser-Agent: gSOAP/2.7\r\nContent-Type: application/soap+xml; charset=utf-8\r\nTransfer-Encoding: chunked\r\nConnection: close\r\n\r\n", 154, 0, NULL, 0) = 154
select(5, NULL, [4], NULL, {45, 0})     = 1 (out [4], left {44, 999998})
sendto(4, "5ee\r\n", 5, 0, NULL, 0)     = 5
select(5, NULL, [4], NULL, {45, 0})     = 1 (out [4], left {44, 999998})
sendto(4, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:SOAP-ENC=\"http://www.w3.org/2003/05/soap-encoding\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org"..., 1518, 0, NULL, 0) = 1518
select(5, NULL, [4], NULL, {45, 0})     = 1 (out [4], left {44, 999998})
sendto(4, "\r\n0\r\n\r\n", 7, 0, NULL, 0) = 7
select(5, [4], NULL, NULL, {45, 0})     = 1 (in [4], left {42, 466271})
recvfrom(4, "HTTP/1.1 202 ACCEPTED\r\nServer: gSOAP/2.7\r\nContent-Type: application/soap+xml; charset=utf-8\r\nTransfer-Encoding: chunked\r\nConnection: close\r\n\r\n", 4096, 0, NULL, NULL) = 142
select(5, [4], NULL, NULL, {45, 0})     = 1 (in [4], left {44, 999859})
recvfrom(4, "5C7\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:SOAP-ENC=\"http://www.w3.org/2003/05/soap-encoding\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w"..., 4096, 0, NULL, NULL) = 1448
select(5, [4], NULL, NULL, {1, 0})      = 1 (in [4], left {0, 998341})
recvfrom(4, "</SOAP-ENV:Body></SOAP-ENV:Envelope>\r\n0\r\n\r\n", 4096, 0, NULL, NULL) = 43
close(4)                                = 0
nanosleep({0, 100000000}, NULL)         = 0
getpid()                                = 7396
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(8289), sin_addr=inet_addr("192.168.3.77")}, 16) = 0
select(5, NULL, [4], NULL, {45, 0})     = 1 (out [4], left {44, 999994})
sendto(4, "POST / HTTP/1.1\r\nHost: http:0\r\nUser-Agent: gSOAP/2.7\r\nContent-Type: application/soap+xml; charset=utf-8\r\nTransfer-Encoding: chunked\r\nConnection: close\r\n\r\n", 154, 0, NULL, 0) = 154
select(5, NULL, [4], NULL, {45, 0})     = 1 (out [4], left {44, 999997})
sendto(4, "1f3\r\n", 5, 0, NULL, 0)     = 5
select(5, NULL, [4], NULL, {45, 0})     = 1 (out [4], left {44, 999998})
sendto(4, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:SOAP-ENC=\"http://www.w3.org/2003/05/soap-encoding\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org"..., 499, 0, NULL, 0) = 499
select(5, NULL, [4], NULL, {45, 0})     = 1 (out [4], left {44, 999998})
sendto(4, "\r\n0\r\n\r\n", 7, 0, NULL, 0) = 7
select(5, [4], NULL, NULL, {45, 0})     = 1 (in [4], left {41, 298280})
recvfrom(4, "HTTP/1.1 200 OK\r\nServer: gSOAP/2.7\r\nContent-Type: application/dime\r\nTransfer-Encoding: chunked\r\nConnection: close\r\n\r\n", 4096, 0, NULL, NULL) = 117
select(5, [4], NULL, NULL, {45, 0})     = 1 (in [4], left {44, 997132})
recvfrom(4, "800\r\n\f \0\0\0\7\0'\0\0\1\314cid:id0\0http://www.w3.org/2003/05/soap-envelope\0<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:SOAP-ENC=\"http://www.w3.org/2003/05/soap-encoding\" xmlns:xsi=\"http:/"..., 4096, 0, NULL, NULL) = 1453
getuid()                                = 1001
openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_CLOEXEC) = 5
lseek(5, 0, SEEK_CUR)                   = 0
fstat(5, {st_mode=S_IFREG|0644, st_size=211, ...}) = 0
read(5, "root:x:0:0:root:/root:/bin/sh\nlp:x:7:7:lp:/var/spool/lpd:/bin/sh\nnobody:x:65534:65534:nobody:/nonexistent:/bin/false\ntc:x:1001:50:Linux User,,,:/home/tc:/bin/sh\nandy:x:1000:1000:Linux User,,,:/home/andy:/bin/sh\n", 4096) = 211
close(5)                                = 0getpid()                                = 7396
write(2, "dbus[7396]: ", 12dbus[7396]: )            = 12
write(2, "arguments to dbus_connection_send() were incorrect, assertion \"connection != NULL\" failed in file dbus-connection.c line 3307.\nThis is normally a bug in some application using the D-Bus library.\n", 195arguments to dbus_connection_send() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3307.
This is normally a bug in some application using the D-Bus library.
) = 195
write(2, "\n", 1
)                       = 1
write(2, "  D-Bus not built with -rdynamic so unable to print a backtrace\n", 64  D-Bus not built with -rdynamic so unable to print a backtrace
) = 64
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
getpid()                                = 7396
gettid()                                = 7396
tgkill(7396, 7396, SIGABRT)             = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=7396, si_uid=1001} ---
+++ killed by SIGABRT +++
Aborted

After I "sudo /usr/local/etc/init.d/dbus restart" hp-scan works as expected. The "your app is buggy" position doesn't hold much water when it works after dbus is restarted.
Title: Re: Hplip
Post by: Rich on April 09, 2020, 12:36:57 AM
Hi andyj
... Dbus is running right after I boot: ...
I'm running TC10 x86 and  /usr/local/tce.installed/dbus  sets up a couple of directories but does not start  dbus.  Maybe another
extension, bootlocal.sh, or something in ~/.X.d is starting it.
Title: Re: Hplip
Post by: Juanito on April 09, 2020, 01:27:04 AM
tce-status -i | grep python
yeilds  dbus-python3.6

This show something is wrong - if dbus-python3.6 was download and loaded using the apps gui or tce-load, then you would get this:
Code: [Select]
$ tce-status -i | grep python
dbus-python3.6
python3.6

Did you download hplip and/or dbus-python3.6 manually using wget or a browser?
Title: Re: Hplip
Post by: andyj on April 09, 2020, 08:24:59 AM
Did you download hplip and/or dbus-python3.6 manually using wget or a browser?

I use either the app browser or tce-load -iwl. Here's my onboot.lst:

Code: [Select]
tc@box:~$ cat /mnt/sda1/tce64-11/onboot.lst
xtables-addons-KERNEL.tcz
Hack-font.tcz
mylocale-en_US.UTF-8.tcz
open-vm-tools-desktop.tcz
flwm.tcz
rxvt.tcz
wbar.tcz
openssh.tcz
ca-certificates.tcz

Which yields this:

Code: [Select]
tc@box:~$ tce-status -i
Hack-font
Hack-fonts
Xlibs
Xorg-7.7
Xorg-7.7-3d
Xorg-7.7-bin
Xorg-7.7-lib
Xorg-fonts
Xprogs
acl
at-spi2-atk
at-spi2-core
atk
atkmm
attr
bzip2-lib
ca-certificates
cairo
cairomm
dbus
elfutils
elogind
expat2
fltk-1.3
flwm
fontconfig
freetype
fribidi
fuse
gdk-pixbuf2
glib2
glibc_gconv
glibmm
graphics-5.4.3-tinycore64
graphite
gtk3
gtkmm
gudev-lib
harfbuzz
i2c-5.4.3-tinycore64
imlib2
imlib2-bin
iptables
ipv6-netfilter-5.4.3-tinycore64
libEGL
libFS
libGL
libGLESv2
libICE
libSM
libX11
libXau
libXaw
libXcomposite
libXcursor
libXdamage
libXdmcp
libXext
libXfixes
libXfont2
libXft
libXi
libXinerama
libXmu
libXpm
libXrandr
libXrender
libXres
libXss
libXt
libXtst
libXv
libXvmc
libXxf86dga
libXxf86vm
libcap
libdnet
libdrm
libepoxy
libevdev
libffi
libfontenc
libinput
libjpeg-turbo
liblzma
libpciaccess
libpng
libsigc++
libtiff
libtirpc
libvdpau
libwacom
libxcb
libxkbcommon
libxkbfile
libxml2
libxshmfence
llvm-lib
mtdev
mylocale-en_US.UTF-8
ncursesw
open-vm-tools
open-vm-tools-desktop
openssh
openssl-1.1.1
pango
pangomm
pcre
pixman
procps-ng
rxvt
shared-mime-info
udev-lib
wayland
wayland-protocols
wbar
xcursor-themes
xf86-input-libinput
xf86-input-vmmouse
xf86-video-vesa
xf86-video-vmware
xkeyboard-config
xorg-server
xtables-addons-5.4.3-tinycore64

There's nothing in bootsync.sh or bootlocal.sh to start dbus, so I don't know who is starting it. I added python3.6-pillow.tcz to the hplip-plugins dep file for now:

Code: [Select]
tc@box:~$ tce-load -i hplip-plugins
readline.tcz: OK
gdbm.tcz: OK
sqlite3.tcz: OK
python3.6.tcz: OK
python3.6-olefile.tcz: OK
python3.6-pillow.tcz: OK
libunistring.tcz: OK
libidn2.tcz: OK
gmp.tcz: OK
nettle3.tcz: OK
libtasn1-4.tcz: OK
p11-kit.tcz: OK
gnutls35.tcz: OK
gcc_libs.tcz: OK
libavahi.tcz: OK
libcups.tcz: OK
libusb.tcz: OK
libsane.tcz: OK
dbus-glib.tcz: OK
dbus-python3.6.tcz: OK
libnl.tcz: OK
libpci.tcz: OK
net-snmp.tcz: OK
liblcms2.tcz: OK
ghostscript.tcz: OK
qpdf.tcz: OK
nspr.tcz: OK
nss.tcz: OK
openjpeg.tcz: OK
curl.tcz: OK
libpoppler07.tcz: OK
cups-filters.tcz: OK
cups.tcz: OK
hplip.tcz: OK
hplip-plugins.tcz: OK

This brings me to where my previous post started:

Code: [Select]
tc@box:~$ hp-scan -m color -f scan4.jpg

HP Linux Imaging and Printing System (ver. 3.20.3)
Scan Utility ver. 2.2

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Using device hpaio:/net/hp_color_laserjet_mfp_m477fdw?ip=192.168.3.77&queue=false
Opening connection to device...

Resolution: 300dpi
Mode: color
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (215.899994mm, 296.925995mm)
  Width: 215.899994mm
  Height: 296.925995mm
Destination(s): file
Output file: /home/tc/scan4.jpg

Warming up...                                                                                                                                                                           

Scanning...
dbus[7532]: arguments to dbus_connection_send() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3307.
This is normally a bug in some application using the D-Bus library.

  D-Bus not built with -rdynamic so unable to print a backtrace
Aborted
tc@box:~$ sudo /usr/local/etc/init.d/dbus restart
stopped /usr/local/bin/dbus-daemon (pid 5560 5554)
rm: can't remove '/var/run/dbus/pid': No such file or directory
tc@box:~$ hp-scan -m color -f scan4.jpg

HP Linux Imaging and Printing System (ver. 3.20.3)
Scan Utility ver. 2.2

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Using device hpaio:/net/hp_color_laserjet_mfp_m477fdw?ip=192.168.3.77&queue=false
Opening connection to device...

Resolution: 300dpi
Mode: color
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (215.899994mm, 296.925995mm)
  Width: 215.899994mm
  Height: 296.925995mm
Destination(s): file
Output file: /home/tc/scan4.jpg

Warming up...                                                                                                                                                                           

Scanning...
Reading data: [***************************************************************************************************************************************************] 100%  25.6 MB   
Read 25.6 MB from scanner.
Closing device.

Outputting to destination 'file':

Done.

If nothing else at least I can reproduce it consistently.

Title: Re: Hplip
Post by: Juanito on April 09, 2020, 08:27:53 AM
I was asking the question of user @techsuper  :)
Title: Re: Hplip
Post by: Rich on April 09, 2020, 08:50:09 AM
Hi andyj
... There's nothing in bootsync.sh or bootlocal.sh to start dbus, so I don't know who is starting it. ...
It could be another extension starting it:
Code: [Select]
grep -i dbus /usr/local/tce.installed/*
Title: Re: Hplip
Post by: andyj on April 09, 2020, 09:15:15 AM
Hi andyj
... There's nothing in bootsync.sh or bootlocal.sh to start dbus, so I don't know who is starting it. ...
It could be another extension starting it:
Code: [Select]
grep -i dbus /usr/local/tce.installed/*

I tried that too, because that's what I assumed first. This was all I got:

Code: [Select]
tc@box:/usr/local/tce.installed$ grep dbus *
dbus:[ -d /var/lib/dbus ] || mkdir -p /var/lib/dbus
dbus:[ -f /var/lib/dbus/machine-id ] || dbus-uuidgen --ensure=/var/lib/dbus/machine-id
Title: Re: Hplip
Post by: Juanito on April 09, 2020, 09:44:34 AM
There are several apps, for example pavucontrol, that will start the dbus daemon on their own without a startup script.

I’d guess that this is done via a glib2 function, but I could be wrong.
Title: Re: Hplip
Post by: GNUser on April 09, 2020, 10:14:52 AM
Hi, andyj. I have been surprised multiple times by finding that dbus is running on my system without a clear explanation (at the time). As juanito mentioned, several applications start dbus on their own. Eventually I tracked down all the culprits. I used this approach:

1. Move dbus-launch to dbus-launch-real
Code: [Select]
$ cd /usr/local/bin
$ sudo mv dbus-launch dbus-launch-real

2. Create a "fake" /usr/local/bin/dbus-launch that logs who called it (don't forget to mark it executable):
Code: [Select]
#!/bin/sh
log=/home/tc/log.txt
echo "My PID is $$ and my PPID is $PPID" >>$log
ps -ef | grep $$ >>$log
ps -ef | grep $PPID >>$log
exec dbus-launch-real "$@"

Eventually I found all of applications that start dbus automatically on my system: filezilla, firefox, gparted, thunderbird, libreoffice, mktrayicon, yad

For the applications on my system that actually require dbus (namely: filezilla, firefox, gparted, thunderbird, libreoffice), I created wrapper scripts that cause dbus to go away once the application is done running.

Here's my wrapper script for filezilla, for example:
Code: [Select]
#!/bin/sh
# this ensures that dbus goes away after the application closes:
exec dbus-run-session /usr/local/bin/filezilla "$@"

For mktrayicon and yad, I realized that they don't actually need dbus--they run in dbus-less systems just fine, but for some reason they do start dbus if it's present on the system. (It seems to have something to do with GTK3 itself, because the string "dbus" does not appear anywhere in mktrayicon's source code.) To prevent such applications from starting dbus, you can create wrapper scripts like this, for example:

Code: [Select]
#!/bin/sh
# this wrapper script prevents mktrayicon from starting dbus
export NO_AT_BRIDGE=1
exec /usr/local/bin/mktrayicon "$@"

Obviously, a wrapper script needs to have the same name as the application (e.g., wrapper script for filezilla should be named filezilla) and needs to be present somewhere in PATH before the application.

I hope that helps.
Title: Re: Hplip
Post by: GNUser on April 09, 2020, 01:28:03 PM
I looked more diligently and found more applications that run  dbus-launch  automatically: geany, gnumeric, gimp, keepassx.

So the final verdict is that every single GTK2 and GTK3 application I use is guilty of running  dbus-launch  automatically. Maybe all GTK applications do this? keepassx is the only QT application I use, not enough to notice a pattern.
Title: Re: Hplip
Post by: techsuper on April 09, 2020, 02:27:57 PM
(Did you download hplip and/or dbus-python3.6 manually using wget or a browser?)
No, ive only used tce-load, apps browse or the tce-audit commands that you povided.
The only thing I tried was the download of hplip from the Developers.hp site. SH filename created a folder, but failed with the hplip-install not found error.
I can execute hp-info at boot without starting anything else. ( red - no device error is still present )
I did the builddb, updatedeps, fetchmissing was empty, and update says Easy mode ok - press enter updating hplip-plugins ok Error could not verify hplip-ppd.tcz, updating libsane.tcz ok.  Errors occured....

is it time to wipe this and start over?
appreciate the help.
b
Title: Re: Hplip
Post by: Juanito on April 10, 2020, 01:55:21 AM
hplip-ppd was removed from the repo as it did not match the hplip version and I'm not sure it is needed.

When you use the cups add printer dialogue do you see your printer listed?

If your printer still requires a plugin to print, have you loaded the hplip-plugins extension and tried the hp-plugin and/or hp-firmware command?

Note that most of the hp-* commands cannot find my network printer even though I can print to it. In addition, after running hp-makeuri, I can scan using the simple-scan extension.
Title: Re: Hplip
Post by: techsuper on April 10, 2020, 11:14:32 AM
with either of the printers that I have tested, it discovered the correct printer. I'm choosing the top choice fo the Discovered printers since the AppSocket, IPP or LPD I've never experienced before. It lists the correct model at the top of the list. But neither prints. They are seeing some sort of command and show a response, but error out.

The hp-firmware command displays the same as the hp-info command.
hp-plugin yields the Plugin Download and Install Utility v 2.1
The choices are d (download from hp), p (specify a path to hplip-3.20.3-plugin.run) which I can't find. The download option yields -
Checking for network, Downloading plug-in from: (which is blank). Downloading plug-in: [ \   ] 0% /bin/sh: lsb_release: not found
(in Pink) warning: core distro is not found in AUTH_TYPES
(in Red) error: Plugin download failed with error code = 1 File does not match its checksum. File may be corrupted or altered.

b
Title: Re: Hplip
Post by: Juanito on April 10, 2020, 11:19:55 AM
I believe you have a laserjet 1505.

The file /usr/local/share/hplip/data/firmware/hp_laserjet_p1505.fw.gz exists in the hplip-plugins extension.

Maybe @andyj can help with how he got plugins to work with his printer.

One problem might be that many hp-* commands do not seem to work with network attached printers.
Title: Re: Hplip
Post by: andyj on April 10, 2020, 12:21:56 PM
When I added my m477 I didn't see it in the list so I had to copy over the ppd from my Slackware box while I was setting up cups. I'm pretty sure we need the ppd's. It is hard when there are thousands in the list. Maybe separate them by key words like officejet, laserjet, color-laserjet, deskjet, designjet, photosmart, and one for all others? We also might need to remove the hp-plugin script from the hplip extension. It seems to cause only problems and confusion since it can't work in the TC way. Alternatively, replace it with a sh script that downloads and loads the hplip-plugins extension. It was enough to install the hplip-plugins extension. I didn't have to do any configuration after that, just restart dbus. @Juanito: Not sure if this is a good idea or not, but maybe add this to the /usr/local/tce.installed/hplip-plugins script?

My m477 is wireless and hplip and cups find it no problem every time, but it is on the same subnet. If it's on a different network you will have to give the address manually. I don't have much experience with USB printers, and I've never dealt with any soft printers in Linux.
Title: Re: Hplip
Post by: andyj on April 11, 2020, 10:43:32 AM
I noticed on 32-bit that cups doesn't work right if it's linked instead of copied. Trying to configure using localhost:631 results in a "Not Found" being returned to the browser. I added it to copy2fs.lst, rebooted, and then it worked as expected. On 64-bit I have copy2fs.flg set so I didn't notice this. Once past this I could configure my printer and hp-scan worked just fine, the same as 64-bit. On the upside in 32-bit land I didn't have to restart dbus.  ::)
Title: Re: Hplip
Post by: Juanito on April 11, 2020, 10:54:08 AM
Did you use http://localhost:631/admin or http://localhost:631?

I noticed that the cups info file says http://localhost:631, but this is incorrect.
Title: Re: Hplip
Post by: andyj on April 11, 2020, 11:22:52 AM
Both. With /admin the style sheet doesn't look like it's being loaded. But even without /admin it should still work, and it does if it's copied and not linked. I spoke too soon about not restarting dbus for 32-bit. I restarted cups for the new configuration, which must have done something to/for dbus. I rebooted to test it all from the beginning, and I had to restart dbus to get hp-scan to work.
Title: Re: Hplip
Post by: Juanito on April 11, 2020, 12:40:01 PM
I just tested 32-bit and I don't see any problems without copy2fs set...
Title: Re: Hplip
Post by: andyj on April 11, 2020, 01:33:00 PM
If I don't use copy2fs at all, then I get this:

Code: [Select]
tc@box:~$ sudo /usr/local/etc/init.d/cups restart
no /usr/local/sbin/cupsd found; none killed
tc@box:~$

A little more info:

Code: [Select]
tc@box:~$ strace -f -s 254 sudo /usr/local/etc/init.d/cups restart 2>&1 | tee cups.strace.log
execve("/usr/bin/sudo", ["sudo", "/usr/local/etc/init.d/cups", "restart"], [/* 28 vars */]) = 0
access(0xb7f28395, F_OK)                = -1 ENOENT (No such file or directory)
brk(0)                                  = 0x9a69000
fcntl64(0, F_GETFD)                     = 0
fcntl64(1, F_GETFD)                     = 0
fcntl64(2, F_GETFD)                     = 0
access(0xb7f28395, F_OK)                = -1 ENOENT (No such file or directory)
access(0xb7f2b058, R_OK)                = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 0xb7f2a792, O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
fstat64(3, {...})                       = 0
mmap2(NULL, 47227, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f00000
close(3)                                = 0
openat(AT_FDCWD, 0xb7f30fc0, O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
read(3, 0xbfcdd800, 512)                = 512
fstat64(3, {...})                       = 0
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7efe000
mmap2(NULL, 16524, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ef9000
mmap2(0xb7efa000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7efa000
mmap2(0xb7efb000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7efb000
mmap2(0xb7efc000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7efc000
close(3)                                = 0
openat(AT_FDCWD, 0xb7efe2a0, O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
read(3, 0xbfcdd7e0, 512)                = 512
fstat64(3, {...})                       = 0
mmap2(NULL, 196924, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ec8000
mmap2(0xb7ec9000, 20480, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7ec9000
mmap2(0xb7ece000, 8192, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb7ece000
mmap2(0xb7ed0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0xb7ed0000
mmap2(0xb7ed2000, 155964, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ed2000
close(3)                                = 0
openat(AT_FDCWD, 0xb7efe560, O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
read(3, 0xbfcdd7c0, 512)                = 512
fstat64(3, {...})                       = 0
mmap2(NULL, 82100, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7eb3000
mmap2(0xb7eb5000, 45056, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7eb5000
mmap2(0xb7ec0000, 24576, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd) = 0xb7ec0000
mmap2(0xb7ec6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0xb7ec6000
close(3)                                = 0
openat(AT_FDCWD, 0xb7efe820, O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
read(3, 0xbfcdd7a0, 512)                = 512
fstat64(3, {...})                       = 0
mmap2(NULL, 1361664, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d66000
mmap2(0xb7d7f000, 933888, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19) = 0xb7d7f000
mmap2(0xb7e63000, 303104, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xfd) = 0xb7e63000
mmap2(0xb7ead000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x146) = 0xb7ead000
mmap2(0xb7eb0000, 9984, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7eb0000
close(3)                                = 0
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d64000
set_thread_area(bfcde020)               = 0
mprotect(0xb7ead000, 8192, PROT_READ)   = 0
mprotect(0xb7ec6000, 4096, PROT_READ)   = 0
mprotect(0xb7ed0000, 4096, PROT_READ)   = 0
mprotect(0xb7efc000, 4096, PROT_READ)   = 0
mprotect(0x8065000, 4096, PROT_READ)    = 0
mprotect(0xb7f2f000, 4096, PROT_READ)   = 0
munmap(0xb7f00000, 47227)               = 0
brk(0)                                  = 0x9a69000
brk(0x9a8a000)                          = 0x9a8a000
brk(0x9a8b000)                          = 0x9a8b000
openat(AT_FDCWD, 0xb7e7fd08, O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
fstat64(3, {...})                       = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7b64000
mmap2(NULL, 2932736, PROT_READ, MAP_PRIVATE, 3, 0x462) = 0xb7898000
close(3)                                = 0
geteuid32()                             = 1001
write(2, 0xbfcded7d, 4sudo)                 = 4
write(2, 0x80630ef, 2: )                  = 2
write(2, 0xbfcdbaec, 19must be setuid root)                = 19
write(2, 0xb7eafcc7, 1
)                 = 1
exit_group(1)                           = ?

But,

Code: [Select]
tc@box:~$ la /usr/bin/sudo
---s--x--x    1 root     root        124604 Feb  3 15:00 /usr/bin/sudo
tc@box:~$ version
11.0
tc@box:~$ uname -a
Linux box 5.4.3-tinycore #2020 SMP Tue Dec 17 17:00:50 UTC 2019 i686 GNU/Linux
tc@box:~$ free
              total        used        free      shared  buff/cache   available
Mem:        3044724      404720     2081136      120500      558868     2238588
Swap:             0           0           0
tc@box:~$ df -a
Filesystem                Size      Used Available Use% Mounted on
rootfs                    2.6G     96.6M      2.5G   4% /
proc                         0         0         0   0% /proc
sysfs                        0         0         0   0% /sys
devpts                       0         0         0   0% /dev/pts
tmpfs                     1.5G      8.1M      1.4G   1% /dev/shm
fusectl                      0         0         0   0% /sys/fs/fuse/connections
/dev/sda1                31.1G     26.5G      4.6G  85% /mnt/sda1
/dev/loop0              864.0K    864.0K         0 100% /tmp/tcloop/ipv6-netfilter-5.4.3-tinycore
/dev/loop1              368.0K    368.0K         0 100% /tmp/tcloop/iptables
/dev/loop2              156.0K    156.0K         0 100% /tmp/tcloop/xtables-addons-5.4.3-tinycore
/dev/loop3                2.9M      2.9M         0 100% /tmp/tcloop/glibc_gconv
/dev/loop4                1.6M      1.6M         0 100% /tmp/tcloop/mylocale-en_US.UTF-8
/dev/loop5               92.0K     92.0K         0 100% /tmp/tcloop/libpng
/dev/loop6              304.0K    304.0K         0 100% /tmp/tcloop/freetype
/dev/loop7               72.0K     72.0K         0 100% /tmp/tcloop/expat2
/dev/loop8              156.0K    156.0K         0 100% /tmp/tcloop/fontconfig
/dev/loop9              708.0K    708.0K         0 100% /tmp/tcloop/Hack-font
/dev/loop10              28.0K     28.0K         0 100% /tmp/tcloop/bzip2-lib
/dev/loop11             256.0K    256.0K         0 100% /tmp/tcloop/pcre
/dev/loop12               1.8M      1.8M         0 100% /tmp/tcloop/openssl-1.1.1
/dev/loop13              56.0K     56.0K         0 100% /tmp/tcloop/libtirpc
/dev/loop14             212.0K    212.0K         0 100% /tmp/tcloop/ncursesw
/dev/loop15             180.0K    180.0K         0 100% /tmp/tcloop/procps-ng
/dev/loop16              32.0K     32.0K         0 100% /tmp/tcloop/libdnet
/dev/loop17             184.0K    184.0K         0 100% /tmp/tcloop/fuse
/dev/loop18              16.0K     16.0K         0 100% /tmp/tcloop/libffi
/dev/loop19               1.4M      1.4M         0 100% /tmp/tcloop/glib2
/dev/loop20             596.0K    596.0K         0 100% /tmp/tcloop/open-vm-tools
/dev/loop21              76.0K     76.0K         0 100% /tmp/tcloop/liblzma
/dev/loop22             584.0K    584.0K         0 100% /tmp/tcloop/libxml2
/dev/loop23             100.0K    100.0K         0 100% /tmp/tcloop/wayland
/dev/loop24               4.0K      4.0K         0 100% /tmp/tcloop/libxshmfence
/dev/loop25              36.0K     36.0K         0 100% /tmp/tcloop/udev-lib
/dev/loop26              16.0K     16.0K         0 100% /tmp/tcloop/libpciaccess
/dev/loop27             132.0K    132.0K         0 100% /tmp/tcloop/libdrm
/dev/loop28               8.0K      8.0K         0 100% /tmp/tcloop/libXdmcp
/dev/loop29               4.0K      4.0K         0 100% /tmp/tcloop/libXau
/dev/loop30             276.0K    276.0K         0 100% /tmp/tcloop/libxcb
/dev/loop31             896.0K    896.0K         0 100% /tmp/tcloop/libX11
/dev/loop32              24.0K     24.0K         0 100% /tmp/tcloop/libXext
/dev/loop33               8.0K      8.0K         0 100% /tmp/tcloop/libXxf86vm
/dev/loop34               8.0K      8.0K         0 100% /tmp/tcloop/libXfixes
/dev/loop35               4.0K      4.0K         0 100% /tmp/tcloop/libXdamage
/dev/loop36             164.0K    164.0K         0 100% /tmp/tcloop/libGL
/dev/loop37              12.0K     12.0K         0 100% /tmp/tcloop/libGLESv2
/dev/loop38              88.0K     88.0K         0 100% /tmp/tcloop/libEGL
/dev/loop39              16.0K     16.0K         0 100% /tmp/tcloop/libXrender
/dev/loop40             276.0K    276.0K         0 100% /tmp/tcloop/pixman
/dev/loop41             516.0K    516.0K         0 100% /tmp/tcloop/cairo
/dev/loop42              12.0K     12.0K         0 100% /tmp/tcloop/libsigc++
/dev/loop43             768.0K    768.0K         0 100% /tmp/tcloop/glibmm
/dev/loop44              52.0K     52.0K         0 100% /tmp/tcloop/cairomm
/dev/loop45              28.0K     28.0K         0 100% /tmp/tcloop/fribidi
/dev/loop46              32.0K     32.0K         0 100% /tmp/tcloop/libXft
/dev/loop47              76.0K     76.0K         0 100% /tmp/tcloop/graphite2
/dev/loop48             476.0K    476.0K         0 100% /tmp/tcloop/harfbuzz
/dev/loop49             212.0K    212.0K         0 100% /tmp/tcloop/pango
/dev/loop50              60.0K     60.0K         0 100% /tmp/tcloop/pangomm
/dev/loop51              44.0K     44.0K         0 100% /tmp/tcloop/atk
/dev/loop52             100.0K    100.0K         0 100% /tmp/tcloop/atkmm
/dev/loop53              28.0K     28.0K         0 100% /tmp/tcloop/libXi
/dev/loop54              16.0K     16.0K         0 100% /tmp/tcloop/libXrandr
/dev/loop55               4.0K      4.0K         0 100% /tmp/tcloop/libXinerama
/dev/loop56              16.0K     16.0K         0 100% /tmp/tcloop/libXcursor
/dev/loop57               4.0K      4.0K         0 100% /tmp/tcloop/libXcomposite
/dev/loop58             116.0K    116.0K         0 100% /tmp/tcloop/libjpeg-turbo
/dev/loop59             180.0K    180.0K         0 100% /tmp/tcloop/libtiff
/dev/loop60             192.0K    192.0K         0 100% /tmp/tcloop/gdk-pixbuf2
/dev/loop61              56.0K     56.0K         0 100% /tmp/tcloop/libxkbfile
/dev/loop62               8.0K      8.0K         0 100% /tmp/tcloop/libXxf86dga
/dev/loop63               8.0K      8.0K         0 100% /tmp/tcloop/libXv
/dev/loop64              12.0K     12.0K         0 100% /tmp/tcloop/libXvmc
/dev/loop65              12.0K     12.0K         0 100% /tmp/tcloop/libXtst
/dev/loop66               4.0K      4.0K         0 100% /tmp/tcloop/libXss
/dev/loop67               4.0K      4.0K         0 100% /tmp/tcloop/libXres
/dev/loop68              12.0K     12.0K         0 100% /tmp/tcloop/libfontenc
/dev/loop69              96.0K     96.0K         0 100% /tmp/tcloop/libXfont2
/dev/loop70              44.0K     44.0K         0 100% /tmp/tcloop/libXpm
/dev/loop71              12.0K     12.0K         0 100% /tmp/tcloop/libSM
/dev/loop72              36.0K     36.0K         0 100% /tmp/tcloop/libICE
/dev/loop73             144.0K    144.0K         0 100% /tmp/tcloop/libXt
/dev/loop74              44.0K     44.0K         0 100% /tmp/tcloop/libXmu
/dev/loop75             272.0K    272.0K         0 100% /tmp/tcloop/libXaw
/dev/loop76              16.0K     16.0K         0 100% /tmp/tcloop/libFS
/dev/loop77             244.0K    244.0K         0 100% /tmp/tcloop/dbus
/dev/loop78              96.0K     96.0K         0 100% /tmp/tcloop/at-spi2-core
/dev/loop79              60.0K     60.0K         0 100% /tmp/tcloop/at-spi2-atk
/dev/loop80             228.0K    228.0K         0 100% /tmp/tcloop/libepoxy
/dev/loop81             456.0K    456.0K         0 100% /tmp/tcloop/shared-mime-info
/dev/loop82               3.4M      3.4M         0 100% /tmp/tcloop/gtk3
/dev/loop83               1.4M      1.4M         0 100% /tmp/tcloop/gtkmm
/dev/loop84             532.0K    532.0K         0 100% /tmp/tcloop/elfutils
/dev/loop85              20.0K     20.0K         0 100% /tmp/tcloop/libvdpau
/dev/loop86              15.3M     15.3M         0 100% /tmp/tcloop/llvm-lib
/dev/loop87               2.7M      2.7M         0 100% /tmp/tcloop/xorg-server
/dev/loop88             756.0K    756.0K         0 100% /tmp/tcloop/xkeyboard-config
/dev/loop89              12.0K     12.0K         0 100% /tmp/tcloop/xf86-video-vesa
/dev/loop90             108.0K    108.0K         0 100% /tmp/tcloop/libwacom
/dev/loop91              36.0K     36.0K         0 100% /tmp/tcloop/libevdev
/dev/loop92              12.0K     12.0K         0 100% /tmp/tcloop/mtdev
/dev/loop93             196.0K    196.0K         0 100% /tmp/tcloop/libinput
/dev/loop94              28.0K     28.0K         0 100% /tmp/tcloop/xf86-input-libinput
/dev/loop95             532.0K    532.0K         0 100% /tmp/tcloop/xcursor-themes
/dev/loop96               1.5M      1.5M         0 100% /tmp/tcloop/Xorg-fonts
/dev/loop97             480.0K    480.0K         0 100% /tmp/tcloop/Xorg-7.7-bin
/dev/loop98             184.0K    184.0K         0 100% /tmp/tcloop/imlib2
/dev/loop99              36.0K     36.0K         0 100% /tmp/tcloop/imlib2-bin
/dev/loop100            456.0K    456.0K         0 100% /tmp/tcloop/fltk-1.3
/dev/loop101              1.1M      1.1M         0 100% /tmp/tcloop/Xlibs
/dev/loop102            128.0K    128.0K         0 100% /tmp/tcloop/Xprogs
/dev/loop103             18.4M     18.4M         0 100% /tmp/tcloop/Xorg-7.7-3d
/dev/loop104             60.0K     60.0K         0 100% /tmp/tcloop/xf86-video-vmware
/dev/loop105             12.0K     12.0K         0 100% /tmp/tcloop/xf86-input-vmmouse
/dev/loop106            132.0K    132.0K         0 100% /tmp/tcloop/i2c-5.4.3-tinycore
/dev/loop107              2.6M      2.6M         0 100% /tmp/tcloop/graphics-5.4.3-tinycore
/dev/loop108            132.0K    132.0K         0 100% /tmp/tcloop/open-vm-tools-desktop
/dev/loop109             28.0K     28.0K         0 100% /tmp/tcloop/flwm
/dev/loop110            376.0K    376.0K         0 100% /tmp/tcloop/rxvt
/dev/loop111             36.0K     36.0K         0 100% /tmp/tcloop/wbar
/dev/loop112              1.3M      1.3M         0 100% /tmp/tcloop/openssh
/dev/loop113            148.0K    148.0K         0 100% /tmp/tcloop/ca-certificates
vmhgfs-fuse               1.8T      1.6T    226.9G  88% /mnt/hgfs/andy-home
/dev/loop114            128.0K    128.0K         0 100% /tmp/tcloop/readline
/dev/loop115             72.0K     72.0K         0 100% /tmp/tcloop/gdbm
/dev/loop116            532.0K    532.0K         0 100% /tmp/tcloop/sqlite3
/dev/loop117             15.6M     15.6M         0 100% /tmp/tcloop/python3.6
/dev/loop118             44.0K     44.0K         0 100% /tmp/tcloop/python3.6-olefile
/dev/loop119            464.0K    464.0K         0 100% /tmp/tcloop/python3.6-pillow
/dev/loop120             20.0K     20.0K         0 100% /tmp/tcloop/libpci
/dev/loop121              2.0M      2.0M         0 100% /tmp/tcloop/net-snmp
/dev/loop122             44.0K     44.0K         0 100% /tmp/tcloop/libieee1284
/dev/loop123            120.0K    120.0K         0 100% /tmp/tcloop/input-joystick-5.4.3-tinycore
/dev/loop124              1.9M      1.9M         0 100% /tmp/tcloop/alsa-modules-5.4.3-tinycore
/dev/loop125              3.1M      3.1M         0 100% /tmp/tcloop/v4l-dvb-5.4.3-tinycore
/dev/loop126            184.0K    184.0K         0 100% /tmp/tcloop/libv4l2
/dev/loop127            404.0K    404.0K         0 100% /tmp/tcloop/libunistring
/dev/loop128             76.0K     76.0K         0 100% /tmp/tcloop/libidn
/dev/loop129             44.0K     44.0K         0 100% /tmp/tcloop/libtasn1
/dev/loop130            504.0K    504.0K         0 100% /tmp/tcloop/p11-kit
/dev/loop131            220.0K    220.0K         0 100% /tmp/tcloop/gmp
/dev/loop132            276.0K    276.0K         0 100% /tmp/tcloop/nettle3
/dev/loop133              1.1M      1.1M         0 100% /tmp/tcloop/gnutls3.6
/dev/loop134           1020.0K   1020.0K         0 100% /tmp/tcloop/gcc_libs
/dev/loop135            152.0K    152.0K         0 100% /tmp/tcloop/libavahi
/dev/loop136            244.0K    244.0K         0 100% /tmp/tcloop/libcups
/dev/loop137             44.0K     44.0K         0 100% /tmp/tcloop/libusb
/dev/loop138             68.0K     68.0K         0 100% /tmp/tcloop/libsane
/dev/loop139             92.0K     92.0K         0 100% /tmp/tcloop/dbus-glib
/dev/loop140            108.0K    108.0K         0 100% /tmp/tcloop/dbus-python3.6
/dev/loop141            172.0K    172.0K         0 100% /tmp/tcloop/lcms2
/dev/loop142              8.4M      8.4M         0 100% /tmp/tcloop/ghostscript
/dev/loop143            508.0K    508.0K         0 100% /tmp/tcloop/qpdf
/dev/loop144            288.0K    288.0K         0 100% /tmp/tcloop/curl
/dev/loop145            260.0K    260.0K         0 100% /tmp/tcloop/openjpeg2
/dev/loop146            116.0K    116.0K         0 100% /tmp/tcloop/nspr
/dev/loop147              1.7M      1.7M         0 100% /tmp/tcloop/nss
/dev/loop148            964.0K    964.0K         0 100% /tmp/tcloop/poppler07
/dev/loop149            876.0K    876.0K         0 100% /tmp/tcloop/cups-filters
/dev/loop150              5.4M      5.4M         0 100% /tmp/tcloop/cups
/dev/loop151              7.5M      7.5M         0 100% /tmp/tcloop/hplip
/dev/loop152              7.1M      7.1M         0 100% /tmp/tcloop/hplip-plugins
/dev/loop153            128.0K    128.0K         0 100% /tmp/tcloop/gamin
/dev/loop154              8.0K      8.0K         0 100% /tmp/tcloop/hicolor-icon-theme
/dev/loop155            404.0K    404.0K         0 100% /tmp/tcloop/libasound
/dev/loop156             70.3M     70.3M         0 100% /tmp/tcloop/firefox-ESR
/dev/loop157             88.0K     88.0K         0 100% /tmp/tcloop/strace

I don't know what's going on, but cups won't start so I can't test the interface.
Title: Re: Hplip
Post by: andyj on April 11, 2020, 09:49:29 PM
Maybe more helpful:

Code: [Select]
[pid  7636] writev(2, [{"/usr/local/sbin/cupsd", 21}, {": ", 2}, {"error while loading shared libraries", 36}, {": ", 2}, {"libidn2.so.0", 12}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such
Apparently cupsd has a dependency on libidn2. Adding it to cups.tcz.dep fixed it for me.
Title: Re: Hplip
Post by: Juanito on April 12, 2020, 01:13:59 AM
The problem is here:
Code: [Select]
$ ldd /usr/local/lib/libgnutls.so | grep idn
        libidn2.so.0 => /usr/local/lib/libidn2.so.0 (0xb7c76000)

..gnutls3.6 is a dep of libcups, but the gnutls3.6 dep file contains libidn rather than libidn2 - corrected now.
Title: Re: Hplip
Post by: andyj on April 12, 2020, 08:41:56 AM
I'm pretty sure it's cupsd too:

Code: [Select]
root@box:/home/tc# ldd /usr/local/sbin/cupsd | grep idn
libidn2.so.0 => /usr/local/lib/libidn2.so.0 (0xb798d000)
Title: Re: Hplip
Post by: Juanito on April 12, 2020, 09:55:07 AM
Sure, but cups will load libcups, which will load libidn2.
Title: Re: Hplip
Post by: techsuper on April 12, 2020, 12:03:40 PM
guys, thanks.
I've been searching to see what "filter failed" refers to. Other distros save an error log in /var/log/cups/error_log,
which TC doesn't have. I've searched for this file with no luck. Is there such a log to see more details?
b
Title: Re: Hplip
Post by: Juanito on April 12, 2020, 01:29:52 PM
Are you sure? That file, or something with a similar name, was present on my machine.
Title: Re: Hplip
Post by: techsuper on April 12, 2020, 10:29:57 PM
sure, now I do the same thing I've done many times before and the error_log shows up - go figure.
Here is the last line: D [12/Apr/2020:22:07:51 +0000] [Job 1] printer-state-reasons=hplip.plugin-error

do you need the whole log pasted?
I also ran the hp-check command and have the log.
Will that be of any help?
thx
b
Title: Re: Hplip
Post by: Juanito on April 12, 2020, 11:29:02 PM
Did you have the hplip-plugins extension loaded?
Title: Re: Hplip
Post by: techsuper on April 13, 2020, 12:11:20 PM
Yes.
I have reinstalled with the current version 11.1 on two laptops, both respond the same.
I've went to Apps/Browse and have chosen Cups.tcz, hplip.tcz, hplip-plugins.tcz, and Firefox-ESR.tcz.

At power up, in a terminal, I can type hp-info or hp-check, which to me shows that hplip is running.
Go to Control Panel, Services and tick the line for cups, which also turns dbus green.
set a sudo passwd.
Go to Firefox, open the localhost:631/admin
Add printer, choose the detected entry, choose the top Model in the list (looks correct for the model), add printer
type the root password, accept defaults. Go to Maintenance - print test page.
Both a p1505 and a p3005 don't print, they exhibit seeing a command with noises or a message, and the job shows "filter failed" with both attempts.

sorry if I am doing something wrong or missing something.
hang in there
b
Title: Re: Hplip
Post by: andyj on April 13, 2020, 12:45:28 PM
When I read the ppd file for the p1505n (it is the networked model, right? and not connected through a print server), it says it requires the proprietary plugin. It doesn't say anything about firmware, but I would not assume that it is being loaded automatically. Have you tried hp-makeuri {ip address of printer}, then hp-firmware {CUPS URI}?
Title: Re: Hplip
Post by: techsuper on April 13, 2020, 09:28:20 PM
yes direct network cable, static IP address.
I tried to add it as a local printer - HP Printer(hplip) and put in the makeuri address that was shown.
Same results as before.
I can't figure out what/how to do the firmware command. Besides, why do I need to update
the firmware on a working printer?

I have also tried a USB cable to both printers, same symptoms and the same job error.

If it helps any, I've installed Linux Mint on another laptop. Go to System - Printers add and whala works like a champ.
The driver it used is HP LJ P1505n Foomatic/foo2xqx. I've searched for this on the web, but holy crap, looks like a major challenge to set it up in CUPS!

b

Title: Re: Hplip
Post by: Rich on April 13, 2020, 09:44:15 PM
Hi techsuper
... The driver it used is HP LJ P1505n Foomatic/foo2xqx. I've searched for this on the web, but holy crap, looks like a major challenge to set it up in CUPS!
I don't know if it relates to this, but there is a  foomatic  extension in TC10:
http://tinycorelinux.net/10.x/x86/tcz/foomatic-rip.tcz.info
Title: Re: Hplip
Post by: andyj on April 14, 2020, 12:20:35 AM
I can't figure out what/how to do the firmware command. Besides, why do I need to update
the firmware on a working printer?

Usually you need to upload firmware to a device each time it's powered on because it's a "soft" printer, like so many modems, wifi, and sound cards. I have no idea why a standalone networked printer would need soft firmware. That's a question for HP. Once one of the windows computers prints to it, it shouldn't need the firmware part of the driver again until the next time it's reset. Since foomatic and cups both use ppd files, maybe the ppd file on the Mint box would work for cups on the TC box.
Title: Re: Hplip
Post by: Juanito on April 14, 2020, 12:47:12 AM
I don't know if it relates to this, but there is a  foomatic  extension in TC10:

foomatic-rip is provided by the cups-filters extension.
Title: Re: Hplip
Post by: techsuper on April 14, 2020, 10:39:11 AM
guys.
I ran hp-doctor - it's loaded with Red and Pink errors.
sudo /usr/local/etc/init.d/cups status says 'cups is running'.
hplip is running,  since I can type hp-doctor get a result.
I'll attach the hp-doctor text file, it lost all it's pretty colors though.

I read this and it appears that the TC distro isn't supported, but what does a newb like me know!

b
Title: Re: Hplip
Post by: Juanito on April 14, 2020, 11:08:05 AM
Unfortunately hp-doctor looks for various things in hard-coded locations rather than using $PATH, so it isn't that much use...

Is there any way you can temporarily connect your printer directly with a usb cable so that hp-info and hp-firmware might work?
Title: Re: Hplip
Post by: andyj on April 14, 2020, 01:54:56 PM
@techsuper, you need to update your copy of hplip-plugins. It needs /var/lib/hp/hplip.state which was left out of early versions of the extension. Without this file it will fail and not say why.
Title: Re: Hplip
Post by: techsuper on April 16, 2020, 01:32:54 PM
thanks for that tip.

On one box, I deleted the plugins using the Apps Maintenance Deletions branch, then used the Apps browse to reinstall it OnBoot.

The other box, I just used the Apps browse, chose it and clicked Go, looks like it reinstalled/updated it.

Neither box and neither printers symptoms have changed.

I can't get the hp-makeuri to work on a usb connected printer. The instructions show in the notes: you may have to run lsusb. which isn't found in the /sbin folder. Using the Locate, as shown, also isn't found. Neither of these files I can find using the sudo find command.

'hp-makeuri 192.168.1.18'  shows the URI as hp:/net/hp_laserjet_p3005?ip=192.168.1.18.
typing 'hp-firmware CUPS hp:/net/hp_laserjet_p3005?ip=192.168.1.18' shows HPLIP Firmware Download Utility, error: no device found.

I am attaching my most recent cups error_log.
Hopefully it can help resolve this - it's starting to get quite frustrating!
thank you much,
b
Title: Re: Hplip
Post by: andyj on April 16, 2020, 03:36:44 PM
One, there was a missing dependency on libidn2. You should use this procedure from @Rich to update your extensions:

Run these commands:
Code: [Select]
tce-audit builddb
tce-audit updatedeps
tce-audit fetchmissing
tce-update
Click the  Exit  icon and select reboot.

Two, try hp-firmware without the word CUPS and put the URI in single quotes so the shell doesn't mangle it. Did hp-makeuri return any other URI's or just this one?
Title: Re: Hplip
Post by: andyj on April 19, 2020, 11:50:12 AM
While working on someone else's chrome request I did come across this:

Code: [Select]
[7416:7431:0419/150553.684207:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
/usr/local/tce.installed/dbus needs a line to create /var/run/dbus as well. When I added the directory and restarted dbus the socket was created. I wonder if this is our phantom dbus problem?
Title: Re: Hplip
Post by: Juanito on April 19, 2020, 12:21:58 PM
..but starting the dbus daemon creates the socket without the need to create that directory...
Title: Re: Hplip
Post by: andyj on April 19, 2020, 12:44:58 PM
That's the problem. It starts, but it isn't creating that directory or socket:

Code: [Select]
tc@box:~$ ps faux|awk '$5'
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.8  0.0   3936   288 ?        Ss   16:40   0:00 /sbin/init
root       316  2.0  0.0   4816  4332 ?        Ss   16:40   0:01 /sbin/udevd --daemon
root      2448  0.0  0.0   4168  3600 ?        S    16:40   0:00  \_ /sbin/udevd --daemon
root      2452  0.0  0.0   4168  3600 ?        S    16:40   0:00  \_ /sbin/udevd --daemon
root       598  0.0  0.0   3936   108 ?        Ss   16:40   0:00 /sbin/syslogd
root       600  0.0  0.0   3936   104 ?        Ss   16:40   0:00 /sbin/klogd
tc        4981  0.0  0.0   4016  2408 tty1     Ss+  16:40   0:00 -sh
root      5004  0.0  0.0   3936   104 ?        Ss   16:40   0:00 /sbin/udhcpc -b -i eth0 -x hostname:box -p /var/run/udhcpc.eth0.pid
tc        5019  0.0  0.0 100852  2688 ?        Ssl  16:40   0:00 vmhgfs-fuse -o allow_other .host:/andy-home /mnt/hgfs/andy-home
root      5480  2.9  0.6 240892 53036 tty2     Ssl+ 16:40   0:01 /usr/local/lib/xorg/Xorg -nolisten tcp
tc        5484  0.2  0.0  24700  6472 tty1     S    16:40   0:00 flwm
tc        5523  0.6  0.6 232684 49048 tty1     Sl   16:41   0:00 /usr/local/bin/vmtoolsd -n vmusr
tc        5541  0.2  0.1  56376  8732 tty1     S    16:41   0:00 wbar
tc        5562  0.3  0.1  30892  9692 tty1     S    16:41   0:00  \_ urxvt
tc        5563  0.0  0.0   4016  2404 pts/0    Ss   16:41   0:00      \_ sh
tc        5603  0.0  0.0  15092  2820 pts/0    R+   16:41   0:00          \_ ps faux
tc        5604  0.0  0.0   3936  1084 pts/0    S+   16:41   0:00          \_ awk $5
tc        5548  0.0  0.0   6692  2276 tty1     S    16:41   0:00 dbus-launch --autolaunch d873e3f4578a5a99d11c29345e9c7f12 --binary-syntax --close-stderr
tc        5549  0.0  0.0   5280  2056 ?        Ss   16:41   0:00 /usr/local/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
tc        5551  0.0  0.0 230380  5252 ?        Sl   16:41   0:00 /usr/local/lib/at-spi2-core/at-spi-bus-launcher
tc        5555  0.0  0.0   5272  2400 ?        S    16:41   0:00  \_ /usr/local/bin/dbus-daemon --config-file=/usr/local/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
tc        5557  0.0  0.1 162020  8228 ?        Sl   16:41   0:00 /usr/local/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
tc@box:~$ find /var -type s
tc@box:~$ sudo mkdir -m 1777 /var/run/dbus
tc@box:~$ sudo /usr/local/etc/init.d/dbus restart
stopped /usr/local/bin/dbus-daemon (pid 5555 5549)
rm: can't remove '/var/run/dbus/pid': No such file or directory
tc@box:~$ find /var -type s
/var/run/dbus/system_bus_socket
tc@box:~$

Once I create the directory and restart dbus, then there's a socket.
Title: Re: Hplip
Post by: Juanito on April 19, 2020, 01:13:06 PM
That’s not what I see, I’ll check some more tomorrow.
Title: Re: Hplip
Post by: techsuper on April 19, 2020, 10:47:17 PM
@andyj: one box the fetchmissing found libidn2.tcz and updated cairo. glib2, gnutls3.6 and nettle3.
the other box didn't find anything with the same command.
Still, neither of them print and stop with the same filter failed error.

Running the hp-makeuri on either box to either printer, only yields 1 result.
Same result running the hp-firmware 'hp:/net/HP_LaserJet_P3005?ip=192.168.1.18'

b
Title: Re: Hplip
Post by: aus9 on April 19, 2020, 11:05:20 PM
Hi

Quote
maybe the ppd file on the Mint box would work for cups on the TC box.

Maybe but I think its borks if the version is wrong...you can read your mint PPD to see what version it is.

the main reason I am posting is...for those having trouble using hplip....gutenprint supports a number of hp printers. It took 10 page downs for me to view all of them in a browser

check out if yours can use it here.
http://gimp-print.sourceforge.net/p_Supported_Printers.php

on 64 bit I have yet to build an update for gutenprint but its on my todo list
Title: Re: Hplip
Post by: Juanito on April 20, 2020, 01:37:03 AM
That’s not what I see, I’ll check some more tomorrow.

It looks like creating /var/run/dbus will not (completely) solve the problem, but I don't know enough about dbus to suggest what might solve the problem.

Staring the dbus daemon creates /var/run/dbus and creates the socket. When the daemon is stopped, /var/run/dbus and the socket remain:
Code: [Select]
$ ls /var/run/dbus
ls: /var/run/dbus: No such file or directory
$ sudo /usr/local/etc/init.d/dbus start
$ ls /var/run/dbus
pid                system_bus_socket

$ sudo /usr/local/etc/init.d/dbus stop
stopped /usr/local/bin/dbus-daemon (pid 6203)
$ ls /var/run/dbus
system_bus_socket

Using an app that autostarts dbus (pavucontrol) does not create /var/run/dbus and does not create the socket or pid:
Code: [Select]
$ ls /var/run/dbus
ls: /var/run/dbus: No such file or directory
$ pavucontrol &
$ ls /var/run/dbus
ls: /var/run/dbus: No such file or directory
$ ps aux | grep dbus
 8112 tc       dbus-launch --autolaunch 4b010dc45263d95cfeda85535e9d635f --binary-syntax --close-stderr
 8113 tc       /usr/local/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
 8119 tc       /usr/local/bin/dbus-daemon --config-file=/usr/local/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3

$ sudo /usr/local/etc/init.d/dbus status
dbus is not running.

If /var/run/dbus and the socket are created beforehand, it does not change the behaviour of an app that autostarts dbus and stopping the dbus daemon does not completely kill it:
Code: [Select]
$ ls /var/run/dbus
ls: /var/run/dbus: No such file or directory
$ sudo /usr/local/etc/init.d/dbus start
$ ls /var/run/dbus
pid                system_bus_socket
$ ps aux | grep dbus
 8247 tc       /usr/local/bin/dbus-daemon --system
$ pavucontrol &
$ ps aux | grep dbus
 8247 tc       /usr/local/bin/dbus-daemon --system
 8257 tc       dbus-launch --autolaunch 4b010dc45263d95cfeda85535e9d635f --binary-syntax --close-stderr
 8258 tc       /usr/local/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
 8264 tc       /usr/local/bin/dbus-daemon --config-file=/usr/local/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3

$ sudo /usr/local/etc/init.d/dbus stop
stopped /usr/local/bin/dbus-daemon (pid 8264 8258 8247)
$ ps aux | grep dbus
 8257 tc       dbus-launch --autolaunch 4b010dc45263d95cfeda85535e9d635f --binary-syntax --close-stderr
Title: Re: Hplip
Post by: techsuper on April 22, 2020, 11:02:42 AM
I added the p3005 printer and used Browse to the Mint ppd file - Still yields a Filter Failed message.
I also Browsed and tried the Generic - PDF, PostScript, PCL or the IPP anywhere files.
All yield the same annoying Filter Failed message, except the PDF which prints "PDF Status Page. PDF file not printed. 128 MB of memory is required.
 
Does this line in the error_log have a resolution?
"CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files" Searching the web on this yields many hits with no valid resolution.

thx
b
Title: Re: Hplip
Post by: Juanito on April 22, 2020, 11:11:12 AM
imho, the correct ppd file for your printer will be created by hplip on the fly and will be the one at the top of the list.

I believe the colord warning can be ignored.

The trick is how to load the hplip firmware from the hplip-plugins extension into your printer...

What does "hp-firmware -d<device-uri>  -i -ldebug" give (where you substitute your device id from hp-info)?
Title: Re: Hplip
Post by: techsuper on April 23, 2020, 12:06:21 PM
hello,
thanks, but before I try that.
I turned on cups debug logging and performed the same steps.

I have reviewed all 3 log files that it generated and combined them into a short text file.
Does this error indicate that a library is missing?

b
Title: Re: Hplip
Post by: Juanito on April 23, 2020, 12:28:18 PM
That error shows that you need to update your copy of the ghostscript extension
Title: Re: Hplip
Post by: techsuper on April 24, 2020, 11:02:47 PM
Hello,
First of all, I am unable to get the device ID.
hp-info has always shown a red colored warning "no device found".

the only way to get any response from hp-firmware was to use
hp-firmware -d <uri> -i -L debug
this yielded a response in light blue,  hp-firmware [7672]:
debug: mode 0
debug: {}
with no response from the printer.

Second: How am I supposed to update the ghostscript extension?
I have ran the tce-audit and tce-update commands with no change.
Opened APPS Check for Updates, nothing found.
Ghostscript looks like its included with hplip.
It can't be deleted by itself and it was removed by deleting hplip and hplip-extensions.

While re-installing hplip, I saw that ghostscript, cups and others dependencies were installed.
I reinstalled hplip-extensions and turned on cups debug.
The same gs: libidn.so.11 error is present with the same filter failed message.

Side note: I have also tested with another distro, Linux Lite.
the p3005 works no matter which one of the four drivers it lists to use.

thx

Title: Re: Hplip
Post by: Juanito on April 25, 2020, 02:14:10 AM
Assuming that you are using CorePure64 11.x, do you get this:
Code: [Select]
$ cat /etc/sysconfig/tcedir/optional/ghostscript.tcz.md5.txt
2f94b893d509661ff85adc5eca9b9d9a  ghostscript.tcz
$ ldd /usr/local/bin/gs | grep idn
        libidn2.so.0 => /usr/local/lib/libidn2.so.0

You can check your md5sum against the server here: http://repo.tinycorelinux.net/11.x/x86_64/tcz/ghostscript.tcz.md5.txt

I tested again with the following:
Code: [Select]
$ tce-load -i hplip
$ sudo passwd
$ sudo /usr/local/etc/init.d/dbus start
$ sudo /usr/local/etc/init.d/cups start

Then in a browser:
http://localhost:631/admin
click on "add printer" button
choose: Discovered Network Printers: Officejet 6700 Premium e-All-in-One (HP Officejet 6700)
choose driver: HP Officejet 6700, hpcups 3.20.3 (en)

configured printer:
Driver: HP Officejet 6700, hpcups 3.20.3 (color, 2-sided printing)
Connection: socket://192.168.1.170:9100

Then:
Code: [Select]
$ hp-makeuri 192.168.1.170
...
CUPS URI: hp:/net/Officejet_6700?ip=192.168.1.170
SANE URI: hpaio:/net/Officejet_6700?ip=192.168.1.170
HP Fax URI: hpfax:/net/Officejet_6700?ip=192.168.1.170

$ hp-probe -bnet
...
Device URI                               Model           Name   
  ---------------------------------------  --------------  --------
  hp:/net/Officejet_6700?ip=192.168.1.170  Officejet_6700  HP86C02B

..and printing and scanning work.

(note that hp-info and many other hp-* commands cannot find my printer)
Title: Re: Hplip
Post by: Juanito on April 25, 2020, 02:58:33 AM
This works:
Code: [Select]
$ hp-info -x -dhp:/net/Officejet_6700?ip=192.168.1.170
..where -x = allow device URIs of uninstalled printers  :o
Title: Re: Hplip
Post by: Juanito on April 25, 2020, 04:08:16 AM
Ah-ha - some progress..

"hp-setup -i" complained that /usr/local/share/cups/model was missing. After creating that directory, "hp-setup -i" works and creates another cups printer with the same uri as the existing printer and also creates a file such that:
Code: [Select]
$ cat ~/.hplip/hplip.conf
[last_used]
device_uri = hp:/net/Officejet_6700?ip=192.168.1.170

..and now hp-info, hp-testpage, hp-scan, hp-levels and friends all work  8)
Title: Re: Hplip
Post by: Juanito on April 25, 2020, 04:38:26 AM
Updated hplip extension posted to x86_64 repo.

There is no need to use the cups browser admin to add a printer, it can be done with:
Code: [Select]
$ sudo passwd
$ sudo /usr/local/etc/init.d/dbus start
$ sudo /usr/local/etc/init.d/cups start
$ hp-setup -i (root password needed to confirm)
Title: Re: Hplip
Post by: andyj on April 25, 2020, 09:40:29 AM
"hp-setup -i" complained that /usr/local/share/cups/model was missing. After creating that directory, "hp-setup -i" works and creates another cups printer with the same uri as the existing printer
I wonder if this is why I get duplicate printers in Slackware?
Title: Re: Hplip
Post by: Juanito on April 25, 2020, 09:55:18 AM
Maybe, but you'd typically use either cups or hplip to add a printer, but not both?
Title: Re: Hplip
Post by: andyj on April 25, 2020, 11:36:13 AM
Slackware comes with cups and hplip, but not the hplip-plugins. Sound familiar? To get the plugins you have to run hp-setup, which seems to be where the second printer is coming from. Next time I will try just hp-setup without setting up cups first and see what happens.

"hp-setup -i" complained that /usr/local/share/cups/model was missing.

I noticed that the hp tools don't complain like they should when they can't find something. I had to use strace to find the missing plugin file.
Title: Re: Hplip
Post by: techsuper on April 25, 2020, 10:12:55 PM
no, it's TC 11,1 32 bit.
Title: Re: Hplip
Post by: Juanito on April 26, 2020, 03:06:33 AM
hplip and ghostscript updated in the 11.x x86 repo

Tested with:
Code: [Select]
$ tce-load -i hplip
$ sudo passwd
$ sudo /usr/local/etc/init.d/dbus start
$ sudo /usr/local/etc/init.d/cups start
$ hp-setup -i (root password needed to confirm)
$ hp-testpage

You will need the hplip-plugins extension.
Title: Re: Hplip
Post by: techsuper on April 28, 2020, 09:46:27 PM
Ok, thanks.
The updated files fixed the GS dependency error.
hp -setup, -info, -levels work ok now and -testpage looks like works - but nothing is printed.

The error is still 'Filter Failed'. I have tried both boxes, USB and network. Using localhost or
just using the hp-* commands.

Checking the error_log with or without debug on, I can't determine what may be wrong.
Searching the web doesn't seem to provide much help.
I will attach both logs, maybe your trained eye can see something.
(debug log edited to a smaller size)

here are the lines that are questionable:

[cups-deviced] PID 7682 (cups-brf) stopped with status 13!
CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files


Discarding unused printer-state-changed event...
[Job 1] prnt/hpcups/HPCupsFilter.cpp 647: DEBUG: imageProcessorStartPage failed result = 2

[Client 37] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
[Client 37] Closing connection.

[Job 1] PID 7746 (/usr/local/lib/cups/filter/hpcups) crashed on signal 11.


b
Title: Re: Hplip
Post by: Juanito on April 29, 2020, 02:39:11 AM
I believe the problem is that you need to load a firmware plugin into your printer before you try to print.

The file /usr/local/share/hplip/data/firmware/hp_laserjet_p1505.fw.gz in the hplip-plugins extension sounds like it might be the correct one.

Did you load hplip-plugins before you ran the "hplip-setup -i" command? Did you try the "hp-firmware -i" or "hp-plugin -i" commands?

You can ignore the colord error.
Title: Re: Hplip
Post by: techsuper on April 29, 2020, 08:57:21 AM
sorry, didn't mention the model, figured you would see it in the logs.
All recent tests were done on a p3005.
The openprinting.org site shows: "Black & White laser printer, max. 1200x1200 dpi, works Perfectly".

Is there an additional command to run the plugins, or is running with hplip?

side note: what distro is TC mostly related to?
*some linux downloads want you to choose a distro, but TC isn't shown.

thanks
b
Title: Re: Hplip
Post by: Rich on April 29, 2020, 09:11:29 AM
Hi techsuper
... Is there an additional command to run the plugins, or is running with hplip? ...
... Did you load hplip-plugins before you ran the "hplip-setup -i" command? ...
Did you install  hplip-plugins.tcz ?

Quote
... Did you try the "hp-firmware -i" or "hp-plugin -i" commands? ...
These commands are included in  hplip.tcz.
Title: Re: Hplip
Post by: Juanito on April 29, 2020, 10:06:08 AM
sorry, didn't mention the model, figured you would see it in the logs.

Did you attach the logs?
Title: Re: Hplip
Post by: aus9 on April 30, 2020, 12:53:24 AM
@techsuper

I am pretty sure you are on 32 bit as 64 bit as gnutls35 while you mention you installed gnutls36

If you look at gutenprint results at openprinting...
https://www.openprinting.org/printer/HP/HP-LaserJet_P3005

HP is claimed to be 100 with a speed score of 70 and gutenprint has 2x90 2x100 with a speed of 60

I again ask you to consider installing and using gutenprint. In order to give you some confidence, I downloaded the source of the 32 bit gutenprint and re-compiled it for my 64 bit machine with a screenshot
where I attempt to trick cups with my real canon into thinking its a laserjet p3005.

The driver exists!

Need I say more?

https://imgur.com/RJqti38

I prove I am using the correct gutenprint thru matching shared object numbers you can see in Apps.
I used a web browser to check the shared object
http://repo.tinycorelinux.net/11.x/x86/tcz/gutenprint.tcz.list
/usr/local/lib/libgutenprint.so.2.6.0
I also show my kernel version is 64 bit

Thanks for re-considering gutenprint.   ;D
Title: Re: Hplip
Post by: techsuper on April 30, 2020, 09:57:31 AM
I did post the logs, don't know why they didn't upload. I'll try again.
tce-load -i hplip  yields 'already installed'
tce-load -i hplip-plugins  yields 'already installed'
hp-plugin -i  and choosing d for download, yields bin/sh: lsb_release not found. core distro not found in Auth_Types. download failed with error 1.
hp-firmware -i  yields 'no device found'.
most of the hp-* commands work.
lpstat -t says its the default destination, the URI looks ok, says idle and ready to print with no pending job.
I have used the apps/browse and installed guttenprint on one box, I still get the Filter Failed error.
Is there an additional step or command to use it? Do I uninstall cups and/or hplip when its installed?

thx

this will have to be in 2 posts, (196K total of both files, why so low)
Title: Re: Hplip
Post by: techsuper on April 30, 2020, 10:03:11 AM
128K maximum, wow, is this dial-up  ;)

Cups generates it at 308K
so here it is zipped
Title: Re: Hplip
Post by: Juanito on April 30, 2020, 10:09:56 AM
Does "ldd /usr/local/lib/cups/filter/hpcups" give an error?

Google seems to suggest an HP_LaserJet_P3005 doesn't need firmware, but the HP Smart Tank 610 does?
Title: Re: Hplip
Post by: andyj on April 30, 2020, 11:08:42 AM
hp-plugin -i  and choosing d for download, yields bin/sh: lsb_release not found. core distro not found in Auth_Types. download failed with error 1.
Do not do this. Installing the hplip-plugins extension replaces this step.
Title: Re: Hplip
Post by: techsuper on April 30, 2020, 04:42:27 PM
(Does "ldd /usr/local/lib/cups/filter/hpcups" give an error?)

No, it displays about 31 lines of dependencies with hex numbers.
see attached
thanks
Title: Re: Hplip
Post by: Rich on April 30, 2020, 04:58:52 PM
Hi techsuper
Please don't use images to post commands and their results.

You can copy text from the terminal by holding down the left mouse button and dragging the mouse.
You can then paste the text by first left clicking  and then center clicking in the destination location.

If you prefer, you can redirect the output of commands to a text file instead:
Code: [Select]
ldd /usr/local/lib/cups/filter/hpcups > ldd.txt 2>&1Now you can copy/paste from the  ldd.txt  file you just created.

Please use  Code Tags  when posting commands and responses seen in a terminal. To use  Code Tags  click on the  #  icon
above the reply box and paste your text between the  Code Tags  as shown in this example:

Quote
[code][   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517[/code]

It will appear like this in your post:
Code: [Select]
[   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517

Code Tags  serve as visual markers between what you are trying to say and the information you are posting. They also preserve
spacing so column aligned data displays properly.
Title: Re: Hplip
Post by: Juanito on May 01, 2020, 01:39:43 AM
If "ldd /usr/local/lib/cups/filter/hpcups" does not give an error, then it's not obvious what the problem with the LaserJet P3005 is (the Smart Tank 610 needs firmware).

Did you try the following after a clean reboot (i.e. do not load cups, hplip or hplip-plugins "onboot")?

Code: [Select]
$ tce-load -i hplip-plugins
$ sudo passwd
$ sudo /usr/local/etc/init.d/dbus start
$ sudo /usr/local/etc/init.d/cups start
$ hp-setup -i (root password needed to confirm)
$ hp-testpage
Title: Re: Hplip
Post by: techsuper on May 03, 2020, 11:05:02 AM
I think I have tried this before.
In the Apps panel, OnDemand Maintenance branch, all 3 are shown on the Right "current OnDemand Items"
I entered the commands in order shown.
Is it common for the cups start entry to yield 'stopped usr/local/bin/dbus-daemon' ?

No changes, still get the Filter Failed message, with prnt/hpcups/HPCupsFilter.cpp 647: DEBUG: imageProcessorStartPage failed result = 2 and a broken pipe.

I've been reading on the dev.hp.com (hplip) site. Don't know if I can paste a link, so I'll paste the list they show for
System Requirements.

I tried the tce-ab command, and searched for most of these.
Some I  have no idea how or where to locate. But, for the items that had a search result, they are ok.

I couldn't find. Foomatic, PyQT, the Libjpg entries, or the DDK. I assume GPL GS is the same as GS.
see below, thanks for hangin in there...
brent

    Linux kernel 2.4.19 and above (2.6.x recommended).
    GNU software tools are required to build from source code. This includes the ANSI C compiler, ANSI C++ compiler and POSIX compliant environment.
    libusb 0.1.8 or higher.
    ppdev/parport kernel modules for parallel port support.
    GPL Ghostscript 7.05 or higher.
    Foomatic 3.0.2 or higher.
    Qt 3.x or higher for UI toolkit.
    PyQt 3.14 or higher for Qt wrapper for Python.
    Python 2.2 or higher and python-devel (Python 2.3+ for fax support)
    Reportlab (optional-provides fax cover page support)
    CUPS 1.1.15 or higher and cups-devel.
    libjpeg 6b or higher and libjpeg-devel.
    net-snmp 5.0.9 or higher and net-snmp-devel for network support.
    CUPS DDK 1.2 or higher for dynamic PPD support.

HPLIP has been tested on most major Linux distributions.
Title: Re: Hplip
Post by: Juanito on May 03, 2020, 12:23:04 PM
I don't think you should put this kind of application "ondemand", it would probably be better to either put it "onboot" (with commands to start the daemons required in bootlocal) or load it manually when needed.

Note that in your case, since you have one printer that needs firmware plugins, you only need to set hplip-plugins "onboot" as it will load hplip, which in turn will load cups.

Both printers I have access to work without problems with hplip as do those of user @andyj, one of which uses a firmware plugin.

At this point, I am really not sure why the p3005 does not work - have you tried the 610 with hplip-plugins?
Title: Re: Hplip
Post by: techsuper on May 16, 2020, 09:41:06 AM
Hello, after extensive testing with the p3005 and another LJ M506 series printer, I have the following results.

What had caused SO MUCH grief, was your prior Libidn.so.11 dependency error and testing with the p1505, which needs special plugins.
I had tried different drivers at the time, but was unsuccessful because of the Libidn error.
Now if I choose Make: HP and either of the generic HP LJ Series 4/5 or PCL 6, it will print without any error.
Even choosing Make: Generic and the same drivers works ok.
BUT choosing Make: HP and using the suggested driver at the top of the list, yields that wonderful "Filter Failed" message.
a suggestion from Juanito "imho, the correct ppd file for your printer will be created by hplip on the fly and will be the
one at the top of the list".

So, WHY does the suggested driver fail, is it the HPLip software, the ppd file or something else?
Accoring to the dev.hp site, "this model is fully supported and works perfectly"
and BTW,  Gutenprint works also, but why couldn't someone simply say that HPLip HAS TO BE removed FIRST?

thank you for the time.

take care and happy trails.

brent
Title: Re: Hplip
Post by: Juanito on May 16, 2020, 09:51:04 AM
What can I say? I’ve tried four different printers and hplip has created the correct ppd on the fly and put it at the top of the list for all of them.
Title: Re: Hplip
Post by: aus9 on May 16, 2020, 06:52:35 PM
Hi
Quote
Gutenprint works also, but why couldn't someone simply say that HPLip HAS TO BE removed FIRST?
because I no longer have any HP printers so unable to test  on 64 bit.

If you have time, can you post any error messages you are seeing,
or some log or something so for 64 bit info file......I can get the gurus to update gutenprint info.
I am not sure if its just laser printers for HP that are causing you to see issues or your specific to your model. I am willing to update the info file for gutenprint once I know the reason.

Also what do you mean by hplip be removed first?
Do you mean.....do not load hplip when attempting to setup your printer with gutenprint
Do you mean.....in cups admin.....delete all hplip setups?
Title: Re: Hplip
Post by: techsuper on May 17, 2020, 11:52:38 AM
Hello,
I am using the 32 bit version so I can't comment on 64.
Choosing HP and using the recommended ppd file it fails with:
prnt/hpcups/HPCupsFilter.cpp 647: DEBUG: imageProcessorStartPage failed result = 2.
In my confusion, I think if I would have chosen either of the make or model of generic it would have worked with gutenprint installed.
I chose apps/dependencies/mark for deletion - HPlip extensions - (removes hplip also).

Setting up a printer, the only choice for a Model is generic PCL 4/5 or 6, but I get a Ghostscript: gs: no such file error.
I added ghostscript, I see a color ppd comment in the job, but it completes correctly.

thx

Title: Re: Hplip
Post by: Juanito on May 18, 2020, 01:12:21 AM
I see there are several search hits for "prnt/hpcups/HPCupsFilter.cpp 647: DEBUG: imageProcessorStartPage failed result = 2" and even a patch here:

https://launchpadlibrarian.net/383616125/hplip.patch

..but it doesn't seem to have been taken up by hp?