nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.89k stars 4.02k forks source link

Federated cloud absence slows down all nextcloud instance #25647

Closed riodda closed 3 years ago

riodda commented 3 years ago

How to use GitHub

Steps to reproduce

  1. share a folder with a federated cloud 2.switch off the federated cloud 3.Measure responsivness of the system

Expected behaviour

A part the share folder all the rest of the instance should not slow down

Actual behaviour

If the federated cloud is not avilable the system slows down

Server configuration

Operating system: Linux 4.15.0-96-generic #97-Ubuntu Web server: Apache/2.4.29 (Ubuntu) Database: 10.1.47-MariaDB-0ubuntu0.18.04.1 Ubuntu 18.04 PHP version: PHP 7.4.15 (cli) (built: Feb 14 2021 14:19:46) ( NTS )

Nextcloud version: (see Nextcloud admin page) 20.0.7 Updated from an older Nextcloud/ownCloud or fresh install: 19.0.1 Where did you install Nextcloud from: official repo Signing status:

Signing status ``` Login as admin user into your Nextcloud and access http://example.com/index.php/settings/integrity/failed paste the results here. ```No errors have been found.

List of activated apps:

App list ``` If you have access to your command line run e.g.: sudo -u www-data php occ app:list from within your Nextcloud installation folder ```` Enabled: - accessibility: 1.6.0 - activity: 2.13.4 - admin_audit: 1.10.0 - bruteforcesettings: 2.0.1 - calendar: 2.1.3 - cloud_federation_api: 1.3.0 - comments: 1.10.0 - contacts: 3.4.3 - contactsinteraction: 1.1.0 - dashboard: 7.0.0 - dav: 1.16.2 - encryption: 2.8.1 - federatedfilesharing: 1.10.2 - federation: 1.10.1 - files: 1.15.0 - files_external: 1.11.1 - files_pdfviewer: 2.0.1 - files_rightclick: 0.17.0 - files_sharing: 1.12.2 - files_trashbin: 1.10.1 - files_versions: 1.13.0 - files_videoplayer: 1.9.0 - firstrunwizard: 2.9.0 - logreader: 2.5.0 - lookup_server_connector: 1.8.0 - nextcloud_announcements: 1.9.0 - notifications: 2.8.0 - oauth2: 1.8.0 - password_policy: 1.10.1 - photos: 1.2.3 - privacy: 1.4.0 - provisioning_api: 1.10.0 - recommendations: 0.8.0 - serverinfo: 1.10.0 - settings: 1.2.0 - sharebymail: 1.10.0 - spreed: 10.0.5 - support: 1.3.0 - survey_client: 1.8.0 - systemtags: 1.10.0 - text: 3.1.0 - theming: 1.11.0 - twofactor_backupcodes: 1.9.0 - updatenotification: 1.10.0 - user_status: 1.0.1 - viewer: 1.4.0 - weather_status: 1.0.0 - workflowengine: 2.2.0 Disabled: - mail - user_ldap ````

Nextcloud configuration:

Config report { "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "cloud.armellin.org", "cloud.armellin.org\/nextcloud" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "20.0.7.1", "overwrite.cli.url": "http:\/\/cloud.armellin.org\/nextcloud", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "mail_smtpmode": "smtp", "mail_smtpsecure": "ssl", "mail_sendmailmode": "smtp", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauthtype": "LOGIN", "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "maintenance": false, "mysql.utf8mb4": true, "updater.release.channel": "stable", "loglevel": 2, "theme": "", "encryption.legacy_format_support": true, "encryption.key_storage_migrated": false } }

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

Are you using encryption: NO

Are you using an external user-backend, if yes which one: 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: ANY Operating system: ANY

Logs

Web server error log

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

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` [Mon Feb 15 06:25:01.928574 2021] [ssl:warn] [pid 1517] AH01909: 2a01:4f8:c0c:4685::1:443:0 server certificate does NOT include an ID which matches the server name [Mon Feb 15 06:25:01.929440 2021] [mpm_prefork:notice] [pid 1517] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1i configured -- resuming normal operations [Mon Feb 15 06:25:01.929454 2021] [core:notice] [pid 1517] AH00094: Command line: '/usr/sbin/apache2' [Mon Feb 15 07:23:16.353933 2021] [access_compat:error] [pid 13275] [client 79.62.195.113:49878] AH01797: client denied by server configuration: /var/www/html/nextcloud/config [Mon Feb 15 08:15:02.909640 2021] [access_compat:error] [pid 13216] [client 79.62.195.113:49959] AH01797: client denied by server configuration: /var/www/html/nextcloud/config [Mon Feb 15 08:45:50.937768 2021] [mpm_prefork:notice] [pid 1517] AH00169: caught SIGTERM, shutting down [Mon Feb 15 08:51:36.348297 2021] [ssl:warn] [pid 22498] AH01909: 2a01:4f8:c0c:4685::1:443:0 server certificate does NOT include an ID which matches the server name [Mon Feb 15 08:51:36.462844 2021] [ssl:warn] [pid 22499] AH01909: 2a01:4f8:c0c:4685::1:443:0 server certificate does NOT include an ID which matches the server name [Mon Feb 15 08:51:36.468076 2021] [mpm_prefork:notice] [pid 22499] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1i configured -- resuming normal operations [Mon Feb 15 08:51:36.468120 2021] [core:notice] [pid 22499] AH00094: Command line: '/usr/sbin/apache2' [Mon Feb 15 09:14:34.881437 2021] [mpm_prefork:notice] [pid 22499] AH00169: caught SIGTERM, shutting down [Mon Feb 15 09:14:34.982517 2021] [ssl:warn] [pid 23221] AH01909: 2a01:4f8:c0c:4685::1:443:0 server certificate does NOT include an ID which matches the server name [Mon Feb 15 09:14:35.049683 2021] [ssl:warn] [pid 23222] AH01909: 2a01:4f8:c0c:4685::1:443:0 server certificate does NOT include an ID which matches the server name [Mon Feb 15 09:14:35.059929 2021] [mpm_prefork:notice] [pid 23222] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1i configured -- resuming normal operations [Mon Feb 15 09:14:35.059976 2021] [core:notice] [pid 23222] AH00094: Command line: '/usr/sbin/apache2' [Mon Feb 15 09:25:27.254693 2021] [access_compat:error] [pid 23243] [client 79.62.195.113:52792] AH01797: client denied by server configuration: /var/www/html/nextcloud/config [Mon Feb 15 09:26:30.486960 2021] [access_compat:error] [pid 23591] [client 79.62.195.113:52809] AH01797: client denied by server configuration: /var/www/html/nextcloud/config [Mon Feb 15 09:27:18.345060 2021] [access_compat:error] [pid 23230] [client 79.62.195.113:52827] AH01797: client denied by server configuration: /var/www/html/nextcloud/config [Mon Feb 15 09:45:25.410804 2021] [mpm_prefork:notice] [pid 23222] AH00169: caught SIGTERM, shutting down [Mon Feb 15 09:45:25.503680 2021] [ssl:warn] [pid 23892] AH01909: 2a01:4f8:c0c:4685::1:443:0 server certificate does NOT include an ID which matches the server name [Mon Feb 15 09:45:25.555291 2021] [ssl:warn] [pid 23893] AH01909: 2a01:4f8:c0c:4685::1:443:0 server certificate does NOT include an ID which matches the server name [Mon Feb 15 09:45:25.559936 2021] [mpm_prefork:notice] [pid 23893] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1i configured -- resuming normal operations [Mon Feb 15 09:45:25.559981 2021] [core:notice] [pid 23893] AH00094: Command line: '/usr/sbin/apache2' [Mon Feb 15 09:47:10.867259 2021] [mpm_prefork:notice] [pid 23893] AH00171: Graceful restart requested, doing restart AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 2a01:4f8:c0c:4685::1. Set the 'ServerName' directive globally to suppress this message [Mon Feb 15 09:47:10.937915 2021] [ssl:warn] [pid 23893] AH01909: 2a01:4f8:c0c:4685::1:443:0 server certificate does NOT include an ID which matches the server name [Mon Feb 15 09:47:10.938644 2021] [mpm_prefork:notice] [pid 23893] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1i configured -- resuming normal operations [Mon Feb 15 09:47:10.938655 2021] [core:notice] [pid 23893] AH00094: Command line: '/usr/sbin/apache2' [Mon Feb 15 09:52:37.713397 2021] [mpm_prefork:notice] [pid 23893] AH00169: caught SIGTERM, shutting down [Mon Feb 15 09:52:37.814651 2021] [ssl:warn] [pid 24091] AH01909: 2a01:4f8:c0c:4685::1:443:0 server certificate does NOT include an ID which matches the server name [Mon Feb 15 09:52:37.879743 2021] [ssl:warn] [pid 24092] AH01909: 2a01:4f8:c0c:4685::1:443:0 server certificate does NOT include an ID which matches the server name [Mon Feb 15 09:52:37.886080 2021] [mpm_prefork:notice] [pid 24092] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1i configured -- resuming normal operations [Mon Feb 15 09:52:37.886123 2021] [core:notice] [pid 24092] AH00094: Command line: '/usr/sbin/apache2' [Mon Feb 15 09:53:11.377395 2021] [access_compat:error] [pid 24100] [client 79.62.195.113:53651] AH01797: client denied by server configuration: /var/www/html/nextcloud/config ```

Browser log

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

The other problem is that i have a shared folder with that cloud that is impossible to delete. Can't find any trace of the federated cloud anyware in the frontend but still if i kill it all slows donw.

szaimen commented 3 years ago

Looks like https://github.com/nextcloud/server/issues/14797 so lets track this there.