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

Internal Server Error after attempting to do "occ files:scan" #14681

Closed
tmason101 opened this issue Mar 4, 2015 · 6 comments · Fixed by #14682
Closed

Internal Server Error after attempting to do "occ files:scan" #14681

tmason101 opened this issue Mar 4, 2015 · 6 comments · Fixed by #14682
Labels
Milestone

Comments

@tmason101
Copy link

Hello,
After upgrading to latest ownCloud version (8.0.0 or 8.0.1) the files for various users no longer appears. All passwords worked normally and the ownCloud instance otherwise responded normally.

In attempting to resolve the issue by running "occ files:scan --all" the ownCloud instance now responds with an "Internal Server Issue".

The server logs report the following:

{"reqId":"VPa8kse8zJwAAxPulDwAAAAB","remoteAddr":"[[[MY IP]]]","app":"PHP","message":"Declaration of OC\\Files\\ObjectStore\\NoopScanner::scanFile() should be compatible with OC\\Files\\Cache\\Scanner::scanFile($file, $reuseExisting = 0, $parentId = -1, $cacheData = NULL) at [[[WEBROOT]]]\/owncloud\/lib\/private\/files\/objectstore\/noopscanner.php#74","level":3,"time":"March 04, 2015 03:04:34","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/"}
{"reqId":"VPa8kse8zJwAAxPulDwAAAAB","remoteAddr":"[[[MY IP]]]","app":"PHP","message":"Declaration of OC\\Files\\ObjectStore\\NoopScanner::scanChildren() should be compatible with OC\\Files\\Cache\\Scanner::scanChildren($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $folderData = NULL) at [[[WEBROOT]]]\/owncloud\/lib\/private\/files\/objectstore\/noopscanner.php#74","level":3,"time":"March 04, 2015 03:04:34","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/"}
{"reqId":"VPa8sce8zJwAAxQyljkAAAGC","remoteAddr":"[[[MY IP]]]","app":"PHP","message":"Declaration of OC\\Files\\ObjectStore\\NoopScanner::scanFile() should be compatible with OC\\Files\\Cache\\Scanner::scanFile($file, $reuseExisting = 0, $parentId = -1, $cacheData = NULL) at [[[WEBROOT]]]\/owncloud\/lib\/private\/files\/objectstore\/noopscanner.php#74","level":3,"time":"March 04, 2015 03:05:05","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/"}
{"reqId":"VPa8sce8zJwAAxQyljkAAAGC","remoteAddr":"[[[MY IP]]]","app":"PHP","message":"Declaration of OC\\Files\\ObjectStore\\NoopScanner::scanChildren() should be compatible with OC\\Files\\Cache\\Scanner::scanChildren($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $folderData = NULL) at [[[WEBROOT]]]\/owncloud\/lib\/private\/files\/objectstore\/noopscanner.php#74","level":3,"time":"March 04, 2015 03:05:05","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/"} 

What can I do to get rid of the message and restore the files?

All data still resides in the data folder for the respective users.

Thank you.

@nickvergessen
Copy link
Contributor

You would need to do the following modifications:
https://github.com/owncloud/core/pull/14682/files

@tmason101
Copy link
Author

Thank you for the fast reply! This does solve the error message.

However, I still don't see any files in the ownCloud system even though the data directory certainly contains files for all of the defined users. The directory structure is exactly the same as it was from the previously working instance.

Is there a way to force ownCloud to read the data outside of using occ files:scan --all?

The command reports no errors but the system is never populated with the files that clearly exists.

@DeepDiver1975
Copy link
Member

let's keep this open until this is fixed in stable8 branch

@tmason101
Copy link
Author

What about the files not appearing issue; do I open a separate issue for that?

@nickvergessen
Copy link
Contributor

Yes, create a new issue please

@DeepDiver1975
Copy link
Member

closing this - backport has been merged: #14686

@lock lock bot locked as resolved and limited conversation to collaborators Aug 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants