Re: Script execution failed with return value 2

[email protected] Mon, 02 Sep 2024 15:39:03 +1000
Newsgroups gmane.network.dhcp.isc.dhcp-server
Message-ID <12cd8e0accd8177fcb896e70d386f840__18006.1018605315$1725255570$gmane$org@uniq.com.au>
--===============6025653250562318916==
Content-Type: multipart/alternative;
 boundary="=_c080651cf84480c5b272be987d4554a9"

--=_c080651cf84480c5b272be987d4554a9
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8;
 format=flowed

With _systemctl status whatever.service_ you can also do _journalctl 
-xeu whatever.service_ and get the full status and error messages. 
Otherwise you just get the last 10 or so lines which isn't always the 
interesting or useful part.

regards,

Glenn

On 2024-09-02 15:04, William Torrez Corea wrote:

> networking.service - Raise network interfaces
> Loaded: loaded (/lib/systemd/system/networking.service; enabled; 
> preset: enabled)
> Active: active (exited) since Sun 2024-09-01 22:56:13 CST; 3min 25s ago
> Docs: man:interfaces(5)
> Process: 20876 ExecStart=/sbin/ifup -a --read-environment (code=exited, 
> status=0/SUCCESS)
> Process: 21228 ExecStart=/bin/sh -c if [ -f 
> /run/network/restart-hotplug ]; then /sbin/ifup -a --read-environment 
> --allow=hotplug>
> Main PID: 21228 (code=exited, status=0/SUCCESS)
> Tasks: 3 (limit: 9342)
> Memory: 1.3M
> CPU: 107ms
> CGroup: /system.slice/networking.service
> ├─20901 dhclient -4 -v -i -pf /run/dhclient.enp7s0.pid -lf 
> /var/lib/dhcp/dhclient.enp7s0.leases -I -df /var/lib/dhcp/dhc>
> ├─21171 "avahi-autoipd: [enp7s0] bound 169.254.10.244"
> └─21172 "avahi-autoipd: [enp7s0] callout dispatcher"
> 
> Sep 01 22:56:04 lulu-inspiron5437 dhclient[20901]: No working leases in 
> persistent database - sleeping.
> Sep 01 22:56:04 lulu-inspiron5437 avahi-autoipd(enp7s0)[21171]: Found 
> user 'avahi-autoipd' (UID 107) and group 'avahi-autoipd' (GID 1>
> Sep 01 22:56:04 lulu-inspiron5437 avahi-autoipd(enp7s0)[21171]: 
> Successfully called chroot().
> Sep 01 22:56:04 lulu-inspiron5437 avahi-autoipd(enp7s0)[21171]: 
> Successfully dropped root privileges.
> Sep 01 22:56:04 lulu-inspiron5437 avahi-autoipd(enp7s0)[21171]: 
> Starting with address 169.254.10.244
> Sep 01 22:56:09 lulu-inspiron5437 avahi-autoipd(enp7s0)[21171]: Callout 
> BIND, address 169.254.10.244 on interface enp7s0
> Sep 01 22:56:09 lulu-inspiron5437 avahi-autoipd(enp7s0)[21172]: client: 
> RTNETLINK answers: File exists
> Sep 01 22:56:09 lulu-inspiron5437 avahi-autoipd(enp7s0)[21172]: Script 
> execution failed with return value 2
> Sep 01 22:56:13 lulu-inspiron5437 avahi-autoipd(enp7s0)[21171]: 
> Successfully claimed IP address 169.254.10.244
> Sep 01 22:56:13 lulu-inspiron5437 systemd[1]: Finished 
> networking.service - Raise network interfaces.
> 
> I am connected to the interface enp7s0 but this network is unstable in 
> addition i don't have access to the internet.
> 
> --
> 
> With kindest regards, William.
> 
> _Larry Wall invented a messy programming language -- and changed the 
> face of the Web_
--=_c080651cf84480c5b272be987d4554a9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3DUTF-8" /></head><body style=3D'font-size: 10pt; font-family: Verdana,Gen=
eva,sans-serif'>
<p>With <em>systemctl status whatever.service</em> you can also do <em>jour=
nalctl -xeu whatever.service</em> and get the full status and error message=
s. Otherwise you just get the last 10 or so lines which isn't always the in=
teresting or useful part.</p>
<p>regards,</p>
<p>Glenn</p>
<p id=3D"reply-intro">On 2024-09-02 15:04, William Torrez Corea wrote:</p>
<blockquote type=3D"cite" style=3D"padding: 0 0.4em; border-left: #1010ff 2=
px solid; margin: 0">
<div id=3D"replybody1">
<div dir=3D"ltr">networking.service - Raise network interfaces<br />&nbsp; =
&nbsp; &nbsp;Loaded: loaded (/lib/systemd/system/networking.service; enable=
d; preset: enabled)<br />&nbsp; &nbsp; &nbsp;Active: active (exited) since =
Sun 2024-09-01 22:56:13 CST; 3min 25s ago<br />&nbsp; &nbsp; &nbsp; &nbsp;D=
ocs: man:interfaces(5)<br />&nbsp; &nbsp; Process: 20876 ExecStart=3D/sbin/=
ifup -a --read-environment (code=3Dexited, status=3D0/SUCCESS)<br />&nbsp; =
&nbsp; Process: 21228 ExecStart=3D/bin/sh -c if [ -f /run/network/restart-h=
otplug ]; then /sbin/ifup -a --read-environment --allow=3Dhotplug&gt;<br />=
&nbsp; &nbsp;Main PID: 21228 (code=3Dexited, status=3D0/SUCCESS)<br />&nbsp=
; &nbsp; &nbsp; Tasks: 3 (limit: 9342)<br />&nbsp; &nbsp; &nbsp;Memory: 1.3=
M<br />&nbsp; &nbsp; &nbsp; &nbsp; CPU: 107ms<br />&nbsp; &nbsp; &nbsp;CGro=
up: /system.slice/networking.service<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp;=E2=94=9C=E2=94=8020901 dhclient -4 -v -i -pf /run/dhclient.=
enp7s0.pid -lf /var/lib/dhcp/dhclient.enp7s0.leases -I -df /var/lib/dhcp/dh=
c&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=E2=94=9C=E2=94=
=8021171 "avahi-autoipd: [enp7s0] bound 169.254.10.244"<br />&nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=E2=94=94=E2=94=8021172 "avahi-autoipd: [=
enp7s0] callout dispatcher"<br /><br />Sep 01 22:56:04 lulu-inspiron5437 dh=
client[20901]: No working leases in persistent database - sleeping.<br />Se=
p 01 22:56:04 lulu-inspiron5437 avahi-autoipd(enp7s0)[21171]: Found user 'a=
vahi-autoipd' (UID 107) and group 'avahi-autoipd' (GID 1&gt;<br />Sep 01 22=
:56:04 lulu-inspiron5437 avahi-autoipd(enp7s0)[21171]: Successfully called =
chroot().<br />Sep 01 22:56:04 lulu-inspiron5437 avahi-autoipd(enp7s0)[2117=
1]: Successfully dropped root privileges.<br />Sep 01 22:56:04 lulu-inspiro=
n5437 avahi-autoipd(enp7s0)[21171]: Starting with address 169.254.10.244<br=
 />Sep 01 22:56:09 lulu-inspiron5437 avahi-autoipd(enp7s0)[21171]: Callout =
