Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] 3g & wifi troubles

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
arzgi
Posts: 1194
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

[SOLVED] 3g & wifi troubles

#1 Post by arzgi »

Debian 10 Buster.

Acer Aspire V3-112P/R2 laptop.

Using wifi at home, and a 3g dongle elsewhere. Orphaned wvdial worked in stretch, but could not get it to work in Buster, so I use ppp for 3g.

But after 3g usage, boots are just PITA, so slow to bring wifi up.

I use ifplugd, /etc/networking/interfaces:

Code: Select all

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

allow-hotplug wlp2s0
iface wlp2s0 inet dhcp
    pre-up /usr/sbin/wpa_supplicant -iwlp2s0 -c/etc/wpa_supplicant/wpa_supplicant.conf
    gateway 192.168.1.1
    nameserver 192.168.1.1.

allow-hotplug enp3s0
iface enp3s0 inet dhcp

Code: Select all

[Starting] Restore /etc/resolv.conf if the system crashed before the ppp link was shut down
[Starting] System Logging service...
[Starting] Login Service...
[Starting] Disk Manager
[ OK ] Started Daily Rotation of log files
[ OK ] Trigger anacron every hour
[ OK ] Reached Target Timers
[ OK ] D-Bus System Message Bus
       Starting LSB: Network connection manager...
       Starting WPA supplicant...
[ OK ] Started System Logging service.
[ OK ] Started Restore /etc/resolv.conf if the system crashed before the ppp link was shut down 
[ OK ] Started LSB: network connection manager.
[ OK ] Started Initializing hardware monitoring sensors.
[ OK ] Started WPA supplicant.
       Starting Authorization Manager...
[ OK]  Stared Authorization Manager.
[ OK ] Started Login Service.
[ OK ] Started Disk Manager.
[ 11.266504] Bluetooth hci0: command 0x1000 tx timeout
[  ***] A start job is running for Raise network interfaces (2 min 17 s / 5 min 2 s)
/var/log/boot.log: (part)

Code: Select all

A start job is running for Raise network interfaces (6min 29s / 6min 32s)
A start job is running for Raise network interfaces (6min 30s / 6min 32s)
A start job is running for Raise network interfaces (6min 30s / 6min 32s)
A start job is running for Raise network interfaces (6min 31s / 6min 32s)
A start job is running for Raise network interfaces (6min 31s / 6min 32s)
 A start job is running for Raise network interfaces (6min 32s / 6min 32s)
 Failed to start Raise network interfaces
See 'systemctl status networking.service' for details.
Reached target Network.
Reached target Network is Online.
         Starting LSB: Brings up/down network automatically...
[ OK ] Started Permit User Sessions.
         Starting Hold until boot process finishes up...
         Starting Terminate Plymouth Boot Screen...
#systemctl status networking.service

Code: Select all

● networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor prese
   Active: failed (Result: timeout) since Sun 2019-07-14 15:12:55 EEST; 1h 1min 
     Docs: man:interfaces(5)
  Process: 426 ExecStart=/sbin/ifup -a --read-environment (code=killed, signal=K
 Main PID: 426 (code=killed, signal=KILL)

heinä 14 15:06:25 acer systemd[1]: Starting Raise network interfaces...
heinä 14 15:06:25 acer ifup[426]: ifup: waiting for lock on /run/network/ifstate
heinä 14 15:11:25 acer systemd[1]: networking.service: Start operation timed out
heinä 14 15:11:25 acer ifup[426]: Got signal Terminated, terminating...
heinä 14 15:12:55 acer systemd[1]: networking.service: State 'stop-sigterm' time
heinä 14 15:12:55 acer systemd[1]: networking.service: Killing process 426 (ifup
heinä 14 15:12:55 acer systemd[1]: networking.service: Main process exited, code
heinä 14 15:12:55 acer systemd[1]: networking.service: Failed with result 'timeo
heinä 14 15:12:55 acer systemd[1]: Failed to start Raise network interfaces.
Purged resolvconf, but that had no effect.

What would help?

EDIT: fixed a few typos :?
Last edited by arzgi on 2019-07-14 18:34, edited 2 times in total.

arzgi
Posts: 1194
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: 3g & wifi troubles

#2 Post by arzgi »

A little progress.

Shortened the timeout in /etc/systemd/system/network-online.target.wants/networking.service, which by default was 5 minutes :oops:

Also some net search suggested removing allow-hotplug options from /etc/network/interfaces. Did that too.

Now the boot time is tolerable, but I must start wpa_supplicant manually to get wifi working.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: 3g & wifi troubles

#3 Post by Head_on_a_Stick »

arzgi wrote:Now the boot time is tolerable, but I must start wpa_supplicant manually to get wifi working.
Add this line instead of allow-hotplug:

Code: Select all

auto wlp2s0
And that nameserver line is wrong, the configuration requires dns-nameservers and it will only work if the resolvconf package is installed.

I'm not sure if you should add the -B flag to the wpa_supplicant command but I would use the interfaces file itself rather than wpa_supplicant.conf:

https://wiki.debian.org/WiFi/HowToUse#W ... d_WPA2-PSK
deadbang

arzgi
Posts: 1194
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: [SOLVED] 3g & wifi troubles

#4 Post by arzgi »

Vau! That was quick, thanks a lot man!

I have to run the final test, start 3g, and then boot without. Altough I have no idea, why does it think resolv.conf is bad, since I start ppp using pon, stop it with poff, then start wifi, check resolv.conf before shutting of. But academic...

Added 'auto' to wlp2s0 already when removed 'allow-hotplug'' -option, but never thought wpa_supplicant should run as daemon.

arzgi
Posts: 1194
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: [SOLVED] 3g & wifi troubles

#5 Post by arzgi »

Yeah, works like a charm, thanks again HOAS!

Post Reply