Date: Sun, 22 Mar 2020 16:36:14 +0000 (UTC) From: Paul Pathiakis <pathiaki2@yahoo.com> To: "Vlad D. Markov" <dvoich@aim.com>, Polytropon <freebsd@edvax.de> Cc: "Vlad D. Markov via freebsd-questions" <freebsd-questions@freebsd.org> Subject: Re: sane crashes Message-ID: <1270065762.180915.1584894974045@mail.yahoo.com> In-Reply-To: <20200322152424.6fd38112.freebsd@edvax.de> References: <20200321183703.9566f2b45dd4193a51381291.ref@aim.com> <20200321183703.9566f2b45dd4193a51381291@aim.com> <20200321184307.8fb232b54dd802ae8c0a11bb@aim.com> <20200322093038.1f6933c3e68d6622c7d39427@aim.com> <20200322152424.6fd38112.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, I have this running and there's a number of things that could be blocking it. 1) install hplip (since it's an HP this is a very useful tool on a GUI)2) try running all the xsane commands as 'root' (scanimage, etc). If they work, there's a problem with device permissions.3) if 2), you'll need to look at install info for xsane. It will tell you all the things in devd.conf that need to be modified. I have this running on an HP all-in-one wireless. (HP 4250 I think) I also have the android interface running on my phones that allows me to print directly to the printer. Also, try looking at the cups interface and verify that you can at least see the printer part of this. It's, typically, located at http://localhost:631 Paul On Sunday, March 22, 2020, 10:24:59 AM EDT, Polytropon <freebsd@edvax.de> wrote: On Sun, 22 Mar 2020 09:30:38 -0400, Vlad D. Markov via freebsd-questions wrote: > On Sat, 21 Mar 2020 18:43:07 -0400 > "Vlad D. Markov via freebsd-questions" <freebsd-questions@freebsd.org> wrote: > > > On Sat, 21 Mar 2020 18:37:03 -0400 > > "Vlad D. Markov via freebsd-questions" <freebsd-questions@freebsd.org> wrote: > > > > > > > > I am having some problems using sane for scanning. > > > > > > My version of FreeBSD: > > > FreeBSD happy 12.1-RELEASE-p2 FreeBSD 12.1-RELEASE-p2 GENERIC amd64 > > > > > > My version of sane: > > > happy$ scanimage -V > > > scanimage (sane-backends) 1.0.29; backend version 1.0.29 > > > > > > I have tried multiple approaches to get things working: > > > > > > The scanner is an HP so I set the URI and tried: > > > > > > happy$ xsane "hpaio:/net/OfficeJet_Pro_6970?ip=192.168.1.37" > > > Assertion failed: (p), function avahi_threaded_poll_lock, file thread-watch.c, line 171. > > > Abort trap (core dumped) > > > > > > Next try: > > > > > > happy$ scanimage -L > > > Assertion failed: (p), function avahi_threaded_poll_lock, file thread-watch.c, line 171. > > > Abort trap > > > > > > Recompile minus Avahi: > > > happy$ scanimage -L > > > device `hpaio:/net/OfficeJet_Pro_6970?ip=192.168.1.37' is a Hewlett-Packard OfficeJet_Pro_6970 all-in-one > > > > > > Maybe this will help the next person. > > > > > > Vlad > > > > > Jumped the gun here. The last method also has an issue when doing a scan: > > > > happy$ dbus[8796]: arguments to dbus_connection_send() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3311. > > 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 > > > > > > > > > avahi-daemon and dbusd weren't running. For some reason they didn't > start via rc.conf. Do you have dbus_enable="YES" in your /etc/rc.conf file? Do the system logs contain an error message about why DBus could not be started? (If you're using Gnome, the related _enable variable usually implies starting HAL and DBus.) Reacting to a non-running DBus by core dumping doesn't look very good... oh, and according to "man 8 avahi-daemon":    Upon startup   avahi-daemon interprets its    configuration    file    /home/lennart/tmp/avahi/usr/local/etc/avahi/avahi-daemon.conf and reads    XML fragments from /home/lennart/tmp/avahi/etc/avahi/services/*.service    which may define static   DNS-SD services. Because /home/lennart/tmp is a standard system configuration location present on every FreeBSD box... ;-) Source: https://www.freebsd.org/cgi/man.cgi?query=avahi-daemon -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... _______________________________________________ freebsd-questions@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" From owner-freebsd-questions@freebsd.org Sun Mar 22 21:52:53 2020 Return-Path: <owner-freebsd-questions@freebsd.org> Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8F46A26E835 for <freebsd-questions@mailman.nyi.freebsd.org>; Sun, 22 Mar 2020 21:52:53 +0000 (UTC) (envelope-from dvoich@aim.com) Received: from sonic303-3.consmr.mail.bf2.yahoo.com (sonic303-3.consmr.mail.bf2.yahoo.com [74.6.131.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48lrpr0bDDz4QQ5 for <freebsd-questions@freebsd.org>; Sun, 22 Mar 2020 21:52:51 +0000 (UTC) (envelope-from dvoich@aim.com) X-YMail-OSG: DVq9BvYVM1kwrBoVfArf8FDLaLnYKzZVpXyOOpI.l.dPERvl91mB0H61rX.KDV0 G_x2on_i6U3tAyKXxmb_ONEdSm9Bm9RdHcmyBSM0IAU0igLL0zAe23XkUVR8Thc77qCUPOhydp76 s8qBU9iCUr8ZxQbQ3X.erJ0.yfx6_GyFRZ11QrtPM6GDmu1Fi1i09tMLEaqv4MOH3ZWlg8hWqb8R 0h.iwUZ_1BYn7F5Ppnr3wx4wSLgRiPbblVlLm8aU7Bn5Mo5OKtiPj307izf1bONjnvfh5YPR08Wf HcQn4pUJWKsM8JTxaq3r9K8Md591Kahx8T1mFzhFxzEOQpjPWI5RO.tu.jWYA98FhB140B.8L6Ug WZWjoumSr6iQeXpaR7JkaqYQd_fAqzQNmRsX7wviIgON_EHn.f2.1._d21dfbtNuEfvj6v2d61tD hWhVgncB2bH_82nP1iUeVHI9OoprmVDFFt.rTzrzrdpRp4ceeXuDeqY.7OgxgIULvntVV5KmWlKk jOpBa8ipUB.9IZkSsFlenLeDC.JegSrU0YFxSp4igYvg3KynBLYY96ykKIxjnsmDrZq_fD.c5jOG CZgLq7jNgQe6HE2fBNbzK.6XcSzDpD4YU0BIOL3iaVNCr4aN4NB2lyrjAbV0KPZxIVDtIM5Tdo_k _2hjayIzUfe8WxE1ts.r6Evna1hsELiUPFqq5L8xxSbENEgvPQrdT0nkJQBTd_TWJA3wgv.SqFIl q8cxtiJaTGlgiFcrVkHj6ATojB4GXjaWUUm9_.mxnA25XHdVB5gI.hSVQCR6seJoXuYWAD_x2RK8 KGFkSj27hadLpTGtCxsRIgLgG1gDql9mXVZuKDwfRs1J_d.aqMR20cSVHWMbtRsvLUt7tFO6JWax vJBzPc_ry096azBmD.bf1WYkvQm9CUG1iiZlOqYwd.BNF.r_YIaj1SFbhEuQfLZdTan84prj4353 PkdvHG_cZJxAWWxAnctFJufXe9TeYz94K4EzHRhmKt8FAAly9fr8djWIwQBuvNHsgs41Ib7ubMD7 ZlQzfPKjs8Ng75gbakieKAG4uKzxl2W98ge2A9srTuDNi4St._zKRj4KX77hTf_XZyQRAbZ7iTjS uNl9buUkjBdwGRWT8cC22tsXPZ.ZINqoKxOsh6d3NWIcuAjxo5nsJ9LP8GqAnhDLbrhnJfGH6j1Z V_Mcn7R56gxxWsSxikNNdTec0W0XZbM2TQtW.zCiYMV3BLfwpuA52quvskN4BqNtiH7rw42NAKPy vrOlNAp6YlRbHI9bxiiys7ZqEt5rcCTX9ZbLnjwdSMuf20sWt3SsBQavJxwtdVyEEQslzSMR00cU BLTpJnEfYJbd_FHuf2wuhlMvRcFApXlrSS2OnXQfvH7rJ1w-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.bf2.yahoo.com with HTTP; Sun, 22 Mar 2020 21:52:50 +0000 Received: by smtp404.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 7b335453cd9e6cc510e5992514b28596; Sun, 22 Mar 2020 21:52:48 +0000 (UTC) Date: Sun, 22 Mar 2020 17:52:47 -0400 From: "Vlad D. Markov" <dvoich@aim.com> To: freebsd-questions@freebsd.org Subject: Re: sane crashes Message-Id: <20200322175247.fc82ac9b590f745d35ab47da@aim.com> In-Reply-To: <1270065762.180915.1584894974045@mail.yahoo.com> References: <20200321183703.9566f2b45dd4193a51381291.ref@aim.com> <20200321183703.9566f2b45dd4193a51381291@aim.com> <20200321184307.8fb232b54dd802ae8c0a11bb@aim.com> <20200322093038.1f6933c3e68d6622c7d39427@aim.com> <20200322152424.6fd38112.freebsd@edvax.de> <1270065762.180915.1584894974045@mail.yahoo.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.1) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48lrpr0bDDz4QQ5 X-Spamd-Bar: + X-Spamd-Result: default: False [1.49 / 15.00]; R_SPF_ALLOW(-0.20)[+ip4:74.6.128.0/21]; FREEMAIL_FROM(0.00)[aim.com]; TO_DN_NONE(0.00)[]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[aim.com:+]; DMARC_POLICY_ALLOW(-0.50)[aim.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[aim.com]; ASN(0.00)[asn:26101, ipnet:74.6.128.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[aim.com:s¢048]; URIBL_BLOCKED(0.00)[aim.com.multi.uribl.com]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (3.83), ipnet: 74.6.128.0/21(1.29), asn: 26101(1.03), country: US(-0.05)]; NEURAL_SPAM_MEDIUM(0.99)[0.991,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; NEURAL_SPAM_LONG(1.00)[0.996,0]; RCVD_IN_DNSWL_NONE(0.00)[42.131.6.74.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[42.131.6.74.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Sun, 22 Mar 2020 21:52:53 -0000 On Sun, 22 Mar 2020 16:36:14 +0000 (UTC) Paul Pathiakis <pathiaki2@yahoo.com> wrote: > Hi, > I have this running and there's a number of things that could be blocking it. > 1) install hplip (since it's an HP this is a very useful tool on a GUI)2) try running all the xsane commands as 'root' (scanimage, etc). If they work, there's a problem with device permissions.3) if 2), you'll need to look at install info for xsane. It will tell you all the things in devd.conf that need to be modified. > I have this running on an HP all-in-one wireless. (HP 4250 I think) I also have the android interface running on my phones that allows me to print directly to the printer. > Also, try looking at the cups interface and verify that you can at least see the printer part of this. > It's, typically, located at http://localhost:631 > Paul > > On Sunday, March 22, 2020, 10:24:59 AM EDT, Polytropon <freebsd@edvax.de> wrote: > > On Sun, 22 Mar 2020 09:30:38 -0400, Vlad D. Markov via freebsd-questions wrote: > > On Sat, 21 Mar 2020 18:43:07 -0400 > > "Vlad D. Markov via freebsd-questions" <freebsd-questions@freebsd.org> wrote: > > > > > On Sat, 21 Mar 2020 18:37:03 -0400 > > > "Vlad D. Markov via freebsd-questions" <freebsd-questions@freebsd.org> wrote: > > > > > > > > > > > I am having some problems using sane for scanning. > > > > > > > > My version of FreeBSD: > > > > FreeBSD happy 12.1-RELEASE-p2 FreeBSD 12.1-RELEASE-p2 GENERIC amd64 > > > > > > > > My version of sane: > > > > happy$ scanimage -V > > > > scanimage (sane-backends) 1.0.29; backend version 1.0.29 > > > > > > > > I have tried multiple approaches to get things working: > > > > > > > > The scanner is an HP so I set the URI and tried: > > > > > > > > happy$ xsane "hpaio:/net/OfficeJet_Pro_6970?ip=192.168.1.37" > > > > Assertion failed: (p), function avahi_threaded_poll_lock, file thread-watch.c, line 171. > > > > Abort trap (core dumped) > > > > > > > > Next try: > > > > > > > > happy$ scanimage -L > > > > Assertion failed: (p), function avahi_threaded_poll_lock, file thread-watch.c, line 171. > > > > Abort trap > > > > > > > > Recompile minus Avahi: > > > > happy$ scanimage -L > > > > device `hpaio:/net/OfficeJet_Pro_6970?ip=192.168.1.37' is a Hewlett-Packard OfficeJet_Pro_6970 all-in-one > > > > > > > > Maybe this will help the next person. > > > > > > > > Vlad > > > > > > > Jumped the gun here. The last method also has an issue when doing a scan: > > > > > > happy$ dbus[8796]: arguments to dbus_connection_send() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3311. > > > 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 > > > > > > > > > > > > > > avahi-daemon and dbusd weren't running. For some reason they didn't > > start via rc.conf. > > Do you have dbus_enable="YES" in your /etc/rc.conf file? Do the > system logs contain an error message about why DBus could not be > started? (If you're using Gnome, the related _enable variable > usually implies starting HAL and DBus.) > > Reacting to a non-running DBus by core dumping doesn't look very > good... oh, and according to "man 8 avahi-daemon": > > Upon startup avahi-daemon interprets its configuration file > /home/lennart/tmp/avahi/usr/local/etc/avahi/avahi-daemon.conf and reads > XML fragments from /home/lennart/tmp/avahi/etc/avahi/services/*.service > which may define static DNS-SD services. > > Because /home/lennart/tmp is a standard system configuration > location present on every FreeBSD box... ;-) > > Source: > > https://www.freebsd.org/cgi/man.cgi?query=avahi-daemon > > I think something is broken in my rc subsystem. I got past the xsane issue using rc.local to start things. Then I noticed other things like cupsd & privoxy would not start. So I went into debug mode and got this: root@happy:/var/log # grep cupsd messages Mar 22 17:34:59 happy root[1302]: /usr/local/etc/rc.d/cupsd: DEBUG: checkyesno: cupsd_enable is set to YES. Mar 22 17:34:59 happy root[1303]: /usr/local/etc/rc.d/cupsd: DEBUG: run_rc_command: start_precmd: cupsd_prestart Mar 22 17:34:59 happy root[1304]: /usr/local/etc/rc.d/cupsd: DEBUG: run_rc_command: doit: limits -C daemon /usr/local/sbin/cupsd Mar 22 17:37:57 happy root[1711]: /usr/local/etc/rc.d/cupsd: DEBUG: checkyesno: cupsd_enable is set to YES. root@happy:/var/log # service cupsd status /usr/local/etc/rc.d/cupsd: DEBUG: checkyesno: cupsd_enable is set to YES. cupsd is not running.r So I do this: root@happy:/var/log # limits -C daemon /usr/local/sbin/cupsd root@happy:/var/log # service cupsd status /usr/local/etc/rc.d/cupsd: DEBUG: checkyesno: cupsd_enable is set to YES. cupsd is running as pid 1754. I am confused. It started via the terminal yet not via the script ( I think).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1270065762.180915.1584894974045>
