Owncloud 10.12: Login loop on docker installation behind apache WEB frontend

Steps to reproduce

  1. Install Owncloud container on Debian testing
  2. Configure it to use an external PostgreSQL database
  3. When everything is up, change the DNS name of the machine.

Expected behaviour

Login should be possible and the list of files should appear after login.

Actual behaviour

Login mask appears and after entering a correct username and password, the login mask reappears. The URL in the browser changes from https://www.theosys.at/owncloud/login to https://www.theosys.at/owncloud/login?redirect_url=%252Fapps%252Ffiles%252F.
I found some posts with similar errors, but no working solution. I tried almoust everything I could find, but nothing worked.
Hint: If I remove the options OWNCLOUD_OVERWRITE_WEBROOT=/owncloud and OWNCLOUD_OVERWRITE_PROTOCOL=https from the docker configuration, I can login by calling the docker instance on port 8080 direct. But then the ProxyPass of the WEB server doesn’t work any more.

Server configuration

Operating system: Linux Debian testing (12)

Web server: Apache 2.5.57 used as frontend.

Database: PostgreSQL 15

PHP version: 7.4 (build into container)

ownCloud version: 10.12.1.3

Updated from an older ownCloud or fresh install: Fresh install

Where did you install ownCloud from: The official page

The content of config/config.php:

# docker-compose exec owncloud occ config:list
{
    "system": {
        "apps_paths": [
            {
                "path": "\/var\/www\/owncloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/owncloud\/custom",
                "url": "\/custom",
                "writable": true
            }
        ],
        "trusted_domains": [
            "localhost",
            "127.0.0.1",
            "www.theosys.at",
            "10.x.x.x",
            "theosys.theosys.at",
            "10.x.x.x"
        ],
        "datadirectory": "\/mnt\/data\/files",
        "dbtype": "pgsql",
        "dbhost": "10.x.x.x:5432",
        "dbname": "owncloud",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "log_type": "owncloud",
        "supportedDatabases": [
            "sqlite",
            "mysql",
            "pgsql"
        ],
        "upgrade.disable-web": true,
        "default_language": "de",
        "logfile": "\/mnt\/data\/files\/owncloud.log",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "filelocking.enabled": true,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "redis",
            "port": "6379"
        },
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "version": "10.12.1.3",
        "logtimezone": "Europe\/Vienna",
        "installed": true,
        "instanceid": "oc3jdpobfihe",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": 25,
        "mail_smtpauthtype": "PLAIN",
        "maintenance": false,
        "htaccess.RewriteBase": "\/",
        "trusted_proxies": [
            "localhost",
            "127.0.0.1",
            "www.theosys.at",
            "10.x.x.x",
            "theosys.theosys.at",
            "10.x.x.x"
        ],
        "overwrite.cli.url": "http:\/\/localhost:8080\/",
        "loglevel": 0,
        "overwritewebroot": "\/owncloud",
        "overwriteprotocol": "https"
    },
    "apps": {
        "activity": {
            "types": "filesystem",
            "enabled": "yes",
            "installed_version": "2.7.1"
        },
        "backgroundjob": {
            "lastjob": "17"
        },
        "calendar": {
            "signed": "true",
            "installed_version": "2.0.0",
            "types": "",
            "enabled": "yes"
        },
        "comments": {
            "installed_version": "0.3.0",
            "types": "logging,dav",
            "enabled": "yes"
        },
        "configreport": {
            "installed_version": "0.2.1",
            "types": "filesystem",
            "enabled": "yes"
        },
        "core": {
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "public_files": "files_sharing\/public.php",
            "first_install_version": "10.12.1.3",
            "backgroundjobs_mode": "cron",
            "lastupdateResult": "[]",
            "shareapi_allow_public_notification": "yes",
            "vendor": "owncloud",
            "installedat": "1684847977.1677",
            "default_encryption_module": "OC_DEFAULT_MODULE",
            "lastupdatedat": "1685954649",
            "allow_user_mount_sharing": "no",
            "oc.integritycheck.checker": "[]",
            "enable_external_storage": "yes",
            "shareapi_allow_social_share": "yes",
            "lastcron": "1685966281"
        },
        "dav": {
            "installed_version": "0.7.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "encryption": {
            "userSpecificKey": "1",
            "recoveryKeyId": "recoveryKey_07c7cbeb",
            "publicShareKeyId": "pubShare_07c7cbeb",
            "masterKeyId": "master_07c7cbeb",
            "installed_version": "1.5.3",
            "types": "filesystem",
            "enabled": "yes",
            "encryptHomeStorage": "0"
        },
        "federatedfilesharing": {
            "installed_version": "0.5.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "federation": {
            "installed_version": "0.1.0",
            "types": "authentication",
            "enabled": "yes"
        },
        "files": {
            "installed_version": "1.5.2",
            "types": "filesystem",
            "enabled": "yes",
            "cronjob_scan_files": "500"
        },
        "files_external": {
            "installed_version": "0.9.0",
            "types": "filesystem",
            "enabled": "yes",
            "allow_user_mounting": "yes",
            "user_mounting_backends": "owncloud,sftp,smb,dav,\\OC\\Files\\Storage\\SFTP_Key,\\OC\\Files\\Storage\\SMB_OC"
        },
        "files_mediaviewer": {
            "installed_version": "1.0.5",
            "types": "",
            "enabled": "yes"
        },
        "files_pdfviewer": {
            "installed_version": "1.0.1",
            "types": "",
            "enabled": "yes"
        },
        "files_sharing": {
            "installed_version": "0.14.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "files_texteditor": {
            "types": "",
            "enabled": "yes",
            "installed_version": "2.5.1"
        },
        "files_trashbin": {
            "installed_version": "0.9.1",
            "types": "filesystem",
            "enabled": "yes"
        },
        "files_versions": {
            "installed_version": "1.3.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "firstrunwizard": {
            "installed_version": "1.2.0",
            "types": "",
            "enabled": "yes"
        },
        "gallery": {
            "signed": "true",
            "installed_version": "16.1.2",
            "enabled": "yes",
            "types": ""
        },
        "market": {
            "installed_version": "0.7.0",
            "types": "",
            "enabled": "yes"
        },
        "music": {
            "signed": "true",
            "installed_version": "1.8.3",
            "types": "filesystem",
            "enabled": "yes"
        },
        "notifications": {
            "installed_version": "0.5.4",
            "types": "logging",
            "enabled": "yes"
        },
        "provisioning_api": {
            "installed_version": "0.5.0",
            "types": "prevent_group_restriction",
            "enabled": "yes"
        },
        "richdocuments": {
            "enabled": "no",
            "wopi_url": "https:\/\/collabora.theosys.at",
            "signed": "true",
            "installed_version": "3.0.0",
            "types": "prevent_group_restriction"
        },
        "systemtags": {
            "installed_version": "0.3.0",
            "types": "logging",
            "enabled": "yes"
        },
        "templateeditor": {
            "installed_version": "0.4.0",
            "types": "",
            "enabled": "yes"
        },
        "updatenotification": {
            "installed_version": "0.2.1",
            "types": "",
            "enabled": "yes"
        }
    }
}

