nextcloud / desktop

💻 Desktop sync client for Nextcloud
https://nextcloud.com/install/#install-clients
GNU General Public License v2.0
3.06k stars 804 forks source link

nextcloudcmd --nonshib returns 'Storage was not available!' #3365

Closed mihailstoynov closed 3 years ago

mihailstoynov commented 5 years ago

Steps to reproduce

  1. Sync with nextcloudcmd and watch the logs.
  2. This used to work 2 days ago without changes to the server or client (outside of updates)
  3. without --nonshib it works.

Version of client

Nextcloud version 2.5.2git
Using Qt 5.9.5, built against Qt 5.9.5
Using 'OpenSSL 1.1.1  11 Sep 2018'```

### Expected behaviour
successful sync

### Actual behaviour
An error saying:

09-17 22:26:29:564 [ warning nextcloud.sync.networkjob ]: QNetworkReply::NetworkError(ServiceUnavailableError) "Error transferring https://domain/remote.php/nonshib-webdav/ - server replied: " QVariant(int, 503) 09-17 22:26:29:564 [ info nextcloud.sync.networkjob.lscol ]: LSCOL of QUrl("https://domain/remote.php/nonshib-webdav/") FINISHED WITH STATUS "ServiceUnavailableError Error transferring https://domain/remote.php/nonshib-webdav/ - server replied: " 09-17 22:26:29:564 [ warning nextcloud.sync.discovery ]: LSCOL job error "Error transferring https://domain/remote.php/nonshib-webdav/ - server replied: " 503 QNetworkReply::NetworkError(ServiceUnavailableError) 09-17 22:26:29:564 [ warning nextcloud.sync.csync.updater ]: Storage was not available! 09-17 22:26:29:564 [ warning nextcloud.sync.engine ]: ERROR during csync_update : "The service is temporarily unavailable Error transferring https://domain/remote.php/nonshib-webdav/ - server replied: "


### Server configuration

**Operating system**:
Debian, kernel 5.0.21

**Web server:**
nginx 1.14

**Database:**
mysql-server-5.7

**PHP version:**
PHP 7.2.19

**Nextcloud version:** (see Nextcloud admin page)
16.0.4

**Updated from an older Nextcloud/ownCloud or fresh install:**
From ownCloud around version 10 AFAIR.

**Where did you install Nextcloud from:**
https://galaxy.ansible.com/aalaesar/install_nextcloud

**Signing status:**
<details>
<summary>Signing status</summary>

Login as admin user into your Nextcloud and access http://example.com/index.php/settings/integrity/failed paste the results here.

</details>

**List of activated apps:**
<details>
<summary>App list</summary>

Enabled:

Nextcloud configuration:

Config report ``` { "system": { "debug": true, "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ ], "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "16.0.4.1", "overwrite.cli.url": "https:\/\/", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": "true", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": "0" }, "memcache.local": "\\OC\\Memcache\\APCu", "open_basedir": "\/dev\/urandom", "updater.release.channel": "production", "maintenance": false, "theme": "", "loglevel": 0, "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_sendmailmode": "smtp", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpsecure": "ssl", "mail_smtpauthtype": "LOGIN", "mail_smtpauth": 1, "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465" }, "apps": { "accessibility": { "enabled": "yes", "installed_version": "1.2.0", "types": "" }, "activity": { "enabled": "yes", "installed_version": "2.9.1", "types": "filesystem" }, "backgroundjob": { "lastjob": "7667" }, "bruteforcesettings": { "enabled": "yes", "installed_version": "1.4.0", "types": "" }, "calendar": { "enabled": "yes", "installed_version": "1.7.1", "types": "" }, "cloud_federation_api": { "enabled": "yes", "installed_version": "0.2.0", "types": "filesystem" }, "comments": { "enabled": "no", "installed_version": "0.2", "types": "logging" }, "contacts": { "enabled": "yes", "installed_version": "3.1.3", "types": "" }, "core": { "backgroundjobs_mode": "cron", "installed.bundles": "[\"CoreBundle\"]", "installedat": "1456192953.9973", "lastcron": "1568747711", "lastupdateResult": "[]", "lastupdatedat": "1568747627", "moveavatarsdone": "yes", "oc.integritycheck.checker": "{\"core\":{\"INVALID_HASH\":{\".user.ini\":{\"expected\":\"4843b3217e91f8536cb9b52700efb20300290292cf6286f92794d4cec99df286afeb7dd6c91b1be20bc55eda541eef230a5c5e7dcd46c189edd0ed1e80c6d3f5\",\"current\":\"bf13a862e7b3e426537335b5a921b4df36c0646ceb3ec7a5a02fce23345576b1fbfd2da26cf2df7b7c39231c50372c0a7b3d31d3dcc5bfe66b9f77d25168fb48\"}}}}", "previewsCleanedUp": "1", "public_files": "files_sharing\/public.php", "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php", "remote_caldav": "dav\/appinfo\/v1\/caldav.php", "remote_calendar": "dav\/appinfo\/v1\/caldav.php", "remote_carddav": "dav\/appinfo\/v1\/carddav.php", "remote_contacts": "dav\/appinfo\/v1\/carddav.php", "remote_dav": "dav\/appinfo\/v2\/remote.php", "remote_files": "dav\/appinfo\/v1\/webdav.php", "remote_webdav": "dav\/appinfo\/v1\/webdav.php", "repairlegacystoragesdone": "yes", "scss.variables": "c65a671d8eafba25e3ad90ce3f790e7b", "theming.variables": "c65a671d8eafba25e3ad90ce3f790e7b", "umgmt_send_email": "false", "umgmt_show_backend": "false", "umgmt_show_email": "true", "umgmt_show_last_login": "true", "umgmt_show_storage_location": "false", "updater.secret.created": "1565880918", "vendor": "nextcloud" }, "dav": { "buildCalendarSearchIndex": "yes", "chunks_migrated": "1", "enabled": "yes", "installed_version": "1.9.2", "regeneratedBirthdayCalendarsForYearFix": "yes", "types": "filesystem" }, "dicomviewer": { "enabled": "yes", "installed_version": "1.2.0", "types": "" }, "federatedfilesharing": { "enabled": "yes", "installed_version": "1.6.0", "types": "" }, "federation": { "enabled": "yes", "installed_version": "1.6.0", "types": "authentication" }, "files": { "cronjob_scan_files": "500", "default_quota": "1 GB", "enabled": "yes", "installed_version": "1.11.0", "types": "filesystem" }, "files_antivirus": { "av_path": "\/usr\/bin\/clamscan", "enabled": "no", "installed_version": "0.9.0.0", "ocsid": "157439", "signed": "true", "types": "filesystem" }, "files_external": { "allow_user_mounting": "yes", "enabled": "yes", "google::496087335753-30l7r8n94hofdd6mp1505060092cId": "797510", "installed_version": "1.7.0", "types": "filesystem", "user_mounting_backends": "ftp,dav,owncloud,sftp,amazons3,dropbox,googledrive,swift,\\OC\\Files\\Storage\\SFTP_Key" }, "files_markdown": { "enabled": "yes", "installed_version": "2.1.0", "types": "" }, "files_pdfviewer": { "enabled": "yes", "installed_version": "1.5.0", "types": "" }, "files_rightclick": { "enabled": "yes", "installed_version": "0.15.1", "types": "" }, "files_sharing": { "enabled": "yes", "installed_version": "1.8.0", "types": "filesystem" }, "files_streamer": { "enabled": "no", "installed_version": "0.1", "types": "" }, "files_texteditor": { "enabled": "yes", "installed_version": "2.8.0", "types": "" }, "files_trashbin": { "enabled": "yes", "installed_version": "1.6.0", "types": "filesystem,dav" }, "files_versions": { "enabled": "yes", "installed_version": "1.9.0", "types": "filesystem,dav" }, "files_videoplayer": { "enabled": "yes", "installed_version": "1.5.0", "types": "" }, "files_videoviewer": { "enabled": "no", "installed_version": "0.1.3", "ocsid": "166054", "types": "" }, "firstrunwizard": { "enabled": "yes", "installed_version": "2.5.0", "types": "logging" }, "gallery": { "enabled": "yes", "installed_version": "18.3.0", "types": "" }, "logreader": { "enabled": "yes", "installed_version": "2.1.0", "levels": "11111", "types": "" }, "lookup_server_connector": { "enabled": "yes", "installed_version": "1.4.0", "types": "authentication" }, "nextcloud_announcements": { "enabled": "yes", "installed_version": "1.5.0", "pub_date": "Mon, 02 Sep 2019 00:00:00 +0200", "types": "logging" }, "notes": { "enabled": "yes", "installed_version": "3.0.3", "types": "" }, "notifications": { "enabled": "yes", "installed_version": "2.4.1", "types": "logging" }, "oauth2": { "enabled": "yes", "installed_version": "1.4.2", "types": "authentication" }, "password_policy": { "enabled": "yes", "installed_version": "1.6.0", "types": "" }, "piwik": { "enabled": "no", "installed_version": "0.1.0", "internal": "yes", "piwik": "{\"siteId\":\"24\",\"url\":\"https:\/\/analytics\/\",\"validity\":86400}", "types": "" }, "privacy": { "enabled": "yes", "installed_version": "1.0.0", "types": "" }, "provisioning_api": { "enabled": "yes", "installed_version": "1.6.0", "types": "prevent_group_restriction" }, "recommendations": { "enabled": "yes", "installed_version": "0.4.0", "types": "" }, "richdocuments": { "enabled": "yes", "installed_version": "3.4.2", "types": "filesystem,dav,prevent_group_restriction", "wopi_url": "http:\/\/collabora" }, "serverinfo": { "enabled": "yes", "installed_version": "1.6.0", "types": "" }, "sharebymail": { "enabled": "yes", "installed_version": "1.6.0", "types": "filesystem" }, "spreed": { "enabled": "yes", "installed_version": "6.0.4", "project_access_invalidated": "1", "stun_servers": "[\"stun.nextcloud.com:443\"]", "types": "prevent_group_restriction" }, "support": { "enabled": "yes", "installed_version": "1.0.0", "types": "" }, "survey_client": { "enabled": "yes", "installed_version": "1.4.0", "types": "" }, "systemtags": { "enabled": "yes", "installed_version": "1.6.0", "types": "logging" }, "templateeditor": { "enabled": "no", "installed_version": "0.2", "types": "" }, "theming": { "backgroundMime": "image\/jpeg", "cachebuster": "18", "color": "#000000", "enabled": "yes", "installed_version": "1.7.0", "logoMime": "image\/png", "types": "logging", }, "twofactor_backupcodes": { "enabled": "yes", "installed_version": "1.5.0", "types": "" }, "twofactor_totp": { "signed": "true" }, "updatenotification": { "bruteforcesettings": "1.4.0", "calendar": "1.7.1", "contacts": "3.1.3", "core": "16.0.3.0", "enabled": "yes", "files_markdown": "2.1.0", "files_rightclick": "0.15.1", "installed_version": "1.6.0", "notes": "3.0.2", "richdocuments": "3.4.1", "spreed": "6.0.4", "types": "", "update_check_errors": "0" }, "updater": { "enabled": "no", "installed_version": "0.6", "types": "" }, "user_external": { "installed_version": "0.5.0", "types": "authentication,prelogin" }, "viewer": { "enabled": "yes", "installed_version": "1.1.0", "types": "" }, "workflowengine": { "enabled": "yes", "installed_version": "1.6.0", "types": "filesystem" } } } ```

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

Are you using encryption: yes/no no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... no

LDAP configuration (delete this part if not used)

LDAP config ``` With access to your command line run e.g.: sudo -u www-data php occ ldap:show-config from within your Nextcloud installation folder Without access to your command line download the data/owncloud.db to your local computer or access your SQL server remotely and run the select query: SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap'; Eventually replace sensitive data as the name/IP-address of your LDAP server or groups. ```

Client configuration

Browser:

Operating system:

Logs

Web server error log

Web server error log ``` Insert your webserver log here ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` Insert your Nextcloud log here ```

Browser log

Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```
FlexW commented 3 years ago

Could you please try the recent version of the client (3.2.1)? Server version 16 is also not anymore supported by the client

github-actions[bot] commented 3 years ago

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

github-actions[bot] commented 3 years ago

This bug report is getting automatically closed due to no answer since the issue has been staled. Thank you!