Nextcloud on Raspbery Pi4 installation

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 33.02
  • Operating system and version (e.g., Ubuntu 24.04):
    • raspberry pi 64Bit "Trixxie"
  • Web server and version (e.g, Apache 2.4.25):
    • Apache2
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx
  • PHP version (e.g, 8.3):
    • 8.4
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • during installation
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • aio
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no, intend to use DuckDNS

Summary of the issue you are facing:

I tried several installation methods. CURL ends in “not supported”

The last try to install without Docker, since it’s deprecated doesn’t offer https-Connection and was reachable by IP/nextcloud, but Office didn’t work either.

My Goal is a working Nextcloud on my Pi 4 with HTTPS, Office and Passwordless Login with YubiKey.

Steps to replicate it (hint: details matter!):

  1. Fresh Raspberry Pi image for Pi 4

  2. Tried several methods to install Nextcloud

  3. No HTTPS: Support and nextcloud-Office / Collabora not working correctly

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

not available since fresh formatted Raspbarry pi immage

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

usually I use Firfox 

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

I found a Tutorial for DEBIAN-13, is it applicable for PI4?

The Installation based on Nextcloud Installationsanleitung - Carsten Rieger worked so far, but Nextxloud Office doesn’t work. It’s installed and Collabora too… Why isn’t it possible to work on *.ODT -Files in Nextcloud?

The “CURL not supported” error from Collabora is almost always an SSL certificate problem. Collabora tries to verify the Nextcloud certificate when connecting, and if it’s self-signed or not trusted, the connection fails even though the browser works fine for you.

The root issue is you’re running without proper HTTPS. DuckDNS is already in your config — use it to get a real Let’s Encrypt certificate via Caddy, which handles certificate renewal automatically.

Install Caddy on the Pi:

sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update && sudo apt install caddy

Create /etc/caddy/Caddyfile:

yourhome.duckdns.org {
    reverse_proxy localhost:11000
    tls {
        dns duckdns YOUR_DUCKDNS_TOKEN
    }
}

Install the DuckDNS plugin for Caddy: xcaddy build --with GitHub - caddy-dns/duckdns: Caddy module: dns.providers.duckdns · GitHub

Then tell Nextcloud about the new domain:

sudo -u www-data php occ config:system:set overwrite.cli.url --value="https://yourhome.duckdns.org"
sudo -u www-data php occ config:system:set overwriteprotocol --value="https"
sudo -u www-data php occ config:system:set trusted_domains 1 --value="yourhome.duckdns.org"

For Collabora on a home Pi, skip the Docker container entirely and use the built-in CODE server instead. Go to Apps, search for “Nextcloud Office”, install it, then go to Settings > Office and select “Use the built-in CODE server”. This runs as a Nextcloud app with no separate container needed, uses far less RAM than the Docker version, and automatically trusts the same certificate Nextcloud uses — so the CURL error disappears.

Once HTTPS is working, the nginx “mismatch” errors will also resolve since nginx will see consistent protocol headers.

The SSL / HTTPS advice above is likely the key part. The CURL error with Collabora is commonly caused by certificate trust problems between Collabora and Nextcloud, even when the browser seems fine. (Nextcloud community)

If you want to try a more structured Docker setup, I put together a community Raspberry Pi stack here:

https://github.com/iamjavadali/nextcloudpi

It separates Nextcloud, Collabora, and Talk signaling into their own service directories with Compose-based setup and expects TLS at the reverse proxy layer. (GitHub)

Important note: this is a community project, not an official Nextcloud / NextcloudPi release. Also, even though the repo metadata references Pi 4 and Pi 5, I would still be cautious on Pi 4 because Collabora can be heavy depending on your setup. (GitHub)

So I’d suggest:

  • easiest route on Pi 4: fix HTTPS first and try the built-in CODE server
  • if you want a modular Docker stack to test instead, feel free to try my repo and compare results

Happy to share the exact setup flow if that would help.

sudo -u www-data php occ config:system:set overwrite.cli.url --value=“https://yourhome.duckdns.org
sudo -u www-data php occ config:system:set overwriteprotocol --value=“https”
sudo -u www-data php occ config:system:set trusted_domains 1 --value=“yourhome.duckdns.org

results in

xw1170@cloudia:~ $ sudo -u www-data php occ config:system:set overwrite.cli.url --value=https://restholzjunkie…etc
sudo -u www-data php occ config:system:set overwriteprotocol --value=“https”
sudo -u www-data php occ config:system:set trusted_domains 1 --value=“myduckdns.ork”
Could not open input file: occ
Could not open input file: occ
Could not open input file: occxw1170@cloudia:~ $ sudo -u www-data php occ config:system:set overwrite.cli.url --value=https://restholzjunkie.duckdns.org
sudo -u www-data php occ config:system:set overwriteprotocol --value=“https”
sudo -u www-data php occ config:system:set trusted_domains 1 --value=restholzjunkie.duckdns-etc
Could not open input file: occ
Could not open input file: occ
Could not open input file: occ

Nextcloud-Office is sitll running in circles, not opening the Document.

Had do manipulate my Links, in order not to exceed 4 Links as a noob…