ONLYOFFICE / snap-documentserver

The ONLYOFFICE Document Server snap package for the snap package system
https://snapcraft.io/onlyoffice-ds
GNU Affero General Public License v3.0
20 stars 6 forks source link

how to enable wopi? #137

Closed cethink closed 12 months ago

cethink commented 1 year ago

Before you get started with a demo sample of ONLYOFFICE Docs, please enable the WOPI protocol. Set the wopi.enable parameter in the Document Server configuration file to true and restart ONLYOFFICE Docs.

I tried everything, all failed :(

igwyd commented 1 year ago

Hello @cethink, change wopi.enable:false to wopi.enable:true in the /var/snap/onlyoffice-ds/current/etc/onlyoffice/documentserver/default.json and restart the services sudo snap restart onlyoffice-ds.

cethink commented 1 year ago

@igwyd thanks, I have tried, it doesn't work

igwyd commented 1 year ago

I did it right now on Ubuntu 20.04 server and it's work. Remove onlyoffice-ds with sudo snap remove --purge onlyoffice-ds and try again. How OS do you using, i will check.

cethink commented 1 year ago

The newest Almalinux, thanks.

igwyd commented 12 months ago

I checked it on Almalinux 9.3 - 5.14.0-362.8.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 7 14:54:22 EST 2023 x86_64 x86_64 x86_64 GNU/Linux and wopi enabling work same as i writed in my previos post. Could you try againg on clean updated server? After enable wopi wait about 2-3 min while onlyoffice server restarting and check it in the test example.

cethink commented 12 months ago

@igwyd Ok.

cethink commented 12 months ago

it's stuck!

[root@alma ~]# snap install onlyoffice-ds
error: cannot perform the following tasks:
- Run install hook of "onlyoffice-ds" snap if present (run hook "install":
-----
Update plugins ...
------------------------------------------------------------------------------------

<exceeded maximum runtime of 10m0s>
-----)

I use proxy with this, seems useless

snap set system proxy.https="http://127.0.0.1:7890"
snap set system proxy.http="http://127.0.0.1:7890"

Last time the installation was successful, I tried several times.

cethink commented 12 months ago

@igwyd Never mind, I give up :)