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

Exception is shown in owncloud.log when we have several versions of a file #33028

Closed
davitol opened this issue Oct 5, 2018 · 3 comments
Closed

Comments

@davitol
Copy link
Contributor

davitol commented Oct 5, 2018

Seems that a BackgroundJob throws this exception when we have several versions

Tested with oC 10.0.10 and files_versions: 1.3.0

{"reqId":"oXXc1qy9ZGYDguFHbcvA","level":3,"time":"2018-10-05T09:12:04+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\\\/casr.txt.v1538730472 not found while trying to get owner\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Filesystem.php(961): OC\\\\Files\\\\View->getOwner('\\\/casr.txt.v1538...')\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Preview.php(1311): OC\\\\Files\\\\Filesystem::getOwner('\\\/casr.txt.v1538...')\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Preview.php(1299): OC\\\\Preview::post_delete(Array, 'files\\\/')\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/hook.php(105): OC\\\\Preview::post_delete_versions(Array)\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_versions\\\/lib\\\/Storage.php(767): OC_Hook::emit('\\\\\\\\OCP\\\\\\\\Versions', 'delete', Array)\\n#5 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_versions\\\/lib\\\/Command\\\/Expire.php(60): OCA\\\\Files_Versions\\\\Storage::expire('\\\/casr.txt', 'admin')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Command\\\/CommandJob.php(34): OCA\\\\Files_Versions\\\\Command\\\\Expire->handle()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/BackgroundJob\\\/Job.php(57): OC\\\\Command\\\\CommandJob->run('O:33:\\\"OCA\\\\\\\\Files...')\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/BackgroundJob\\\/QueuedJob.php(42): OC\\\\BackgroundJob\\\\Job->execute(Object(OC\\\\BackgroundJob\\\\JobList), Object(OC\\\\Log))\\n#9 \\\/var\\\/www\\\/owncloud\\\/cron.php(120): OC\\\\BackgroundJob\\\\QueuedJob->execute(Object(OC\\\\BackgroundJob\\\\JobList), Object(OC\\\\Log))\\n#10 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php\",\"Line\":1717}"}
{"reqId":"oXXc1qy9ZGYDguFHbcvA","level":1,"time":"2018-10-05T09:12:04+00:00","remoteAddr":"","user":"--","app":"admin_audit","method":"--","url":"--","message":"Version delete \"\/admin\/files\/casr.txt.v1538730472\", trigger: versions quota exceeded [CLI]"}
{"reqId":"oXXc1qy9ZGYDguFHbcvA","level":1,"time":"2018-10-05T09:12:04+00:00","remoteAddr":"","user":"--","app":"files_versions","method":"--","url":"--","message":"Expire: \/casr.txt.v1538730472"}
@ownclouders
Copy link
Contributor

GitMate.io thinks the contributors most likely able to help are @ownclouders, and @PVince81.

Possibly related issues are #20015 (Owncloud log file), #4366 (owncloud log file permissions), #21656 (An exception log message is shown in owncloud.log file when login with an Active Directory user.), #4503 (owncloud losing files!), and #25131 (Log is written in owncloud.log file when creating a folder).

@Linda-chan
Copy link

Looks like I have same issue. Just set up 10.0.10.4 from tarball on Ubuntu Server 18.04.1 LTS using official guide. During install I've had some issues with APCu so I thought it's because I misconfigured something trying to get away from all these warnings. But now I switched it to Redis and issue still there.

Interesting thing. Log messages are contain file names, but no files with these names are present on disk in data directory.

Another thing is synchronisation goes without problems. Looks like it's something with file versions.

@PVince81
Copy link
Contributor

PVince81 commented Nov 2, 2018

the issue with "not found while trying to get owner" is already known and is related to preview expiration.

closing as duplicate of #32346

@PVince81 PVince81 closed this as completed Nov 2, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Nov 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants