Problem with Collabora

did you edit the reverse proxy config? there are some changes in version 2.

look at this page https://www.collaboraoffice.com/community-en/code-2-0-updates-2/

I have the same issue.

Dominik Hebestreit noreply@nextcloud.com schrieb am Mi., 18. Jan. 2017,
13:31:

yes and Apache2 as proxy.

Same problem.
Haven’t icon Office after Collabora Online (v.1.1.25) activated
If open document then have lockscreen Access Denied

Any solution?
I can’t find any post on github yet. I think it’s a new problem. Shall we report that problem?

yes, it looks like we have the same issue on this thread:

https://help.nextcloud.com/t/collabora-and-nextcloud-11/6653

and yes, please, report :smiley:

look at your virtual host config file. you must use full hostnames and no ip-addresses.

for example:
<VirtualHost *:443>
ServerName host.domain.tld:443

i know it. office,domain.tld is set as adress to collabora.

docker run -t -d -p 9980:9980 -e "domain=office.example.com" --cap-add MKNOD collabora/code

and https://office.example.com and the Nextcloud Backend.

@Lars_M how did you install your Docker?

not your docker startup. you should verify you vhost config for apache reverse proxy.

VirtualHost *:443
ServerName host.domain.tld:443

/VirtualHost

your docker startup should be:

docker run -t -d -p 127.0.0.1:9980:9980 -e ‘domain=cloudhost.domain.tld’ --restart always --cap-add MKNOD collabora/code

yes it´s listening to 127.0.0.1:9980 and cloud.domain.tld that is not my problem.
when i enter the URL manually i get this:

https://cloud.domain.tld/loleaflet/2.0.1/loleaflet.html

and /hosting/discovery

i get the XML Part

docker logs:

root@panel:/boot# docker logs 6f30c379fc5d                                                                   
Generating RSA private key, 2048 bit long modulus                                                            
.....................................................................................................+++     
..+++                                                                                                        
e is 65537 (0x10001)                                                                                         
Generating RSA private key, 2048 bit long modulus                                                            
.+++                                                                                                         
...................................................................................+++                       
e is 65537 (0x10001)                                                                                         
Signature ok                                                                                                 
subject=/C=DE/ST=BW/L=Stuttgart/O=Dummy Authority/CN=localhost                                               
Getting CA Private Key                                                                                       
loolforkit version details: 2.0.1 - 2.0.1                                                                    
office version details: { "ProductName": "Collabora Office", "ProductVersion": "5.1", "ProductExtension": ".1
0.15", "BuildId": "345fa14e85e6e36ad0280f4e549c70f6b9af1a18" }                                               
Generating RSA private key, 2048 bit long modulus                                                            
............+++                                                                                              
...............................+++                                                                           
e is 65537 (0x10001)                                                                                         
Generating RSA private key, 2048 bit long modulus                                                            
................+++                                                                                          
.............................................+++                                                             
e is 65537 (0x10001)                                                                                         
Signature ok                                                                                                 
subject=/C=DE/ST=BW/L=Stuttgart/O=Dummy Authority/CN=localhost                                               
Getting CA Private Key                                                                                       
loolforkit version details: 2.0.1 - 2.0.1                                                                    
office version details: { "ProductName": "Collabora Office", "ProductVersion": "5.1", "ProductExtension": ".1
0.15", "BuildId": "345fa14e85e6e36ad0280f4e549c70f6b9af1a18" }                                               
wsd-00026-0030 0:32:52.769170 [ client_ws_0001 ] ERR  ClientRequestHandler::handleClientRequest: Exception: I
nvalid URI.| wsd/LOOLWSD.cpp:1226                                                                            
wsd-00026-0031 0:32:59.263053 [ client_ws_0002 ] ERR  ClientRequestHandler::handleClientRequest: Exception: I
nvalid URI.| wsd/LOOLWSD.cpp:1226                                                                            
wsd-00026-0030 0:33:14.262702 [ client_ws_0003 ] ERR  ClientRequestHandler::handleClientRequest: Exception: I
nvalid URI.| wsd/LOOLWSD.cpp:1226

Just a little question. Is it possible to launch CollaBora without docker?
Docker with a LXC or OVZ Container won’t work correctly or am I wrong?

look here: [HOWTO] Collabora 2.0 without using Docker not for prod

you should have two different host

cloudhost
officehost (docker image)

docker should run with connection to cloudhost not officehost

docker run -t -d -p 127.0.0.1:9980:9980 -e ‘domain=cloudhost.domain.tld’ --restart always --cap-add MKNOD collabora/code

you are starting the docker image with officehost as full domainname

the connection to officehost will be done with reverse proxy

I using one host for both collabora and Nextcloud

you do not understand.

Hardware-Host: cloudserver
Virtual-Host: officeserver in docker container

apache reverse proxy:
cloudserver:443 -> locahost:443
officeserver:443 -> localhost:9980

Hi,
have you resolved your problem?
show your config php, i wanna compare with mine config.php

sorry for late reponse.
This is my apache proxy config:
The SSL Cert Path is deleted. I use Plesk Onyx.

 # SSL configuration, you may want to take the easy route instead and use Lets Encrypt!
  SSLEngine on
  SSLProtocol             all -SSLv2 -SSLv3
  SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
  SSLHonorCipherOrder     on

  # Encoded slashes need to be allowed
  AllowEncodedSlashes NoDecode

  # Container uses a unique non-signed certificate
  SSLProxyEngine On
  SSLProxyVerify None
  SSLProxyCheckPeerCN Off
  SSLProxyCheckPeerName Off

  # keep the host
  ProxyPreserveHost On

  # static html, js, images, etc. served from loolwsd
  # loleaflet is the client part of LibreOffice Online
  ProxyPass           /loleaflet https://127.0.0.1:9980/loleaflet retry=0
  ProxyPassReverse    /loleaflet https://127.0.0.1:9980/loleaflet

  # WOPI discovery URL
  ProxyPass           /hosting/discovery https://127.0.0.1:9980/hosting/discovery retry=0
  ProxyPassReverse    /hosting/discovery https://127.0.0.1:9980/hosting/discovery

  # Main websocket
  ProxyPassMatch "/lool/(.*)/ws$" wss://127.0.0.1:9980/lool/$1/ws nocanon

  # Admin Console websocket
  ProxyPass   /lool/adminws wss://127.0.0.1:9980/lool/adminws

  # Download as, Fullscreen presentation and Image upload operations
  ProxyPass           /lool https://127.0.0.1:9980/lool
  ProxyPassReverse    /lool https://127.0.0.1:9980/lool

Maybe this helps?

[ client_ws_0001 ] ERR ClientRequestHandler::handleClientRequest: Exception: Invalid URI.| wsd/LOOLWSD.cpp:1245

Google Chrome Error Console:

WebSocket connection to 'wss://office.domain.tld/lool/%3Fpermission%3Dedit/ws' failed: Invalid frame header

I have this found at the logs.


Errorno app in context2017-02-02T12:05:49+0100
OCP\AppFramework\QueryException: Could not resolve OCA\Richdocuments\Settings\Section! Class OCA\Richdocuments\Settings\Section does not exist
Errorno app in context2017-02-02T12:05:40+0100
OCP\AppFramework\QueryException: Could not resolve OCA\Richdocuments\Settings\Section! Class OCA\Richdocuments\Settings\Section does not exist
Errorno app in context2017-02-01T22:36:19+0100
OCP\AppFramework\QueryException: Could not resolve OCA\Richdocuments\Settings\Section! Class OCA\Richdocuments\Settings\Section does not exist
Errorno app in context2017-02-01T20:22:49+0100
OCP\AppFramework\QueryException: Could not resolve OCA\Richdocuments\Settings\Section! Class OCA\Richdocuments\Settings\Section does not exist
Errorno app in context2017-02-01T20:22:28+0100
OCP\AppFramework\QueryException: Could not resolve OCA\Richdocuments\Settings\Section! Class OCA\Richdocuments\Settings\Section does not exist
/var/www/vhosts/domain.tld/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 117: OC\AppFramework\Utility\SimpleContainer->resolve('OCA\\Richdocumen...')
/var/www/vhosts/domain.tld/nextcloud/lib/private/ServerContainer.php - line 89: OC\AppFramework\Utility\SimpleContainer->query('OCA\\Richdocumen...')
/var/www/vhosts/domain.tld/nextcloud/lib/private/Settings/Manager.php - line 319: OC\ServerContainer->query('OCA\\Richdocumen...')
/var/www/vhosts/domain.tld/nextcloud/lib/private/Settings/Manager.php - line 353: OC\Settings\Manager->query('OCA\\Richdocumen...')
/var/www/vhosts/domain.tld/nextcloud/settings/Controller/AdminSettingsController.php - line 131: OC\Settings\Manager->getAdminSections()
/var/www/vhosts/domain.tld/nextcloud/settings/Controller/AdminSettingsController.php - line 70: OC\Settings\Controller\AdminSettingsController->getNavigationParameters('server')
[internal function] OC\Settings\Controller\AdminSettingsController->index('server')
/var/www/vhosts/domain.tld/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 160: call_user_func_array(Array, Array)
/var/www/vhosts/domain.tld/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 90: OC\AppFramework\Http\Dispatcher->executeController(Object(OC\Settings\Controller\AdminSettingsController), 'index')
/var/www/vhosts/domain.tld/nextcloud/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OC\Settings\Controller\AdminSettingsController), 'index')
/var/www/vhosts/domain.tld/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('OC\\Settings\\Con...', 'index', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
/var/www/vhosts/domain.tld/nextcloud/lib/private/Route/Router.php - line 299: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
/var/www/vhosts/domain.tld/nextcloud/lib/base.php - line 1010: OC\Route\Router->match('/settings/admin')
/var/www/vhosts/domain.tld/nextcloud/index.php - line 40: OC handleRequest()
{main}