How to make wifi work with NextcloudPi on Raspberry Pi 5?

I have been spending days on Google and a few forums without an answer to my question…

How can I make wifi work with NextcloudPi 1.55.3 on Raspberry Pi 5?

I have tried turning wifi on with wpa_supplicant.conf but that didn’t help.
I have tried using sudo -i raspi-config but then when I get to confirm my Wifi settings I get an error message stating:

there was an error running option s1 wireless lan
(as seen in my screen capture at [imgBB uploaded screen capture] ).

And also I can see the following error message that disappears really quick when I get the s1 wireless plan error message :

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 ‘)’

I know that the Wifi works if I setup Nextcloud manually using Raspberry Pi Manager SD card flasher tool. But I would rather use NextcloudPi for its simplicity.

How can I make my RaspberryPi 5 NextcloudPi connect to Wifi?

1 Like

Short hints:
The

is now armbian based.
Use

sudo armbian-config

Read the docs of armbian.
network configuration is done by netplan.

To get Wi-Fi working on NextcloudPi 1.55.3 with your Raspberry Pi 5, start by checking your wpa_supplicant.conf for correct formatting—ensure there are no syntax issues or extra characters. Verify your netplan configuration in /etc/netplan to confirm it’s properly formatted and matches your Wi-Fi interface. Restart network services and try running raspi-config again to set up Wi-Fi. If errors persist, use nmcli for manual Wi-Fi connection testing to rule out hardware issues. Lastly, update your system to the latest packages. If all else fails, re-image your SD card and set up Wi-Fi during initial configuration.

Yeah I tried that also before posting here but all I am getting is command not found (as seen HERE. From my understanding if like others on the web you suggest that command then it is expected to work as is. Therefore why is my download (NextcloudPi_RaspberryPi5_v1.55.3.zip) from Releases ¡ nextcloud/nextcloudpi ¡ GitHub misses that script/program? And what do I have to do to get it on there?

Ok, I will triple check (I double checked before posting) wpa_supplicant.conf for correct formatting and all and come back to report. I will investigate the netplan configuration thing too. That I haven’t looked into yet. Note that there’s nowhere to setup wifi in the GUI after balenaEtcher flashing NextcloudPi_RaspberryPi5_v1.55.3.zip.

UPDATE: HERE it is saying wpa_supplicant is no longer used or relevant on Raspberry Pi 5.

UPDATE 2: NMCLIP is not found. (as seen HERE )

UPDATE 3: Considering NMCLIP is related to NetworkManager my guess is that I need to figure out how to get NMCLIP working first. Any suggestion? I have dug around but I think I will need a bit more help here. Note that I know the wireless interface (wlan0) is in fact not defective as I am actually able to connect through wifi if I use Raspberry Pi Imager instead
of the NextcloudPi_RaspberryPi5_v1.55.3.zip (but as I previously said I actually want to use the NextCloudPi package and not a Nextcoud setup all on my own). I have looked into /etc/netplan and found a 10-dhcp-all-interfaces.yaml file but looking at the renderer value networking is managed through networkd instead of NetworkManager. I have balenaEtcher flashed multiple times and I am starting to believe that there’s something not quite right in the wifi department of Raspberry Pi 5’ NetcloudPi 1.55.3 image.

I can’t believe what I’m seeing here :smile:
That is not the login screen I would expect from an armbian based ncp,
Did you do an update/upgrade after setting up your instance?
Said aside, I prefer rpi-imager no presets to write the image.
Activate ncp, activate ssh,

sudo apt update && sudo apt full-upgrade -y

sudo reboot

Yes, let’s start from scratch.
https://github.com/nextcloud/nextcloudpi/issues/1994#issuecomment-2471232079

Yeah I think I did unless those two options are not ways to go through to do an update of NextcloudPi and Nextcloud.

So you suggest that I do the following on my current setup? :
sudo apt update && sudo apt full-upgrade -y

I will give this a go and report.

Update : Update command has completed. About to proceed with a reboot now.

Update 2: Ok I think I am getting somewhere that is promising.

Update 3: Still no joy HERE.

To be honest, your instance you are working now on, I wouldn’t trust

Ok… I didn’t customize much yet (my setup is very close to vanilla) because I figured there’s no point wasting time customizing stuff when I can’t get the basics (more specifically the wifi) going considering that I am in the process of going through multiple flashes through trial and errors.
So I guess NextcloudPi isn’t really all that great after all.

Come on, give it another shot, do it with an image written with rpi-imager.
I just started up an pi5 with an ncp 1.55.2 image and will take a look on wifi.
Never thougt of setting up server with wifi. :wink: But first let’s do an update.

1 Like

I like the whole All-In-One concept of NextcloudPi but hey if it doesn’t really work I guess it is what it is.

Being able to use Wifi is a requirement (slow access or not).

Will try Raspberry Pi Imager WITH NextcloudPi_RaspberryPi5_v1.55.3.img… I was not aware that it was possible to use both together. I used BalenaEtcher as seen HERE

secure and steady is important, an server never sleeps.

Yes, but everything has 2 sides. Nextcloud is not the easiest home-server project. NextcloudPI is a nice attempt to get the user starting this thing, believe me, I started bare metal, that was to much fun, there is a life beneath. ncp is nice but the update-policy of nextcloud keep all busy, and the ncp maintainer Tobias and friends do a great job.

1 Like

georg@HEKA:~$ ssh pi@ncpi5
pi@ncpi5’s password:
_ _ _ __ __ _ _ _
/\ _ _ _ __ | |__()__ _ _ _ ___ _ _ _ _ ___ / |/ ()__()__ | |
/ _ | '
| ’ | '_ \ / | ' \___| || | ' \/ _ \ _| _| / _| / _ | |
/
/ __| ||||./_,|||| _,|||_/| || |_|_,||

v24.11.1 for Raspberry Pi 5 running Armbian Linux 6.6.63-current-bcm2712

Packages: Debian stable (bookworm)
Support: DIY (community maintained)
IP addresses: (LAN) IPv4: 192.168.2.51 IPv6: 2003:c8:6706:4c00:X (WAN) 217.XX

################

NextcloudPi v1.55.2 is outdated
update to v1.55.3 through ‘ncp-config’ or type ‘sudo ncp-update’
Performance:

Load: 2% Up time: 17 min
Memory usage: 5% of 7.75G
CPU temp: 49°C Usage of /: 19% of 29G

Commands:

Configuration : armbian-config
Monitoring : htop

Last login: Mon Dec 2 09:09:31 2024 from 192.168.2.20
pi@ncpi5:~$

Now ncp update.

Running nc-update-nextcloud
Running as unit: ncp-update-nc.service
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 810k 0 810k 0 0 878k 0 --:–:-- --:–:-- --:–:-- 877k
Current Nextcloud version 29.0.8
Requested Nextcloud version latest
Selected Nextcloud version 29.0.9
INFO: You have requested an update to the latest available version that can be performed directly, which is ‘29.0.9’. Updates can only performed to the next major version (or the latest minor version of the current major version). If you run ncp-update-nc again after this update completes, a new version might be available.
Download Nextcloud 29.0.9…
Error downloading
Clean up…
Nextcloud update failed (or was installed already).
Done. Press any key…

Oh, we got trubble.
But we know, 29.0.9 was ceased, this thursday new relewases come to download, we wait. Now lets check wifi.

Oh, things get difficult. in the armbian-based ncp seems to be a firmware/kernel thing with wifi-chip.

As workaround: check with wifi-dongle.

My findings so far 2024-12-02 armbian based ncp images don’t work with wifi on rpi4/rpi5, it seems a firmware/kernel thing which now is at this time to much for me to do further investigatins.
Conclusion: My instance on a rpi400 has working wifi because it was set up with a version before introducing armbian, an test instance on rpi4 after introducing armbian has no wifi support. So I assume if wifi ist a must, ncp is not the choice at this time. I only have little experience in other setups, I started with Jay LaCroix on LLTV on youtube, nice explanation I run this instance for about 3 month, because I wanted check ncp I switched.

1 Like

pi@ncpi5:~$ sudo ncp-config
Running nc-info
Gathering information…
NextcloudPi version v1.55.3
NextcloudPi image
OS Armbian 24.11.2 bookworm \l . 6.6.63-current-bcm2712 (aarch64)
automount yes
USB devices none
datadir /opt/ncdata/data
data in SD yes
data filesystem ext2/ext3
data disk usage 5,2G/29G
rootfs usage 5,2G/29G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check ok
Nextcloud version 29.0.8.1
HTTPD service up
PHP service up
MariaDB service up
Redis service up
HPB service up
Postfix service up
Internet check ok
Public IPv4 217.X
Public IPv6 2003:c8:6706:4c00:X
Port 80 closed
Port 443 closed
IP 192.168.2.51
Gateway 192.168.2.1
Interface end0
Certificates none
NAT loopback no
Uptime 27min

We could update nc.

1 Like

Nice write up!!! That post will be very likely popular on the web!!! Thank you for your investigation. It is much appreciated!!!