Docker-DocumentServer icon indicating copy to clipboard operation
Docker-DocumentServer copied to clipboard

healthcheck returns false on new docker setup

Open cromulus opened this issue 7 years ago • 17 comments

Steps to reproduce:

sudo docker pull onlyoffice/documentserver
sudo docker run -i -t -d -p 80:80 \
    -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice  \
    -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  \
    -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice onlyoffice/documentserver
wget http://localhost/healthcheck

Any ideas?

cromulus avatar Jun 04 '17 18:06 cromulus

Try to not mount /app/onlyoffice/DocumentServer/lib or change permissions for /app/onlyoffice/DocumentServer/lib I think there is Error: EACCES: permission denied, mkdir '/var/lib/onlyoffice/documentserver' error in logs, because /app/onlyoffice/DocumentServer/lib folder have no permissions to user onlyoffice to write into

ShockwaveNN avatar Jun 05 '17 08:06 ShockwaveNN

Hi, i have the same problem. I have mounted the ../lib Dir and permissions for root correct. i have no user with name onlyoffice. What i do not understand is, where should the directory created? On localhost or in Docker?

Taste-IT avatar Jun 21 '17 15:06 Taste-IT

@Taste-IT Hi. Directory /app/onlyoffice/DocumentServer/lib should be present on host machine, not inside docker.

ShockwaveNN avatar Jun 21 '17 15:06 ShockwaveNN

Hi ShockwaveNN, yes /lib, /data and /logs exists. I got this problem since latest update of OO, before it works well. I delted the docker image and redownloaded newest OO, copied Certs into correct Dir and cant now start Document Server "Something went wrong..." is the message on Document Server Side. Any Idea?

Taste-IT avatar Jun 22 '17 08:06 Taste-IT

@Taste-IT I think something interesting should be in logs - see inside /var/log/onlyoffice in docker, or in host /app/onlyoffice/DocumentServer/logs if you mounted volume if like said earlier

ShockwaveNN avatar Jun 22 '17 08:06 ShockwaveNN

Hi, in nginx log - "..[crit] 411#0: *57 connect() to [::1]:8000 failed (99: Cannot assign requested address) while connecting to upstream, client .." in out.log "..Error: EACCES: permission denied, mkdir '/var/lib/onlyoffice/documentserver' .."

Taste-IT avatar Jun 22 '17 08:06 Taste-IT

I use OO Installation guide for docker and Document Server installation. Is there missing some fact i have todo before, perhaps?

Taste-IT avatar Jun 22 '17 08:06 Taste-IT

It same error as from topic starter. If you don't need use separate PostreSQL server - you can remove -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice and I hope everything will be fine

ShockwaveNN avatar Jun 22 '17 08:06 ShockwaveNN

Yes it is. I cant use a seperate PostgreSQL Server. A way up you said User OnlyOffice has no permission. On Host i have no user like this. Perhaps thats the problem. How to solve this. I wonder that no other have this problem, since i use the office Howto and my System is Debian stable with OO in Subdomain and Port Forward from 443 -> 8888. ?!

Taste-IT avatar Jun 22 '17 08:06 Taste-IT

No, no, you need mount lib IF you use separate Postgre, in your case you can remove this volume. Also you can change permission to /var/lib/onlyoffice to something like 777, but it's not secure

ShockwaveNN avatar Jun 22 '17 08:06 ShockwaveNN

Forgett to write - i dont have this directory

Taste-IT avatar Jun 22 '17 08:06 Taste-IT

Oh, sorry, I meant /app/onlyoffice/DocumentServer/lib on host

ShockwaveNN avatar Jun 22 '17 08:06 ShockwaveNN

Hi, i did and Document Server starts, but the Security is a problem. How to correct this finaly? It seems that the User in Dockerimage must have rights on this local directory, right? So how to solve this? Another major problem still exists and thats since the beginning of the integration in NextCloud -> Changes in an existing document didnt write back to the cloud. in out.log i see "...Error: Error response: statusCode:400 ;body: {"error":1} ... " Thanks for your help.

Taste-IT avatar Jun 22 '17 09:06 Taste-IT

Oh new documents will also not write back to nc, too.

Taste-IT avatar Jun 22 '17 09:06 Taste-IT

Backup to permissions - this happend not before actual version of OO, seems they changed something...

Taste-IT avatar Jun 22 '17 09:06 Taste-IT

but the Security is a problem. How to correct this finally

We long aware of this, and understand that is a problem, but currently have no perfect solution. We working on it.

NextCloud -> Changes in an existing document didnt write back to the cloud.

Please ask all question about NextCloud in https://github.com/ONLYOFFICE/onlyoffice-owncloud/issues

ShockwaveNN avatar Jun 22 '17 09:06 ShockwaveNN

Ok, i will do and wait for an update... Thanks so far.

Taste-IT avatar Jun 22 '17 10:06 Taste-IT

Hello @cromulus and @Taste-IT, sorry for the late reply, the error is not repiting.

igwyd avatar Oct 19 '23 10:10 igwyd

I close this issue. Feel free to comment or reopen it if you got further questions.

Rita-Bubnova avatar Oct 19 '23 10:10 Rita-Bubnova