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

root directory unvailable, if external storage is offline on 14.0.3 #11669

Closed
ManOki opened this issue Oct 8, 2018 · 16 comments
Closed

root directory unvailable, if external storage is offline on 14.0.3 #11669

ManOki opened this issue Oct 8, 2018 · 16 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: external storage needs info stale Ticket or PR with no recent activity

Comments

@ManOki
Copy link

ManOki commented Oct 8, 2018

Steps to reproduce

  1. Update to NC 14.0.3
  2. Setup External Storage, e.g. SMB share on NAS
  3. Shutdown NAS
  4. Login into nextcloud

Expected behaviour

See all my files. In NC13, I got a hint, if external storage was offline, but still able to see other regular nextcloud files.

Actual behaviour

I'm getting the error "This directory is unavailable, please check the logs or contact the administrator"

Server configuration

Operating system: Debian Stretch

Web server: Apache 2.4

Database: MariaDB

PHP version: PHP 7.0.30-0+deb9u1

Nextcloud version: 14.0.3

Updated from an older Nextcloud/ownCloud or fresh install: Updated from 13.0.6, 14.0.1, 14.0.2

Where did you install Nextcloud from: Via php updater.

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - accessibility: 1.0.1
  - activity: 2.7.0
  - admin_audit: 1.4.0
  - apporder: 0.5.0
  - audioplayer: 2.4.1
  - bookmarks_fulltextsearch: 1.0.0
  - calendar: 1.6.2
  - camerarawpreviews: 0.5.6
  - caniupdate: 0.2.0
  - checksum: 0.4.1
  - circles: 0.15.1
  - cloud_federation_api: 0.0.1
  - comments: 1.4.0
  - contacts: 2.1.6
  - dav: 1.6.0
  - federatedfilesharing: 1.4.0
  - federation: 1.4.0
  - files: 1.9.0
  - files_external: 1.5.0
  - files_fulltextsearch: 1.0.1
  - files_fulltextsearch_tesseract: 1.0.0
  - files_markdown: 2.0.4
  - files_pdfviewer: 1.3.2
  - files_retention: 1.3.0
  - files_rightclick: 0.8.4
  - files_sharing: 1.6.2
  - files_texteditor: 2.6.0
  - files_trashbin: 1.4.1
  - files_versions: 1.7.1
  - files_videoplayer: 1.3.0
  - fulltextsearch: 1.0.1
  - fulltextsearch_elasticsearch: 1.0.1
  - gallery: 18.1.0
  - groupfolders: 1.3.3
  - impersonate: 1.1.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.2.0
  - mail: 0.10.0
  - metadata: 0.7.0
  - oauth2: 1.2.1
  - password_policy: 1.4.0
  - previewgenerator: 1.1.0
  - provisioning_api: 1.4.0
  - quota_warning: 1.3.0
  - serverinfo: 1.4.0
  - sharebymail: 1.4.0
  - spreed: 4.0.0
  - support: 1.0.0
  - tasks: 0.9.7
  - theming: 1.5.0
  - twofactor_backupcodes: 1.3.1
  - updatenotification: 1.4.1
  - user_external: 0.4
  - workflowengine: 1.4.0
Disabled:
  - bruteforcesettings
  - encryption
  - external
  - firstrunwizard
  - keeweb
  - nextcloud_announcements
  - notifications
  - richdocuments
  - survey_client
  - systemtags
  - user_ldap

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "14.0.2.0",
        "updatechecker": false,
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "forcessl": true,
        "trusted_domains": [
            "domain1",
            "domain2",
            "domain3"
        ],
        "loglevel": 3,
        "logtimezone": "UTC",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "http:\/\/localhost\/nextcloud",
        "trashbin_retention_obligation": "auto",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "enable_previews": true,
        "preview_max_filesize_image": -1,
        "preview_libreoffice_path": "\/usr\/bin\/libreoffice",
        "preview_office_cl_parameters": " --headless --nologo --nofirststartwizard --invisible --norestore -convert-to pdf -outdir
",
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\Illustrator",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MSOffice2003",
            "OC\\Preview\\MSOffice2007",
            "OC\\Preview\\MSOfficeDoc",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\PDF",
            "OC\\Preview\\Photoshop",
            "OC\\Preview\\Postscript",
            "OC\\Preview\\StarOffice",
            "OC\\Preview\\SVG",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\Font"
        ],
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "maintenance": false,
        "theme": "",
        "defaultapp": "apporder",
        "htaccess.RewriteBase": "\/nextcloud",
        "overwritewebroot": "\/nextcloud",
        "updater.release.channel": "stable",
        "auth.bruteforce.protection.enabled": false
    }
}

Are you using external storage, if yes which one: SMB

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Firefox 62.0.2

Operating system:

Logs

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"JHr9HGzYLKjqZAYy5chP","level":4,"time":"2018-09-29T16:37:13+00:00","remoteAddr":"192.168.178.50","user":"user","app":"webdav","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/user\/","message":{"Exception":"Icewind\\SMB\\Exception\\InvalidArgumentException","Message":"Invalid request for \/Share\Folder (InvalidArgumentException)","Code":22,"Trace":[{"file":"\/var\/www\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeState.php","line":61,"function":"fromMap","class":"Icewind\\SMB\\Exception\\Exception","type":"::","args":[{"1":"Icewind\\SMB\\Exception\\ForbiddenException","2":"Icewind\\SMB\\Exception\\NotFoundException","13":"Icewind\\SMB\\Exception\\ForbiddenException","16":"Icewind\\SMB\\Exception\\FileInUseException","17":"Icewind\\SMB\\Exception\\AlreadyExistsException","20":"Icewind\\SMB\\Exception\\InvalidTypeException","21":"Icewind\\SMB\\Exception\\InvalidTypeException","22":"Icewind\\SMB\\Exception\\InvalidArgumentException","28":"Icewind\\SMB\\Exception\\OutOfSpaceException","39":"Icewind\\SMB\\Exception\\NotEmptyException","110":"Icewind\\SMB\\Exception\\TimedOutException","111":"Icewind\\SMB\\Exception\\ConnectionRefusedException","112":"Icewind\\SMB\\Exception\\HostDownException","113":"Icewind\\SMB\\Exception\\NoRouteToHostException"},22,"\/Share\Folder"]},{"file":"\/var\/www\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeState.php","line":73,"function":"handleError","class":"Icewind\\SMB\\Native\\NativeState","type":"->","args":["\/Share\Folder"]},{"file":"\/var\/www\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeState.php","line":181,"function":"testResult","class":"Icewind\\SMB\\Native\\NativeState","type":"->","args":[false,"smb:\/\/nas\/other\/Share\Folder"]},{"file":"\/var\/www\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeShare.php","line":113,"function":"stat","class":"Icewind\\SMB\\Native\\NativeState","type":"->","args":["smb:\/\/nas\/other\/Share\Folder"]},{"file":"\/var\/www\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeShare.php","line":109,"function":"getStat","class":"Icewind\\SMB\\Native\\NativeShare","type":"->","args":["\/Share\Folder"]},{"file":"\/var\/www\/nextcloud\/apps\/files_external\/lib\/Lib\/Storage\/SMB.php","line":164,"function":"stat","class":"Icewind\\SMB\\Native\\NativeShare","type":"->","args":["\/Share\Folder"]},{"file":"\/var\/www\/nextcloud\/apps\/files_external\/lib\/Lib\/Storage\/SMB.php","line":492,"function":"getFileInfo","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->","args":["\/Share\Folder"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Common.php","line":109,"function":"filetype","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->","args":["Folder"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Common.php","line":143,"function":"is_dir","class":"OC\\Files\\Storage\\Common","type":"->","args":["Folder"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Common.php","line":163,"function":"isCreatable","class":"OC\\Files\\Storage\\Common","type":"->","args":["Folder"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php","line":214,"function":"getPermissions","class":"OC\\Files\\Storage\\Common","type":"->","args":["Folder"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Availability.php","line":230,"function":"getPermissions","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["Folder"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php","line":214,"function":"getPermissions","class":"OC\\Files\\Storage\\Wrapper\\Availability","type":"->","args":["Folder"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/PermissionsMask.php","line":79,"function":"getPermissions","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["Folder"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Jail.php","line":218,"function":"getPermissions","class":"OC\\Files\\Storage\\Wrapper\\PermissionsMask","type":"->","args":["Folder"]},{"file":"\/var\/www\/nextcloud\/apps\/files_sharing\/lib\/SharedStorage.php","line":198,"function":"getPermissions","class":"OC\\Files\\Storage\\Wrapper\\Jail","type":"->","args":[""]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php","line":214,"function":"getPermissions","class":"OCA\\Files_Sharing\\SharedStorage","type":"->","args":[""]},{"file":"\/var\/www\/nextcloud\/apps\/files_sharing\/lib\/Cache.php","line":145,"function":"getPermissions","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":[""]},{"file":"\/var\/www\/nextcloud\/apps\/files_sharing\/lib\/Cache.php","line":113,"function":"formatCacheEntry","class":"OCA\\Files_Sharing\\Cache","type":"->","args":[{"__class__":"OC\\Files\\Cache\\CacheEntry"},""]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Files\/FileInfo.php","line":359,"function":"get","class":"OCA\\Files_Sharing\\Cache","type":"->","args":[""]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Files\/FileInfo.php","line":206,"function":"updateEntryfromSubMounts","class":"OC\\Files\\FileInfo","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Files\/Node\/Node.php","line":189,"function":"getMTime","class":"OC\\Files\\FileInfo","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/apps\/dav\/lib\/Connector\/Sabre\/Node.php","line":156,"function":"getMTime","class":"OC\\Files\\Node\\Node","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php","line":794,"function":"getLastModified","class":"OCA\\DAV\\Connector\\Sabre\\Node","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/PropFind.php","line":98,"function":"Sabre\\DAV\\{closure}","class":"Sabre\\DAV\\CorePlugin","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php","line":798,"function":"handle","class":"Sabre\\DAV\\PropFind","type":"->","args":["{DAV:}getlastmodified",{"__class__":"Closure"}]},{"function":"propFind","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\DAV\\PropFind"},{"__class__":"OCA\\DAV\\Files\\FilesHome"}]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"Sabre\\DAV\\CorePlugin"},"propFind"],[{"__class__":"Sabre\\DAV\\PropFind"},{"__class__":"OCA\\DAV\\Files\\FilesHome"}]]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":1059,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["propFind",[{"__class__":"Sabre\\DAV\\PropFind"},{"__class__":"OCA\\DAV\\Files\\FilesHome"}]]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":981,"function":"getPropertiesByNode","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\DAV\\PropFind"},{"__class__":"OCA\\DAV\\Files\\FilesHome"}]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":1666,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->","args":["files\/user",["{DAV:}getlastmodified"],0]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php","line":359,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Generator"},false]},{"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https:\/\/myhost.com\/nextcloud\/remote.php\/dav\/files\/user\/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"Sabre\\DAV\\CorePlugin"},"httpPropFind"],[{"absoluteUrl":"https:\/\/myhost.com\/nextcloud\/remote.php\/dav\/files\/user\/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["method:PROPFIND",[{"absoluteUrl":"https:\/\/myhost.com\/nextcloud\/remote.php\/dav\/files\/user\/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"absoluteUrl":"https:\/\/myhost.com\/nextcloud\/remote.php\/dav\/files\/user\/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"\/var\/www\/nextcloud\/apps\/dav\/lib\/Server.php","line":293,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/remote.php","line":163,"args":["\/var\/www\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php"],"function":"require_once"}],"File":"\/var\/www\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Exception\/Exception.php","Line":30,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"14.0.1.1"}

Browser log

Browser log
undefined pageModifier.js:585:9
Mutations-Ereignisse sollten nicht mehr verwendet werden. Verwenden Sie MutationObserver stattdessen. pageModifier.js:81:20
JQMIGRATE: Migrate is installed, version 1.4.0 core.js:7:542
Missing plural form in language file merged-template-prepend.js:3841:4
unreachable code after return statement[Weitere Informationen] merged.js:1502:4
window.controllers/Controllers sollte nicht mehr verwendet werden. Verwenden Sie es nicht für die Browser-Erkennung. merged.js:2176
New search handler registered search.js:66:4
Source-Map-Fehler: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Ressourcen-Adresse: https://myhost.com/nextcloud/apps/files_markdown/build/editor.js?v=4e9842ef-1
Source-Map-Adresse: editor.js.map[Weitere Informationen]
querying Whats New data was successful: nocontent merged-template-prepend.js:4478:4
undefined merged-template-prepend.js:4479:4
</details>
@ManOki
Copy link
Author

ManOki commented Oct 8, 2018

see also #11545

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #3789 (External storage), #4730 (Storage), #11550 (Directory is unavailable for user after upgrade to 14.0.1.), and #11545 (root directory unvailable, if external storage is offline on 14.0.1).

@ManOki ManOki changed the title root directory unvailable, if external storage is offline on 14.0.2RC1 root directory unvailable, if external storage is offline on 14.0.2 Oct 11, 2018
@ManOki
Copy link
Author

ManOki commented Oct 11, 2018

still the same with 14.0.2

@ManOki ManOki changed the title root directory unvailable, if external storage is offline on 14.0.2 root directory unvailable, if external storage is offline on 14.0.3 Oct 16, 2018
@ManOki
Copy link
Author

ManOki commented Oct 16, 2018

still the same with 14.0.3

@ManOki
Copy link
Author

ManOki commented Oct 16, 2018

@icewind1991 SMB is your domain, afaik. Can you help or do you know someone, who can?

I see two different errors at logging in nextcloud. One is InvalidArgumentException for webdav, the other is TimedOutException for no app in context.

webdav
Icewind\SMB\Exception\InvalidArgumentException: Invalid request for /Share/Folder (InvalidArgumentException)
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 61:
Icewind\SMB\Exception\Exception::fromMap({ 1: "Icewin ... "}, 22, "/Share/Folder")
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 73:
Icewind\SMB\Native\NativeState->handleError("/Share/Folder")
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 181:
Icewind\SMB\Native\NativeState->testResult(false, "smb://file- ... e")
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php - line 113:
Icewind\SMB\Native\NativeState->stat("smb://file- ... e")
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php - line 109:
Icewind\SMB\Native\NativeShare->getStat("/Share/Folder")
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 164:
Icewind\SMB\Native\NativeShare->stat("/Share/Folder")
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 492:
OCA\Files_External\Lib\Storage\SMB->getFileInfo("/Share/Folder")
/var/www/nextcloud/lib/private/Files/Storage/Common.php - line 109:
OCA\Files_External\Lib\Storage\SMB->filetype("Folder")
/var/www/nextcloud/lib/private/Files/Storage/Common.php - line 143:
OC\Files\Storage\Common->is_dir("Folder")
/var/www/nextcloud/lib/private/Files/Storage/Common.php - line 163:
OC\Files\Storage\Common->isCreatable("Folder")
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 214:
OC\Files\Storage\Common->getPermissions("Folder")
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php - line 230:
OC\Files\Storage\Wrapper\Wrapper->getPermissions("Folder")
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 214:
OC\Files\Storage\Wrapper\Availability->getPermissions("Folder")
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php - line 79:
OC\Files\Storage\Wrapper\Wrapper->getPermissions("Folder")
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Jail.php - line 219:
OC\Files\Storage\Wrapper\PermissionsMask->getPermissions("Folder")
/var/www/nextcloud/apps/files_sharing/lib/SharedStorage.php - line 198:
OC\Files\Storage\Wrapper\Jail->getPermissions("")
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 214:
OCA\Files_Sharing\SharedStorage->getPermissions("")
/var/www/nextcloud/apps/files_sharing/lib/Cache.php - line 148:
OC\Files\Storage\Wrapper\Wrapper->getPermissions("")
/var/www/nextcloud/apps/files_sharing/lib/Cache.php - line 114:
OCA\Files_Sharing\Cache->formatCacheEntry(OC\Files\Cache\CacheEntry {}, "")
/var/www/nextcloud/lib/private/Files/FileInfo.php - line 359:
OCA\Files_Sharing\Cache->get("")
/var/www/nextcloud/lib/private/Files/FileInfo.php - line 206:
OC\Files\FileInfo->updateEntryfromSubMounts()
/var/www/nextcloud/lib/private/Files/Node/Node.php - line 189:
OC\Files\FileInfo->getMTime()
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Node.php - line 156:
OC\Files\Node\Node->getMTime()
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 794:
OCA\DAV\Connector\Sabre\Node->getLastModified()
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php - line 98:
Sabre\DAV\CorePlugin->Sabre\DAV\{closure}("*** sensiti ... *")
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 798:
Sabre\DAV\PropFind->handle("{DAV:}getlastmodified", Closure {})
Sabre\DAV\CorePlugin->propFind(Sabre\DAV\PropFind {}, OCA\DAV\Files\FilesHome {})
/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:
call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\DAV\ ... }])
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1059:
Sabre\Event\EventEmitter->emit("propFind", [ Sabre\DAV\ ... }])
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 981:
Sabre\DAV\Server->getPropertiesByNode(Sabre\DAV\PropFind {}, OCA\DAV\Files\FilesHome {})
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1666:
Sabre\DAV\Server->getPropertiesIteratorForPath("files/aaron", [ "{DAV:}getlastmodified"], 0)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 359:
Sabre\DAV\Server->generateMultiStatus(Generator {}, false)
Sabre\DAV\CorePlugin->httpPropFind(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:
call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:
Sabre\Event\EventEmitter->emit("method:PROPFIND", [ Sabre\HTTP ... }])
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
/var/www/nextcloud/apps/dav/lib/Server.php - line 293:
Sabre\DAV\Server->exec()
/var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:
OCA\DAV\Server->exec()
/var/www/nextcloud/remote.php - line 163:
require_once("/var/www/ne ... p")
no app in context
Icewind\SMB\Exception\TimedOutException: /Share/Folder
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 61:
Icewind\SMB\Exception\Exception::fromMap({ 1: "Icewin ... "}, 110, "/Share/Folder")
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 73:
Icewind\SMB\Native\NativeState->handleError("/Share/Folder")
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 181:
Icewind\SMB\Native\NativeState->testResult(false, "smb://file- ... e")
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php - line 113:
Icewind\SMB\Native\NativeState->stat("smb://file- ... e")
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php - line 109:
Icewind\SMB\Native\NativeShare->getStat("/Share/Folder")
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 164:
Icewind\SMB\Native\NativeShare->stat("/Share/Folder")
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 492:
OCA\Files_External\Lib\Storage\SMB->getFileInfo("/Share/Folder")
/var/www/nextcloud/lib/private/Files/Storage/Common.php - line 109:
OCA\Files_External\Lib\Storage\SMB->filetype("Folder")
/var/www/nextcloud/lib/private/Files/Storage/Common.php - line 143:
OC\Files\Storage\Common->is_dir("Folder")
/var/www/nextcloud/lib/private/Files/Storage/Common.php - line 163:
OC\Files\Storage\Common->isCreatable("Folder")
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 214:
OC\Files\Storage\Common->getPermissions("Folder")
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php - line 230:
OC\Files\Storage\Wrapper\Wrapper->getPermissions("Folder")
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 214:
OC\Files\Storage\Wrapper\Availability->getPermissions("Folder")
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php - line 79:
OC\Files\Storage\Wrapper\Wrapper->getPermissions("Folder")
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Jail.php - line 219:
OC\Files\Storage\Wrapper\PermissionsMask->getPermissions("Folder")
/var/www/nextcloud/apps/files_sharing/lib/SharedStorage.php - line 198:
OC\Files\Storage\Wrapper\Jail->getPermissions("")
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 214:
OCA\Files_Sharing\SharedStorage->getPermissions("")
/var/www/nextcloud/apps/files_sharing/lib/Cache.php - line 148:
OC\Files\Storage\Wrapper\Wrapper->getPermissions("")
/var/www/nextcloud/apps/files_sharing/lib/Cache.php - line 114:
OCA\Files_Sharing\Cache->formatCacheEntry(OC\Files\Cache\CacheEntry {}, "")
/var/www/nextcloud/lib/private/Files/FileInfo.php - line 359:
OCA\Files_Sharing\Cache->get("")
/var/www/nextcloud/lib/private/Files/FileInfo.php - line 206:
OC\Files\FileInfo->updateEntryfromSubMounts()
/var/www/nextcloud/lib/private/Files/Node/Node.php - line 189:
OC\Files\FileInfo->getMTime()
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Node.php - line 156:
OC\Files\Node\Node->getMTime()
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 794:
OCA\DAV\Connector\Sabre\Node->getLastModified()
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php - line 98:
Sabre\DAV\CorePlugin->Sabre\DAV\{closure}("*** sensiti ... *")
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 798:
Sabre\DAV\PropFind->handle("{DAV:}getlastmodified", Closure {})
Sabre\DAV\CorePlugin->propFind(Sabre\DAV\PropFind {}, OCA\DAV\Files\FilesHome {})
/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:
call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\DAV\ ... }])
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1059:
Sabre\Event\EventEmitter->emit("propFind", [ Sabre\DAV\ ... }])
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 981:
Sabre\DAV\Server->getPropertiesByNode(Sabre\DAV\PropFind {}, OCA\DAV\Files\FilesHome {})
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1666:
Sabre\DAV\Server->getPropertiesIteratorForPath("files/aaron", [ "{DAV:}getlastmodified"], 0)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 359:
Sabre\DAV\Server->generateMultiStatus(Generator {}, false)
Sabre\DAV\CorePlugin->httpPropFind(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:
call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:
Sabre\Event\EventEmitter->emit("method:PROPFIND", [ Sabre\HTTP ... }])
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
/var/www/nextcloud/apps/dav/lib/Server.php - line 293:
Sabre\DAV\Server->exec()
/var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:
OCA\DAV\Server->exec()
/var/www/nextcloud/remote.php - line 163:
require_once("/var/www/ne ... p")

They seem to be specific SMB Exceptions, which are not properly handled/catched anymore, so NC14 fails the complete files app-functionality in my case.

@ManOki
Copy link
Author

ManOki commented Dec 12, 2018

still valid for NC15

@skjnldsv skjnldsv added the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label Jun 12, 2019
@skjnldsv
Copy link
Member

As I cannot reproduce the original issue anymore on nc16+, I will close this ticket. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen.

@ManOki
Copy link
Author

ManOki commented Aug 25, 2019

still valid for NC16.0.4

i'm also not able to connect/mount via webdav.

@skjnldsv i'm not able to reopen this issue (probably no permission)

@kesselb kesselb reopened this Aug 25, 2019
@kesselb
Copy link
Contributor

kesselb commented Aug 25, 2019

Mind to try #16836?

@skjnldsv
Copy link
Member

@ManOki sorry about this!
Somehow I cannot reproduce the issue. Having an external storage offline still works fine here (tried smb, sftp)

@ManOki
Copy link
Author

ManOki commented Aug 26, 2019

this pull does solve the problem as described in this issue. the error message is gone and i'm able to see my files. the missing smb share directory is just empty and i'm getting an error message, if i try to open it.

but the problem still persists in another situation: user a owns a smb mountpoint /smb and shares a directory inside /smb/files to user b via nextcloud. if the smb is offline and user b signs into nextcloud, the error still occurs.

exception
Icewind\SMB\Exception\InvalidArgumentException: Invalid request for /smb/files (InvalidArgumentException)

    /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 62:

    Icewind\SMB\Exception\Exception::fromMap({ 1: "Icewin ... "}, 22, "/smb/files")

    /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 74:

    Icewind\SMB\Native\NativeState->handleError("/smb/files")

    /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 184:

    Icewind\SMB\Native\NativeState->testResult(false, "smb://file- ... e")

    /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php - line 133:

    Icewind\SMB\Native\NativeState->stat("smb://file- ... e")

    /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php - line 112:

    Icewind\SMB\Native\NativeShare->getStat("/smb/files")

    /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 170:

    Icewind\SMB\Native\NativeShare->stat("/smb/files")

    /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 518:

    OCA\Files_External\Lib\Storage\SMB->getFileInfo("/smb/files")

    /var/www/nextcloud/lib/private/Files/Storage/Common.php - line 110:

    OCA\Files_External\Lib\Storage\SMB->filetype("files")

    /var/www/nextcloud/lib/private/Files/Storage/Common.php - line 144:

    OC\Files\Storage\Common->is_dir("files")

    /var/www/nextcloud/lib/private/Files/Storage/Common.php - line 164:

    OC\Files\Storage\Common->isCreatable("files")

    /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 215:

    OC\Files\Storage\Common->getPermissions("files")

    /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php - line 230:

    OC\Files\Storage\Wrapper\Wrapper->getPermissions("files")

    /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 215:

    OC\Files\Storage\Wrapper\Availability->getPermissions("files")

    /var/www/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php - line 79:

    OC\Files\Storage\Wrapper\Wrapper->getPermissions("files")

    /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Jail.php - line 220:

    OC\Files\Storage\Wrapper\PermissionsMask->getPermissions("files")

    /var/www/nextcloud/apps/files_sharing/lib/SharedStorage.php - line 199:

    OC\Files\Storage\Wrapper\Jail->getPermissions("")

    /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 215:

    OCA\Files_Sharing\SharedStorage->getPermissions("")

    /var/www/nextcloud/apps/files_sharing/lib/Cache.php - line 148:

    OC\Files\Storage\Wrapper\Wrapper->getPermissions("")

    /var/www/nextcloud/apps/files_sharing/lib/Cache.php - line 114:

    OCA\Files_Sharing\Cache->formatCacheEntry(OC\Files\Cache\CacheEntry {}, "")

    /var/www/nextcloud/lib/private/Files/FileInfo.php - line 371:

    OCA\Files_Sharing\Cache->get("")

    /var/www/nextcloud/lib/private/Files/FileInfo.php - line 218:

    OC\Files\FileInfo->updateEntryfromSubMounts("*** sensiti ... *")

    /var/www/nextcloud/lib/private/Files/Node/Node.php - line 190:

    OC\Files\FileInfo->getMTime()

    /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Node.php - line 160:

    OC\Files\Node\Node->getMTime()

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 790:

    OCA\DAV\Connector\Sabre\Node->getLastModified()

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php - line 98:

    Sabre\DAV\CorePlugin->Sabre\DAV\{closure}("*** sensiti ... *")

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 794:

    Sabre\DAV\PropFind->handle("{DAV:}getlastmodified", Closure {})

    <<closure>>

    Sabre\DAV\CorePlugin->propFind(Sabre\DAV\PropFind {}, OCA\DAV\Files\FilesHome {})

    /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:

    call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\DAV\ ... }])

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1059:

    Sabre\Event\EventEmitter->emit("propFind", [ Sabre\DAV\ ... }])

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 981:

    Sabre\DAV\Server->getPropertiesByNode(Sabre\DAV\PropFind {}, OCA\DAV\Files\FilesHome {})

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1666:

    Sabre\DAV\Server->getPropertiesIteratorForPath("files/aaron", [ "{DAV:}getlastmodified"], 0)

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 355:

    Sabre\DAV\Server->generateMultiStatus(Generator {}, false)

    <<closure>>

    Sabre\DAV\CorePlugin->httpPropFind(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})

    /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:

    call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:

    Sabre\Event\EventEmitter->emit("method:PROPFIND", [ Sabre\HTTP ... }])

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:

    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})

    /var/www/nextcloud/apps/dav/lib/Server.php - line 316:

    Sabre\DAV\Server->exec()

    /var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:

    OCA\DAV\Server->exec()

    /var/www/nextcloud/remote.php - line 163:

    require_once("/var/www/ne ... p")

the only workaround is, that user a has to sign in and refresh the files view to get nextcloud noticed, that the smb is offline. in this case, user b is able to see his files, but there is no (not even empty) directory for the missing share in the regular files view. there is just an entry inside the shareoverview, which leads to the error message "operation is not allowed", if clicked.

shall i open another issue for this?

@kesselb
Copy link
Contributor

kesselb commented Aug 26, 2019

@blizzz fyi

@blizzz
Copy link
Member

blizzz commented Aug 26, 2019

@skjnldsv tried with smbclient php module? the behaviour is different whether the module is used or the wrapper around the cli command.

@ManOki let me try to reproduce your scenario. If I succeed with that I think it makes sense to fix it with the PR.

@blizzz
Copy link
Member

blizzz commented Aug 26, 2019

@ManOki i cannot reproduce your described scenario with my setup (i tried a couple of things). Could you open a new issue, please?

@ManOki
Copy link
Author

ManOki commented Aug 27, 2019

@blizzz I opened up another issue #16880

@ghost
Copy link

ghost commented Sep 26, 2019

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

@ghost ghost added the stale Ticket or PR with no recent activity label Sep 26, 2019
@ghost ghost closed this as completed Oct 10, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: external storage needs info stale Ticket or PR with no recent activity
Projects
None yet
Development

No branches or pull requests

5 participants