Get onlyoffice to work with nextcloud

Do you have the newest version 0.0.1-3 of nethserver-onlyoffice? You can check it with following command:

rpm -qa nethserver-onlyoffice

Please try another reinstall. You may also try a documentserver downgrade as described in the wiki.

yum -y reinstall https://github.com/ONLYOFFICE/DocumentServer/releases/download/ONLYOFFICE-DocumentServer-5.1.1/onlyoffice-documentserver.x86_64.rpm
signal-event nethserver-onlyoffice-update

I’ll try to reproduce the issue.

For now I don’t see a relation between onlyoffice and guacamole…

  • onlyoffice uses supervisor, postgres and nginx
  • guacamole uses tomcat and mysql

My working file for compare:

/etc/nginx/includes/onlyoffice-http.conf
upstream docservice {
  server localhost:8000;
}

upstream spellchecker {
  server localhost:8080;
}

upstream example {
  server localhost:3000;
}

proxy_cache_path /var/cache/nginx/onlyoffice/documentserver/
  levels=1:2
  keys_zone=fonts_cache:1m
  inactive=1d
  max_size=256m;

map $http_host $this_host {
    "" $host;
    default $http_host;
}

map $http_x_forwarded_proto $the_scheme {
     default $http_x_forwarded_proto;
     "" $scheme;
}

map $http_x_forwarded_host $the_host {
    default $http_x_forwarded_host;
    "" $this_host;
}

map $http_upgrade $proxy_connection {
  default upgrade;
  "" close;
}

proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $proxy_connection;
proxy_set_header X-Forwarded-Host $the_host;
proxy_set_header X-Forwarded-Proto $the_scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

EDIT:

I was wrong, there is a relation. Documentserver and tomcat seem to use port 8080. I have to check…

Workaround:

supervisorctl stop all
systemctl restart tomcat
supervisorctl start all

Now at least guacamole should work again.