Unable to edit documents after Docker installation of Community Edition

Questions/problems on Docker
Post Reply
pwozniak
Posts: 4
Joined: Mon Jan 27, 2020 4:58 pm

Unable to edit documents after Docker installation of Community Edition

Post by pwozniak » Mon Jan 27, 2020 5:23 pm

Hi,

I'm a newbie in OnlyOffice, but this project is really interesting.
I have an ubuntu 18.04.3 test server in a virtualbox machine.
Docker is running on my server.

So I downloaded the "opensource-install.sh" file to automatically install last "Community Edition" of OnlyOffice (10.5.1.317).
Yesterday I ran the program and everything works great. When my tests are over, I truned off my server and go to bed ;-)
Today, I restart my server and when I try to edit a document I've got an error : "Document Service is not available. Please contact support"
Immediately, I googled and I saw I have to go to "Settings / Integration / Document Service".
So here I can read :
Document Editing Service Address : /ds-vpath/
Document Service address for requests from the Community Server : http://onlyoffice-document-server/
Community Server address for requests from the Document Service : http://onlyoffice-community-server
Everywhere is said to set these configuration boxes to http://ip.address/ or http://localhost/
So I try to change it, but nothing works. I've got a message saying : Api url: Service is not defined
And nothing is saved... Damn...

So at https://helpcenter.onlyoffice.com/serve ... erver.aspx, I read I have to edit the file "/var/www/onlyoffice/WebStudio/web.appsettings.config" and set 3 lines to the IP adress of my server...
So I tried to do it and it was successfully saved.
But when I restart the Docker of Document Service, all my changes are reverted back to "/ds-vpath/", etc. and Document editor doesn't work anymore...

So please could you help me ?

Carl
Posts: 274
Joined: Thu Apr 12, 2018 10:00 am

Re: Unable to edit documents after Docker installation of Community Edition

Post by Carl » Tue Jan 28, 2020 11:10 am

Hello
Everywhere is said to set these configuration boxes to http://ip.address/ or http://localhost/
Where is this said? We strongly recommend to not change the default addresses on this page.

Please restart both Community Server and Document Server containers to revert all config changes. Then try to open a document. If the issue is still there, go to Document Server container docker exec -it onlyoffice-document-server bash and run supervisorctl restart all.

If your portal is not working after container restart, go to Community Server container docker exec -it onlyoffice-community-server bash and run service monoserve restart.

pwozniak
Posts: 4
Joined: Mon Jan 27, 2020 4:58 pm

Re: Unable to edit documents after Docker installation of Community Edition

Post by pwozniak » Tue Jan 28, 2020 1:58 pm

Hi,

I have restarted my server and like yesterday, Community server works fine, but I still can't edit a file.
The configuration files are back to default.

So I have run the commands you said :
docker exec -it onlyoffice-document-server bash
supervisorctl restart all
So I can read :
ds:spellchecker: stopped
ds:gc: stopped
ds:docservice: stopped
ds:converter: stopped
ds:metrics: stopped
ds:metrics: started
ds:spellchecker: started
ds:gc: started
ds:docservice: started
ds:converter: started
Community server still works but not document editor...
So I have run the second part :
docker exec -it onlyoffice-community-server bash
service monoserve restart
And I can read :
Stopping monoserve... Starting monoserve... OK
And one more time Community server works great but I can't edit a document.

So to summarize :
OnlyOffice portal works
When I click "Documents" I can access all my documents and folders
I can create folders and files but I can't edit any file : when clicking on a file to edit it, the message "Document Service is not available. Please contact support" appears in an javascript alert box :
Image

Carl
Posts: 274
Joined: Thu Apr 12, 2018 10:00 am

Re: Unable to edit documents after Docker installation of Community Edition

Post by Carl » Wed Jan 29, 2020 7:30 am

Hello,

Please go to Settings => Integration => Document Service => make a screenshot of the page.

Also run docker ps in the server terminal and send a screenshot of the output.

pwozniak
Posts: 4
Joined: Mon Jan 27, 2020 4:58 pm

Re: Unable to edit documents after Docker installation of Community Edition

Post by pwozniak » Wed Jan 29, 2020 10:57 am

Hi,

Sorry, but I prefer to reformat my virtual machine and have a clean installation.
So this is done and works well.

I would like to make my Community server secure with SSL.
When I look at https://helpcenter.onlyoffice.com/serve ... https.aspx to use HTTPS access, I think I have found the problem...
On the last installation, I try to make my Community Server accessible with HTTPS protocol and I had just copy/paste the commands and today, as I pay attention to what I do, I see the first command doesn't match with my installation...

I can read :
sudo docker run -i -t -d -p 80:80 -p 443:443 \
-v /app/onlyoffice/CommunityServer/logs:/var/log/onlyoffice \
-v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data onlyoffice/communityserver
But when I list my containers, I don't have any onlyoffice/communityserver but I have onlyoffice-community-server

So when I do that with my previous installation, I think I have made a big mistake...

So...
What have I to do to correctly setup SSL access to my Community server ?

Here is a screenshot of my containers with command docker ps -a :
Image

Carl
Posts: 274
Joined: Thu Apr 12, 2018 10:00 am

Re: Unable to edit documents after Docker installation of Community Edition

Post by Carl » Fri Jan 31, 2020 1:10 pm

Hello,

You don't need to run

Code: Select all

sudo docker run -i -t -d -p 80:80  -p 443:443 \
 -v /app/onlyoffice/CommunityServer/logs:/var/log/onlyoffice \
 -v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data onlyoffice/communityserver 
because the script has already run the container with the required parameters.

You just need to name your certificate and key as onlyoffice.crt and onlyoffice.key and place them to the folder /app/onlyoffice/CommunityServer/data/certs/ on host. This way you will enable HTTPS for your portal.

pwozniak
Posts: 4
Joined: Mon Jan 27, 2020 4:58 pm

Re: Unable to edit documents after Docker installation of Community Edition

Post by pwozniak » Tue Feb 04, 2020 8:08 am

Hi,
OK that works great.
Thanks.

Post Reply