Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wpa supplicant not starting - code 1...........

458 views
Skip to first unread message

Charlie

unread,
Oct 11, 2021, 9:20:02 PM10/11/21
to

From my keyboard:

Hello,

If someone has an idea about this error message after suspend
can you please give me a hint as to what is causing it:

wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return
code 1

Since Bullseye went stable on my Dell Inspiron laptop I have had some
problems. The above is the latest. It happens randomly and there is no
way of duplicating it.

I have googled this, but tried some of the suggestions without getting
wpa supplicant to work again except by rebooting the laptop?

Can someone tell me what "code 1" is please?

Thank you,
Charlie

East Gippsland Wildlife Rehabilitators Inc..
http://www.egwildlife.com.au/

--
Registered Linux User:- 329524

***********************************************

Better not to begin. Once you begin, better to finish it.
-----Buddhist Saying

***********************************************
Debian GNU/Linux - Magic indeed.

-----------------------------------------------------

Henning Follmann

unread,
Oct 14, 2021, 12:40:03 PM10/14/21
to
On Tue, Oct 12, 2021 at 12:14:05PM +1100, Charlie wrote:
>
> From my keyboard:
>
> Hello,
>
> If someone has an idea about this error message after suspend
> can you please give me a hint as to what is causing it:
>
> wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
> run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return
> code 1
>
> Since Bullseye went stable on my Dell Inspiron laptop I have had some
> problems. The above is the latest. It happens randomly and there is no
> way of duplicating it.
>
> I have googled this, but tried some of the suggestions without getting
> wpa supplicant to work again except by rebooting the laptop?
>
> Can someone tell me what "code 1" is please?
>


You clearly hacked together something unusual there. To being helped,
you have to provide more information.
Is there any log entry?
Please post the pre-up script.
Is there a particular reason why you configured the wifi this way?

-H



--
Henning Follmann | hfol...@itcfollmann.com

Charlie

unread,
Oct 14, 2021, 9:50:05 PM10/14/21
to

On Thu, 14 Oct 2021 12:31:16 -0400 Henning Informed me about
Re: wpa supplicant not starting - code 1...........
Absolutely standard vanilla install and use from Bulleye when it was
testing. It happened a couple of random times in testing as well. But
that was testing, so just rebooted.

No hacking done at all. Some mention on the web:

https://forums.debian.net/viewtopic.php?f=5&t=145175

Not in any way applicable

Looked for fresher information, didn't find it.

Think it might be hardware.

Have had other hardware issues, so think this Dell laptop might be a
lemon. Ce la vie

Thanks for your input.

PS, has worked since I rebooted just after making this inquiry.

Stay well,
Charlie

--
Registered Linux User:- 329524

***********************************************

The nail that sticks up will be hammered down.-----Japanese
proverb

Henning Follmann

unread,
Oct 16, 2021, 12:30:04 PM10/16/21
to
Well,
that is wifi configuration in /e/n/i
Can you please then post the stanza for your wifi?

The code 1 is pretty generic.
/etc/wpa_supplicant/ifupdown.sh pretty much
throws an exit code 1 for all unsuccessful cases.


> Not in any way applicable
>
> Looked for fresher information, didn't find it.
>
> Think it might be hardware.

That might be. I do have frequently trouble with an old
powerbook pro. I think it is the power management causing
trouble.

>
> Have had other hardware issues, so think this Dell laptop might be a
> lemon. Ce la vie

Have you ever tried to use the network manager?
For that you have to comment out the stanza for your
wifi in /e/n/i


>
> Thanks for your input.
>
> PS, has worked since I rebooted just after making this inquiry.
>
> Stay well,
> Charlie
>
> --
> Registered Linux User:- 329524
>
> ***********************************************
>
> The nail that sticks up will be hammered down.-----Japanese
> proverb
>
> ***********************************************
> Debian GNU/Linux - Magic indeed.
>
> -----------------------------------------------------
>

--
Henning Follmann | hfol...@itcfollmann.com

Charlie

unread,
Oct 17, 2021, 11:30:05 PM10/17/21
to

On Sat, 16 Oct 2021 12:23:47 -0400 Henning Informed me about
> --
> Henning Follmann | hfol...@itcfollmann.com
>

Hello Henning.

I have no idea what an e/n/i is. Am one of those unfortunates
that fixes a motor, removes the worn part, takes it to a spare
parts seller and shows them, because I have no idea what they
are called. Brings home the new one and fixes the motor.

I left school at 14 years of age. Am old now and memory is not all that
good. Googled e/n/i can't discover what it means.

I have tried network manager about 15 years or more, ago. Didn't like
it and never touched it again. Then for a short, full of problems time,
the other one as well. Don't recall its name. Dropped that as well.

Anyway, I haven't had the wpa-supplicant problem again, so maybe it was
just a momentary glitch. I am always bemused by errors on my computer,
because I think that something which is all about mathematics should
just work. 2 and 2 can only make 4, not 5, not 6 or anything else? I
obviously don't understand the coding in the programs where the human
error must enter the works.

So thanks for your help, but I can't complete what you ask.

Just have to get on.

Charlie
--
Registered Linux User:- 329524

***********************************************

There is no treasure in the deep mountains; he who has no
desire for it finds it. ..ZEN SAYING

Andrew M.A. Cater

unread,
Oct 18, 2021, 6:00:05 AM10/18/21
to
/etc/network/interfaces

The place where networking is largely set up.

You may find that things have changed with setting up networking as you've
moved from one release of Debian to the next.

All the very best, as ever,

Andy Cater

Henning Follmann

unread,
Oct 18, 2021, 7:30:07 AM10/18/21
to
On Mon, Oct 18, 2021 at 02:23:17PM +1100, Charlie wrote:
>
[...]

>
> Hello Henning.
>
> I have no idea what an e/n/i is. Am one of those unfortunates
> that fixes a motor, removes the worn part, takes it to a spare
> parts seller and shows them, because I have no idea what they
> are called. Brings home the new one and fixes the motor.
>
> I left school at 14 years of age. Am old now and memory is not all that
> good. Googled e/n/i can't discover what it means.

It mainly means that I am a lazy bastard, and for somebody who complains
all the time when people are not more explanatory in their posts,
a hypocrite too.

/e/n/i = /etc/network/interfaces



>
> I have tried network manager about 15 years or more, ago. Didn't like
> it and never touched it again. Then for a short, full of problems time,
> the other one as well. Don't recall its name. Dropped that as well.

Yes, understandable, Network-Manager had and has its problems.
But it has come a long way. It is worth looking at.

>
> Anyway, I haven't had the wpa-supplicant problem again, so maybe it was
> just a momentary glitch. I am always bemused by errors on my computer,
> because I think that something which is all about mathematics should
> just work. 2 and 2 can only make 4, not 5, not 6 or anything else? I
> obviously don't understand the coding in the programs where the human
> error must enter the works.
>
> So thanks for your help, but I can't complete what you ask.
>
> Just have to get on.

Sure, if it works, there is no reason to invest more time
into this (at most annoyance).


>
> Charlie
> --

Charlie

unread,
Oct 18, 2021, 8:50:05 AM10/18/21
to

On Mon, 18 Oct 2021 07:29:36 -0400 Henning Informed me about
Re: wpa supplicant not starting - code 1...........

> On Mon, Oct 18, 2021 at 02:23:17PM +1100, Charlie wrote:
> >
> [...]
>
> >
> > Hello Henning.
> >
> > I have no idea what an e/n/i is. Am one of those
> > unfortunates that fixes a motor, removes the worn part, takes it to
> > a spare parts seller and shows them, because I have no idea what
> > they are called. Brings home the new one and fixes the motor.
> >
> > I left school at 14 years of age. Am old now and memory is not all
> > that good. Googled e/n/i can't discover what it means.
>
> It mainly means that I am a lazy bastard, and for somebody who
> complains all the time when people are not more explanatory in their
> posts, a hypocrite too.
>
> /e/n/i = /etc/network/interfaces
>
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
# auto enp1s0
iface enp1s0 inet dhcp

