Skip to content

[Bug]: Incorrect path to .ncdata #57238

@Vlad-Star

Description

@Vlad-Star

⚠️ This issue respects the following points: ⚠️

Bug description

After upgrading Nextcloud to 32.0.3 I am constantly getting the following errors in nextcloud.log, when accessing or refreshing the Admin Overview page (https://www.mydomain.com/nextcloud/index.php/settings/admin/overview)

{"reqId":"aUrpLFziVbuE70oO3H8yygAAAJQ","level":3,"time":"2025-12-23T19:10:36+00:00","remoteAddr":"192.168.32.4","user":"--","app":"index","method":"GET","url":"/nextcloud//nextcloud/data/.ncdata","message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","userAgent":"Nextcloud Server Crawler","version":"32.0.3.2","exception":{"Exception":"Exception","Message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","Code":0,"Trace":[{"file":"/nextcloud/www/lib/base.php","line":992,"function":"getRawPathInfo","class":"OC\\AppFramework\\Http\\Request","type":"->"},{"file":"/nextcloud/www/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/nextcloud/www/lib/private/AppFramework/Http/Request.php","Line":736,"message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","exception":{},"CustomMessage":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')"}}
{"reqId":"aUrpLFziVbuE70oO3H8yywAAAI0","level":3,"time":"2025-12-23T19:10:36+00:00","remoteAddr":"192.168.32.4","user":"--","app":"index","method":"GET","url":"/nextcloud//nextcloud/data/.ncdata","message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","userAgent":"Nextcloud Server Crawler","version":"32.0.3.2","exception":{"Exception":"Exception","Message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","Code":0,"Trace":[{"file":"/nextcloud/www/lib/base.php","line":992,"function":"getRawPathInfo","class":"OC\\AppFramework\\Http\\Request","type":"->"},{"file":"/nextcloud/www/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/nextcloud/www/lib/private/AppFramework/Http/Request.php","Line":736,"message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","exception":{},"CustomMessage":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')"}}


My /nextcloud/www/config/config.php has the following lines:

  'datadirectory' => '/nextcloud/data',
  'overwrite.cli.url' => 'https://www.mydomain.com/nextcloud',

My /etc/httpd/conf.d/nextcloud.conf contains the following and I periodically access Nextcloud using the shortcut (/nc instead of /nextcloud);

Alias /nextcloud "/nextcloud/www/"
Alias /nc "/nextcloud/www/"

<Directory /nextcloud/www/>
  Require all granted
  AllowOverride All
  Options FollowSymLinks MultiViews

  <IfModule mod_dav.c>
    Dav off
  </IfModule>
  <IfModule mod_headers.c>
    Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
  </IfModule>
</Directory>

The .ncdata file exists under /nextcloud/data/ , but NOT under /nextcloud/nextcloud/data/ folder

[apache@www data]$ ls -l /nextcloud/nextcloud/data/.ncdata
ls: cannot access '/nextcloud/nextcloud/data/.ncdata': No such file or directory
[apache@www data]$ ls -ld /nextcloud/data
drwxr-x--- 24 apache apache 4096 Dec 22 00:00 /nextcloud/data
[apache@www data]$ ls -l /nextcloud/data/.ncdata

My debugging of the /nextcloud/www/lib/private/AppFramework/Http/Request.php indicate that the following function gets REQUEST_URI = /nextcloud//nextcloud/data/.ncdata (with double forward slash in the middle), which is certainly wrong

716         public function getRawPathInfo(): string {
717                 $requestUri = isset($this->server['REQUEST_URI']) ? $this->server['REQUEST_URI'] : '';

I also tried to change overwrite.cli.url config variable and RewriteBase in .htaccess from 'https://www.mydomain.com/nextcloud' to 'https://www.mydomain.com/nc' and restarted httpd/php-fpm, but it didn't change the behavior, still getting the same errors.

Let me know if you need any further information. Thanks!

Steps to reproduce

  1. Upgrade to 32.0.3
  2. Navigate to https://www.mydomain.com/nextcloud/index.php/settings/admin/overview
  3. Observe errors in /nextcloud/data/nextcloud.log

Expected behavior

No errors in the log

Nextcloud Server version

32

Operating system

RHEL/CentOS

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MySQL

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

Upgraded to a MAJOR version (ex. 31 to 32)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

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

Configuration report

[apache@www www]$ php occ config:list system
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "www.mydomain.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "32.0.3.2",
        "overwrite.cli.url": "https:\/\/www.mydomain.com\/nc",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "enable_previews": true,
        "preview_max_memory": 1024,
        "preview_max_filesize_image": 200,
        "enabledPreviewProviders": [
            "OC\\Preview\\Image",
            "OC\\Preview\\BMP",
            "OC\\Preview\\GIF",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\SVG",
            "OC\\Preview\\Krita",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\MP3",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\PNG",
            "OC\\Preview\\TXT",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MKV",
            "OC\\Preview\\MP4",
            "OC\\Preview\\MP3",
            "OC\\Preview\\AVI"
        ],
        "memories.vod.disable": false,
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "mail_smtpstreamoptions": {
            "ssl": {
                "allow_self_signed": true,
                "verify_peer": false,
                "verify_peer_name": false
            }
        },
        "maintenance": false,
        "memories.exiftool": "\/usr\/bin\/exiftool",
        "memories.exiftool_no_local": true,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "theme": "",
        "loglevel": 2,
        "memories.vod.path": "\/nextcloud\/www\/apps\/memories\/bin-ext\/go-vod-amd64",
        "maintenance_window_start": 1,
        "default_phone_region": 1,
        "memories.db.triggers.fcu": true,
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "htaccess.RewriteBase": "\/nc\/"
    }
}

List of activated Apps

[apache@www www]$ php occ app:list
Enabled:
  - activity: 5.0.0-dev.0
  - bruteforcesettings: 5.0.0-dev.0
  - circles: 32.0.0
  - cloud_federation_api: 1.16.0
  - comments: 1.22.0
  - contactsinteraction: 1.13.1
  - dashboard: 7.12.0
  - dav: 1.34.2
  - federatedfilesharing: 1.22.0
  - federation: 1.22.0
  - files: 2.4.0
  - files_downloadlimit: 5.0.0-dev.0
  - files_pdfviewer: 5.0.0-dev.0
  - files_reminders: 1.5.0
  - files_sharing: 1.24.1
  - files_trashbin: 1.22.0
  - files_versions: 1.25.0
  - firstrunwizard: 5.0.0-dev.0
  - logreader: 5.0.0-dev.0
  - lookup_server_connector: 1.20.0
  - memories: 7.7.0
  - nextcloud_announcements: 4.0.0-dev.0
  - notifications: 5.0.0-dev.0
  - oauth2: 1.20.0
  - password_policy: 4.0.0-dev.0
  - photos: 5.0.0-dev.1
  - previewgenerator: 5.11.0
  - privacy: 4.0.0-dev.0
  - profile: 1.1.0
  - provisioning_api: 1.22.0
  - recognize: 10.0.7
  - recommendations: 5.0.0-dev.0
  - related_resources: 3.0.0-dev.0
  - serverinfo: 4.0.0-dev.0
  - settings: 1.15.1
  - sharebymail: 1.22.0
  - spreed: 22.0.7
  - support: 4.0.0-dev.0
  - survey_client: 4.0.0-dev.0
  - systemtags: 1.22.0
  - text: 6.0.1
  - theming: 2.7.0
  - twofactor_backupcodes: 1.21.0
  - updatenotification: 1.22.0
  - user_status: 1.12.0
  - viewer: 5.0.0-dev.0
  - weather_status: 1.12.0
  - webhook_listeners: 1.3.0
  - workflowengine: 2.14.0
Disabled:
  - admin_audit: 1.22.0
  - app_api: 32.0.0 (installed 32.0.0)
  - encryption: 2.20.0
  - files_external: 1.24.0
  - suspicious_login: 10.0.0-dev.0
  - twofactor_nextcloud_notification: 6.0.0-dev.0
  - twofactor_totp: 14.0.0
  - user_ldap: 1.23.0
[apache@www www]$

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

{"reqId":"aUrnunMblAJ_n3ajAElZ2wAAABA","level":3,"time":"2025-12-23T19:04:26+00:00","remoteAddr":"192.168.32.4","user":"--","app":"index","method":"GET","url":"/nextcloud//nextcloud/data/.ncdata","message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","userAgent":"Nextcloud Server Crawler","version":"32.0.3.2","exception":{"Exception":"Exception","Message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","Code":0,"Trace":[{"file":"/nextcloud/www/lib/base.php","line":992,"function":"getRawPathInfo","class":"OC\\AppFramework\\Http\\Request","type":"->"},{"file":"/nextcloud/www/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/nextcloud/www/lib/private/AppFramework/Http/Request.php","Line":736,"message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","exception":{},"CustomMessage":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')"}}
{"reqId":"aUrnulvmjtRbyM0Ng_vMtAAAAMc","level":3,"time":"2025-12-23T19:04:26+00:00","remoteAddr":"192.168.32.4","user":"--","app":"index","method":"GET","url":"/nextcloud//nextcloud/data/.ncdata","message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","userAgent":"Nextcloud Server Crawler","version":"32.0.3.2","exception":{"Exception":"Exception","Message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","Code":0,"Trace":[{"file":"/nextcloud/www/lib/base.php","line":992,"function":"getRawPathInfo","class":"OC\\AppFramework\\Http\\Request","type":"->"},{"file":"/nextcloud/www/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/nextcloud/www/lib/private/AppFramework/Http/Request.php","Line":736,"message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","exception":{},"CustomMessage":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')"}}
{"reqId":"aUrpLFziVbuE70oO3H8yygAAAJQ","level":3,"time":"2025-12-23T19:10:36+00:00","remoteAddr":"192.168.32.4","user":"--","app":"index","method":"GET","url":"/nextcloud//nextcloud/data/.ncdata","message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","userAgent":"Nextcloud Server Crawler","version":"32.0.3.2","exception":{"Exception":"Exception","Message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","Code":0,"Trace":[{"file":"/nextcloud/www/lib/base.php","line":992,"function":"getRawPathInfo","class":"OC\\AppFramework\\Http\\Request","type":"->"},{"file":"/nextcloud/www/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/nextcloud/www/lib/private/AppFramework/Http/Request.php","Line":736,"message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","exception":{},"CustomMessage":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')"}}
{"reqId":"aUrpLFziVbuE70oO3H8yywAAAI0","level":3,"time":"2025-12-23T19:10:36+00:00","remoteAddr":"192.168.32.4","user":"--","app":"index","method":"GET","url":"/nextcloud//nextcloud/data/.ncdata","message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","userAgent":"Nextcloud Server Crawler","version":"32.0.3.2","exception":{"Exception":"Exception","Message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","Code":0,"Trace":[{"file":"/nextcloud/www/lib/base.php","line":992,"function":"getRawPathInfo","class":"OC\\AppFramework\\Http\\Request","type":"->"},{"file":"/nextcloud/www/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/nextcloud/www/lib/private/AppFramework/Http/Request.php","Line":736,"message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","exception":{},"CustomMessage":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')"}}
{"reqId":"aUrta3MblAJ_n3ajAElaLAAAABE","level":3,"time":"2025-12-23T19:28:43+00:00","remoteAddr":"192.168.32.4","user":"--","app":"index","method":"GET","url":"/nextcloud//nextcloud/data/.ncdata","message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","userAgent":"Nextcloud Server Crawler","version":"32.0.3.2","exception":{"Exception":"Exception","Message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","Code":0,"Trace":[{"file":"/nextcloud/www/lib/base.php","line":992,"function":"getRawPathInfo","class":"OC\\AppFramework\\Http\\Request","type":"->"},{"file":"/nextcloud/www/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/nextcloud/www/lib/private/AppFramework/Http/Request.php","Line":736,"message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","exception":{},"CustomMessage":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')"}}
{"reqId":"aUrta3MblAJ_n3ajAElaLQAAAA8","level":3,"time":"2025-12-23T19:28:43+00:00","remoteAddr":"192.168.32.4","user":"--","app":"index","method":"GET","url":"/nextcloud//nextcloud/data/.ncdata","message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","userAgent":"Nextcloud Server Crawler","version":"32.0.3.2","exception":{"Exception":"Exception","Message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","Code":0,"Trace":[{"file":"/nextcloud/www/lib/base.php","line":992,"function":"getRawPathInfo","class":"OC\\AppFramework\\Http\\Request","type":"->"},{"file":"/nextcloud/www/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/nextcloud/www/lib/private/AppFramework/Http/Request.php","Line":736,"message":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')","exception":{},"CustomMessage":"The requested uri(/nextcloud/nextcloud/data/.ncdata) cannot be processed by the script '/nc/index.php')"}}

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions