Steps to reproduce
- share some file to a userA
- for whatever reason the file gets deleted/moved eg from the filesystem
- userA 's client will try to get this file from the server as the share is still valid
- do the usuall stuff occ files:scan --all and occ maintenance:repair to fix this issue
- share is still active and the file is not acceable via the webui to even delete the share to userA
wanted behavior
- let occ maintenance:repair check all shares if they are still valid if not drop the share to get around this problem
Server configuration
Operating system: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64
Web server: Apache 2.4.25
Database: mysql 5.5.54
PHP version: 7.0.15-1~dotdeb+8.1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, apache2handler, igbinary, msgpack, mysqlnd, PDO, xml, apcu, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, imagick, intl, json, exif, mcrypt, memcached, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache
Nextcloud version: 11.0.1 (stable) - 11.0.1.2
Updated from an older Nextcloud/ownCloud or fresh install:
updated all the way from owncloud 9
Where did you install Nextcloud from:
the official website
List of activated apps:
App list
```
Enabled:
- activity: 2.4.1
- admin_audit: 1.1.0
- announcementcenter: 3.0.0
- apporder: 0.3.3
- audioplayer: 1.4.1
- calendar: 1.5.0
- comments: 1.1.0
- contacts: 1.5.2
- dav: 1.1.1
- direct_menu: 0.10.0
- federatedfilesharing: 1.1.1
- federation: 1.1.1
- files: 1.6.1
- files_automatedtagging: 1.1.1
- files_downloadactivity: 1.0.0
- files_external: 1.1.2
- files_pdfviewer: 1.0.1
- files_retention: 1.0.1
- files_sharing: 1.1.1
- files_texteditor: 2.2
- files_trashbin: 1.1.0
- files_versions: 1.4.0
- files_videoplayer: 1.0.0
- firstrunwizard: 2.0
- gallery: 16.0.0
- issuetemplate: 0.2.0
- logreader: 2.0.0
- lookup_server_connector: 1.0.0
- news: 10.1.0
- nextcloud_announcements: 1.0
- notifications: 1.0.1
- password_policy: 1.1.0
- previewgenerator: 1.0.1
- provisioning_api: 1.1.0
- serverinfo: 1.1.1
- sharebymail: 1.0.1
- systemtags: 1.1.3
- templateeditor: 0.2
- theming: 1.1.1
- twofactor_backupcodes: 1.0.0
- twofactor_totp: 1.0.0
- updatenotification: 1.1.1
- workflowengine: 1.1.1
Disabled:
- encryption
- external
- files_accesscontrol
- survey_client
- user_external
- user_ldap
- user_saml
</details>
**The content of config/config.php:**
<details>
<summary>Config report</summary>
{
"instanceid": "ocdwzxwi729i",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"cloud.magicbroccoli.de"
],
"datadirectory": "/var/www/magicbroccoli.de/data",
"version": "11.0.1.2",
"installed": true,
"cipher": "AES-256-CFB",
"dbtype": "mysql",
"dbname": "nextcloud",
"dbhost": "localhost",
"dbtableprefix": "oc_",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"mysql.utf8mb4": true,
"default_language": "de",
"defaultapp": "files",
"enable_avatars": true,
"allow_user_to_change_display_name": true,
"remember_login_cookie_lifetime": 864000,
"session_lifetime": 86400,
"auth.bruteforce.protection.enabled": true,
"updatechecker": true,
"updater.server.url": "https://updates.nextcloud.com/updater_server/",
"updater.release.channel": "stable",
"upgrade.disable-web": false,
"has_internet_connection": true,
"check_for_working_htaccess": true,
"check_for_working_webdav": true,
"check_for_working_wellknown_setup": true,
"appstoreenabled": true,
"appstoreurl": "https://apps.nextcloud.com/api/v0",
"appstore.experimental.enabled": true,
"appcodechecker": true,
"memcache.local": "\OC\Memcache\APCu",
"filelocking.enabled": "true",
"memcache.locking": "\OC\Memcache\Redis",
"redis": {
"host": "/var/run/redis/redis.sock",
"port": 0,
"timeout": 0
},
"overwrite.cli.url": "https://cloud.magicbroccoli.de",
"htaccess.RewriteBase": "/",
"trashbin_retention_obligation": "auto, 60",
"versions_retention_obligation": "auto",
"activity_expire_days": 80,
"filesystem_check_changes": 0,
"theme": "",
"maintenance": false,
"singleuser": false,
"data-fingerprint": "16b42c01070fc24c2086fb974eda1d16",
"mail_smtpmode": "smtp",
"mail_from_address": "nextcloud",
"mail_domain": "magicbroccoli.de",
"mail_smtpauth": 1,
"mail_smtpauthtype": "LOGIN",
"mail_smtphost": "mail.server-speed.net",
"mail_smtpport": "587",
"mail_smtpname": "REMOVED SENSITIVE VALUE",
"mail_smtppassword": "REMOVED SENSITIVE VALUE",
"mail_smtpsecure": "tls",
"logdateformat": "d.m.Y - H:i:s",
"logtimezone": "Europe/Berlin",
"log_rotate_size": 52428800,
"loglevel": 2,
"logfile": "/var/log/nextcloud/nextcloud.log",
"enable_previews": true,
"preview_max_x": 1024,
"preview_max_y": 1024,
"preview_max_filesize_image": 25,
"preview_libreoffice_path": "/usr/bin/libreoffice",
"preview_office_cl_parameters": " --headless --nologo --nofirststartwizard --invisible --norestore --convert-to pdf --outdir "
}
</details>
**Are you using external storage, if yes which one:** Array
(
[1] => \OC\Files\Storage\DAV
[2] => \OCA\Files_External\Lib\Storage\OwnCloud
[3] => \OCA\Files_External\Lib\Storage\Dropbox
[4] => \OCA\Files_External\Lib\Storage\Google
)
**Are you using encryption:** no
### Logs
#### Nextcloud log (data/nextcloud.log)
<details>
<summary>Nextcloud log</summary>
```
{"reqId":"2J0UMrgDbZ+cfEEMP4jJ","remoteAddr":"x.x.x.x","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 503 Failed to open file: File with id \\\"274188\\\" has not been found.\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\ServiceUnavailable\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/domain.org\\\/nextcloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(85): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->get()\\n#1 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpGet(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#2 \\\/var\\\/www\\\/domain.org\\\/nextcloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#3 \\\/var\\\/www\\\/domain.org\\\/nextcloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(479): Sabre\\\\Event\\\\EventEmitter->emit('method:GET', Array)\\n#4 \\\/var\\\/www\\\/domain.org\\\/nextcloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#5 \\\/var\\\/www\\\/domain.org\\\/nextcloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(60): Sabre\\\\DAV\\\\Server->exec()\\n#6 \\\/var\\\/www\\\/domain.org\\\/nextcloud\\\/remote.php(165): require_once('\\\/var\\\/www\\\/magicb...')\\n#7 {main}\",\"File\":\"\\\/var\\\/www\\\/domain.org\\\/nextcloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php\",\"Line\":314,\"User\":\"joerg\"}","level":4,"time":"13.02.2017 - 12:30:09","method":"GET","url":"\/remote.php\/webdav\/data\/textfile.txt","user":"user","version":"11.0.1.2"}
```
</details>
Steps to reproduce
wanted behavior
Server configuration
Operating system: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64
Web server: Apache 2.4.25
Database: mysql 5.5.54
PHP version: 7.0.15-1~dotdeb+8.1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, apache2handler, igbinary, msgpack, mysqlnd, PDO, xml, apcu, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, imagick, intl, json, exif, mcrypt, memcached, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache
Nextcloud version: 11.0.1 (stable) - 11.0.1.2
Updated from an older Nextcloud/ownCloud or fresh install:
updated all the way from owncloud 9
Where did you install Nextcloud from:
the official website
List of activated apps:
App list
``` Enabled: - activity: 2.4.1 - admin_audit: 1.1.0 - announcementcenter: 3.0.0 - apporder: 0.3.3 - audioplayer: 1.4.1 - calendar: 1.5.0 - comments: 1.1.0 - contacts: 1.5.2 - dav: 1.1.1 - direct_menu: 0.10.0 - federatedfilesharing: 1.1.1 - federation: 1.1.1 - files: 1.6.1 - files_automatedtagging: 1.1.1 - files_downloadactivity: 1.0.0 - files_external: 1.1.2 - files_pdfviewer: 1.0.1 - files_retention: 1.0.1 - files_sharing: 1.1.1 - files_texteditor: 2.2 - files_trashbin: 1.1.0 - files_versions: 1.4.0 - files_videoplayer: 1.0.0 - firstrunwizard: 2.0 - gallery: 16.0.0 - issuetemplate: 0.2.0 - logreader: 2.0.0 - lookup_server_connector: 1.0.0 - news: 10.1.0 - nextcloud_announcements: 1.0 - notifications: 1.0.1 - password_policy: 1.1.0 - previewgenerator: 1.0.1 - provisioning_api: 1.1.0 - serverinfo: 1.1.1 - sharebymail: 1.0.1 - systemtags: 1.1.3 - templateeditor: 0.2 - theming: 1.1.1 - twofactor_backupcodes: 1.0.0 - twofactor_totp: 1.0.0 - updatenotification: 1.1.1 - workflowengine: 1.1.1Disabled:
{
"instanceid": "ocdwzxwi729i",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"cloud.magicbroccoli.de"
],
"datadirectory": "/var/www/magicbroccoli.de/data",
"version": "11.0.1.2",
"installed": true,
"cipher": "AES-256-CFB",
"dbtype": "mysql",
"dbname": "nextcloud",
"dbhost": "localhost",
"dbtableprefix": "oc_",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"mysql.utf8mb4": true,
"default_language": "de",
"defaultapp": "files",
"enable_avatars": true,
"allow_user_to_change_display_name": true,
"remember_login_cookie_lifetime": 864000,
"session_lifetime": 86400,
"auth.bruteforce.protection.enabled": true,
"updatechecker": true,
"updater.server.url": "https://updates.nextcloud.com/updater_server/",
"updater.release.channel": "stable",
"upgrade.disable-web": false,
"has_internet_connection": true,
"check_for_working_htaccess": true,
"check_for_working_webdav": true,
"check_for_working_wellknown_setup": true,
"appstoreenabled": true,
"appstoreurl": "https://apps.nextcloud.com/api/v0",
"appstore.experimental.enabled": true,
"appcodechecker": true,
"memcache.local": "\OC\Memcache\APCu",
"filelocking.enabled": "true",
"memcache.locking": "\OC\Memcache\Redis",
"redis": {
"host": "/var/run/redis/redis.sock",
"port": 0,
"timeout": 0
},
"overwrite.cli.url": "https://cloud.magicbroccoli.de",
"htaccess.RewriteBase": "/",
"trashbin_retention_obligation": "auto, 60",
"versions_retention_obligation": "auto",
"activity_expire_days": 80,
"filesystem_check_changes": 0,
"theme": "",
"maintenance": false,
"singleuser": false,
"data-fingerprint": "16b42c01070fc24c2086fb974eda1d16",
"mail_smtpmode": "smtp",
"mail_from_address": "nextcloud",
"mail_domain": "magicbroccoli.de",
"mail_smtpauth": 1,
"mail_smtpauthtype": "LOGIN",
"mail_smtphost": "mail.server-speed.net",
"mail_smtpport": "587",
"mail_smtpname": "REMOVED SENSITIVE VALUE",
"mail_smtppassword": "REMOVED SENSITIVE VALUE",
"mail_smtpsecure": "tls",
"logdateformat": "d.m.Y - H:i:s",
"logtimezone": "Europe/Berlin",
"log_rotate_size": 52428800,
"loglevel": 2,
"logfile": "/var/log/nextcloud/nextcloud.log",
"enable_previews": true,
"preview_max_x": 1024,
"preview_max_y": 1024,
"preview_max_filesize_image": 25,
"preview_libreoffice_path": "/usr/bin/libreoffice",
"preview_office_cl_parameters": " --headless --nologo --nofirststartwizard --invisible --norestore --convert-to pdf --outdir "
}