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]: wrong document root path to javascript files after update to 28.0.4.1 #44787

Closed
5 of 8 tasks
bbx-github opened this issue Apr 11, 2024 · 2 comments
Closed
5 of 8 tasks
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 28-feedback bug

Comments

@bbx-github
Copy link
Contributor

⚠️ This issue respects the following points: ⚠️

Bug description

After an update to 28.0.4.1 nextcloud.log has errors with wrong docroot.
path in nextcloud.log: /var/www/nextcloud/htdocsapps//core/

Steps to reproduce

use web interface

Expected behavior

expected path: /var/www/nextcloud/htdocs/apps/core/

Installation method

Community Manual installation with Archive

Nextcloud Server version

28

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

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

None

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": {
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
      "cloud.my.dom",
      "www.my.dom"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "overwrite.cli.url": "https://cloud.my.dom/",
    "dbtype": "mysql",
    "version": "28.0.4.1",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbtableprefix": "oc_",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "logtimezone": "UTC",
    "installed": true,
    "default_language": "de",
    "theme": "",
    "maintenance": false,
    "loglevel": "2",
    "trashbin_retention_obligation": "D5, D10",
    "appstore.experimental.enabled": false,
    "forcessl": true,
    "singleuser": false,
    "memcache.local": "\\OC\\Memcache\\Memcached",
    "memcached_servers": [
      [
        "localhost",
        11211
      ]
    ],
    "filelocking.enabled": true,
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "redis": {
      "host": "***REMOVED SENSITIVE VALUE***",
      "port": 0,
      "timeout": 0
    },
    "mail_smtpmode": "smtp",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtpsecure": "tls",
    "mail_smtpauth": 1,
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "587",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "default_locale": "de_DE",
    "default_phone_region": "DE",
    "updater.release.channel": "stable",
    "app_install_overwrite": [
      "calendar"
    ],
    "mysql.utf8mb4": true,
    "maintenance_window_start": 3
  }
}

List of activated Apps

No response

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

{"reqId":"XXXXX","level":3,"time":"2024-04-11T1X:XX:XX+XX:XX","remoteAddr":"2a02:XXXXX","user":"XXXXX","app":"PHP","method":"GET","url":"/index.php/settings/admin/overview","message":"is_file(): open_basedir restriction in effect. File(/var/www/nextcloud/htdocsapps//core/js/merged-template-prepend.mjs) is not within the allowed path(s): (/var/www/nextcloud/htdocs/:/var/www/nextcloud/tmp/:/var/www/nextcloud/data/:/dev/urandom:/proc/meminfo) at /var/www/nextcloud/htdocs/lib/private/Template/ResourceLocator.php#100","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0","version":"28.0.4.1","data":{"app":"PHP"}}
{"reqId":"XXXXX","level":3,"time":"2024-04-11T1X:XX:XX+XX:XX","remoteAddr":"2a02:XXXXX","user":"XXXXX","app":"PHP","method":"GET","url":"/index.php/settings/admin/overview","message":"is_file(): open_basedir restriction in effect. File(/var/www/nextcloud/htdocsapps//core/js/merged-template-prepend.js) is not within the allowed path(s): (/var/www/nextcloud/htdocs/:/var/www/nextcloud/tmp/:/var/www/nextcloud/data/:/dev/urandom:/proc/meminfo) at /var/www/nextcloud/htdocs/lib/private/Template/ResourceLocator.php#100","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0","version":"28.0.4.1","data":{"app":"PHP"}}
{"reqId":"XXXXX","level":3,"time":"2024-04-11T1X:XX:XX+XX:XX","remoteAddr":"2a02:XXXXX","user":"XXXXX","app":"PHP","method":"GET","url":"/index.php/settings/admin/overview","message":"is_file(): open_basedir restriction in effect. File(/var/www/nextcloud/htdocsapps//core/l10n/en.mjs) is not within the allowed path(s): (/var/www/nextcloud/htdocs/:/var/www/nextcloud/tmp/:/var/www/nextcloud/data/:/dev/urandom:/proc/meminfo) at /var/www/nextcloud/htdocs/lib/private/Template/ResourceLocator.php#100","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0","version":"28.0.4.1","data":{"app":"PHP"}}
{"reqId":"XXXXX","level":3,"time":"2024-04-11T1X:XX:XX+XX:XX","remoteAddr":"2a02:XXXXX","user":"XXXXX","app":"PHP","method":"GET","url":"/index.php/settings/admin/overview","message":"is_file(): open_basedir restriction in effect. File(/var/www/nextcloud/htdocsapps//core/l10n/en.js) is not within the allowed path(s): (/var/www/nextcloud/htdocs/:/var/www/nextcloud/tmp/:/var/www/nextcloud/data/:/dev/urandom:/proc/meminfo) at /var/www/nextcloud/htdocs/lib/private/Template/ResourceLocator.php#100","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0","version":"28.0.4.1","data":{"app":"PHP"}}

