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

files_versions expiration job trying to read filesize of (already) deleted files #28717

Closed
solracsf opened this issue Sep 4, 2021 · 0 comments · Fixed by #28768
Closed

files_versions expiration job trying to read filesize of (already) deleted files #28717

solracsf opened this issue Sep 4, 2021 · 0 comments · Fixed by #28768
Labels
2. developing Work in progress bug

Comments

@solracsf
Copy link
Member

solracsf commented Sep 4, 2021

  • NC 21.0.4

After set 'versions_retention_obligation' => 'auto, 7', observe in the logs (hundreds of lines for different files) in a daily baisis:

{
   "reqId":"eTxII8UuevYHseynuf6M",
   "level":3,
   "time":"2021-09-04T21:14:17+00:00",
   "remoteAddr":"",
   "user":"--",
   "app":"PHP",
   "method":"",
   "url":"--",
   "message":{
      "Exception":"Error",
      "Message":"filesize(): stat failed for /data/user/files_versions/folder/file.txt.v1628691872 at /lib/private/Files/Storage/Local.php#227",
      "Code":0,
      "Trace":[
         {
            "function":"onError",
            "class":"OC\\Log\\ErrorHandler",
            "type":"::",
            "args":[
               2,
               "filesize(): stat failed for /data/user/files_versions/folder/file.txt.v1628691872",
               "/lib/private/Files/Storage/Local.php",
               227,
               {
                  "path":"files_versions/folder/file.txt.v1628691872",
                  "fullPath":"/data/user/files_versions/folder/file.txt.v1628691872"
               }
            ]
         },
         {
            "file":"/lib/private/Files/Storage/Local.php",
            "line":227,
            "function":"filesize",
            "args":[
               "/data/user/files_versions/folder/file.txt.v1628691872"
            ]
         },
         {
            "file":"/lib/private/Files/Storage/Wrapper/Wrapper.php",
            "line":157,
            "function":"filesize",
            "class":"OC\\Files\\Storage\\Local",
            "type":"->",
            "args":[
               "files_versions/folder/file.txt.v1628691872"
            ]
         },
         {
            "file":"/lib/private/Files/Storage/Wrapper/Wrapper.php",
            "line":157,
            "function":"filesize",
            "class":"OC\\Files\\Storage\\Wrapper\\Wrapper",
            "type":"->",
            "args":[
               "files_versions/folder/file.txt.v1628691872"
            ]
         },
         {
            "file":"/lib/private/Files/View.php",
            "line":1172,
            "function":"filesize",
            "class":"OC\\Files\\Storage\\Wrapper\\Wrapper",
            "type":"->",
            "args":[
               "files_versions/folder/file.txt.v1628691872"
            ]
         },
         {
            "file":"/lib/private/Files/View.php",
            "line":415,
            "function":"basicOperation",
            "class":"OC\\Files\\View",
            "type":"->",
            "args":[
               "filesize",
               "files_versions/folder/file.txt.v1628691872"
            ]
         },
         {
            "file":"/apps/files_versions/lib/Storage.php",
            "line":587,
            "function":"filesize",
            "class":"OC\\Files\\View",
            "type":"->",
            "args":[
               "files_versions///folder/file.txt.v1628691872"
            ]
         },
         {
            "file":"/apps/files_versions/lib/Storage.php",
            "line":498,
            "function":"getAllVersions",
            "class":"OCA\\Files_Versions\\Storage",
            "type":"::",
            "args":[
               "user"
            ]
         },
         {
            "file":"/apps/files_versions/lib/BackgroundJob/ExpireVersions.php",
            "line":66,
            "function":"expireOlderThanMaxForUser",
            "class":"OCA\\Files_Versions\\Storage",
            "type":"::",
            "args":[
               "user"
            ]
         },
         {
            "file":"/lib/private/User/Manager.php",
            "line":646,
            "function":"OCA\\Files_Versions\\BackgroundJob\\{closure}",
            "class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions",
            "type":"->",
            "args":[
               "*** sensitive parameters replaced ***"
            ]
         },
         {
            "file":"/apps/files_versions/lib/BackgroundJob/ExpireVersions.php",
            "line":67,
            "function":"callForSeenUsers",
            "class":"OC\\User\\Manager",
            "type":"->",
            "args":[
               {
                  "__class__":"Closure"
               }
            ]
         },
         {
            "file":"/lib/private/BackgroundJob/Job.php",
            "line":52,
            "function":"run",
            "class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions",
            "type":"->",
            "args":[
               null
            ]
         },
         {
            "file":"/lib/private/BackgroundJob/TimedJob.php",
            "line":59,
            "function":"execute",
            "class":"OC\\BackgroundJob\\Job",
            "type":"->",
            "args":[
               {
                  "__class__":"OC\\BackgroundJob\\JobList"
               },
               {
                  "__class__":"OC\\Log"
               }
            ]
         },
         {
            "file":"/cron.php",
            "line":128,
            "function":"execute",
            "class":"OC\\BackgroundJob\\TimedJob",
            "type":"->",
            "args":[
               {
                  "__class__":"OC\\BackgroundJob\\JobList"
               },
               {
                  "__class__":"OC\\Log"
               }
            ]
         }
      ],
      "File":"/lib/private/Log/ErrorHandler.php",
      "Line":92,
      "CustomMessage":"--"
   },
   "userAgent":"--",
   "version":"21.0.4.1",
   "id":"6133e1aab3887"
}
@solracsf solracsf added bug 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Sep 4, 2021
@solracsf solracsf changed the title files_versions expiration job trying to read filesize of deleted files? files_versions expiration job trying to read filesize of (already) deleted files Sep 9, 2021
@szaimen szaimen added 2. developing Work in progress and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Sep 9, 2021
@szaimen szaimen reopened this Oct 3, 2022
@szaimen szaimen closed this as completed Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants