Hi:
I’m quite new to Linux, ownCloud and Docker. However, I am familiar with general computing concepts and I troubleshooted Windows for many years.
Server configuration
Operating system: Raspberry Pi OS (Debian Trixie 13)
Web server: Apache 2.4.58
Database: MariaDB 10.11
PHP version: 8.3.6
ownCloud version: (see ownCloud admin page) 11.0.1
Updated from an older ownCloud or fresh install: Fresh
Where did you install ownCloud from: Installing with Docker :: Documentation for ownCloud (A Kiteworks Company)
Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results into https://gist.github.com/ and puth the link here.
Are you using external storage, if yes which one: local/smb/sftp/…
No.
Are you using encryption: yes/no
No.
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
No.
Client configuration
Browser: Brave 1.97.59
Operating system: Windows, MacOS
Total users: 3
No domain Top-level domain registered. Using DDNS service on the router.
Steps to reproduce
-
Installed OC using instructions on the “Installing with Docker” page on Owncloud site.
-
Tried to access webpage via LAN IP.
-
Edited .env file because I’d originally added the wrong IP address in Trusted Domains
-
Stopped then restarted docker container.
Expected behaviour
Able to log on via LAN
Actual behaviour
Error: “You are accessing the server through an untrusted domain.”
That part was obvious. What wasn’t obvious to me was:
- Why I need to edit a file to correct the problem when I already edited the .env file.
- Where the config.php is located. I couldn’t find this information anywhere on the owncloud site. I asked an AI and it gave me wrong info. AIs said it is located in the main install folder (owncloud-server-docker, acc. to the HOWTO on the website). However, I have no such folder there.
- ‘trusted_domains’ => [
‘demo.example.org’,
‘otherdomain.example.org’,
],
Is this a new syntax/format for listing trusted domains? It isn’t the format in my .env and yml files. Please clarify.
Also, is this a problem (assuming I’m only running one container? I’m confused by the fact that there are multiple images
~/owncloud-server-docker $ docker images
i Info → U In Use
IMAGE ID DISK USAGE CONTENT SIZE EXTRA
hello-world:latest 5e2309035332 22.6kB 10.3kB U
mariadb:10.11 7db29378d4fd 437MB 104MB U
owncloud/server:11.0.1 295fe598ccf3 1.96GB 407MB U
owncloud/server:latest 3741d2e8743c 1.85GB 423MB
redis:6 a9c881672688 188MB 43.2MB
redis:7 b6b6e3dc0c09 192MB 45.9MB U
rustdesk/rustdesk-server:latest 8ecdab65deb7 15.9MB 5.46MB U
I’m learning as much as I can about Docker so I can avoid some of these problems in future.
These are not obvious things to a newbie.
Okay, an AI suggested I I edit the .env file again. It said you should always edit the .env file first, and only edit the config.php as a last resort.
Here’s my redacted .env file:
OWNCLOUD_IMAGE=11.0.1
OWNCLOUD_DOMAIN=FirstLocalClientIP
OWNCLOUD_TRUSTED_DOMAINS=localhost,FirstLocalClientIP,SecondLocalClientIP,Dynamic.DNSService.name
OWNCLOUD_OVERWRITE_CLI_URL=http://localhost
ADMIN_USERNAME=XXXXXXXXXXXXX
ADMIN_PASSWORD=yyyyyyyyyyyyy
HTTP_PORT=8080
MARIADB_IMAGE=10.11
REDIS_IMAGE=7
I also tried this with no text for the OWNCLOUD_DOMAIN field and that didn’t work either.
Please tell me what I need to fix there.
I also uninstalled the owncloud/server:latest image, and the Redis6 image.
Make sure OWNCLOUD_DOMAIN and OWNCLOUD_TRUSTED_DOMAINS contain the correct IP addresses or domain names. Also, check the official ownCloud configuration requirements before changing config.php.
Yes. Thank you. That was the problem. I didn’t understand exactly what the fields represented. I wrongly thought that they were like a whitelist for trusted clients, but they are not. Once I fixed those, Owncloud ran immediately.
Now, straight to security, before I configure anything else. Is there an ownCloud HOWTO, or one they recommend for a newbie setting up security, such as a reverse proxy server? I have no clue what I’m doing, but I want to get it right.