Skip to content

[Bug]: Failed to write file contents: File with id "…" has not been found #31695

Closed

Description

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

We have 2.440 Failed to write file contents: File with id "…" has not been found errors in our log file in the last 14 days

Steps to reproduce

  1. People use nextcloud

Expected behavior

Nothing happens in the error log

Installation method

Manual installation

Operating system

Debian/Ubuntu

PHP engine version

PHP 7.4

Web server

Apache (supported)

Database engine version

MariaDB

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

Updated from a minor version (ex. 22.2.3 to 22.2.4)

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

No response

List of activated Apps

c.nc.c

Nextcloud Signing status

No response

Nextcloud Logs

{
  "reqId": "PNGH1WcDNh8aMHfpSpxG",
  "level": 4,
  "time": "2022-03-24T09:41:26+00:00",
  "remoteAddr": "",
  "user": "",
  "app": "webdav",
  "method": "GET",
  "url": "/remote.php/dav/files/…",
  "message": "Failed to write file contents: File with id \"3079700\" has not been found.",
  "userAgent": "Mozilla/5.0 (Windows) mirall/…",
  "version": "23.0.3.2",
  "exception": {
    "Exception": "Sabre\\DAV\\Exception\\ServiceUnavailable",
    "Message": "Failed to write file contents: File with id \"3079700\" has not been found.",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/apps/dav/lib/Connector/Sabre/File.php",
        "line": 465,
        "function": "convertToSabreException",
        "class": "OCA\\DAV\\Connector\\Sabre\\File",
        "type": "->"
      },
      {
        "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
        "line": 85,
        "function": "get",
        "class": "OCA\\DAV\\Connector\\Sabre\\File",
        "type": "->"
      },
      {
        "file": "/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "httpGet",
        "class": "Sabre\\DAV\\CorePlugin",
        "type": "->"
      },
      {
        "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 472,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 253,
        "function": "invokeMethod",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 321,
        "function": "start",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/apps/dav/lib/Server.php",
        "line": 339,
        "function": "exec",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/apps/dav/appinfo/v2/remote.php",
        "line": 35,
        "function": "exec",
        "class": "OCA\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/remote.php",
        "line": 166,
        "args": [
          "/var/www/html/apps/dav/appinfo/v2/remote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/html/apps/dav/lib/Connector/Sabre/File.php",
    "Line": 708,
    "Previous": {
      "Exception": "OCP\\Files\\StorageNotAvailableException",
      "Message": "File with id \"3079700\" has not been found.",
      "Code": 0,
      "Trace": [
        {
          "file": "/var/www/html/apps/files_sharing/lib/SharedStorage.php",
          "line": 444,
          "function": "acquireLock",
          "class": "OC\\Files\\Storage\\FailedStorage",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php",
          "line": 610,
          "function": "acquireLock",
          "class": "OCA\\Files_Sharing\\SharedStorage",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Files/View.php",
          "line": 1964,
          "function": "acquireLock",
          "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Files/View.php",
          "line": 2079,
          "function": "lockPath",
          "class": "OC\\Files\\View",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Files/View.php",
          "line": 1151,
          "function": "lockFile",
          "class": "OC\\Files\\View",
          "type": "->"
        },
        {
          "file": "/var/www/html/lib/private/Files/View.php",
          "line": 1005,
          "function": "basicOperation",
          "class": "OC\\Files\\View",
          "type": "->"
        },
        {
          "file": "/var/www/html/apps/dav/lib/Connector/Sabre/File.php",
          "line": 463,
          "function": "fopen",
          "class": "OC\\Files\\View",
          "type": "->"
        },
        {
          "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
          "line": 85,
          "function": "get",
          "class": "OCA\\DAV\\Connector\\Sabre\\File",
          "type": "->"
        },
        {
          "file": "/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
          "line": 89,
          "function": "httpGet",
          "class": "Sabre\\DAV\\CorePlugin",
          "type": "->"
        },
        {
          "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
          "line": 472,
          "function": "emit",
          "class": "Sabre\\DAV\\Server",
          "type": "->"
        },
        {
          "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
          "line": 253,
          "function": "invokeMethod",
          "class": "Sabre\\DAV\\Server",
          "type": "->"
        },
        {
          "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
          "line": 321,
          "function": "start",
          "class": "Sabre\\DAV\\Server",
          "type": "->"
        },
        {
          "file": "/var/www/html/apps/dav/lib/Server.php",
          "line": 339,
          "function": "exec",
          "class": "Sabre\\DAV\\Server",
          "type": "->"
        },
        {
          "file": "/var/www/html/apps/dav/appinfo/v2/remote.php",
          "line": 35,
          "function": "exec",
          "class": "OCA\\DAV\\Server",
          "type": "->"
        },
        {
          "file": "/var/www/html/remote.php",
          "line": 166,
          "args": [
            "/var/www/html/apps/dav/appinfo/v2/remote.php"
          ],
          "function": "require_once"
        }
      ],
      "File": "/var/www/html/lib/private/Files/Storage/FailedStorage.php",
      "Line": 197,
      "Hint": "Storage is temporarily not available",
      "Previous": {
        "Exception": "OCP\\Files\\NotFoundException",
        "Message": "File with id \"3079700\" has not been found.",
        "Code": 0,
        "Trace": [
          {
            "file": "/var/www/html/apps/files_sharing/lib/SharedStorage.php",
            "line": 134,
            "function": "getPath",
            "class": "OC\\Files\\View",
            "type": "->"
          },
          {
            "file": "/var/www/html/apps/files_sharing/lib/SharedStorage.php",
            "line": 503,
            "function": "init",
            "class": "OCA\\Files_Sharing\\SharedStorage",
            "type": "->"
          },
          {
            "file": "/var/www/html/lib/private/Files/Storage/Wrapper/Jail.php",
            "line": 482,
            "function": "getWrapperStorage",
            "class": "OCA\\Files_Sharing\\SharedStorage",
            "type": "->"
          },
          {
            "file": "/var/www/html/apps/files_sharing/lib/SharedStorage.php",
            "line": 443,
            "function": "resolvePath",
            "class": "OC\\Files\\Storage\\Wrapper\\Jail",
            "type": "->"
          },
          {
            "file": "/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php",
            "line": 610,
            "function": "acquireLock",
            "class": "OCA\\Files_Sharing\\SharedStorage",
            "type": "->"
          },
          {
            "file": "/var/www/html/lib/private/Files/View.php",
            "line": 1964,
            "function": "acquireLock",
            "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
            "type": "->"
          },
          {
            "file": "/var/www/html/lib/private/Files/View.php",
            "line": 2079,
            "function": "lockPath",
            "class": "OC\\Files\\View",
            "type": "->"
          },
          {
            "file": "/var/www/html/lib/private/Files/View.php",
            "line": 1151,
            "function": "lockFile",
            "class": "OC\\Files\\View",
            "type": "->"
          },
          {
            "file": "/var/www/html/lib/private/Files/View.php",
            "line": 1005,
            "function": "basicOperation",
            "class": "OC\\Files\\View",
            "type": "->"
          },
          {
            "file": "/var/www/html/apps/dav/lib/Connector/Sabre/File.php",
            "line": 463,
            "function": "fopen",
            "class": "OC\\Files\\View",
            "type": "->"
          },
          {
            "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
            "line": 85,
            "function": "get",
            "class": "OCA\\DAV\\Connector\\Sabre\\File",
            "type": "->"
          },
          {
            "file": "/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
            "line": 89,
            "function": "httpGet",
            "class": "Sabre\\DAV\\CorePlugin",
            "type": "->"
          },
          {
            "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
            "line": 472,
            "function": "emit",
            "class": "Sabre\\DAV\\Server",
            "type": "->"
          },
          {
            "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
            "line": 253,
            "function": "invokeMethod",
            "class": "Sabre\\DAV\\Server",
            "type": "->"
          },
          {
            "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php",
            "line": 321,
            "function": "start",
            "class": "Sabre\\DAV\\Server",
            "type": "->"
          },
          {
            "file": "/var/www/html/apps/dav/lib/Server.php",
            "line": 339,
            "function": "exec",
            "class": "Sabre\\DAV\\Server",
            "type": "->"
          },
          {
            "file": "/var/www/html/apps/dav/appinfo/v2/remote.php",
            "line": 35,
            "function": "exec",
            "class": "OCA\\DAV\\Server",
            "type": "->"
          },
          {
            "file": "/var/www/html/remote.php",
            "line": 166,
            "args": [
              "/var/www/html/apps/dav/appinfo/v2/remote.php"
            ],
            "function": "require_once"
          }
        ],
        "File": "/var/www/html/lib/private/Files/View.php",
        "Line": 1773
      }
    },
    "CustomMessage": "--"
  },
  "id": "623c3f5d8fc46"
}

Additional info

No response

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions