nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
355 stars 116 forks source link

Application activation freezes Nextcloud instance #1817

Closed Ollie89 closed 3 years ago

Ollie89 commented 3 years ago

Steps to reproduce

  1. Installing and Activating via Store or via OCC (app:install richdocuments)

Expected behaviour

After the installation and activation of the richdocuments application from the store, I expect to access the settings in order to perform the configuration.

Actual behaviour

The installation and activation of the richdocuments application from the store works, however, the Nextcloud instance then times out. Accessing the instance isn't possible anymore until the application is disabled via OCC.

Server configuration

Operating system: Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal

Web server: Apache

Database: MariaDB

PHP version: 7.4

Nextcloud version: (see Nextcloud admin page) 22.2.0 (also affected 21.* Versions)

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

Where did you install Nextcloud from: Nextcloud

Signing status: No errors have been found.

List of activated apps: Enabled:

The content of config/config.php: $CONFIG = array ( 'instanceid' => '', 'passwordsalt' => '', 'secret' => '', 'trusteddomains' => array ( 0 => '1.1.1.1', 1 => 'domain1', 2 => 'domain2', ), 'datadirectory' => '/mnt/drive/nextcloud', 'dbtype' => 'mysql', 'version' => '22.2.0.2', 'dbname' => 'database', 'dbhost' => '0.0.0.0', 'dbport' => '', 'dbtableprefix' => 'oc', 'mysql.utf8mb4' => true, 'dbuser' => 'dbuser', 'dbpassword' => 'dbpassword', 'installed' => true, 'maintenance' => false, 'data-fingerprint' => '', 'trusted_proxies' => array ( 0 => '0.0.0.0', ), 'default_phone_region' => 'DE', 'loglevel' => 3, 'mail_smtpmode' => 'smtp', 'mail_smtpsecure' => 'tls', 'mail_sendmailmode' => 'smtp', 'mail_from_address' => 'cloud', 'mail_domain' => 'domain.com, 'mail_smtphost' => '123.server.com', 'mail_smtpport' => '587',

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

Client configuration 1

Browser: Opera Firefox Safari

Operating system: macOS 11.6

Client configuration 2

Browser: Opera Firefox Edge Chrome

Operating system: Windows 10 1909 (ENT)

Logs

Web server error log

[Tue Oct 19 10:06:25.189751 2021] [mpm_prefork:notice] [pid 153986] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations [Tue Oct 19 10:06:25.189780 2021] [core:notice] [pid 153986] AH00094: Command line: '/usr/sbin/apache2'

Nextcloud log (data/nextcloud.log)

Cleared all entries, changed debug to 1. Restarted apache2 service = empty logs

Removing/renaming file nextcloud/apps/richdocuments/lib/AppInfo/Applications.php makes instance responsive, therefore seems to be related.

Browser log

N(index):1370 crbug/1173575, non-JS module files deprecated. (anonymous) @ (index):1370

HeyWatchOutDude commented 3 years ago

Same issue.

Operating system: Ubuntu 20.04.3 LTS

Server Configuration:

Web Server:

Database:

PHP Version:

Nextcloud Version:

juliusknorr commented 3 years ago

My guess would be that there is an old configuration in place that tries to connect to the Collabora server but the connection would be pending and only reaching a timeout at some point. You can check that with occ config:list richdocuments and possibly remove the existing values with:

HeyWatchOutDude commented 3 years ago

@juliushaertl yeah fixed the issue, thanks!

Ollie89 commented 3 years ago

Hi @juliushaertl, thank you so much for the explanation and the occ operations. I wasn't aware of these and as for @HeyWatchOutDude, it also solved my issue. Really appreciate your help on this matter.

HeyWatchOutDude commented 3 years ago

I found out that issue only occurs when "Collabora Online - Built-in CODE Server" is enabled/installed, any idea?

Collabora Online GUI output: Could not establish connection to the Collabora Online server.

Nextcloud Logs:

GuzzleHttp\Exception\ConnectException: cURL error 28: Connection timed out after 45000 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://cloud.domain.com/apps/richdocumentscode/proxy.php?req=/hosting/discovery

Ollie89 commented 3 years ago

I found out that issue only occurs when "Collabora Online - Built-in CODE Server" is enabled/installed, any idea?

Collabora Online GUI output: Could not establish connection to the Collabora Online server.

Nextcloud Logs:

GuzzleHttp\Exception\ConnectException: cURL error 28: Connection timed out after 45000 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://cloud.domain.com/apps/richdocumentscode/proxy.php?req=/hosting/discovery

Hi @HeyWatchOutDude, I can't confirm that, as I didn't have the Built-in CODE Server installed when this issue rose up.

nikdale commented 1 year ago
  • occ config:app:delete richdocuments wopi_url

For anyone wondering, this solved the issue for me also! Thanks!

If you did not use docker, simple as this: sudo -u www-data php /var/www/nextcloud/occ config:app:delete richdocuments public_wopi_url and sudo -u www-data php /var/www/nextcloud/occ config:app:delete richdocuments wopi_url