Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: ResourceLocator can not find a web root #42493

Closed
5 of 8 tasks
Tracked by #3888
Deric-W opened this issue Dec 27, 2023 · 7 comments · Fixed by #43917
Closed
5 of 8 tasks
Tracked by #3888

[Bug]: ResourceLocator can not find a web root #42493

Deric-W opened this issue Dec 27, 2023 · 7 comments · Fixed by #43917

Comments

@Deric-W
Copy link

Deric-W commented Dec 27, 2023

⚠️ This issue respects the following points: ⚠️

Bug description

After upgrading Nextcloud from 27 to 28 on a system running NixOS 23.11 the server log contains the following message every time a user visits a page while the UI language is german (probably works with other languages too):

{"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/viewer/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}

The message appears multiple times for different apps and the UI is still properly localized.

Steps to reproduce

  1. Have a NixOS 23.11 system running Nextcloud 28
  2. Change the default language to german
  3. Visit a page with some app active

Expected behavior

No errors should be logged.

Installation method

Other Community project

Nextcloud Server version

28

Operating system

Other

PHP engine version

PHP 8.2

Web server

Nginx

Database engine version

PostgreSQL

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "apps_paths": [
            {
                "path": "\/var\/lib\/nextcloud\/nix-apps",
                "url": "\/nix-apps",
                "writable": false
            },
            {
                "path": "\/var\/lib\/nextcloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/lib\/nextcloud\/store-apps",
                "url": "\/store-apps",
                "writable": true
            }
        ],
        "appstoreenabled": false,
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "skeletondirectory": "",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "log_type": "syslog",
        "loglevel": "2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "DE",
        "profile.enabled": false,
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "version": "28.0.0.11",
        "overwrite.cli.url": "http:\/\/localhost",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "tls",
        "mail_sendmailmode": "smtp",
        "maintenance": false,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "dbindex": 0,
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0
        },
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtptimeout": 30,
        "mail_smtpdebug": true,
        "mail_smtpport": 587,
        "mail_smtpauth": true,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "trusted_domains": [
            "nextcloud.thetwins.xyz"
        ]
    }
}

List of activated Apps

Enabled:
  - activity: 2.20.0
  - calendar: 4.6.0
  - circles: 28.0.0-dev
  - cloud_federation_api: 1.11.0
  - comments: 1.18.0
  - contacts: 5.5.0
  - contactsinteraction: 1.9.0
  - dashboard: 7.8.0
  - dav: 1.29.1
  - federatedfilesharing: 1.18.0
  - federation: 1.18.0
  - files: 2.0.0
  - files_pdfviewer: 2.9.0
  - files_reminders: 1.1.0
  - files_sharing: 1.20.0
  - files_trashbin: 1.18.0
  - files_versions: 1.21.0
  - firstrunwizard: 2.17.0
  - forms: 4.0.0
  - logreader: 2.13.0
  - lookup_server_connector: 1.16.0
  - maps: 1.3.1
  - nextcloud_announcements: 1.17.0
  - notifications: 2.16.0
  - notify_push: 0.6.6
  - oauth2: 1.16.3
  - password_policy: 1.18.0
  - photos: 2.4.0
  - polls: 6.0.1
  - privacy: 1.12.0
  - provisioning_api: 1.18.0
  - recommendations: 2.0.0
  - related_resources: 1.3.0
  - serverinfo: 1.18.0
  - settings: 1.10.0
  - sharebymail: 1.18.0
  - support: 1.11.0
  - survey_client: 1.16.0
  - systemtags: 1.18.0
  - text: 3.9.1
  - theming: 2.3.0
  - twofactor_backupcodes: 1.17.0
  - twofactor_totp: 10.0.0-beta.2
  - updatenotification: 1.18.0
  - user_status: 1.8.1
  - viewer: 2.2.0
  - weather_status: 1.8.0
  - workflowengine: 2.10.0
Disabled:
  - admin_audit: 1.18.0
  - bruteforcesettings: 2.8.0
  - encryption: 2.16.0
  - files_external: 1.20.0
  - suspicious_login: 6.0.0
  - user_ldap: 1.19.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: nix-apps/contacts/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/files_reminders/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/text/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/files_sharing/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/systemtags/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/activity/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/circles/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/federatedfilesharing/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/files_trashbin/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/files_versions/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: nix-apps/maps/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/recommendations/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/viewer/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/related_resources/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/files_pdfviewer/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/firstrunwizard/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/notifications/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/theming/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:19 unimatrix-01 Nextcloud[2225]: {"reqId":"ZMfm6Z5yENGlVYBxRE6a","level":3,"time":"2023-12-27T09:20:19+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/user_status/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/files/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/comments/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: nix-apps/contacts/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/files_reminders/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/text/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/files_sharing/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/systemtags/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/activity/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/circles/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/federatedfilesharing/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/files_trashbin/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/files_versions/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: nix-apps/maps/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/recommendations/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/viewer/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/related_resources/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/files_pdfviewer/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/firstrunwizard/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/notifications/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/theming/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:20:48 unimatrix-01 Nextcloud[1986]: {"reqId":"3FJStYd2nl7v7rTrr22q","level":3,"time":"2023-12-27T09:20:48+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/user_status/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/files/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/comments/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: nix-apps/contacts/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/files_reminders/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/text/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/files_sharing/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/systemtags/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/activity/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/circles/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/federatedfilesharing/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/files_trashbin/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/files_versions/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: nix-apps/maps/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/recommendations/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/viewer/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/related_resources/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/files_pdfviewer/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/firstrunwizard/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/notifications/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/theming/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}
Dec 27 10:21:00 unimatrix-01 Nextcloud[1965]: {"reqId":"BjNqqzJrQBs9BWRfiiqv","level":3,"time":"2023-12-27T09:21:00+00:00","remoteAddr":"141.30.226.119","user":"admin","app":"lib","method":"GET","url":"/apps/files/","message":"ResourceLocator can not find a web root (root: /var/lib/nextcloud, file: apps/user_status/l10n/de_DE.js, webRoot: , throw: false)","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.0.11","data":{"app":"lib"}}

Additional info

The bug was first reported in NixOS/nixpkgs#275293 and likely a result of #40898 and the way NixOS is setting up Nextcloud:

The server root is located somewhere under /nix/store while some app directories are stored in different directories.
To allow Nextcloud to find them apps_paths contains their paths (which are located under /var/lib/nextcloud and are sometimes symlinks) and the url which is handled by the Nginx configuation.

The problem is that these paths (and the ones pointed to by the symlinks) do not always start from the server root which makes the findWebRoot method of ResourceLocator always return null, producing the error.

I am not sure if according to the documentation the way of handling external app paths is wrong since it worked with Nextcloud 27.

@Deric-W Deric-W added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Dec 27, 2023
@Deric-W
Copy link
Author

Deric-W commented Dec 27, 2023

Is there a reason JSResourceLocator cant supply the web root from the url of the app path?

@Ducknuke
Copy link

Ducknuke commented Jan 2, 2024

I have the same error since moving from 27 to 28 :
"ResourceLocator can not find a web root (root: /config/www/nextcloud, file: apps/files/l10n/fr.js, webRoot: , throw: false)"
Hundreds per day...
I'm looking but I can't understand
Did you find where the error comes from?

@Deric-W
Copy link
Author

Deric-W commented Jan 2, 2024

In the additional info section I linked an issue where it was first diagnosed and the pull request which is likely the cause.
A workaround should be to create a symlink to your app directory (/config/www/nextcloud/apps in your case) in the server root of your Nextcloud installation and use OC::$SERVERROOT . "/<name of symlink>" as the app path in your config.php.

@matthiasbeyer
Copy link

Running into this as well with nextcloud27 and nextcloud28 on NixOS 23.11.

@Ducknuke
Copy link

Ducknuke commented Jan 3, 2024

Effectively @Deric-W I found this in the documentation :

"Apps paths can be located outside the server root. However, for any path outside the server root, you need to create a symlink in the server root that points url to path. For instance, if path is /var/local/lib/nextcloud/apps, and url is /apps2, then you would do this in the server root: ln -sf /var/local/lib/nextcloud/apps ./apps2"
In my case ln -sf /config/www/nextcloud/apps ./apps and OC::$SERVERROOT . "/apps" in my config.php

Even if I don't like the workarounds it works for the moment and avoids overloading my logs.
Thanks

@jensk

This comment was marked as spam.

@joshtrichards
Copy link
Member

Another potentially relevant prior PR: #38207

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants