** Description changed:

- As of a couple of days ago, I am unable to get network manager to
- connect to any wifi network.
+ If the /etc/NetworkManager/system-connections directory is a cross-
+ filesystem symlink, activating connections will fail with the unrelated
+ messages:
  
- It looks like the groovy network manager packages have not received any
- updates since release, but since I can successfully use wpasupplicant
- directly I'm ruling out issues with my specific home wifi or wifi card.
+ * "failed to create file ...: Read-only file system" (TRACE level)
  
- Though this might still ultimately be due to my specific setup, the
- error message logged by network manager is really insufficient for
- determining where the failure may lie, even when debug mode is turned
- on[0]. The Gnome UI doesn't display an error at all.
+ * "failure adding connection: settings plugin does not support adding
+ connections" (DEBUG level and above)
+ 
+ * no error message (Gnome UI)
+ 
+ I suspect moving the systems-connections directory onto a separate
+ filesystem is not supported because network manager tries to atomically
+ move a connection temp file into place and fails, but this is really
+ hard to figure out since the error messages are completely unrelated.
+ 
  
  Versions:
  
  Ubuntu 20.10
  network-manager 1.26.2-1ubuntu1
  network-manager-gnome 1.18.0-1ubuntu2
  
+ 
  How to reproduce:
  
+ sudo mv /etc/NetworkManager/system-connections 
/some/other/mountpoint/system-connections
+ sudo ln -s /some/other/mountpoint/system-connections 
/etc/NetworkManager/system-connections
+ 
+ Then:
  * select any wifi network via the Gnome UI, or
  * connect to a wifi network via nmcli, or
  * connect to a wifi network via nmtui
  
+ 
  Symptoms:
  
- * no UI popup is produced when using the Gnome UI
- * the message "failure adding connection: settings plugin does not support 
adding connections" is shown when using nmcli or nmtui
- * debug logs include slightly more information:
+ * "failed to create file ...: Read-only file system" (TRACE level,
+ journalctl)
  
- Jan 31 20:32:57 laptop NetworkManager[3315]: <debug> [1612143177.8651] 
active-connection[0x55b6b9a25b50]: set device "wlp61s0" [0x55b6b9b62cb0]
- Jan 31 20:32:57 laptop NetworkManager[3315]: <debug> [1612143177.8652] 
device[fd0e531202f8924b] (wlp61s0): add_pending_action (1): 'activation-22'
- Jan 31 20:32:57 laptop NetworkManager[3315]: <debug> [1612143177.8653] 
active-connection[0x55b6b9a25b50]: constructed (NMActRequest, version-id 22, 
type managed)
- Jan 31 20:32:57 laptop NetworkManager[3315]: <debug> [1612143177.8807] 
active-connection[0x55b6b9a25b50]: Failed to activate '(null)': failure adding 
connection: settings plugin does not support adding connections
- Jan 31 20:32:57 laptop NetworkManager[3315]: <debug> [1612143177.8808] 
active-connection[0x55b6b9a25b50]: set state deactivated (was unknown)
- Jan 31 20:32:57 laptop NetworkManager[3315]: <debug> [1612143177.8808] 
active-connection[0x55b6b9a25b50]: check-master-ready: not signalling (state 
deactivated, no master)
- Jan 31 20:32:57 laptop NetworkManager[3315]: <debug> [1612143177.8808] 
device[fd0e531202f8924b] (wlp61s0): remove_pending_action (0): 'activation-22'
- Jan 31 20:32:57 laptop NetworkManager[3315]: <info>  [1612143177.8811] audit: 
op="connection-add-activate" pid=452187 uid=1000 result="fail" reason="failure 
adding connection: settings plugin does not support adding connections"
- Jan 31 20:32:57 laptop NetworkManager[3315]: <debug> [1612143177.8812] 
active-connection[0x55b6b9a25b50]: disposing
+ * "failure adding connection: settings plugin does not support adding
+ connections" (DEBUG level and above, journalctl and nmtui/nmcli output)
  
- Workaround:
- 
- * connect to networks by using wpasupplicant directly[1]
+ * no error message (Gnome UI)
  
  
- [0] https://wiki.gnome.org/Projects/NetworkManager/Debugging
- [1] https://shapeshed.com/linux-wifi/
+ Relevant sample logs:
+ 
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <trace> [1612230964.4038] 
active-connection[0x56274f6f0a60]: creating
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <debug> [1612230964.4039] 
active-connection[0x56274f6f0a60]: set device "wlp61s0" [0x56274f883f00]
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <debug> [1612230964.4039] 
device[d62304f9da70d783] (wlp61s0): add_pending_action (1): 'activation-5'
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <debug> [1612230964.4040] 
active-connection[0x56274f6f0a60]: constructed (NMActRequest, version-id 5, 
type managed)
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <trace> [1612230964.4040] 
auth: call[37]: 
CheckAuthorization(org.freedesktop.NetworkManager.network-control), 
subject=unix-process[pid=1369566, uid=0, start=18908113] (succeeding for root)
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <trace> [1612230964.4041] 
auth: call[37]: completed: authorized=1, challenge=0 (simulated)
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <trace> [1612230964.4041] 
auth: call[38]: 
CheckAuthorization(org.freedesktop.NetworkManager.settings.modify.system), 
subject=unix-process[pid=1369566, uid=0, start=18908113] (succeeding for root)
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <trace> [1612230964.4042] 
auth: call[38]: completed: authorized=1, challenge=0 (simulated)
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <trace> [1612230964.4042] 
settings: add-connection: failed to add 
a4e6f563-eb2a-41ff-bc23-986ee3438ed9/'mywifi_2G': settings plugin does not 
support adding connections
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <trace> [1612230964.4061] 
keyfile: commit: a4e6f563-eb2a-41ff-bc23-986ee3438ed9 (mywifi_2G) failed to 
add: error writing to file 
'/etc/NetworkManager/system-connections/mywifi_2G.nmconnection': failed to 
create file 
/etc/NetworkManager/system-connections/mywifi_2G.nmconnection.ZE5DY0: Read-only 
file system
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <trace> [1612230964.4062] 
settings: add-connection: failed to add 
a4e6f563-eb2a-41ff-bc23-986ee3438ed9/'mywifi_2G': error writing to file 
'/etc/NetworkManager/system-connections/mywifi_2G.nmconnection': failed to 
create file 
/etc/NetworkManager/system-connections/mywifi_2G.nmconnection.ZE5DY0: Read-only 
file system
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <debug> [1612230964.4062] 
active-connection[0x56274f6f0a60]: Failed to activate '(null)': failure adding 
connection: settings plugin does not support adding connections
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <debug> [1612230964.4062] 
active-connection[0x56274f6f0a60]: set state deactivated (was unknown)
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <debug> [1612230964.4063] 
active-connection[0x56274f6f0a60]: check-master-ready: not signalling (state 
deactivated, no master)
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <debug> [1612230964.4063] 
device[d62304f9da70d783] (wlp61s0): remove_pending_action (0): 'activation-5'
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <debug> [1612230964.4066] 
audit: socket created
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <debug> [1612230964.4067] 
create NMAuditManager singleton (a031d34f795a73ab)
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <info>  [1612230964.4069] 
audit: op="connection-add-activate" pid=1369566 uid=0 result="fail" 
reason="failure adding connection: settings plugin does not support adding 
connections"
+ Feb 01 20:56:04 laptop NetworkManager[1368510]: <debug> [1612230964.4069] 
active-connection[0x56274f6f0a60]: disposing

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1913979

Title:
  misleading error messages when /etc/NetworkManager/system-connections
  is a cross-filesystem symlink

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1913979/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to