BIND, address 169.254.10.244 on interface enp7s0<br />Sep 01 22:56:09 lulu-=
inspiron5437 avahi-autoipd(enp7s0)[21172]: client: RTNETLINK answers: File =
exists<br />Sep 01 22:56:09 lulu-inspiron5437 avahi-autoipd(enp7s0)[21172]:=
 Script execution failed with return value 2<br />Sep 01 22:56:13 lulu-insp=
iron5437 avahi-autoipd(enp7s0)[21171]: Successfully claimed IP address 169.=
254.10.244<br />Sep 01 22:56:13 lulu-inspiron5437 systemd[1]: Finished netw=
orking.service - Raise network interfaces.<br />
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>I am connected to the interface enp7s0 but this network is unstable in=
 addition i don't have access to the internet.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<br /><span class=3D"v1gmail_signature_prefix">-- </span><br />
<div class=3D"v1gmail_signature" dir=3D"ltr">
<div dir=3D"ltr"><br />With kindest regards, William.<br /><br /><em>Larry =
Wall invented a messy programming language -- and changed the face of the W=
eb</em><br /><br /></div>
</div>
</div>
</div>
<br />
<div class=3D"pre" style=3D"margin: 0; padding: 0; font-family: monospace">=
&nbsp;</div>
</blockquote>
<p><br /></p>

</body></html>

--=_c080651cf84480c5b272be987d4554a9--

--===============6025653250562318916==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/dhcp-users

--===============6025653250562318916==--