Skip site navigation (1)Skip section navigation (2)
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 i=
t.
1) install hplip=C2=A0 (since it's an HP this is a very useful tool on a GU=
I)2) try running all the xsane commands as 'root' (scanimage, etc).=C2=A0 I=
f they work, there's a problem with device permissions.3) if 2), you'll nee=
d to look at install info for xsane.=C2=A0 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)=C2=A0 I=
 also have the android interface running on my phones that allows me to pri=
nt directly to the printer.
Also, try looking at the cups interface and verify that you can at least se=
e 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.d=
e> wrote: =20
=20
 On Sun, 22 Mar 2020 09:30:38 -0400, Vlad D. Markov via freebsd-questions w=
rote:
> On Sat, 21 Mar 2020 18:43:07 -0400
> "Vlad D. Markov via freebsd-questions" <freebsd-questions@freebsd.org> wr=
ote:
>=20
> > On Sat, 21 Mar 2020 18:37:03 -0400
> > "Vlad D. Markov via freebsd-questions" <freebsd-questions@freebsd.org> =
wrote:
> >=20
> > >=20
> > > I am having some problems using sane for scanning.
> > >=20
> > > My version of FreeBSD:
> > > FreeBSD happy 12.1-RELEASE-p2 FreeBSD 12.1-RELEASE-p2 GENERIC=C2=A0 a=
md64
> > >=20
> > > My version of sane:
> > > happy$ scanimage -V
> > > scanimage (sane-backends) 1.0.29; backend version 1.0.29
> > >=20
> > > I have tried multiple approaches to get things working:
> > >=20
> > > The scanner is an HP so I set the URI and tried:
> > >=20
> > > happy$ xsane "hpaio:/net/OfficeJet_Pro_6970?ip=3D192.168.1.37"
> > > Assertion failed: (p), function avahi_threaded_poll_lock, file thread=
-watch.c, line 171.
> > > Abort trap (core dumped)
> > >=20
> > > Next try:
> > >=20
> > > happy$ scanimage -L
> > > Assertion failed: (p), function avahi_threaded_poll_lock, file thread=
-watch.c, line 171.
> > > Abort trap
> > >=20
> > > Recompile minus Avahi:
> > > happy$ scanimage -L
> > > device `hpaio:/net/OfficeJet_Pro_6970?ip=3D192.168.1.37' is a Hewlett=
-Packard OfficeJet_Pro_6970 all-in-one
> > >=20
> > > Maybe this will help the next person.
> > >=20
> > > Vlad
> > >=20
> > Jumped the gun here. The last method also has an issue when doing a sca=
n:
> >=20
> > happy$ dbus[8796]: arguments to dbus_connection_send() were incorrect, =
assertion "connection !=3D NULL" failed in file dbus-connection.c line 3311=
.
> > This is normally a bug in some application using the D-Bus library.
> >=20
> >=C2=A0 D-Bus not built with -rdynamic so unable to print a backtrace
> >=20
> >=20
> >=20
> >=20
> avahi-daemon and dbusd weren't running. For some reason they didn't
> start via rc.conf.

Do you have dbus_enable=3D"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":

=C2=A0=C2=A0=C2=A0 Upon=C2=A0 startup=C2=A0=C2=A0=C2=A0 avahi-daemon=C2=A0 =
interprets=C2=A0 its=C2=A0=C2=A0=C2=A0 =C2=A0 configuration=C2=A0=C2=A0=C2=
=A0 =C2=A0 file
=C2=A0=C2=A0=C2=A0 /home/lennart/tmp/avahi/usr/local/etc/avahi/avahi-daemon=
.conf and reads
=C2=A0=C2=A0=C2=A0 XML fragments from /home/lennart/tmp/avahi/etc/avahi/ser=
vices/*.service
=C2=A0=C2=A0=C2=A0 which=C2=A0 may define static=C2=A0=C2=A0=C2=A0 DNS-SD s=
ervices.

Because /home/lennart/tmp is a standard system configuration
location present on every FreeBSD box... ;-)

Source:

https://www.freebsd.org/cgi/man.cgi?query=3Davahi-daemon


--=20
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=
"
 =20
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
 s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qAnhDLbrhnJfGH6j1Z
 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=a2048];
 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=A0 (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).=A0 If th=
ey work, there's a problem with device permissions.3) if 2), you'll need to=
 look at install info for xsane.=A0 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)=A0 I =
also have the android interface running on my phones that allows me to prin=
t 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
>=20
>     On Sunday, March 22, 2020, 10:24:59 AM EDT, Polytropon <freebsd@edvax=
.de> wrote: =20
> =20
>  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:
> >=20
> > > On Sat, 21 Mar 2020 18:37:03 -0400
> > > "Vlad D. Markov via freebsd-questions" <freebsd-questions@freebsd.org=
> wrote:
> > >=20
> > > >=20
> > > > I am having some problems using sane for scanning.
> > > >=20
> > > > My version of FreeBSD:
> > > > FreeBSD happy 12.1-RELEASE-p2 FreeBSD 12.1-RELEASE-p2 GENERIC=A0 am=
d64
> > > >=20
> > > > My version of sane:
> > > > happy$ scanimage -V
> > > > scanimage (sane-backends) 1.0.29; backend version 1.0.29
> > > >=20
> > > > I have tried multiple approaches to get things working:
> > > >=20
> > > > The scanner is an HP so I set the URI and tried:
> > > >=20
> > > > happy$ xsane "hpaio:/net/OfficeJet_Pro_6970?ip=3D192.168.1.37"
> > > > Assertion failed: (p), function avahi_threaded_poll_lock, file thre=
ad-watch.c, line 171.
> > > > Abort trap (core dumped)
> > > >=20
> > > > Next try:
> > > >=20
> > > > happy$ scanimage -L
> > > > Assertion failed: (p), function avahi_threaded_poll_lock, file thre=
ad-watch.c, line 171.
> > > > Abort trap
> > > >=20
> > > > Recompile minus Avahi:
> > > > happy$ scanimage -L
> > > > device `hpaio:/net/OfficeJet_Pro_6970?ip=3D192.168.1.37' is a Hewle=
tt-Packard OfficeJet_Pro_6970 all-in-one
> > > >=20
> > > > Maybe this will help the next person.
> > > >=20
> > > > Vlad
> > > >=20
> > > Jumped the gun here. The last method also has an issue when doing a s=
can:
> > >=20
> > > happy$ dbus[8796]: arguments to dbus_connection_send() were incorrect=
, assertion "connection !=3D NULL" failed in file dbus-connection.c line 33=
11.
> > > This is normally a bug in some application using the D-Bus library.
> > >=20
> > >=A0 D-Bus not built with -rdynamic so unable to print a backtrace
> > >=20
> > >=20
> > >=20
> > >=20
> > avahi-daemon and dbusd weren't running. For some reason they didn't
> > start via rc.conf.
>=20
> Do you have dbus_enable=3D"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.)
>=20
> Reacting to a non-running DBus by core dumping doesn't look very
> good... oh, and according to "man 8 avahi-daemon":
>=20
> =A0=A0=A0 Upon=A0 startup=A0=A0=A0 avahi-daemon=A0 interprets=A0 its=A0=
=A0=A0 =A0 configuration=A0=A0=A0 =A0 file
> =A0=A0=A0 /home/lennart/tmp/avahi/usr/local/etc/avahi/avahi-daemon.conf a=
nd reads
> =A0=A0=A0 XML fragments from /home/lennart/tmp/avahi/etc/avahi/services/*=
.service
> =A0=A0=A0 which=A0 may define static=A0=A0=A0 DNS-SD services.
>=20
> Because /home/lennart/tmp is a standard system configuration
> location present on every FreeBSD box... ;-)
>=20
> Source:
>=20
> https://www.freebsd.org/cgi/man.cgi?query=3Davahi-daemon
>=20
>=20
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: checkye=
sno: 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=20
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 =20
Mar 22 17:37:57 happy root[1711]: /usr/local/etc/rc.d/cupsd: DEBUG: checkye=
sno: 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=20
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>