List of activated apps:

# docker-compose exec owncloud occ app:list
Enabled:
  - activity:
    - Version: 2.7.1
    - Path: /var/www/owncloud/apps/activity
  - calendar:
    - Version: 2.0.0
    - Path: /var/www/owncloud/custom/calendar
  - comments:
    - Version: 0.3.0
    - Path: /var/www/owncloud/apps/comments
  - configreport:
    - Version: 0.2.1
    - Path: /var/www/owncloud/apps/configreport
  - dav:
    - Version: 0.7.0
    - Path: /var/www/owncloud/apps/dav
  - encryption:
    - Version: 1.5.3
    - Path: /var/www/owncloud/apps/encryption
  - federatedfilesharing:
    - Version: 0.5.0
    - Path: /var/www/owncloud/apps/federatedfilesharing
  - federation:
    - Version: 0.1.0
    - Path: /var/www/owncloud/apps/federation
  - files:
    - Version: 1.5.2
    - Path: /var/www/owncloud/apps/files
  - files_external:
    - Version: 0.9.0
    - Path: /var/www/owncloud/apps/files_external
  - files_mediaviewer:
    - Version: 1.0.5
    - Path: /var/www/owncloud/apps/files_mediaviewer
  - files_pdfviewer:
    - Version: 1.0.1
    - Path: /var/www/owncloud/apps/files_pdfviewer
  - files_sharing:
    - Version: 0.14.0
    - Path: /var/www/owncloud/apps/files_sharing
  - files_texteditor:
    - Version: 2.5.1
    - Path: /var/www/owncloud/apps/files_texteditor
  - files_trashbin:
    - Version: 0.9.1
    - Path: /var/www/owncloud/apps/files_trashbin
  - files_versions:
    - Version: 1.3.0
    - Path: /var/www/owncloud/apps/files_versions
  - firstrunwizard:
    - Version: 1.2.0
    - Path: /var/www/owncloud/apps/firstrunwizard
  - gallery:
    - Version: 16.1.2
    - Path: /var/www/owncloud/custom/gallery
  - market:
    - Version: 0.7.0
    - Path: /var/www/owncloud/apps/market
  - music:
    - Version: 1.8.3
    - Path: /var/www/owncloud/custom/music
  - notifications:
    - Version: 0.5.4
    - Path: /var/www/owncloud/apps/notifications
  - provisioning_api:
    - Version: 0.5.0
    - Path: /var/www/owncloud/apps/provisioning_api
  - systemtags:
    - Version: 0.3.0
    - Path: /var/www/owncloud/apps/systemtags
  - templateeditor:
    - Version: 0.4.0
    - Path: /var/www/owncloud/apps/templateeditor
  - updatenotification:
    - Version: 0.2.1
    - Path: /var/www/owncloud/apps/updatenotification
Disabled:
  - admin_audit:
    - Path: /var/www/owncloud/apps/admin_audit
  - announcementcenter:
    - Path: /var/www/owncloud/apps/announcementcenter
  - customgroups:
    - Path: /var/www/owncloud/apps/customgroups
  - enterprise_key:
    - Path: /var/www/owncloud/apps/enterprise_key
  - external:
    - Path: /var/www/owncloud/apps/external
  - files_antivirus:
    - Path: /var/www/owncloud/apps/files_antivirus
  - files_classifier:
    - Path: /var/www/owncloud/apps/files_classifier
  - files_external_dropbox:
    - Path: /var/www/owncloud/apps/files_external_dropbox
  - files_external_ftp:
    - Path: /var/www/owncloud/apps/files_external_ftp
  - files_ldap_home:
    - Path: /var/www/owncloud/apps/files_ldap_home
  - files_lifecycle:
    - Path: /var/www/owncloud/apps/files_lifecycle
  - firewall:
    - Path: /var/www/owncloud/apps/firewall
  - graphapi:
    - Path: /var/www/owncloud/apps/graphapi
  - guests:
    - Path: /var/www/owncloud/apps/guests
  - metrics:
    - Path: /var/www/owncloud/apps/metrics
  - oauth2:
    - Path: /var/www/owncloud/apps/oauth2
  - openidconnect:
    - Path: /var/www/owncloud/apps/openidconnect
  - password_policy:
    - Path: /var/www/owncloud/apps/password_policy
  - ransomware_protection:
    - Path: /var/www/owncloud/apps/ransomware_protection
  - richdocuments:
    - Path: /var/www/owncloud/custom/richdocuments
  - sharepoint:
    - Path: /var/www/owncloud/apps/sharepoint
  - systemtags_management:
    - Path: /var/www/owncloud/apps/systemtags_management
  - theme-enterprise:
    - Path: /var/www/owncloud/apps/theme-enterprise
  - user_external:
    - Path: /var/www/owncloud/apps/user_external
  - user_ldap:
    - Path: /var/www/owncloud/apps/user_ldap
  - user_shibboleth:
    - Path: /var/www/owncloud/apps/user_shibboleth
  - web:
    - Path: /var/www/owncloud/apps/web
  - windows_network_drive:
    - Path: /var/www/owncloud/apps/windows_network_drive
  - wopi:
    - Path: /var/www/owncloud/apps/wopi
  - workflow:
    - Path: /var/www/owncloud/apps/workflow

Proxy configuration of apache

        ProxyPreserveHost On
        ProxyRequests on

        ProxyPass "/owncloud" "http://10.x.x.x:8080"
        ProxyPassReverse "/owncloud" "http://10.x.x.x:8080"

Docker compose configuration

version: '3'

volumes:
  files:
    driver: local
  redis:
    driver: local

services:
  owncloud:
    restart: always
    image: owncloud/server:${OWNCLOUD_VERSION}
    container_name: owncloud_server
    ports:
      - ${HTTP_PORT}:8080
    depends_on:
      - redis
    environment:
      - OWNCLOUD_DOMAIN=${OWNCLOUD_DOMAIN}
      - OWNCLOUD_TRUSTED_DOMAINS=${OWNCLOUD_TRUSTED_DOMAINS}
      - OWNCLOUD_TRUSTED_PROXIES=${OWNCLOUD_TRUSTED_PROXIES}
      - OWNCLOUD_DB_TYPE=pgsql
      - OWNCLOUD_DB_NAME=owncloud
      - OWNCLOUD_DB_USERNAME=**********
      - OWNCLOUD_DB_PASSWORD=**********
      - OWNCLOUD_DB_HOST=10.x.x.x:5432
      - OWNCLOUD_DB_PREFIX=oc_
      - OWNCLOUD_ADMIN_USERNAME=${ADMIN_USERNAME}
      - OWNCLOUD_ADMIN_PASSWORD=${ADMIN_PASSWORD}
      - OWNCLOUD_DEFAULT_LANGUAGE=de
      - OWNCLOUD_REDIS_ENABLED=true
      - OWNCLOUD_REDIS_HOST=redis
      - OWNCLOUD_HTACCESS_REWRITE_BASE=/
      - OWNCLOUD_LOG_TIMEZONE=Europe/Vienna
      - OWNCLOUD_MAIL_DOMAIN=theosys.at
      - OWNCLOUD_MAIL_FROM_ADDRESS=office
      - OWNCLOUD_MAIL_SMTP_AUTH_TYPE=PLAIN
      - OWNCLOUD_MAIL_SMTP_HOST=10.x.x.x
      - OWNCLOUD_MAIL_SMTP_MODE=smtp
      - OWNCLOUD_MAIL_SMTP_PORT=25
      - OWNCLOUD_OVERWRITE_WEBROOT=/owncloud
      - OWNCLOUD_OVERWRITE_PROTOCOL=https
    healthcheck:
      test: ["CMD", "/usr/bin/healthcheck"]
      interval: 30s
      timeout: 10s
      retries: 5
    volumes:
      - /opt/owncloud:/mnt/data

  redis:
    image: redis:6
    container_name: owncloud_redis
    restart: always
    command: ["--databases", "1"]
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 10s
      timeout: 5s
      retries: 5
    volumes:
      - redis:/data

Are you using external storage, if yes which one: Link to other owncloud instance

Are you using encryption: yes

Client configuration

Browser: Firefox

Operating system: Linux

Logs

Web server error log (from frontend)

10.x.x.149 - - [05/Jun/2023:14:02:10 +0200] "PROPFIND /owncloud/remote.php/dav/files/andreas/ HTTP/1.1" 207 1446 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
10.x.x.149 - - [05/Jun/2023:14:02:10 +0200] "GET /owncloud/ocs/v1.php/cloud/capabilities?format=json HTTP/1.1" 200 3340 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
10.x.x.149 - - [05/Jun/2023:14:02:11 +0200] "GET /owncloud/ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 1390 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
10.x.x.149 - - [05/Jun/2023:14:02:11 +0200] "GET /owncloud/remote.php/dav/avatars/andreas/128.png HTTP/1.1" 404 1221 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
10.x.x.149 - - [05/Jun/2023:14:02:18 +0200] "PROPFIND /owncloud/remote.php/dav/files/andreas/ HTTP/1.1" 207 6204 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
10.x.x.149 - - [05/Jun/2023:14:02:58 +0200] "PROPFIND /owncloud/remote.php/dav/files/andreas/ HTTP/1.1" 207 6202 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
10.x.x.149 - - [05/Jun/2023:14:03:38 +0200] "PROPFIND /owncloud/remote.php/dav/files/andreas/ HTTP/1.1" 207 6204 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
10.x.x.149 - - [05/Jun/2023:14:04:14 +0200] "GET /owncloud/status.php HTTP/1.1" 200 6030 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
10.x.x.149 - - [05/Jun/2023:14:04:14 +0200] "PROPFIND /owncloud/remote.php/dav/files/andreas/ HTTP/1.1" 207 1444 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
10.x.x.149 - - [05/Jun/2023:14:04:14 +0200] "GET /owncloud/ocs/v1.php/cloud/capabilities?format=json HTTP/1.1" 200 3346 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
10.x.x.149 - - [05/Jun/2023:14:04:14 +0200] "GET /owncloud/ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 1390 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
10.x.x.149 - - [05/Jun/2023:14:04:15 +0200] "GET /owncloud/remote.php/dav/avatars/andreas/128.png HTTP/1.1" 404 1211 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
10.x.x.149 - - [05/Jun/2023:14:04:18 +0200] "PROPFIND /owncloud/remote.php/dav/files/andreas/ HTTP/1.1" 207 1445 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
10.x.x.149 - - [05/Jun/2023:14:04:21 +0200] "GET /owncloud/ HTTP/1.1" 302 1444 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
10.x.x.149 - - [05/Jun/2023:14:04:21 +0200] "GET /owncloud/login HTTP/1.1" 200 3296 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
10.x.x.149 - - [05/Jun/2023:14:04:22 +0200] "GET /owncloud/core/js/oc.js?v=9ad02c7e6d383515e305e2adab9a4725 HTTP/1.1" 200 2419 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
10.x.x.149 - - [05/Jun/2023:14:04:23 +0200] "GET /owncloud/core/vendor/browser-update/browser-update.js?_=1685966662868 HTTP/1.1" 200 11431 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
10.x.x.149 - - [05/Jun/2023:14:04:33 +0200] "POST /owncloud/login HTTP/1.1" 303 1574 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
10.x.x.149 - - [05/Jun/2023:14:04:33 +0200] "GET /owncloud/apps/files/ HTTP/1.1" 303 1212 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
10.x.x.149 - - [05/Jun/2023:14:04:33 +0200] "GET /owncloud/login?redirect_url=%252Fapps%252Ffiles%252F HTTP/1.1" 200 3334 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
10.x.x.149 - - [05/Jun/2023:14:04:34 +0200] "GET /owncloud/core/js/oc.js?v=9ad02c7e6d383515e305e2adab9a4725 HTTP/1.1" 200 2415 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
10.x.x.149 - - [05/Jun/2023:14:04:35 +0200] "GET /owncloud/core/vendor/browser-update/browser-update.js?_=1685966674842 HTTP/1.1" 200 11431 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"

Web server error log (from docker)

owncloud_server | 10.x.x.x - - [05/Jun/2023:12:04:14 +0000] "GET /status.php HTTP/1.1" 200 1254 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
owncloud_server | 10.x.x.x - andreas [05/Jun/2023:12:04:14 +0000] "PROPFIND /remote.php/dav/files/andreas/ HTTP/1.1" 207 1422 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
owncloud_server | 10.x.x.x - andreas [05/Jun/2023:12:04:14 +0000] "GET /ocs/v1.php/cloud/capabilities?format=json HTTP/1.1" 200 3324 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
owncloud_server | 10.x.x.x - andreas [05/Jun/2023:12:04:14 +0000] "GET /ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 1368 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
owncloud_server | 10.x.x.x - andreas [05/Jun/2023:12:04:15 +0000] "GET /remote.php/dav/avatars/andreas/128.png HTTP/1.1" 404 1189 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
owncloud_server | 10.x.x.x - andreas [05/Jun/2023:12:04:18 +0000] "PROPFIND /remote.php/dav/files/andreas/ HTTP/1.1" 207 1423 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
owncloud_server | 127.0.0.1 - - [05/Jun/2023:12:04:21 +0000] "GET /status.php HTTP/1.1" 200 1190 "-" "curl/7.68.0"
owncloud_server | 10.x.x.x - - [05/Jun/2023:12:04:21 +0000] "GET / HTTP/1.1" 302 1099 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
owncloud_server | 10.x.x.x - - [05/Jun/2023:12:04:21 +0000] "GET /login HTTP/1.1" 200 3274 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
owncloud_server | 10.x.x.x - - [05/Jun/2023:12:04:22 +0000] "GET /core/js/oc.js?v=9ad02c7e6d383515e305e2adab9a4725 HTTP/1.1" 200 4813 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
owncloud_server | 10.x.x.x - - [05/Jun/2023:12:04:23 +0000] "GET /core/vendor/browser-update/browser-update.js?_=1685966662868 HTTP/1.1" 200 11387 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
owncloud_server | 10.x.x.x - - [05/Jun/2023:12:04:33 +0000] "POST /login HTTP/1.1" 303 1229 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
owncloud_server | 10.x.x.x - - [05/Jun/2023:12:04:33 +0000] "GET /apps/files/ HTTP/1.1" 303 1190 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
owncloud_server | 10.x.x.x - - [05/Jun/2023:12:04:33 +0000] "GET /login?redirect_url=%252Fapps%252Ffiles%252F HTTP/1.1" 200 3312 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
owncloud_server | 10.x.x.x - - [05/Jun/2023:12:04:34 +0000] "GET /core/js/oc.js?v=9ad02c7e6d383515e305e2adab9a4725 HTTP/1.1" 200 4809 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
owncloud_server | 10.x.x.x - - [05/Jun/2023:12:04:35 +0000] "GET /core/vendor/browser-update/browser-update.js?_=1685966674842 HTTP/1.1" 200 11387 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
owncloud_server | 127.0.0.1 - - [05/Jun/2023:12:04:51 +0000] "GET /status.php HTTP/1.1" 200 1198 "-" "curl/7.68.0"
owncloud_server | 10.x.x.x - andreas [05/Jun/2023:12:04:58 +0000] "PROPFIND /remote.php/dav/files/andreas/ HTTP/1.1" 207 1424 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
owncloud_server | 127.0.0.1 - - [05/Jun/2023:12:05:21 +0000] "GET /status.php HTTP/1.1" 200 1188 "-" "curl/7.68.0"
owncloud_server | 10.x.x.x - andreas [05/Jun/2023:12:05:38 +0000] "GET /ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1" 200 1314 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
owncloud_server | 10.x.x.x - andreas [05/Jun/2023:12:05:38 +0000] "PROPFIND /remote.php/dav/files/andreas/ HTTP/1.1" 207 1426 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
owncloud_server | 10.x.x.x - andreas [05/Jun/2023:12:05:38 +0000] "PROPFIND /remote.php/dav/files/andreas/ HTTP/1.1" 207 5101 "-" "Mozilla/5.0 (Linux) mirall/2.11.0 (ownCloud, debian-6.1.0-9-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
owncloud_server | 127.0.0.1 - - [05/Jun/2023:12:05:51 +0000] "GET /status.php HTTP/1.1" 200 1194 "-" "curl/7.68.0"

ownCloud log (data/owncloud.log)

