Apache mod_unique_id not working?

Steps to reproduce

Compare phpinfo() UNIQUE_ID with reqId in owncloud.log

Expected behaviour

The documentation says that they should be the same

Actual behaviour

reqId in my owncloud.log has a different value for each line

Server configuration

Operating system: Ubuntu 18.04 LTS

Web server: Apache2

Database: mariadb

PHP version: 7.2.24

ownCloud version: 10.3.2.2

Updated from an older ownCloud or fresh install: fresh install

Where did you install ownCloud from: I downloaded it from the official website

Signing status (ownCloud 9.0 and above):

No errors have been found.

The content of config/config.php:

"config": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "\/var\/www\/owncloud\/data",
        "overwrite.cli.url": "http:\/\/localhost\/",
        "dbtype": "mysql",
        "version": "10.3.2.2",
        "dbname": "owncloud",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "apps_paths": [
            {
                "path": "\/var\/www\/owncloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/owncloud\/apps-external",
                "url": "\/apps-external",
                "writable": true
            }
        ],
        "installed": true,
        "instanceid": "oczzbvjoamtc",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "localhost",
            "port": 6379,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "php",
        "skeletondirectory": "",
        "integrity.ignore.missing.app.signature": [
            "***REMOVED SENSITIVE VALUE***"
        ]
    },

List of activated apps:

Admin config report
Deleted files
Share files
Update notifications
Versions
Media viewer
Notifications
A customized theme (very simple)

Are you using external storage, if yes which one: No

Are you using encryption: No

Are you using an external user-backend, if yes which one: No

Client configuration

Browser:

Operating system:

Logs

ownCloud log (data/owncloud.log)

...
{"reqId":"XjMonwE@5x-yDGEhJDpdswAAAAI","level":2,"time":"2020-01-30T19:03:59+00:00","remoteAddr":"37.70.42.112","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"37.70.42.112\" tried to access using \"*********:80\" as host."}
{"reqId":"XjNADeou5-i80hMmjNJ@ngAAAAA","level":2,"time":"2020-01-30T20:43:57+00:00","remoteAddr":"170.82.7.250","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"170.82.7.250\" tried to access using \"*********:80\" as host."}
{"reqId":"XjNAWqaCiuDHCpRvBr7@qQAAAA4","level":2,"time":"2020-01-30T20:45:14+00:00","remoteAddr":"51.254.59.114","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"51.254.59.114\" tried to access using \"*********\" as host."}
{"reqId":"XjNa6BIk3HRShQtZbLewQgAAAAg","level":2,"time":"2020-01-30T22:38:32+00:00","remoteAddr":"170.84.105.114","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"170.84.105.114\" tried to access using \"*********\" as host."}
{"reqId":"XjNdL25cW77mZmCSsQ5g@gAAAAI","level":2,"time":"2020-01-30T22:48:15+00:00","remoteAddr":"78.187.30.238","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"78.187.30.238\" tried to access using \"*********:80\" as host."}

The log lines you posted are all different requests from different IP addresses. So I don’t understand why it’s a problem for you that these requests have different reqIDs?

What is actually not working for you?

Perhaps you just need to add your domain to the trusted domains in the config.php?
https://doc.owncloud.com/server/admin_manual/configuration/server/config_sample_php_parameters.html#define-list-of-trusted-domains-that-users-can-log-into

1 Like

Thanks for your answer!

I thought that all reqIDs should be the same (following https://doc.owncloud.com/server/10.3/admin_manual/installation/manual_installation.html#apache-mod_unique_id-configuration). But as I have no idea what exactly mod_unique_id is, maybe I misunderstood?