# Wildlife
# auto wlp2s0
iface wlp2s0 inet dhcp
wpa-ssid *********
wpa-psk *************

# Wildlife Belkin
# iface wlp2s0 inet dhcp
# wpa-ssid ***************
# wpa-psk **************

[end quote]

I have thought about commenting out the whole of:

# The primary network interface
# auto enp1s0
iface enp1s0 inet dhcp

However, if it slows down connecting to the net to leave it like this,
its hardly noticeable and quick to just bring it up if
wifi/wpa-supplicant doesn't work.

As you say an annoyance when it doesn't do what one expects.
> >
> > I have tried network manager about 15 years or more, ago. Didn't
> > like it and never touched it again. Then for a short, full of
> > problems time, the other one as well. Don't recall its name.
> > Dropped that as well.
>
> Yes, understandable, Network-Manager had and has its problems.
> But it has come a long way. It is worth looking at.
>
> >
> > Anyway, I haven't had the wpa-supplicant problem again, so maybe it
> > was just a momentary glitch. I am always bemused by errors on my
> > computer, because I think that something which is all about
> > mathematics should just work. 2 and 2 can only make 4, not 5, not 6
> > or anything else? I obviously don't understand the coding in the
> > programs where the human error must enter the works.
> >
> > So thanks for your help, but I can't complete what you ask.
> >
> > Just have to get on.
>
> Sure, if it works, there is no reason to invest more time
> into this (at most annoyance).
>
>
> >
> > Charlie
> > --
>
>
> -H
>
> --
> Henning Follmann | hfol...@itcfollmann.com
>


--
Registered Linux User:- 329524

***********************************************

I scarcely remember counting upon any Happiness—I look not for
it if it be not in the present hour—nothing startles me beyond
the Moment. The setting sun will always set me to rights—or if
a Sparrow come before my Window I take part in its existence
and pick about the Gravel. -------John Keats

Charlie

unread,
Oct 18, 2021, 8:50:05 AM10/18/21
to

On Mon, 18 Oct 2021 09:54:50 +0000 Andrew Informed me about Re:
Thanks Andy,

I know that file:

[quote]

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
# auto enp1s0
iface enp1s0 inet dhcp

# Wildlife
# auto wlp2s0
iface wlp2s0 inet dhcp
wpa-ssid *********
wpa-psk *************

# Wildlife Belkin
# iface wlp2s0 inet dhcp
# wpa-ssid ***************
# wpa-psk **************

[end quote]

Thanks for clearing that up for me Andy

Stay well,
Charlie
--
Registered Linux User:- 329524

***********************************************

Only one who bursts with enthusiasm Do I instruct; Only one who
bubbles with excitement Do I enlighten. If I hold up one corner
and you do not Come back with the other three, I do not
continue the lesson. -----Confucius

Charlie

unread,
Oct 18, 2021, 9:20:05 AM10/18/21
to

On Mon, 18 Oct 2021 09:54:50 +0000 Andrew Informed me about Re:
Thanks Andy,

I know that file:

[quote]

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
# auto enp1s0
iface enp1s0 inet dhcp

# Wildlife
# auto wlp2s0
iface wlp2s0 inet dhcp
wpa-ssid *********
wpa-psk *************

# Wildlife Belkin
# iface wlp2s0 inet dhcp
# wpa-ssid ***************
# wpa-psk **************

[end quote]

Thanks for clearing that up for me Andy

Stay well,
Charlie
--
Registered Linux User:- 329524

***********************************************

Only one who bursts with enthusiasm Do I instruct; Only one who
bubbles with excitement Do I enlighten. If I hold up one corner
and you do not Come back with the other three, I do not
continue the lesson. -----Confucius

0 new messages