nextcloud / nextcloudpi

📦 Build code for NextcloudPi: Raspberry Pi, Odroid, Rock64, curl installer...
https://nextcloudpi.com
2.56k stars 297 forks source link

Can't set Wireless LAN (raspi-config - Pi4B) #1970

Open Godrigos opened 2 months ago

Godrigos commented 2 months ago

I tried in two fresh installs and after activation, basic configuration and enabling SSH, when I use raspi-config to set my wifi I get the following error:

Traceback (most recent call last): File "/usr/sbin/netplan", line 23, in <module> netplan.main() File "/usr/share/netplan/netplan/cli/core.py", line 50, in main self.run_command() File "/usr/share/netplan/netplan/cli/utils.py", line 241, in run_command self.func() File "/usr/share/netplan/netplan/cli/commands/set.py", line 50, in run self.run_command() File "/usr/share/netplan/netplan/cli/utils.py", line 241, in run_command self.func() File "/usr/share/netplan/netplan/cli/commands/set.py", line 72, in command_set libnetplan.create_yaml_patch(yaml_path, value, tmp) File "/usr/share/netplan/netplan/libnetplan.py", line 501, in create_yaml_patch _checked_lib_call(lib.netplan_util_create_yaml_patch, File "/usr/share/netplan/netplan/libnetplan.py", line 79, in _checked_lib_call raise LibNetplanException(err.contents.message.decode('utf-8')) netplan.libnetplan.LibNetplanException: Error parsing YAML: did not find expected ',' or '}'

And no wifi connection.

System data: NextcloudPi v1.55.0 Raspberry Pi 4B 8 gb Linux nextcloudpi 6.6.45-current-bcm2711 #2 SMP PREEMPT Fri Aug 16 20:53:33 UTC 2024 aarch64 GNU/Linux

Peppeeeerrrr commented 1 month ago

Hi, I had the same problem here with an RP4B too. I installed the older version of ncp v1.54.0 as the wifi seemed to work back then. The configuration through raspi-config didn't work out neither but I managed to activate the wifi installing and running armbian-config. I guess doing the same thing on the latest version of ncp should work too, it seemed to me a good way to get around the issue.

Godrigos commented 1 month ago

Thanks for the tip. Will try it later.

theCalcaholic commented 1 month ago

@Peppeeeerrrr Thank you, seems like a good workaround.

The issue itself is very likely an upstream issue with Armbian for the RPi.

@Godrigos If you are able to confirm that the workaround works for you, we can close this issue (and I'll ask the Wiki team to add it to the NCP wiki).

Godrigos commented 1 month ago

Unfortunatly, even if I can install the armbian-config, it does not present options for wifi configurations, there is a warning that missing drivers may limit the configuration options.

Godrigos commented 1 month ago

I solved my issue with an ugly long cable, lol. But no wifi. Thanks for the attention guys.

3kimm0 commented 1 month ago

Sad. I need wifi acces too. I dont want use cable, coz this pi4 is hiddne uder bed :D Solved. Install network-manager and Wifi is enabled, so I can connect nextcloudpi to WiFi :) Hope it help someone else