Mobile Broadband

I have a problem with ppp when trying to connect my 3g usb stick

Nov 03 14:29:26 Alan-PC NetworkManager[561]: <info>  [1699010966.7058] device (ttyUSB2): state change: config -> failed (reason 'ppp-failed', sys-iface-state: 'managed')
Nov 03 14:29:26 Alan-PC NetworkManager[561]: <warn>  [1699010966.7065] device (ttyUSB2): Activation: failed for connection 'MTN'
Nov 03 14:29:26 Alan-PC NetworkManager[561]: <info>  [1699010966.7068] device (ttyUSB2): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
Nov 03 14:29:26 Alan-PC NetworkManager[561]: <info>  [1699010966.7072] policy: auto-activating connection 'MTN' (19464760-fad4-4bf5-9842-d4fc16df8656)
Nov 03 14:29:26 Alan-PC NetworkManager[561]: <info>  [1699010966.7078] device (ttyUSB2): Activation: starting connection 'MTN' (19464760-fad4-4bf5-9842-d4fc16df8656)
Nov 03 14:29:26 Alan-PC NetworkManager[561]: <info>  [1699010966.7079] device (ttyUSB2): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Nov 03 14:29:27 Alan-PC NetworkManager[561]: <info>  [1699010967.9125] device (ttyUSB2): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Nov 03 14:29:27 Alan-PC NetworkManager[561]: <info>  [1699010967.9127] modem["ttyUSB2"]: using modem-specified IP timeout: 20 seconds
Nov 03 14:29:27 Alan-PC NetworkManager[561]: <info>  [1699010967.9129] ppp-manager: starting PPP connection
Nov 03 14:29:27 Alan-PC NetworkManager[561]: <info>  [1699010967.9156] ppp-manager: pppd started with pid 8199
Nov 03 14:29:27 Alan-PC pppd[8199]: Plugin /usr/lib/pppd/2.5.0/nm-pppd-plugin.so loaded.
Nov 03 14:29:27 Alan-PC NetworkManager[8199]: Plugin /usr/lib/pppd/2.5.0/nm-pppd-plugin.so loaded.
Nov 03 14:29:27 Alan-PC pppd[8199]: nm-ppp-plugin: initializing
Nov 03 14:29:27 Alan-PC pppd[8199]: Warning: couldn't open ppp database /run/pppd/pppd2.tdb
Nov 03 14:29:27 Alan-PC NetworkManager[8199]: Warning: couldn't open ppp database /run/pppd/pppd2.tdb
Nov 03 14:29:27 Alan-PC pppd[8199]: pppd 2.5.0 started by root, uid 0
Nov 03 14:29:27 Alan-PC pppd[8199]: nm-ppp-plugin: status 2 / phase 'serial connection'
Nov 03 14:29:27 Alan-PC pppd[8199]: Can't create lock file /run/pppd/lock/LCK..ttyUSB2: No such file or directory
Nov 03 14:29:27 Alan-PC NetworkManager[8199]: Can't create lock file /run/pppd/lock/LCK..ttyUSB2: No such file or directory
Nov 03 14:29:27 Alan-PC pppd[8199]: nm-ppp-plugin: status 0 / phase 'dead'
Nov 03 14:29:27 Alan-PC pppd[8199]: nm-ppp-plugin: cleaning up
Nov 03 14:29:27 Alan-PC pppd[8199]: Exit.

I tried to make the pppd file manually and added the ppp database by copying it from another pc and made an empty lock file in pppd, and it worked fine, until i need to restart my pc, when i turn my pc back on, the pppd file and its content are all gone.

I also have the same issue. I believe at some point an upgrade to network manager or ppp caused the issue.

Here are similar issues on other platforms (Here and with a sort of solution Here)

Root ppp issue is here

From these pointers I created a small simple script that I run before using the Broadband modem to ensure the directory mentioned in the issue exists. Here it is:

#! /bin/bash
sudo mkdir -p /run/pppd/lock
sudo chmod -R 0700 /run/pppd/lock

For completeness my platforms are Manjaro XFCE and Manjaro KDE Plasma and I use the script on both whenever I have to connect using a modem.

NB: Apparently this has been fixed in this PR. Maybe Manjaro Devs can now standardize?

I can confirm that this is no longer present on;

System:
  Kernel: 6.6.25-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    
  Desktop: KDE Plasma v: 5.27.11 tk: Qt v: 5.15.12 info: frameworks
    v: 5.115.0 wm: kwin_x11 vt: 2 dm: SDDM Distro: Manjaro base: Arch Linux