documentserver_community icon indicating copy to clipboard operation
documentserver_community copied to clipboard

ONLYOFFICE not reachable. Contact your Administrator.

Open thomas81x opened this issue 5 years ago • 28 comments

Hello i installed Documentserver_comunity with a fresh installation of nextcloud 18.

After installation i can see in the onlyoffice Settings in nextcloud my internal IP: http://10.10.200.x/index.php/apps/documentserver_community/

If i connect to nextcloud via 10.10.200.x and start to edit a Document, everything works fine.

If i change to call nextcloud over the internet with dns xx.computer.com i can connect to nextcloud without problems. But when i try to edit a document in Onlyoffice i got the error "onlyoffice not reachable. Contact your Administrator"

Must be the Server in nextcloud - onlyoffice also a public domainname if i what to reach the service from extern, or could it be the local IP because it runs on the same server as nextcloud.

thomas81x avatar Jan 21 '20 10:01 thomas81x

You can change the generated url by setting

'overwrite.cli.url' => 'http://xx.computer.com/'

in your config.php

icewind1991 avatar Jan 24 '20 13:01 icewind1991

Hi, i am getting the same error message.

After the installation of onlyoffice and the document server the 'service address' was automatically set to:

https://nextcloud.mydomain.com/apps/documentserver_community/

The advanced server settings i left empty.

My config.php includes the following:

'overwrite.cli.url' => 'https://nextcloud.mydomain.com/',
'overwriteprotocol' => 'https',

The answer the browser gets is:

Failed to load resource: the server responded with a status of 500 ()
https://nextcloud.mydomain.com/apps/documentserver_community/web-apps/apps/api/documents/api.js

Edit: My error seems to be related to issue #10.

armin-co avatar Jan 26 '20 20:01 armin-co

Same here

Hi, i am getting the same error message.

After the installation of onlyoffice and the document server the 'service address' was automatically set to:

https://nextcloud.mydomain.com/apps/documentserver_community/

The advanced server settings i left empty.

My config.php includes the following:

'overwrite.cli.url' => 'https://nextcloud.mydomain.com/',
'overwriteprotocol' => 'https',

The answer the browser gets is:

Failed to load resource: the server responded with a status of 500 ()
https://nextcloud.mydomain.com/apps/documentserver_community/web-apps/apps/api/documents/api.js

Akruidenberg avatar Jan 27 '20 19:01 Akruidenberg

Came here from issue https://github.com/nextcloud/documentserver_community/issues/10 . I was getting the "Community document server is not supported for this instance, please setup and configure an external document server" error until the release the most recent updates to ONLYOFFICE and the Community Document Server, but am now getting the message "ONLYOFFICE not reachable. Contact your Administrator."

Here are the two most recent related logs:

[documentserver_community] Error: OCA\DocumentServer\Document\DocumentConversionException: sh: ./x2t: not found
 at <<closure>>

 0. /config/www/nextcloud/apps/documentserver_community/lib/Document/ConverterBinary.php line 64
    OCA\DocumentServer\Document\ConverterBinary->run("")
 1. /config/www/nextcloud/apps/documentserver_community/lib/SetupCheck.php line 34
    OCA\DocumentServer\Document\ConverterBinary->test()
 2. /config/www/nextcloud/apps/documentserver_community/lib/Controller/StaticController.php line 89
    OCA\DocumentServer\SetupCheck->check()
 3. /config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 170
    OCA\DocumentServer\Controller\StaticController->webApps("apps/api/documents/api.js")
 4. /config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OCA\DocumentServ ... {}, "webApps")
 5. /config/www/nextcloud/lib/private/AppFramework/App.php line 125
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\DocumentServ ... {}, "webApps")
 6. /config/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main("OCA\\DocumentSe ... r", "webApps", OC\AppFramework\ ... {}, {path: "apps/api ... "})
 7. <<closure>>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({path: "apps/api ... "})
 8. /config/www/nextcloud/lib/private/Route/Router.php line 299
    call_user_func(OC\AppFramework\ ... {}, {path: "apps/api ... "})
 9. /config/www/nextcloud/lib/base.php line 1008
    OC\Route\Router->match("/apps/documents ... s")
10. /config/www/nextcloud/index.php line 38
    OC::handleRequest()

GET /apps/documentserver_community/web-apps/apps/api/documents/api.js
from 172.19.0.1 by xthursdayx at 2020-01-29T21:25:24+00:00
[index] Error: Exception: trim() expects parameter 1 to be string, bool given at <<closure>>

0. /config/www/nextcloud/lib/private/AppFramework/App.php line 125
   OC\AppFramework\Http\Dispatcher->dispatch(OCA\DocumentServ ... {}, "webApps")
1. /config/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
   OC\AppFramework\App::main("OCA\\DocumentSe ... r", "webApps", OC\AppFramework\ ... {}, {path: "apps/api ... "})
2. <<closure>>
   OC\AppFramework\Routing\RouteActionHandler->__invoke({path: "apps/api ... "})
3. /config/www/nextcloud/lib/private/Route/Router.php line 299
   call_user_func(OC\AppFramework\ ... {}, {path: "apps/api ... "})
4. /config/www/nextcloud/lib/base.php line 1008
   OC\Route\Router->match("/apps/documents ... s")
5. /config/www/nextcloud/index.php line 38
   OC::handleRequest()

GET /apps/documentserver_community/web-apps/apps/api/documents/api.js
from 172.19.0.1 by xthursdayx at 2020-01-29T21:25:51+00:00

xthursdayx avatar Jan 29 '20 22:01 xthursdayx

Same here

Hi, i am getting the same error message. After the installation of onlyoffice and the document server the 'service address' was automatically set to: https://nextcloud.mydomain.com/apps/documentserver_community/ The advanced server settings i left empty. My config.php includes the following:

'overwrite.cli.url' => 'https://nextcloud.mydomain.com/',
'overwriteprotocol' => 'https',

The answer the browser gets is:

Failed to load resource: the server responded with a status of 500 ()
https://nextcloud.mydomain.com/apps/documentserver_community/web-apps/apps/api/documents/api.js

I had same 500 error when using alipine based nextcloud docker images (e.g. nextcloud:fpm-alpine), fixed by switching to debian based images (e.g. nextcloud:fpm).

please note: The community document server only supports running on x86-64 Linux servers using glibc based distributions.

wiyin avatar Feb 08 '20 02:02 wiyin

please note: The community document server only supports running on x86-64 Linux servers using glibc based distributions.

It also doesn't work on NixOS.

# ldd docbuilder
linux-vdso.so.1 (0x00007ffe80f65000)
libkernel.so => ./libkernel.so (0x00007fcce2647000)
libdoctrenderer.so => ./libdoctrenderer.so (0x00007fcce144b000)
libc.so.6 => /nix/store/wx1vk75bpdr65g6xwxbj4rw0pk04v5j3-glibc-2.27/lib/libc.so.6 (0x00007fcce1295000)
libpthread.so.0 => /nix/store/wx1vk75bpdr65g6xwxbj4rw0pk04v5j3-glibc-2.27/lib/libpthread.so.0 (0x00007fcce1274000)
libm.so.6 => /nix/store/wx1vk75bpdr65g6xwxbj4rw0pk04v5j3-glibc-2.27/lib/libm.so.6 (0x00007fcce10de000)
/lib64/ld-linux-x86-64.so.2 => /nix/store/wx1vk75bpdr65g6xwxbj4rw0pk04v5j3-glibc-2.27/lib64/ld-linux-x86-64.so.2 (0x00007fcce2a6a000)
libUnicodeConverter.so => ./libUnicodeConverter.so (0x00007fcce0e90000)
libgraphics.so => ./libgraphics.so (0x00007fcce0682000)
libicuuc.so.58 => ./libicuuc.so.58 (0x00007fcce02bc000)
libstdc++.so.6 => not found
libgcc_s.so.1 => /nix/store/wx1vk75bpdr65g6xwxbj4rw0pk04v5j3-glibc-2.27/lib/libgcc_s.so.1 (0x00007fcce00a6000)
libicudata.so.58 => ./libicudata.so.58 (0x00007fccde5a6000)
libdl.so.2 => /nix/store/wx1vk75bpdr65g6xwxbj4rw0pk04v5j3-glibc-2.27/lib/libdl.so.2 (0x00007fccde59f000)
libstdc++.so.6 => not found

