-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unix socket for onlyoffice #764
Comments
Hi, Since a last update 5.5 when i want to change my files in /var/www/onlyoffice/documentserver/server/DocService/ i find nothing. Is it possible that this update does not work? |
@bidouapp Since v5.5.0 we use compiled binaries of nodejs code (to remove dependency of nodejs), so source files are not aviables @konovalovsergey Could you take a look at original issue? Is there any way to set socket via config files, I think you added some support of sending options to redis, buy I may be wrong |
Hello, I haven't upgraded my instance to 5.5 yet because i don't want to break anything during quarantine and my company really needs it. Is there any way to make this easily configurable in the future ? maybe in the original install script ? I know you are working hard, and also that you recommend to install on 2 different servers onlyoffice and nextcloud, but i guess the reality is that a lot of people install in on the same host and thus using Unix socket leads to better performance. thanks for everythind and have a nice day ! |
@Walterfilms Hi, we just take a look into this problem and currently there is no way to set sockets via config. |
Yeah Redis Socket is really essential in my case. |
Hi, Is there any news on this subject? |
We are working on solution, but currently got troubles make it right Also please note, that since 5.5 redis is not required for OpenSource version of DocumentServer |
In addition to @ShockwaveNN comment, in a commercial version, you can also use in-process data storage. To do it, you have to change the "editorDataStorage" value in the config, from "editorDataRedis" to "editorDataMemory". |
I noticed this was closed, how do I specify for onlyoffice to connect to postgresql using the socket "/run/postgresql" sudo apt install onlyoffice-documentserver results in
|
@Xekon This issue cover only socket usage for redis, please create a new one for socket usage for postgre |
@ShockwaveNN I found this thread through google, because the opening post of this thread specifically talks about getting sockets to work for both redis and postgresql, it was not specific to redis only. you will see he lists:
and add:
I actually initially tried installing Collabora Office, and ran into a lot of trouble getting it working. So I decided to try OnlyOffice, however when I ran into just as much trouble with OnlyOffice I ended up giving Collabora another shot, several hours later and I now have Collabora working. I won't be making an issue report for postgresql since I now have Collabora working. |
If you are already using postgresql and redis unix socket with other services on the same host (like nextcloud for example) and you want to use those unix socket
based on #227
you have to modify pubsubRedis.js
sudo -u ds nano /var/www/onlyoffice/documentserver/server/DocService/sources/pubsubRedis.js
and change text :
to (would be actually nice to implement it directly when installing onlyoffice)
then edit file default.json:
nano /etc/onlyoffice/documentserver/default.json
look for this part and apply according to this (just verify that the path for socket are good but this works on centos 7) :
now edit local.json :
nano /etc/onlyoffice/documentserver/local.json
according to this (verify paths are also good) :
enable ds user to use redis socket :
usermod -aG redis ds
restart all services :
supervisorctl restart all
let me know if i forgot something
The text was updated successfully, but these errors were encountered: