|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|
|||
cannot scan with cupsd+saned
I have OpenBSD 6.4 installed on my T400 Thinkpad. I also own an HP Photosmart 7520 all-in-one printer/scanner/copier that is connected to my home wireless network. I can print over the network, but scanning applications (both simple-scan and xsane) crash with the following error as soon as scanning begins:
Code:
bruno@thinkpad:~$ simple-scan dbus[3472]: 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 compiled with backtrace support so unable to print a backtrace Abort trap 1. Code:
# pkg_add pkg_add -iv hplip hplip-common hpcups hpaio system-config-printer sane-backends xsane simple-scan 3. Code:
# vi /etc/rc.conf.local pkg_scripts="cupsd cups_browsed saned" dbus_enable=YES cupsd_flags="" cups_browsed_flags="" saned_flags="" 5. Code:
$ simple-scan Code:
bruno@thinkpad:~$ pgrep -fl dbus 47121 /usr/local/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session 79834 dbus-launch --autolaunch=bcdecefff7e7bef5828bb3715c08518a --binary-syntax --close-stderr 28903 /usr/local/libexec/cups/notifier/dbus dbus:// 47181 /usr/local/bin/dbus-daemon --config-file=/usr/local/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3 23497 /usr/local/bin/dbus-daemon --syslog --fork --print-pid 6 --print-address 8 --session 40727 dbus-launch --exit-with-session mate-session |
|
|||
Thank you, jggimi. Removing the pointless entry from rc.conf.local and enabling dbus with the rcctl command (which creates 'pkg_scripts=messagebus' in rc.conf.local) did the trick.
I would have never figured this out on my own. I'm glad I found this forum! Thanks again for the help. |
|
||||
Glad to be of some help!
The general consensus among OpenBSD Project members (and astute users) is to be very wary of third party guides. You can read them, but always verify their guidance, as it may be out-of-date, incorrect, or misleading. In this case, the guidance you followed was 4 years out-of-date.
Last edited by jggimi; 15th December 2018 at 04:37 PM. Reason: typo |
|
|||
I will be wary in the future, thank you. Despite being a long-time GNU/Linux user, I'm a one-week noob on OpenBSD still reading through "Absolute OpenBSD" and needed a third party guide to get me started.
In case any folks read this post down the line with similar issue as me, I wanted to point out two things: 1. I found that running saned is not actually required for scanning. So having "pkg_scripts=cupsd cups_browsed messagebus" in /etc/rc.conf.local is enough. 2. It is not possible to add new printers through system-config-printer while messagebus is running (the "Add" button is grayed out). Before adding printers, run "# rcctl stop messagebus", then add the printer, then before scanning run "# rcctl start messagebus". I hope this helps someone. |
Tags |
cups, network, sane, scanning |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wireless scan output | Mircho | FreeBSD General | 2 | 27th September 2013 12:15 PM |
Bock Norton security scan! | xmorg | Other OS | 8 | 15th February 2011 03:12 PM |
Please scan softly - your router could crash | J65nko | News | 2 | 5th July 2010 11:36 PM |
cupsd and sshd slow | mururoa | FreeBSD General | 3 | 27th August 2008 08:36 PM |
scan to pdf | PatrickBaer | Other OS | 4 | 22nd July 2008 12:14 AM |