NextCloud - Only Offcie Integration

Hi,

we are evaluating Nextcloud and are comparing it with OneDrive für Business.

For Office (collaboration not necessary) we would like to use OnlyOffice Integration Server On Premise – no public cloud services.

At the moment we are running Nextcloud on Ubuntu Server18.04.1 LTS:
We secured it with certificates signed by our own PKI –works without any problems.
Now we installed OnlyOffice Integration Server on Windows (Yeah, Yeah I know…);
this server alos got certificates signed by our PKI – works (test page…).

But when I try to configure the connector it does not work.
For our OnlyOffice Integration config please see attached screenshot.
When I click „save“ long time nothing happens.
Nextcloud log says: „
Error onlyoffice CommandRequest on check error: Bad Request oder Timeout Fehlermeldung 2018-08-01T15:05:43+0200

Error PHP file_get_contents(https://onlyoffice.xxxxx.xxxxx.de/coauthoring/CommandService.ashx): failed to open stream: HTTP request failed! At var/www/html/nextcloud/apps/onlyoffice/lib/documentservice.php#351

OnlyOffice Out_Log says:

2018-08-01 16:04:47.535] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
at Object.exports._errnoException (util.js:1020:11)
at exports._exceptionWithHostPort (util.js:1043:20
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)

I tried hosts file, configuring Windows firewall, onlyoffice’=>array(‘verify_peer_off’=>true).
Until now it does not run

Help would be really appreciated.

Thanks in advance

From your description I can’t really make out what the issue is, but maybe it is something Windows Server specific? I would try it with Docker instead…

But when you navigate to the OnlyOffice Document server URL you get a “Thank you for choosing OnlyOffice - Document Server is running” page?

Thank you very much for your answer.
The issue is that Nextcloud works as if there were no OnlyOffice Plugin.
So when you open a doc or docx for example just the download dialogie pops up so that I can open the document with my local Office or save it to disk.
“something with Windows Server” is a bit too easy, I think. It is fully supported there .

Yes the OnlyOffice welcome page works without problems: […] "ONLYOFFICE™ Integration Edition – Welcome!
Congratulations! Your Document Server has successfully started.[…]

Thanks
regards
/bkpfast

I noticed a similar behavior of the OO Nextcloud plugin on my installation when the connection to the Document Server could not be established (but mine did not show the “Document server is running” page either). After I fixed that (and completely uninstalled and reinstalled the Nextcloud plugin, but I don’t think that was really necessary) it worked as expected.

But since you seem to have paid for the integration edition, why not ask the official support?

Hello @bkpfast, according to the log of the Document Server, it seems that RabbitMQ service is not working correctly.

Please specify some additional information about the problem:

  1. Confirm that port 5672 is opened;
  2. Check that RabbitMQ service is running via Windows Services tool. Try to restart it.
  3. Send us the config of the Document Server: C:\Program Files\ONLYOFFICE\DocumentServer\nginx-1.11.4\conf\onlyoffice-documentserver.conf
  4. Specify is Windows OS of your server has English localization. There is a problem with RabbitMQ service on some localizations.

Hello I have the same issue I instaled nextcloud 15.0.2 (last update) and only office on premise both nextcloud and onlyoffice works fine but I am unable to integrate onlyoffice with my NC server
OnlyOffice and Nextcloud are both installed on Debian 9.6 for both of them I have valid certificates and servers are reachable form each IP and from my IP (not opened to any though)

my nextcloud domain name is : https://nextcloud.youboost.tn
my onlyoffice domain name is : https://office.youboost.tn

when I try to configure onlyoffice integration on nextcloud I get those error messages

{“reqId”:“SoNHbN7xCVIgQSpV0SE2”,“level”:3,“time”:“2019-01-16T11:58:04+00:00”,“remoteAddr”:“172.16.100.130”,“user”:“tahar”,“app”:“PHP”,“method”:“PUT”,“url”:"/apps/onlyoffice/ajax/settings",“message”:“file_get_contents(https://office.youboost.tn/ConvertService.ashx): failed to open stream: HTTP request failed! HTTP/1.1 504 Gateway Time-out\r\n at /var/www/html/nextcloud/apps/onlyoffice/lib/documentservice.php#385”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36”,“version”:“15.0.2.0”}

{“reqId”:“SoNHbN7xCVIgQSpV0SE2”,“level”:3,“time”:“2019-01-16T11:59:04+00:00”,“remoteAddr”:“172.16.100.130”,“user”:“tahar”,“app”:“onlyoffice”,“method”:“PUT”,“url”:"/apps/onlyoffice/ajax/settings",“message”:“GetConvertedUri on check error: Une erreur s’est produite dans le service de document: Unknown error”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36”,“version”:“15.0.2.0”}

I also tried to use internal addresses it says update succeeded but on my logs I have issues

{“reqId”:“oZG2JsgXUNydUl5hc9E8”,“level”:3,“time”:“2019-01-16T12:09:06+00:00”,“remoteAddr”:“172.16.100.130”,“user”:“tahar”,“app”:“PHP”,“method”:“PUT”,“url”:"/apps/onlyoffice/ajax/settings",“message”:“Undefined variable: error at /var/www/html/nextcloud/apps/onlyoffice/controller/settingscontroller.php#180”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36”,“version”:“15.0.2.0”,“id”:“5c3f1ee987486”}

Also I have no onlyoffice entry in my nextcloud/config/config.php file I added manually

‘onlyoffice’ =>
array (
‘verify_peer_off’ => TRUE
),

But it didn’t solve anything

any help please ? Thank you

Did you solve your problem ? Im facing something similar in ubuntu 18.04

[2019-11-23T21:17:59.521] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14)
[2019-11-23T21:18:00.536] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14)
[2019-11-23T21:18:01.693] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode

Hi,
i have a similar problem but by updating the system. Ubuntu 18.04

Vorbereitung zum Entpacken von .../64-onlyoffice-documentserver_5.5.0-165_amd64.deb ...
Preparing for shutdown, it can take a lot of time, please wait...[2020-03-09T12:30:15.690] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
    at Object._errnoException (util.js:1022:11)
    at _exceptionWithHostPort (util.js:1044:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)
[2020-03-09T12:30:16.700] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
    at Object._errnoException (util.js:1022:11)
    at _exceptionWithHostPort (util.js:1044:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)

end then a endless loop:

[2020-03-09T12:49:55.230] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
    at Object._errnoException (util.js:1022:11)
    at _exceptionWithHostPort (util.js:1044:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)
[2020-03-09T12:49:56.235] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
    at Object._errnoException (util.js:1022:11)
    at _exceptionWithHostPort (util.js:1044:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)
[2020-03-09T12:49:57.238] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
    at Object._errnoException (util.js:1022:11)
    at _exceptionWithHostPort (util.js:1044:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)
[2020-03-09T12:49:58.243] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
    at Object._errnoException (util.js:1022:11)
    at _exceptionWithHostPort (util.js:1044:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)

it is strange but i solved it by interrupting the machine…
go back to latest snapshot…

then hold the documentserver from updating:
sudo apt-mark hold onlyoffice-documentserver

updating all others
sudo apt-get update && sudo apt-get dist-upgrade

unhold the docserver and updating it:
sudo apt-mark unhold onlyoffice-documentserver
sudo apt-get update && sudo apt-get dist-upgrade

this was works for me