Don't know if that's for anyone helpful.

cw789 avatar Feb 11 '20 10:02 cw789

Same problem ... Is there any update on how to solve this issue ?

To summarize my configuration ... I have fresh installation of Nexcloud 18.0.1 on a webserver (Debian 8 Jessie on x86-64 architecture) I activated ONLYOFFICE version 4.1.4 I installed and activated the available "Community Document Server" app version 0.1.5 When I try to open a document (docx for example) I obtain the following error "ONLYOFFICE cannot be reached. Please contact admin"

domchrgit avatar Feb 20 '20 11:02 domchrgit

@domchrgit change your Onlyoffice Document Server to

https://nextcloud.mydomain.com/apps/documentserver_community/

And add into your config/config.php

'overwriteprotocol' => 'https',

https://github.com/nextcloud/documentserver_community/issues/24#issuecomment-578542152

mr-bolle avatar Feb 29 '20 14:02 mr-bolle

@mr-bolle thanks for your answer I tried to setup the Only Document Server address but I received an error if I remove the 'index.php' in the address

Error when trying to connect (Client error: GET https://www.mydomain.com/cloudtest/apps/documentserver_community/healthcheck resulted in a 404 Not Found response: true )

And in overwriteprotocol does I need to put only https or also the address of the server ?

Thanks again for your support

domchrgit avatar Mar 02 '20 08:03 domchrgit

Do you use the sub-path for your Nextcloud session? What reverse proxy you use? Currently I try to use traefik with a sub-path and it doesn't work as well.

Could you try with a new sub domain ex. https://cloudtest/mydomain.com/apps/documentserver_community

mr-bolle avatar Mar 02 '20 10:03 mr-bolle

I installed nextcloud in a the subfolder named cloudtest ... then the path of my Nextcloud session is https://www.mydomain.com/cloudtest ... I also tried with a redirection https://cloudtest.mydomain.com but I obtain always the same error if I remove the 'index.php' in the address

domchrgit avatar Mar 02 '20 12:03 domchrgit

Could you please try a sub domain for Nextcloud, without redirect. Maybe other requests you don't redirect

mr-bolle avatar Mar 02 '20 13:03 mr-bolle

Sorry but that's not clear for me what you mean by sub domain ?

domchrgit avatar Mar 02 '20 14:03 domchrgit

https://stackoverflow.com/questions/1965609/subdomain-vs-subdirectory-in-web-programming

mr-bolle avatar Mar 02 '20 16:03 mr-bolle

I'm back ... Unfortunatelly I have still the problem to launch OnlyOffice in Nextcloud :(

Meanwhile, I made a fresh install of Nextcloud 18 at the root of a server (without subdomain or subdirectory) . I can then access the cloud directly from www.mydomain.com In the configuration of OnlyOffice server in Nextcloud the following address was automatically indicated : http://www.mydomain.com/index.php/apps/documentserver_community/

What is wrong ? What I need to put exactly in the config.php file (overwrite.cli.url and overwriteprotocol) ? Thanks again for you help and support :)

domchrgit avatar Mar 11 '20 07:03 domchrgit

  • change the Onlyoffice URL in Nextcloud to https
https://www.mydomain.com/index.php/apps/documentserver_community/
  • add into your config/config.php
'overwriteprotocol' => 'https',
  • no changes necessary (I think)
'overwrite.cli.url' => 'https://mydomain.com/',

mr-bolle avatar Mar 11 '20 08:03 mr-bolle

Thanks @mr-bolle for your reactivity ! Unfortunatelly, it doesn't work ... still error message ""ONLYOFFICE cannot be reached. Please contact admin"

domchrgit avatar Mar 11 '20 09:03 domchrgit

Please check / change the overwrite.cli.url, hopefully it works.

overwrite.cli.url' => 'http://mydomain.com/'

mr-bolle avatar Mar 11 '20 10:03 mr-bolle

Sorry, I tried with https and http and I obtain always the same error ..

domchrgit avatar Mar 11 '20 12:03 domchrgit

Same error... ONLYOFFICE cannot be reached. Please contact admin new installation of nexcloud community edition. HAve 2 different error into log page... please help me. Anyone have solution???

