Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

66%
+2 −0
Q&A How to debug NetworkManager issue after suspend/resume in Ubuntu 22.04

Begin with the logs I'd begin with the logs: journalctl -u NetworkManager You may want to create a log config file for this: vim /etc/NetworkManager/conf.d/95-nm-debug.conf # perhaps sudo, to ha...

posted 11mo ago by LAFK‭

Answer
#1: Initial revision by user avatar LAFK‭ · 2023-06-21T05:57:29Z (11 months ago)
## Begin with the logs

I'd begin with the logs: `journalctl -u NetworkManager`

You may want to create a log config file for this:

`vim /etc/NetworkManager/conf.d/95-nm-debug.conf` # perhaps sudo, to have access to /etc

File contents:

```
[logging]
domains=ALL:TRACE
```

`systemctl restart NetworkManager` to make NM notice the changes.

### Logs incomplete?

If logging output is incomplete, disable rate limiting in the journal:

1. `vim /etc/systemd/journald.conf`
2. find `RateLimitBurst`
3. set to `0`
4. `systemctl restart systemd-journald`

## Python helper scripts

I hear there are some, but haven't used them.

`sudo /usr/lib/NetworkManager/debug-helper.py --nm debug # or info or trace if not debug`

## Testcase for debugging

This stops NM, unloads and loads the DRIVER, then starts NM again. Should provide good logs.
```
sudo service network-manager stop
sudo modprobe -r DRIVER
sudo modprobe DRIVER
sudo service network-manager start
```

## Sources 

For more, see:

1. https://wiki.ubuntu.com/DebuggingNetworkManager
2. https://wiki.gnome.org/Projects/NetworkManager/Debugging
3. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/introduction-to-networkmanager-debugging_configuring-and-managing-networking