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

Account won't load with broken federation share #6689

Closed
djohnson1865 opened this issue Aug 11, 2020 · 2 comments
Closed

Account won't load with broken federation share #6689

djohnson1865 opened this issue Aug 11, 2020 · 2 comments
Labels
bug needs info Waiting for info from user(s). Issues with this label will auto-stale.

Comments

@djohnson1865
Copy link

Steps to reproduce

  1. Create a federated share of a folder from instance A to instance B
  2. Shut down instance A
  3. Attempt to load account with bad share on instance B into android app

Expected behaviour

  • Account should load and sync valid files/folders

Actual behaviour

  • Account authenticates, but can never sync files. Always shows as "No files here"

Server configuration detail

Operating system: Linux 5.6.0-1-amd64 #1 SMP Debian 5.6.7-1 (2020-04-29) x86_64

Webserver: nginx/1.14.0 (fpm-fcgi)

Database: pgsql PostgreSQL 12.2 (Debian 12.2-2.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit

PHP version:

7.2.24-0ubuntu0.18.04.6
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, cgi-fcgi, mysqlnd, PDO, xml, apcu, apc, bcmath, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, imagick, intl, json, exif, mysqli, pdo_mysql, pdo_pgsql, pgsql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache

Nextcloud version: 18.0.7 - 18.0.7.1

Updated from an older Nextcloud/ownCloud or fresh install: Updated

Where did you install Nextcloud from: Tar from website

List of activated apps
Enabled:
 - accessibility: 1.4.0
 - activity: 2.11.0
 - admin_audit: 1.8.0
 - audioplayer: 2.11.2
 - bruteforcesettings: 1.6.0
 - calendar: 2.0.3
 - cloud_federation_api: 1.1.0
 - comments: 1.8.0
 - contacts: 3.3.0
 - dav: 1.14.0
 - federatedfilesharing: 1.8.0
 - federation: 1.8.0
 - files: 1.13.1
 - files_external: 1.9.0
 - files_pdfviewer: 1.7.0
 - files_sharing: 1.10.1
 - files_trashbin: 1.8.0
 - files_versions: 1.11.0
 - files_videoplayer: 1.7.0
 - firstrunwizard: 2.7.0
 - gallery: 18.5.0
 - groupfolders: 6.0.6
 - impersonate: 1.5.2
 - issuetemplate: 0.6.0
 - logreader: 2.3.0
 - lookup_server_connector: 1.6.0
 - mail: 1.4.1
 - news: 14.1.11
 - nextcloud_announcements: 1.7.0
 - notes: 3.6.1
 - notifications: 2.6.0
 - oauth2: 1.6.0
 - onlyoffice: 4.3.0
 - password_policy: 1.8.0
 - photos: 1.0.0
 - privacy: 1.2.0
 - provisioning_api: 1.8.0
 - serverinfo: 1.8.0
 - settings: 1.0.0
 - sharebymail: 1.8.0
 - socialsharing_email: 2.1.0
 - spreed: 8.0.10
 - support: 1.1.1
 - survey_client: 1.6.0
 - systemtags: 1.8.0
 - tasks: 0.13.3
 - text: 2.0.0
 - theming: 1.9.0
 - twofactor_backupcodes: 1.7.0
 - twofactor_totp: 4.1.3
 - twofactor_u2f: 5.1.0
 - updatenotification: 1.8.0
 - viewer: 1.2.0
 - workflowengine: 2.0.0
Disabled:
 - breezedark
 - encryption
 - files_rightclick
 - recommendations
 - richdocuments
 - riotchat
 - social
 - user_ldap

Configuration (config/config.php)
{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "nextcloud.devonrjohnson.stream"
    ],
    "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "overwrite.cli.url": "https:\/\/nextcloud.devonrjohnson.stream\/",
    "dbtype": "pgsql",
    "version": "18.0.7.1",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "forwarded_for_headers": [
        "HTTP_X_FORWARDED",
        "HTTP_FORWARDED_FOR"
    ],
    "installed": true,
    "mail_smtpmode": "smtp",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "25",
    "mysql.utf8mb4": true,
    "maintenance": false,
    "memcache.local": "\\OC\\Memcache\\APCu",
    "theme": "",
    "loglevel": 0,
    "logfile": "\/var\/log\/Nextcloud\/nextcloud.log",
    "log_rotate_size": 104857600,
    "mail_smtpdebug": "true",
    "updater.release.channel": "stable",
    "twofactor_enforced": "false",
    "twofactor_enforced_groups": [],
    "twofactor_enforced_excluded_groups": [],
    "mail_sendmailmode": "smtp",
    "app_install_overwrite": [
        "files_reader",
        "social"
    ]
}

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: false

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

Client configuration

Android version: Tested on Android 7 and 9

Device Model: Tested on several devices

Nextcloud app version: Tested with 3.12.1 and dev 20200808

Nextcloud Server version: 18.0.7

Logs

Web server error log
Reproducing does not produce error in web server
Nextcloud log
[webdav] Debug: OCP\Files\StorageNotAvailableException:  at <<closure>>

 0. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php line 242
    OC\Files\Storage\Wrapper\Availability->checkAvailability()
 1. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 225
    OC\Files\Storage\Wrapper\Availability->file_exists("Readme.md")
 2. /var/www/html/nextcloud/lib/private/Files/View.php line 1335
    OC\Files\Storage\Wrapper\Wrapper->file_exists("Readme.md")
 3. /var/www/html/nextcloud/lib/private/Files/View.php line 1384
    OC\Files\View->getCacheEntry(OCA\Files_Trashb ... l}, "Readme.md", "/Devon/files/Comics Test/Readme.md")
 4. /var/www/html/nextcloud/lib/private/Files/Node/Root.php line 200
    OC\Files\View->getFileInfo("/Devon/files/Comics Test/Readme.md")
 5. /var/www/html/nextcloud/lib/private/Files/Node/Folder.php line 137
    OC\Files\Node\Root->get("/Devon/files/Comics Test/Readme.md")
 6. /var/www/html/nextcloud/lib/private/Files/Node/Folder.php line 146
    OC\Files\Node\Folder->get("Readme.md")
 7. /var/www/html/nextcloud/apps/text/lib/Service/WorkspaceService.php line 28
    OC\Files\Node\Folder->nodeExists("Readme.md")
 8. /var/www/html/nextcloud/apps/text/lib/DAV/WorkspacePlugin.php line 101
    OCA\Text\Service\WorkspaceService->getFile(OC\Files\Node\Folder {})
 9. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php line 98
    OCA\Text\DAV\WorkspacePlugin->OCA\Text\DAV\{closure}("*** sensitive parameters replaced ***")
10. /var/www/html/nextcloud/apps/text/lib/DAV/WorkspacePlugin.php line 107
    Sabre\DAV\PropFind->handle("{http://nextcloud.org/ns}rich-workspace", Closure {})
11. <<closure>>
    OCA\Text\DAV\WorkspacePlugin->propFind(Sabre\DAV\PropFind {}, OCA\DAV\Connector\Sabre\Directory {})
12. /var/www/html/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
    call_user_func_array([OCA\Text\DAV\Wo ... "], [Sabre\DAV\PropF ... }])
13. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1059
    Sabre\Event\EventEmitter->emit("propFind", [Sabre\DAV\PropF ... }])
14. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 981
    Sabre\DAV\Server->getPropertiesByNode(Sabre\DAV\PropFind {}, OCA\DAV\Connector\Sabre\Directory {})
15. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1666
    Sabre\DAV\Server->getPropertiesIteratorForPath("", ["{http://ownclo ... "], 1)
16. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 355
    Sabre\DAV\Server->generateMultiStatus(Generator {}, false)
17. <<closure>>
    Sabre\DAV\CorePlugin->httpPropFind(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
18. /var/www/html/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
    call_user_func_array([Sabre\DAV\CorePlugin {},"httpPropFind"], [Sabre\HTTP\Requ ... }])
19. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 479
    Sabre\Event\EventEmitter->emit("method:PROPFIND", [Sabre\HTTP\Requ ... }])
20. /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 254
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
21. /var/www/html/nextcloud/apps/dav/appinfo/v1/webdav.php line 82
    Sabre\DAV\Server->exec()
22. /var/www/html/nextcloud/remote.php line 165
    require_once("/var/www/html/n ... p")

PROPFIND /remote.php/webdav/
from xxx.xxx.xxx.xxx by XXXXXXX at 2020-08-11T01:15:54+00:00


[no app in context] Debug: Deprecated event type for {"[object] (OCP\SabrePluginEvent)":{"*statusCode":200,"*message":"","*server":{"[object] (OCA\DAV\Connector\Sabre\Server)":{"tree":"[object] (OCA\DAV\Connector\Sabre\ObjectTree)","*baseUri":"/remote.php/webdav/","httpResponse":"[object] (Sabre\HTTP\Response)","httpRequest":"[object] (Sabre\HTTP\Request)","sapi":"[object] (Sabre\HTTP\Sapi)","*plugins":[],"transactionType":null,"protectedProperties":{"...":"Over 20 items, aborting normalization"},"debugExceptions":false,"resourceTypeMapping":[],"enablePropfindDepthInfinity":true,"xml":"[object] (Sabre\DAV\Xml\Service)","*listeners":{"...":"Over 20 items, aborting normalization"},"*logger":null}},"Symfony\Contracts\EventDispatcher\EventpropagationStopped":false}}: null

PROPFIND /remote.php/webdav/
from xxx.xxx.xxx.xxx by XXXXX at 2020-08-11T01:15:54+00:00
Browser log

N/A

@tobiasKaminsky
Copy link
Member

@nextcloud/server-triage this seems to be a bug on server, shall I move it?

@tobiasKaminsky tobiasKaminsky added the needs info Waiting for info from user(s). Issues with this label will auto-stale. label Aug 28, 2020
@kesselb
Copy link
Contributor

kesselb commented Aug 28, 2020

I would close this report here in favor of nextcloud/server#14797.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs info Waiting for info from user(s). Issues with this label will auto-stale.
Projects
None yet
Development

No branches or pull requests

3 participants