brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: occ setupchecks runs the Nextcloud admin overview warnings in a terminal

Nextcloud
~/tips/tip-nextcloud-setupchecks

docker exec --user www-data nextcloud php occ setupchecks

Prints the setup warnings without opening the web admin page.

After an update or a proxy change I’d want to know right away whether Nextcloud is unhappy. You don’t need the browser for that.

Run all the checks:

docker exec --user www-data nextcloud php occ setupchecks

You get a list grouped by category with a result for each item, covering things you’d otherwise read under Administration settings, Overview: configuration, security headers, database and more.

While fixing one area, you can limit the run to it:

docker exec --user www-data nextcloud php occ setupchecks --category=network

For monitoring there is machine readable output:

docker exec --user www-data nextcloud php occ setupchecks --output=json_pretty

Save that output before an upgrade and again after, then compare the two files. New warnings stand out immediately, and old ones you’ve decided to live with don’t distract you.

Some checks test how the server is reached over the network. Run from the command line inside a container, they may not see what a browser outside your proxy sees, so a warning about reachability can differ from the web page. Verify that kind of finding from outside before you change the proxy. The command needs a recent Nextcloud release; on an older one occ will say it isn’t defined.

Further reading: Nextcloud occ system commands

Going deeper: Guide: link Prowlarr to Sonarr and Radarr once, and stop typing indexers into every app

More Nextcloud tips sudo -E -u www-data php occ user:report sudo -E -u www-data php occ app:update --showonly sudo -E -u www-data php occ background-job:history -s 3 -l 10 docker exec --user www-data nextcloud php occ maintenance:mode --on docker exec -it --user www-data nextcloud php occ user:resetpassword layla All Nextcloud tips (13) All topics

Link