Need Help for OnlyOffice_ynh



The script has been configured to be installed on a whole domain so Nextcloud can’t be installed next to it


Is this app needs a whole domain ?
How this is suppose to work with nextcloud ?


my goal is to install nextcloud on same domain
But i have onlyoffice. do you know how to fix stable branch or beta_work branch on github !


I got that, but it doesn’t answer my questions.
Does onlyoffice need a whole domain ? Does it even need a path ?
I don’t know how this app is supposed to work with nextcloud, is it just a plugin for it ? A separate application that use nextcloud ?

Currently, there’s a conflict because your app is installed on the root of a domain, which forbid to install any other app on this domain. So, does onlyoffice need that ? Does onlyoffice need a specific path to work ?


It’s just a plugin, onlyoffice-documentserver doesn’t need a specific path.


Ok, in that case, remove the question in the manifest, do not use a fixed path in nginx, or use nextcloud’s path.
And, in your install script, remove those lines, which are used to set and book a path in YunoHost.


I changed the beta because the beta is for the multi-instance.
How should I change :


Have this error :

INFO The operation 'Install 'onlyoffice' application' has failed ! To get help, please share the full log of this operation using the command 'yunohost log display 20181110-150454-app_install-onlyoffice --share'
87485 DEBUG action [2895.1] executed in 87.334s
87485 DEBUG lock has been released
Traceback (most recent call last):
  File "/usr/bin/yunohost", line 213, in <module>
  File "/usr/lib/python2.7/dist-packages/moulinette/", line 136, in cli, output_as=output_as, password=password, timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/", line 390, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/moulinette/", line 498, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/", line 276, in func_wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/moulinette/yunohost/", line 865, in app_install
  File "/usr/lib/moulinette/yunohost/", line 1401, in app_ssowatconf
    unprotected_urls.append(app_settings['domain'] + app_settings['path'].rstrip('/') + item)
KeyError: 'path'



  1. Master = Stable is version respect yunohost type install need fix for run server have 502 gateway !

  2. Beta = Beta is version for multi-instances (add possibility to install on same domain as nextcloud) need fix for install on /onlyoffice !

  3. Beta_work = Working version but run official commands of onlyoffice (two depots are installed nodejs and onlyoffice) need fix for open document on nextcloud


If no path are registered in your config, unprotected_uris can’t use it when you ask for a relative url.

Isn’t this config file better than the current one ? Since you’re not supposed to use a path for this app.


I want to define a path. I need it to ask the same install question as for nextcloud.
For me the better is this :
Select your domain :
Select your path : /onlyoffice
Select your port : 9980

PS : onlyoffice-documentserver is a server and nextcloud has a little plugin connector for onlyoffice but actually im speaking of OnlyOffice Document Server which is not a plugin.



Does onlyoffice supposed to be accessible via a path, or only by its port ?
Does onlyoffice have an interface on its own, or is it only inside nextcloud ?
If onlyoffice eventually needs a path, is there any difficulties about using a sub path ? Is there a documentation about that ?


It’s accessible via a path, but it requires a port. It has an interface on its own.
There shouldn’t be anu issue to use a sub path and there is documentation on the onlyoffice website about the port opening.


Have you had a look to this documentation ?

Looks like it’s exactly what you’re looking for. Maybe the server part should be removed though.


ok you have idea to make this on my script ?


Copy that config file as nginx.conf in conf, replace all occurrences of the sub path by __PATH__ , the port by __PORT__ and try it with the nginx helper.


Ok thank have make commit im try !
Please look my file :


Have error :


have a success install but no see onlyoffice page can you check my script please :

Have change install in script and nginx.conf in conf

Install Log


What about his commit ?

I guess that was the version of nginx which failed with the previous given log.
And so, did you check the log of nginx to know why it failed ?
I bet on the server directive.


Have no see nginx log. but nginx.service don’t start with this config !
The new commit is work for start nginx.service but no see page of onlyoffice.
This is correct ?

location __PATH__ {

Or better this ?

location __PATH__ {

The move in /onlyoffice work no work on /test for exemple !
You have idea ?

Structure of deb :

=>www =>onlyoffice

What I see easiest to do is to say that it can only install in / onlyoffice and therefore set it here by default as it is already the case but left the place on the domain to install nextcloud.

I need help because I do not know how to do it and I have to finish it!
It must be able to install on the same domain as another apps that’s all I want with the selection of ports

Stupid question but other idea is move folder :

  1. mkdir /var/www/$apps

  2. puis mv /var/www/onlyoffice /var/www/$apps ?

The most important for me is work installation /onlyoffice is good for me but need to have possiblity to install in same domain has nextcloud

Best regards