{"reqId":"XXXXX","level":3,"time":"2024-04-11T1X:XX:XX+XX:XX","remoteAddr":"84.XX.XX.XX","user":"--","app":"PHP","method":"GET","url":"/index.php/login/v2/flow?user=XXXXX","message":"is_file(): open_basedir restriction in effect. File(/var/www/nextcloud/htdocsapps//core/js/merged-template-prepend.mjs) is not within the allowed path(s): (/var/www/nextcloud/htdocs/:/var/www/nextcloud/tmp/:/var/www/nextcloud/data/:/dev/urandom:/proc/meminfo) at /var/www/nextcloud/htdocs/lib/private/Template/ResourceLocator.php#100","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.4.1","data":{"app":"PHP"}}
{"reqId":"XXXXX","level":3,"time":"2024-04-11T1X:XX:XX+XX:XX","remoteAddr":"84.XX.XX.XX","user":"--","app":"PHP","method":"GET","url":"/index.php/login/v2/flow?user=XXXXX","message":"is_file(): open_basedir restriction in effect. File(/var/www/nextcloud/htdocsapps//core/js/merged-template-prepend.js) is not within the allowed path(s): (/var/www/nextcloud/htdocs/:/var/www/nextcloud/tmp/:/var/www/nextcloud/data/:/dev/urandom:/proc/meminfo) at /var/www/nextcloud/htdocs/lib/private/Template/ResourceLocator.php#100","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.4.1","data":{"app":"PHP"}}
{"reqId":"XXXXX","level":3,"time":"2024-04-11T1X:XX:XX+XX:XX","remoteAddr":"84.XX.XX.XX","user":"--","app":"PHP","method":"GET","url":"/index.php/login/v2/flow?user=XXXXX","message":"is_file(): open_basedir restriction in effect. File(/var/www/nextcloud/htdocsapps//core/l10n/de.mjs) is not within the allowed path(s): (/var/www/nextcloud/htdocs/:/var/www/nextcloud/tmp/:/var/www/nextcloud/data/:/dev/urandom:/proc/meminfo) at /var/www/nextcloud/htdocs/lib/private/Template/ResourceLocator.php#100","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.4.1","data":{"app":"PHP"}}
{"reqId":"XXXXX","level":3,"time":"2024-04-11T1X:XX:XX+XX:XX","remoteAddr":"84.XX.XX.XX","user":"--","app":"PHP","method":"GET","url":"/index.php/login/v2/flow?user=XXXXX","message":"is_file(): open_basedir restriction in effect. File(/var/www/nextcloud/htdocsapps//core/l10n/de.js) is not within the allowed path(s): (/var/www/nextcloud/htdocs/:/var/www/nextcloud/tmp/:/var/www/nextcloud/data/:/dev/urandom:/proc/meminfo) at /var/www/nextcloud/htdocs/lib/private/Template/ResourceLocator.php#100","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0","version":"28.0.4.1","data":{"app":"PHP"}}

Additional info

No response

@bbx-github bbx-github added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Apr 11, 2024
@bbx-github
Copy link
Contributor Author

I checked several other nextcloud 28.0.4.1 installations.

  • postgres + nginx + php8.2-fpm
  • mariadb + nginx + php8.2-fpm
  • mariadb + apache2 + php8.2-fpm

All have this issue.

@SystemKeeper
Copy link
Contributor

Fixed by #44413

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 28-feedback bug
Projects
None yet
Development

No branches or pull requests

3 participants