{"reqId":"414a9426-699e-4ec8-b31e-6966f4742ac0","level":0,"time":"2023-06-05T14:05:38+02:00","remoteAddr":"10.x.x.149","user":"--","app":"OC\\Authentication\\Token\\Defau
ltTokenProvider::invalidateToken","method":"PROPFIND","url":"\/owncloud\/remote.php\/dav\/files\/andreas\/","message":"invalidating token a485e67e0e8fba34aa7cd9c971b77361
d375685c075c45326b090b7e591a18c5fe742d08bbfdb4670d7959d2122374745e54cb9714ed40606646880149780ff2"}
{"reqId":"b685558f-cb9a-4d70-874b-a732a2622f44","level":0,"time":"2023-06-05T14:05:38+02:00","remoteAddr":"10.x.x.149","user":"--","app":"core","method":"GET","url":"\/ow
ncloud\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"OC\\Authentication\\LoginPolicies\\GroupLoginPolicy policy registered"}
{"reqId":"b685558f-cb9a-4d70-874b-a732a2622f44","level":1,"time":"2023-06-05T14:05:38+02:00","remoteAddr":"10.x.x.149","user":"--","app":"OC\\User\\Session::loginInOwnClo
ud","method":"GET","url":"\/owncloud\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"login andreas using \"password\" login type"}
{"reqId":"414a9426-699e-4ec8-b31e-6966f4742ac0","level":0,"time":"2023-06-05T14:05:38+02:00","remoteAddr":"10.x.x.149","user":"--","app":"OC\\Authentication\\Token\\Defau
ltTokenProvider::getToken","method":"PROPFIND","url":"\/owncloud\/remote.php\/dav\/files\/andreas\/","message":"token 8ceb49d6421c9cd47d99ac7f54b28e38eb98b02e7ae46bd90ddd
2b6e9adf5386dacd1de9a236e79d341c41d01eb4683b33af87020413d48837c9a1f04223d50d does not exist"}
{"reqId":"414a9426-699e-4ec8-b31e-6966f4742ac0","level":0,"time":"2023-06-05T14:05:38+02:00","remoteAddr":"10.x.x.149","user":"--","app":"OC\\User\\Session::login","metho
d":"PROPFIND","url":"\/owncloud\/remote.php\/dav\/files\/andreas\/","message":"regenerating session id for uid andreas, password set"}
{"reqId":"414a9426-699e-4ec8-b31e-6966f4742ac0","level":0,"time":"2023-06-05T14:05:38+02:00","remoteAddr":"10.x.x.149","user":"--","app":"OC\\Authentication\\Token\\Defau
ltTokenProvider::getToken","method":"PROPFIND","url":"\/owncloud\/remote.php\/dav\/files\/andreas\/","message":"token 8ceb49d6421c9cd47d99ac7f54b28e38eb98b02e7ae46bd90ddd
2b6e9adf5386dacd1de9a236e79d341c41d01eb4683b33af87020413d48837c9a1f04223d50d does not exist"}
{"reqId":"414a9426-699e-4ec8-b31e-6966f4742ac0","level":0,"time":"2023-06-05T14:05:38+02:00","remoteAddr":"10.x.x.149","user":"--","app":"OC\\User\\Session::validateToken
","method":"PROPFIND","url":"\/owncloud\/remote.php\/dav\/files\/andreas\/","message":"token 8ceb49d6421c9cd47d99ac7f54b28e38eb98b02e7ae46bd90ddd2b6e9adf5386dacd1de9a236e
79d341c41d01eb4683b33af87020413d48837c9a1f04223d50d, not found"}

If you’re changing the apache configuration in the owncloud docker container, I’d rather avoid that.
I think the options you have are:

  • Work with the environment variables to change the configuration of the ownCloud container.
  • Setup traefik (or any other proxy server) in front of ownCloud.

The second option might be more flexible. You can add a docker container for the proxy server in your compose file.

2 Likes

I’ve never changed anything directly in the container. Only in the docker-compose.yaml file. You can see the content of it in my post. When I change something in this file I enable it by executing

docker-compose up -d

Anything else would be temporary only. With the next start of the container direct changes are gone.

About traefik: If possible I will not install additional stuff. I’ll try to make Owncloud work in the container, although I’m not happy with this solution. But as long as Owncloud does not support PHP 8 I have no choice. Debian doesn’t support PHP 7 any longer.

Some additional information: The calendar (DAV) and the Owncloud client is working just fine. With the client I can access all the files in Owncloud. The calendar of my Android phone as well as the one on my company iPhone can access Owncloud without any error.

A.T.

Sure it does. They aren’t in the Debian official repository, but they are maintained by a highly experienced Debian developer.

I originally moved to obtain my Debian PHP packages from that repository because those found in Debian Stable were typically older than I wanted. It’s amusing that I now also use it to keep an older version around for one application.

1 Like
ProxyPass "/owncloud" "http://10.x.x.x:8080"

To me, this sounds more like an issue related to using a subfolder instead of a (sub)domain. Using a subfolder /owncloud instead of owncloud.example.com is more error-prone and difficult to set up correctly, and I would not recommend it.

There is no need to switch to traefik, in general, every web server outside the container should be sufficient as reverse proxy for the oC container.

1 Like

Yes it is an issue related to a subfolder. But the problem seems not to be with the reverse proxy settings but with Owncloud. As you can see from the logs, I first get a redirect and then again another. The third request is accepted but there the browser does not send the login credentials any more. Instead it shows the login mask again. Entering the username and password again results in the same login mask instead of showing the files.

Sure, I can define another subdomain and use it. But then I would need again a reverse proxy on the main domain to keep the access for all users as it is. And the game starts from beginning.

The whole thing is mysterious to me because it worked immediately after installation. What I want to do is moving Owncloud from an old machine to a new one. On the old machine it is still running but native without a container. I would like to do this similar on the new machine, but unfortunately Owncloud still needs PHP7.

When the new machine was ready, I switched the domain name on the DNS server (managed by my provider). I rebooted both, the old and the new machine and after this, Owncloud didn’t work any more. If anybody has an idea what went wrong, please help me.

A.T.

Hey,

i don’t think that this is true. Debian stable / bullseye is still receiving security fixes and thus “supporting” PHP 7.4:

https://tracker.debian.org/pkg/php7.4

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.