Here log: [index] Error: Exception: trim() expects parameter 1 to be string, bool given at <>

  1. /home/crescin7/cloud/lib/private/AppFramework/App.php line 125 OC\AppFramework\Http\Dispatcher->dispatch(OCA\DocumentServ ... {}, "webApps")
  2. /home/crescin7/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47 OC\AppFramework\App::main("OCA\DocumentSe ... r", "webApps", OC\AppFramework\ ... {}, {path: "apps/api ... "})
  3. <> OC\AppFramework\Routing\RouteActionHandler->__invoke({path: "apps/api ... "})
  4. /home/crescin7/cloud/lib/private/Route/Router.php line 299 call_user_func(OC\AppFramework\ ... {}, {path: "apps/api ... "})
  5. /home/crescin7/cloud/lib/base.php line 1008 OC\Route\Router->match("/apps/documents ... s")
  6. /home/crescin7/cloud/index.php line 38 OC::handleRequest()

GET /index.php/apps/documentserver_community/web-apps/apps/api/documents/api.js from 93.41.237.221 by Diego at 2020-03-11T12:33:33+00:00

------------AND SECOND ERROR------------

[documentserver_community] Error: OCA\DocumentServer\Document\DocumentConversionException: ./x2t: /lib64/libc.so.6: version GLIBC_2.14' not found (required by ./x2t) ./x2t: /lib64/libc.so.6: version GLIBC_2.14' not found (required by ./libkernel.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.7' not found (required by ./libkernel.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.17' not found (required by ./libkernel.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.8' not found (required by ./libgraphics.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.14' not found (required by ./libgraphics.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.7' not found (required by ./libgraphics.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.11' not found (required by ./libgraphics.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.14' not found (required by ./libPdfWriter.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.11' not found (required by ./libPdfWriter.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.7' not found (required by ./libdoctrenderer.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.17' not found (required by ./libdoctrenderer.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.14' not found (required by ./libdoctrenderer.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.14' not found (required by ./libHtmlRenderer.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.14' not found (required by ./libPdfReader.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.11' not found (required by ./libPdfReader.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.14' not found (required by ./libDjVuFile.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.14' not found (required by ./libXpsFile.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.14' not found (required by ./libHtmlFile.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.14' not found (required by ./libUnicodeConverter.so) ./x2t: /lib64/libc.so.6: version GLIBC_2.14' not found (required by ./libicuuc.so.58) ./x2t: /lib64/libc.so.6: version GLIBC_2.7' not found (required by ./libicuuc.so.58) at <>

  1. /home/crescin7/cloud/apps/documentserver_community/lib/Document/ConverterBinary.php line 72 OCA\DocumentServer\Document\ConverterBinary->run("")
  2. /home/crescin7/cloud/apps/documentserver_community/lib/SetupCheck.php line 34 OCA\DocumentServer\Document\ConverterBinary->test()
  3. /home/crescin7/cloud/apps/documentserver_community/lib/Controller/StaticController.php line 89 OCA\DocumentServer\SetupCheck->check()
  4. /home/crescin7/cloud/lib/private/AppFramework/Http/Dispatcher.php line 170 OCA\DocumentServer\Controller\StaticController->webApps("apps/api/documents/api.js")
  5. /home/crescin7/cloud/lib/private/AppFramework/Http/Dispatcher.php line 99 OC\AppFramework\Http\Dispatcher->executeController(OCA\DocumentServ ... {}, "webApps")
  6. /home/crescin7/cloud/lib/private/AppFramework/App.php line 125 OC\AppFramework\Http\Dispatcher->dispatch(OCA\DocumentServ ... {}, "webApps")
  7. /home/crescin7/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47 OC\AppFramework\App::main("OCA\DocumentSe ... r", "webApps", OC\AppFramework\ ... {}, {path: "apps/api ... "})
  8. <> OC\AppFramework\Routing\RouteActionHandler->__invoke({path: "apps/api ... "})
  9. /home/crescin7/cloud/lib/private/Route/Router.php line 299 call_user_func(OC\AppFramework\ ... {}, {path: "apps/api ... "})
  10. /home/crescin7/cloud/lib/base.php line 1008 OC\Route\Router->match("/apps/documents ... s")
  11. /home/crescin7/cloud/index.php line 38 OC::handleRequest()

GET /index.php/apps/documentserver_community/web-apps/apps/api/documents/api.js from 93.41.237.221 by Diego at 2020-03-11T12:33:33+00:00

aircrescio avatar Mar 11 '20 12:03 aircrescio

https://github.com/nextcloud/documentserver_community/issues/10

Please try to use this solution, my Nextcloud installation is running into a docker container, that's why i can't reproduce your issue.

mr-bolle avatar Mar 11 '20 13:03 mr-bolle

I just do that… i try with no changes… for this reason i post my question.

Il giorno 11 mar 2020, alle ore 14:56, mr-bolle [email protected] ha scritto:

#10 https://github.com/nextcloud/documentserver_community/issues/10 Please try to use this solution, my Nextcloud installation is running into a docker container, that's why i can't reproduce your issue.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nextcloud/documentserver_community/issues/24#issuecomment-597649357, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKK6UCTFSNIBCXLBDDVZOTRG6KBTANCNFSM4KJRAK4Q.


Diego Crescini Email: [email protected] P.IVA IT03571290984 Tel. 3391741024


In ottemperanza al D.L. 196 del 30/06/2003 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate ed esclusivamente indirizzate al destinatario. Qualsiasi uso, riproduzione o divulgazione di questo messaggio è vietato! Se lo avete ricevuto per errore avvertite il mittente e distruggetelo. Grazie

aircrescio avatar Mar 11 '20 14:03 aircrescio

Thanks @mr-bolle for your reactivity ! Unfortunatelly, it doesn't work ... still error message ""ONLYOFFICE cannot be reached. Please contact admin"

Last update... it works now !!! It was a problem on server side with the PHP features like exec, shell_exec, popen, proc_open... Now these features are correctly activated on the server and OnlyOffice works fine :) Thanks again for your support.

domchrgit avatar Mar 11 '20 14:03 domchrgit

Thanks @mr-bolle for your reactivity ! Unfortunatelly, it doesn't work ... still error message ""ONLYOFFICE cannot be reached. Please contact admin"

Last update... it works now !!! It was a problem on server side with the PHP features like exec, shell_exec, popen, proc_open... Now these features are correctly activated on the server and OnlyOffice works fine :) Thanks again for your support.

Can you explane how you fix it? @domchrgit

aircrescio avatar Mar 11 '20 15:03 aircrescio

@aircrescio

To be clear, I don't built my own web server. I use a commercial web provider for different purposes and my nextcloud installation is on a server of this provider. There are many options on the dashbord side of the server and one of them is dedicated to the PHP parameters of the server. And I found that some PHP functions (that I mentioned above exec(),shell_exec()...) were disabled by default, "as it represents a significant vulnerability in the event of a website being hacked" , as mentioned by the provider... I don't know if you can play with these functions on your server.

Thus the problem was finally outside of my installation of nextcloud, community server and onlyoffice.

domchrgit avatar Mar 12 '20 07:03 domchrgit

Hi, i had same issue and thanks to https://github.com/nextcloud/documentserver_community/issues/24#issuecomment-597495166 for making it clear for me

Yes changing it to https in config did not solve it for me either BUT when you go to your onlyoffice settings (https://cloud.domain.ltd/settings/admin/onlyoffice) and change link from http to https and save. it worked with me

so instead of adding it in nextcloud config, add it in onlyoffice settings

EsmailELBoBDev2 avatar Jan 27 '22 12:01 EsmailELBoBDev2

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 60 days. Thank you for your contribution!

Retaking repo management include inheritance of old, not treated, and probablty obsolete issues, this is why it was decided to mark issues as stale.

github-actions[bot] avatar Feb 26 '24 00:02 github-actions[bot]

App is installed and enabled for this instance, but the app-URL cannot be reached:

image

itkfm avatar Apr 19 '24 13:04 itkfm

You should override DNS entry with your local resolver to match app URL or just configure IPv6 which will be tried before IPv4

chadek avatar Jul 12 '24 11:07 chadek

App is installed and enabled for this instance, but the app-URL cannot be reached:

image

No context and most likely not related to the original issue

chadek avatar Jul 12 '24 11:07 chadek