corruption cleanup? #3173
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
bug
feature: external storage
feature: filesystem
Steps to reproduce
Expected behaviour
It should sync to the local computer, and I expect the client to keep going even if it encounters an error, and give me a detailed report as to what I should do to correct the error
Actual behaviour
The client gives a "internal server error" error message or An error has occured, operation canceled" or "missing file"and never finishes syncing the folder.
Bonus info
It occurred to me that the file listing inside nextcloud might not match the actual files on the attached smb shares. So, I tried to do a
sudo -u www-data php occ files:scan --path="mrpotato/files/_Budget"
on a smb share for one user to see if it would correct. I stopped it after 20 minutes running and it said this :+---------+-------+--------------+ | Folders | Files | Elapsed time | +---------+-------+--------------+ | 1 | 5 | 00:20:53 | +---------+-------+--------------+
Is this expected behavior? 5 files scanned in 20 minutes?
Also, I notice that the table oc_filecache has 1203617 rows. Looks big to me (about 600GB of files from SMB storage attached to nextcloud). Not sure if this is relevant.
Server configuration
Operating system:
Ubuntu 14.04.5 LTS
Web server:
Apache/2.4.7 (Ubuntu)
Database:
mysql Ver 14.14 Distrib 5.5.53, for debian-linux-gnu (x86_64) using readline 6.3
PHP version:
PHP Version 5.6.29-1+deb.sury.org~trusty+1
Nextcloud version: (see Nextcloud admin page)
11.0.1 (stable)
Updated from an older Nextcloud/ownCloud or fresh install:
Updated
Where did you install Nextcloud from:
The internet
Signing status:
Signing status
List of activated apps:
App list
The content of config/config.php:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
SMB
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
ActiveDirectory
LDAP configuration (delete this part if not used)
LDAP config
Client configuration
Browser:
N/A
Operating system:
windows 7 64bits
Logs
Web server error log
Web server error log
``` no errors ```Nextcloud log (data/nextcloud.log)
Nextcloud log
``` {"reqId":"BEVrjWH8QLG\/9Nc7uPiB","remoteAddr":"24.37.113.93","app":"webdav","message":"Exception: {\"Message\":\"Invalid request for \\\/Copie de Budgets - MCLAREN NBOC VLC.xlsm (NotFoundException)\",\"Exception\":\"Icewind\\\\SMB\\\\Exception\\\\NotFoundException\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php(398): Icewind\\\\SMB\\\\Parser->checkForError(Array, '\\\/Copie de Budge...')\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php(140): Icewind\\\\SMB\\\\Share->parseOutput(Array, '\\\/Copie de Budge...')\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php(129): Icewind\\\\SMB\\\\Share->stat('\\\/Copie de Budge...')\\n#3 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php(171): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->getFileInfo('Copie de Budget...')\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Common.php(175): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->stat('Copie de Budget...')\\n#5 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php(230): OC\\\\Files\\\\Storage\\\\Common->filemtime('Copie de Budget...')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(374): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->hasUpdated('Copie de Budget...', 1484851887)\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Availability.php(395): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->hasUpdated('Copie de Budget...', 1484851887)\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(374): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Availability->hasUpdated('Copie de Budget...', 1484851887)\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(374): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->hasUpdated('Copie de Budget...', 1484851887)\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(374): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->hasUpdated('Copie de Budget...', 1484851887)\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Watcher.php(126): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->hasUpdated('Copie de Budget...', 1484851887)\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(1304): OC\\\\Files\\\\Cache\\\\Watcher->needsUpdate('Copie de Budget...', Object(OC\\\\Files\\\\Cache\\\\CacheEntry))\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(1342): OC\\\\Files\\\\View->getCacheEntry(Object(OCA\\\\Files_Trashbin\\\\Storage), 'Copie de Budget...', '_budget_operas\\\/...')\\n#14 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/ObjectTree.php(160): OC\\\\Files\\\\View->getFileInfo('_budget_operas\\\/...')\\n#15 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(81): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\ObjectTree->getNodeForPath('_budget_operas\\\/...')\\n#16 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpGet(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#17 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#18 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(479): Sabre\\\\Event\\\\EventEmitter->emit('method:GET', Array)\\n#19 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#20 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(60): Sabre\\\\DAV\\\\Server->exec()\\n#21 \\\/var\\\/www\\\/owncloud\\\/remote.php(165): require_once('\\\/var\\\/www\\\/ownclo...')\\n#22 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Parser.php\",\"Line\":57,\"User\":\"mrpotato\"}","level":4,"time":"2017-01-19T13:56:57-05:00","method":"GET","url":"\/remote.php\/webdav\/_budget_operas\/Copie%20de%20Budgets%20-%20MCLAREN%20NBOC%20VLC.xlsm","user":"mrpotato","version":"11.0.1.2"} root@owncloud:/var/www/owncloud/data# ```Browser log
Browser log
``` Insert your browser log here, this could for example include:a) The javascript console log
b) The network log
c) ...
The text was updated successfully, but these errors were encountered: