-
Notifications
You must be signed in to change notification settings - Fork 67
Cant use Collabora online docker with Nextcloud #70
Comments
Any help ?? |
The browser must be able to connect to the container.
|
The browser must be able to connect to the container. The ubuntu document server with collabora docker is a virtualmachine with 192.168.1.51 so:
Im trying to reach the collobora/code from a NC virtual machine in 192.168.1.52, so in collabora online app i want to connect to http://192.168.1.51:9980 In both machines i have the ufw disabled. Any help would be apreciated
My etc hosts in Ubuntu nc virtual machine ( 192.168.1.52):
|
If you specify |
So which is the way to do it ?? Thanks |
First, remove the listen IP:
Then, you must tell NC the public IP or domain of your onlyoffice VM so your browser may reach it. By default, collabora/code container uses SSL connection, so it would be: https://onlyoffice.edouardo.com (your browser may complain about the certificate being self-signed) |
Is this what ive done in UbuntuNC /etc/hosts ? 127.0.0.1 localhost Nevermind first we have to make this worl. Then Id prefer to connect via port 80 and not use ssl, as is for educational purpose and in local environment, we cant pay for ssl certificates and almost all students are minors, so they cant use credit cards or similar. |
I did not understand that you're using NC and collabora within a private network. The browser must know onlyoffice.eduardo.com as well. According to https://www.collaboraoffice.com/code/docker/ , set |
Hi, docker colllabora CODE image logs:
curl -k -vvv https://127.0.0.1:9980
I've create small script to check it. Collabora is starting 10 minutes on DualCore CPU with 16GB RAM.
|
Ubuntu 18.04
Nextcloud 16.0.6
Nginx 1.14
Latest docker Collabora online and app
Log nextcloud:
["http","https"],"strict":false,"referer":false,"track_redirects":false},"http_errors":true,"decode_content":true,"cookies":false},"errno":60,"onHeadersException":null,"class":"GuzzleHttp\Handler\EasyHandle"},{"class":"GuzzleHttp\Handler\CurlFactory"}]},{"file":"/usr/share/nginx/nextcloud16/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php","line":28,"function":"__invoke","class":"GuzzleHttp\Handler\CurlHandler","type":"->","args":["*** sensitive parameter replaced "," sensitive parameter replaced "]},{"file":"/usr/share/nginx/nextcloud16/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php","line":51,"function":"GuzzleHttp\Handler\{closure}","class":"GuzzleHttp\Handler\Proxy","type":"::","args":[" sensitive parameters replaced "]},{"file":"/usr/share/nginx/nextcloud16/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":37,"function":"GuzzleHttp\Handler\{closure}","class":"GuzzleHttp\Handler\Proxy","type":"::","args":[" sensitive parameters replaced "]},{"file":"/usr/share/nginx/nextcloud16/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":30,"function":"__invoke","class":"GuzzleHttp\PrepareBodyMiddleware","type":"->","args":[" sensitive parameter replaced "," sensitive parameter replaced "]},{"file":"/usr/share/nginx/nextcloud16/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":70,"function":"GuzzleHttp\{closure}","class":"GuzzleHttp\Middleware","type":"::","args":[" sensitive parameters replaced "]},{"file":"/usr/share/nginx/nextcloud16/3leware.php","line":70,"function":"GuzzleHttp\{closure}","class":"GuzzleHttp\Middleware","type":"::","args":[" sensitive parameters replaced "]},{"file":"/usr/share/nginx/nextcloud16/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":60,"function":"__invoke","class":"GuzzleHttp\RedirectMiddleware","type":"->","args":[" sensitive parameter replaced "," sensitive parameter replaced "]},{"file":"/usr/share/nginx/nextcloud16/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php","line":67,"function":"GuzzleHttp\{closure}","class":"GuzzleHttp\Middleware","type":"::","args":[" sensitive parameters replaced "]},{"file":"/usr/share/nginx/nextcloud16/3rdparty/guzzlehttp/guzzle/src/Client.php","line":277,"function":"__invoke","class":"GuzzleHttp\HandlerStack","type":"->","args":[" sensitive parameter replaced "," sensitive parameter replaced "]},{"file":"/usr/share/nginx/nextcloud16/3rdparty/guzzlehttp/guzzle/src/Client.php","line":125,"function":"transfer","class":"GuzzleHttp\Client","type":"->","args":[" sensitive parameter replaced "," sensitive parameter replaced "]},{"file":"/usr/share/nginx/nextcloud16/3rdparty/guzzlehttp/guzzle/src/Client.php","line":131,"function":"requestAsync","class":"GuzzleHttp\Client","type":"->","args":["get",{"class":"GuzzleHttp\Psr7\Uri"},{"verify":"/usr/share/nginx/nextcloud-data/files_external/rootcerts.crt","timeout":5,"synchronous":true,"handler":{"class":"GuzzleHttp\HandlerStack"},"allow_redirects":{"max":5,"protocols":["http","https"],"strict":false,"referer":false,"track_redirects":false},"http_errors":true,"decode_content":true,"cookies":false,"_conditional":{"User-Agent":"GuzzleHttp/6.3.3 curl/7.58.0 PHP/7.2.24-0ubuntu0.18.04.1"}}]},{"file":"/usr/share/nginx/nextcloud16/lib/private/Http/Client/Client.php","line":162,"function":"request","class":"GuzzleHttp\Client","type":"->","args":["get","https://nextcloud.eduardo.com/hosting/discovery",{"verify":"/usr/share/nginx/nextcloud-data/files_external/rootcerts.crt","proxy":null,"timeout":5,"synchronous":true}]},{"file":"/usr/share/nginx/nextcloud16/apps/richdocuments/lib/WOPI/DiscoveryManager.php","line":106,"function":"get","class":"OC\Http\Client\Client","type":"->","args":["https://nextcloud.eduardo.com/hosting/discovery",{"timeout":5}]},{"file":"/usr/share/nginx/nextcloud16/apps/richdocuments/lib/WOPI/DiscoveryManager.php","line":78,"function":"fetchFromRemote","class":"OCA\Richdocuments\WOPI\DiscoveryManager","type":"->","args":[]},{"file":"/usr/share/nginx/nextcloud16/apps/richdocuments/lib/WOPI/Parser.php","line":41,"function":"get","class":"OCA\Richdocuments\WOPI\DiscoveryManager","type":"->","args":[]},{"file":"/usr/share/nginx/nextcloud16/apps/richdocuments/lib/TokenManager.php","line":186,"function":"getUrlSrc","class":"OCA\Richdocuments\WOPI\Parser","type":"->","args":["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]},{"file":"/usr/share/nginx/nextcloud16/apps/richdocuments/lib/Controller/DocumentController.php","line":236,"function":"getToken","class":"OCA\Richdocuments\TokenManager","type":"->","args":[" sensitive parameters replaced "]},{"file":"/usr/share/nginx/nextcloud16/lib/private/AppFramework/Http/Dispatcher.php","line":166,"function":"index","class":"OCA\Richdocuments\Controller\DocumentController","type":"->","args":[" sensitive parameter replaced ***"]},{"file":"/usr/share/nginx/nextcloud16/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OCA\Richdocuments\Controller\DocumentController"},"index"]},{"file":"/usr/share/nginx/nextcloud16/lib/private/AppFramework/App.php","line":126,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OCA\Richdocuments\Controller\DocumentController"},"index"]},{"file":"/usr/share/nginx/nextcloud16/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OCA\Richdocuments\Controller\DocumentController","index",{"class":"OC\AppFramework\DependencyInjection\DIContainer"},{"_route":"richdocuments.document.index"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":[{"_route":"richdocuments.document.index"}]},{"file":"/usr/share/nginx/nextcloud16/lib/private/Route/Router.php","line":297,"function":"call_user_func","args":[{"class":"OC\AppFramework\Routing\RouteActionHandler"},{"_route":"richdocuments.document.index"}]},{"file":"/usr/share/nginx/nextcloud16/lib/base.php","line":975,"function":"match","class":"OC\Route\Router","type":"->","args":["/apps/richdocuments/index"]},{"file":"/usr/share/nginx/nextcloud16/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/usr/share/nginx/nextcloud16/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","Line":186,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0","version":"16.0.6.1"}
Seems connector works well but Editor doesnt load…
Log docker:
Order to excute:
sudo docker run -t -d -p 127.0.0.1:9980:9980 -e "domain=nextcloud\\.eduardo\\.com" -e "username=nextcloudadmin" -e "password=Eutiquio12" --name=COLLABORAOFFICE --restart always --cap-add MKNOD collabora/code
Eror was something like Error connecting Collabora, try again later.
When i open a document it gets stuck thinkging with a circle in the middle, and some seconds after returns to the Nextcloud page.
The text was updated successfully, but these errors were encountered: