OCP\Files\NotFoundException after upgrade to 24.0.10 with OVH (swift) external primary storage

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 24.0.10.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 18.04.06 LTS
Apache or nginx version (eg, Apache 2.4.25): Nginx 1.22.1
PHP version (eg, 7.4): 8.1 fpm

The issue you are facing:

  • Tipee: OCP\Files\NotFoundException
  • Code: 0
  • Message: object urn:oid:202807 not found in object store
  • File: /var/www/labfoto.it/nextcloud/lib/private/Files/ObjectStore/Swift.php
  • Riga: 120

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Upgrade from 24.0.3
  2. clean cookies, local storage etc etc
  3. login

The output of your Nextcloud log in Admin > Logging:


Errore interno del server

Il server non è stato in grado di completare la tua richiesta.

Se ciò si verifca nuovamente, invia i seguenti dettagli tecnici all'amministratore del server.

Ulteriori dettagli sono disponibili nel log del server.
Dettagli tecnici

    Indirizzo remoto: 82.84.60.121
    ID richiesta: TxvBPTq2WE5kLaLwtHx3
    Tipo: OCP\Files\NotFoundException
    Codice: 0
    Messaggio: object urn:oid:202807 not found in object store
    File: /var/www/labfoto.it/nextcloud/lib/private/Files/ObjectStore/Swift.php
    Riga: 120


Traccia

#0 /var/www/labfoto.it/nextcloud/lib/private/Files/ObjectStore/ObjectStoreStorage.php(312): OC\Files\ObjectStore\Swift->readObject()
#1 /var/www/labfoto.it/nextcloud/lib/private/Files/Storage/Common.php(197): OC\Files\ObjectStore\ObjectStoreStorage->fopen()
#2 /var/www/labfoto.it/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(247): OC\Files\Storage\Common->file_get_contents()
#3 /var/www/labfoto.it/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php(264): OC\Files\Storage\Wrapper\Wrapper->file_get_contents()
#4 /var/www/labfoto.it/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(247): OC\Files\Storage\Wrapper\Availability->file_get_contents()
#5 /var/www/labfoto.it/nextcloud/lib/private/Files/View.php(1187): OC\Files\Storage\Wrapper\Wrapper->file_get_contents()
#6 /var/www/labfoto.it/nextcloud/lib/private/Files/View.php(606): OC\Files\View->basicOperation()
#7 /var/www/labfoto.it/nextcloud/lib/private/Files/Node/File.php(56): OC\Files\View->file_get_contents()
#8 /var/www/labfoto.it/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php(90): OC\Files\Node\File->getContent()
#9 /var/www/labfoto.it/nextcloud/lib/private/Template/IconsCacher.php(109): OC\Files\SimpleFS\SimpleFile->getContent()
#10 /var/www/labfoto.it/nextcloud/lib/private/Template/SCSSCacher.php(339): OC\Template\IconsCacher->setIconsCss()
#11 /var/www/labfoto.it/nextcloud/lib/private/Template/SCSSCacher.php(177): OC\Template\SCSSCacher->cache()
#12 /var/www/labfoto.it/nextcloud/lib/private/Template/CSSResourceLocator.php(109): OC\Template\SCSSCacher->process()
#13 /var/www/labfoto.it/nextcloud/lib/private/Template/CSSResourceLocator.php(61): OC\Template\CSSResourceLocator->cacheAndAppendScssIfExist()
#14 /var/www/labfoto.it/nextcloud/lib/private/Template/ResourceLocator.php(78): OC\Template\CSSResourceLocator->doFind()
#15 /var/www/labfoto.it/nextcloud/lib/private/TemplateLayout.php(342): OC\Template\ResourceLocator->find()
#16 /var/www/labfoto.it/nextcloud/lib/private/TemplateLayout.php(250): OC\TemplateLayout::findStylesheetFiles()
#17 /var/www/labfoto.it/nextcloud/lib/private/legacy/OC_Template.php(185): OC\TemplateLayout->__construct()
#18 /var/www/labfoto.it/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php(204): OC_Template->fetchPage()
#19 /var/www/labfoto.it/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(178): OCP\AppFramework\Http\TemplateResponse->render()
#20 /var/www/labfoto.it/nextcloud/lib/private/AppFramework/App.php(172): OC\AppFramework\Http\Dispatcher->dispatch()
#21 /var/www/labfoto.it/nextcloud/lib/private/Route/Router.php(298): OC\AppFramework\App::main()
#22 /var/www/labfoto.it/nextcloud/lib/base.php(1030): OC\Route\Router->match()
#23 /var/www/labfoto.it/nextcloud/index.php(36): OC::handleRequest()
#24 {main}


The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

PASTE HERE

The output of your Apache/nginx/system log in /var/log/____:

2023/03/14 13:32:59 [error] 14026#14026: *819287 upstream prematurely closed FastCGI request while reading upstream, client: 82.84.60.121, server: labfoto.associazioneroccabrivio.com, request: "GET /apps/theming/image/logo?useSvg=1&v=35 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm-labfoto.sock:", host: "labfoto.associazioneroccabrivio.com"
2023/03/14 13:33:00 [error] 14026#14026: *819287 upstream prematurely closed FastCGI request while reading upstream, client: 82.84.60.121, server: labfoto.associazioneroccabrivio.com, request: "GET /apps/theming/favicon?v=35 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm-labfoto.sock:", host: "labfoto.associazioneroccabrivio.com"
2023/03/14 13:33:01 [error] 14026#14026: *819287 upstream prematurely closed FastCGI request while reading upstream, client: 82.84.60.121, server: labfoto.associazioneroccabrivio.com, request: "GET /apps/theming/icon?v=35 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm-labfoto.sock:", host: "labfoto.associazioneroccabrivio.com"

Relevant config file details

{
    "system": {
        "debug": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "labfoto.associazioneroccabrivio.com",
            "localhost"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "24.0.10.1",
        "overwrite.cli.url": "https:\/\/labfoto.associazioneroccabrivio.com",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "logfile": "\/var\/www\/labfoto.it\/nextcloud\/data\/nextcloud.log",
        "loglevel": 0,
        "objectstore": {
            "class": "OC\\Files\\ObjectStore\\Swift",
            "arguments": {
                "autocreate": true,
                "user": {
                    "name": "***REMOVED SENSITIVE VALUE***",
                    "password": "***REMOVED SENSITIVE VALUE***",
                    "domain": {
                        "name": "Default"
                    }
                },
                "scope": {
                    "project": {
                        "name": "4877444813151481",
                        "domain": {
                            "name": "Default"
                        }
                    }
                },
                "serviceName": "swift",
                "region": "GRA",
                "url": "https:\/\/auth.cloud.ovh.net\/v3",
                "bucket": "foto-condivise"
            }
        },
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_smtpport": "25",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "theme": "",
        "default_language": "it",
        "default_phone_region": "IT",
        "preview_max_x": 2000,
        "_lrkwz_preview_max_y": 250,
        "_lrkwz_preview_max_scale_factor": 1,
        "memories.exiftool": "\/var\/www\/labfoto.it\/nextcloud\/apps\/memories\/exiftool-bin\/exiftool-amd64-glibc"
    },
...