Need Help for OnlyOffice_ynh

fr
en

#61

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


#62

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


#63

my goal is to install nextcloud on same domain https://yuno.probetech.be/welcome/.
But i have onlyoffice. do you know how to fix stable branch or beta_work branch on github !



#64

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 ?


#65

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


#66

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.


#67

I changed the beta because the beta is for the multi-instance.
How should I change : https://github.com/liberodark/onlyoffice_ynh/blob/beta/conf/nginx.conf#L1


#68

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>
    timeout=opts.timeout,
  File "/usr/lib/python2.7/dist-packages/moulinette/__init__.py", line 136, in cli
    moulinette.run(args, output_as=output_as, password=password, timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py", line 390, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 498, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/log.py", line 276, in func_wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/moulinette/yunohost/app.py", line 865, in app_install
    app_ssowatconf(auth)
  File "/usr/lib/moulinette/yunohost/app.py", line 1401, in app_ssowatconf
    unprotected_urls.append(app_settings['domain'] + app_settings['path'].rstrip('/') + item)
KeyError: 'path'

On https://github.com/liberodark/onlyoffice_ynh/tree/beta

Branch

  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


#69

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.


#70

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 : exmple.com
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.


#71

:thinking:

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 ?


#72

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.


#73

Have you had a look to this documentation ?
https://helpcenter.onlyoffice.com/server/document/document-server-proxy.aspx


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


#74

ok you have idea to make this on my script ?


#75

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.


#76

Ok thank have make commit im try !
Please look my file : https://github.com/liberodark/onlyoffice_ynh/blob/beta/conf/nginx.conf


#77

Have error : https://paste.yunohost.org/magefitada.bash


#78

have a success install but no see onlyoffice page can you check my script please : https://github.com/liberodark/onlyoffice_ynh/tree/beta

Have change install in script and nginx.conf in conf

Install Log
https://paste.yunohost.org/uhegebunid.bash


#79

What about his commit ? https://github.com/liberodark/onlyoffice_ynh/commit/09344f57182738ac64f442e89c25b6906eef640a#diff-2da33fb08900b413f2f199fe4ba4aa0f

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.


#80

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__ {
  proxy_pass        http://127.0.0.1:__PORT__;

Or better this ?

location __PATH__ {
  proxy_pass        http://127.0.0.1:__PATH__:__PORT__;

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

Structure of deb :

**etc**
=>nginx
=>onlyoffice
=>supervisor
**lib**
**usr**
=>share=>doc=>onlyoffice-documentserver
=>bin
**var**
=>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