The Basics
- Nextcloud Server version (e.g., 29.x.x):
- Not exactly clear, TrueNas lists app version as 30.0.4, but also lists version as 1.5.8
- Operating system and version (e.g., Ubuntu 24.04):
- Truenas 24.10
- Web server and version (e.g, Apache 2.4.25):
- Unsure, packaged with Truenas App
- Reverse proxy and version _(e.g. nginx 1.27.2)
- Unsure, packaged with Truenas App
- PHP version (e.g, 8.3):
- 8.2, packaged with Truenas App
- Is this the first time you’ve seen this error? (Yes / No):
- Yes
- When did this problem seem to first start?
- Today, fresh install on Truenas via app
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
- TrueNas on Bare Metal (which AFAIK, docker via compose at this point)
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
- No
Summary of the issue you are facing:
I can get Nextcloud running but have an issue where I am redirected to the same host, but the default https port (443), which ends up loading the TrueNas UI instead of nextcloud.
I’ll note through playing around I am in fact going through nextcloud (as opposed to initially just getting reworked through nginx); the cert I gave the app is as expected, and when the “trusted_hosts” config is misset, I get the expected page from nextcloud saying to add the host to my config.
Steps to replicate it (hint: details matter!):
- Basic baremetal Truenas Scale installation, setup custom cert for Nextcloud
- Go to Apps, discover apps, click on Nextcloud, install
- Fill out fields, setting hostname and using the custom port, using
- save
- wait for nextcloud to deploy
- Go to nextcloud host/custom port
- Accept self-signed cert
- Get redirected to default HTTPS port (443)
Log entries
Nextcloud
Will provide if told where on filesystem
Web Browser
Firefox
Web server / Reverse Proxy
cat access.log
in the nginx container just hangs
Configuration
Nextcloud
# occ config:list
{
"system": {
"htaccess.RewriteBase": "\/",
"memcache.local": "\\OC\\Memcache\\APCu",
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"password": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
"overwriteprotocol": "https",
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"upgrade.disable-web": true,
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "pgsql",
"version": "30.0.4.1",
"overwrite.cli.url": "https:\/\/localhost",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"127.0.0.1",
"localhost",
"nextcloud",
"nextcloud.localdomain"
]
},
"apps": {
"activity": {
"installed_version": "3.0.0",
"types": "filesystem",
"enabled": "yes"
},
"app_api": {
"installed_version": "4.0.3",
"types": "",
"enabled": "yes"
},
"bruteforcesettings": {
"installed_version": "3.0.0",
"types": "",
"enabled": "yes"
},
"circles": {
"installed_version": "30.0.0",
"types": "filesystem,dav",
"enabled": "yes",
"loopback_tmp_scheme": "https"
},
"cloud_federation_api": {
"installed_version": "1.13.0",
"types": "filesystem",
"enabled": "yes"
},
"comments": {
"installed_version": "1.20.1",
"types": "logging",
"enabled": "yes"
},
"contactsinteraction": {
"installed_version": "1.11.0",
"types": "dav",
"enabled": "yes"
},
"core": {
"installedat": "1735313034.2878",
"lastupdatedat": 1735313034,
"vendor": "nextcloud",
"public_files": "files_sharing\/public.php",
"files_metadata": {
"photos-original_date_time": {
"value": null,
"type": "int",
"etag": "",
"indexed": true,
"editPermission": 0
},
"photos-size": {
"value": null,
"type": "array",
"etag": "",
"indexed": false,
"editPermission": 0
},
"photos-exif": {
"value": null,
"type": "array",
"etag": "",
"indexed": false,
"editPermission": 0
},
"photos-ifd0": {
"value": null,
"type": "array",
"etag": "",
"indexed": false,
"editPermission": 0
}
}
},
"dashboard": {
"installed_version": "7.10.0",
"types": "",
"enabled": "yes"
},
"dav": {
"installed_version": "1.31.1",
"types": "filesystem",
"enabled": "yes"
},
"federatedfilesharing": {
"installed_version": "1.20.0",
"types": "",
"enabled": "yes"
},
"federation": {
"installed_version": "1.20.0",
"types": "authentication",
"enabled": "yes"
},
"files": {
"installed_version": "2.2.0",
"types": "filesystem",
"enabled": "yes"
},
"files_downloadlimit": {
"installed_version": "3.0.0",
"types": "",
"enabled": "yes"
},
"files_pdfviewer": {
"installed_version": "3.0.0",
"types": "",
"enabled": "yes"
},
"files_reminders": {
"installed_version": "1.3.0",
"types": "",
"enabled": "yes"
},
"files_sharing": {
"installed_version": "1.22.0",
"types": "filesystem",
"enabled": "yes"
},
"files_trashbin": {
"installed_version": "1.20.1",
"types": "filesystem,dav",
"enabled": "yes"
},
"files_versions": {
"installed_version": "1.23.0",
"types": "filesystem,dav",
"enabled": "yes"
},
"firstrunwizard": {
"installed_version": "3.0.0",
"types": "logging",
"enabled": "yes"
},
"logreader": {
"installed_version": "3.0.0",
"types": "logging",
"enabled": "yes"
},
"lookup_server_connector": {
"installed_version": "1.18.0",
"types": "authentication",
"enabled": "yes"
},
"nextcloud_announcements": {
"installed_version": "2.0.0",
"types": "logging",
"enabled": "yes"
},
"notifications": {
"installed_version": "3.0.0",
"types": "logging",
"enabled": "yes"
},
"oauth2": {
"installed_version": "1.18.1",
"types": "authentication",
"enabled": "yes"
},
"password_policy": {
"installed_version": "2.0.0",
"types": "authentication",
"enabled": "yes"
},
"photos": {
"installed_version": "3.0.2",
"types": "dav,authentication",
"enabled": "yes"
},
"privacy": {
"installed_version": "2.0.0",
"types": "",
"enabled": "yes"
},
"provisioning_api": {
"installed_version": "1.20.0",
"types": "prevent_group_restriction",
"enabled": "yes"
},
"recommendations": {
"installed_version": "3.0.0",
"types": "",
"enabled": "yes"
},
"related_resources": {
"installed_version": "1.5.0",
"types": "",
"enabled": "yes"
},
"serverinfo": {
"installed_version": "2.0.0",
"types": "",
"enabled": "yes"
},
"settings": {
"installed_version": "1.13.0",
"types": "",
"enabled": "yes"
},
"sharebymail": {
"installed_version": "1.20.0",
"types": "filesystem",
"enabled": "yes"
},
"support": {
"installed_version": "2.0.0",
"types": "session",
"enabled": "yes"
},
"survey_client": {
"installed_version": "2.0.0",
"types": "",
"enabled": "yes"
},
"systemtags": {
"installed_version": "1.20.0",
"types": "logging",
"enabled": "yes"
},
"text": {
"installed_version": "4.1.0",
"types": "dav",
"enabled": "yes"
},
"theming": {
"installed_version": "2.5.0",
"types": "logging",
"enabled": "yes"
},
"twofactor_backupcodes": {
"installed_version": "1.19.0",
"types": "",
"enabled": "yes"
},
"updatenotification": {
"installed_version": "1.20.0",
"types": "",
"enabled": "yes"
},
"user_status": {
"installed_version": "1.10.0",
"types": "",
"enabled": "yes"
},
"viewer": {
"installed_version": "3.0.0",
"types": "",
"enabled": "yes"
},
"weather_status": {
"installed_version": "1.10.0",
"types": "",
"enabled": "yes"
},
"webhook_listeners": {
"installed_version": "1.1.0-dev",
"types": "filesystem",
"enabled": "yes"
},
"workflowengine": {
"installed_version": "2.12.0",
"types": "filesystem",
"enabled": "yes"
}
}
}
Apps
Just the defaults, haven’t gotten that far yet