Try the fastest and simplest way to install ONLYOFFICE

Docker install inside LXC container - permission error

Issues during installation and related to database

Docker install inside LXC container - permission error

Postby jnielandt » Wed Oct 19, 2016 12:00 pm

Hi everyone,

A quick description of the environment i'm using:
- the host machine is an ubuntu 16.04 install
- i created an LXC container in which i started the docker installer for the community edition (the .sh script)
- i created a port forward for 8066 (host) -> 80 (lxc container)

The docker container starts successfully within the LXC container, all processes seem to be running and i can surf to host:8066. However, at that point i get a 403 error in the browser. Further investigations leads to the nginx error log inside the docker of onlyoffice/communityserver:8.9.1.191:

Code: Select all
2016/10/19 11:40:30 [error] 30#30: *19 open() "/var/www/onlyoffice/WebStudio/StartConfigure.htm" failed (13: Permission denied), client: myip, server: , request: "GET / HTTP/1.1", host: "host:8066"


The same .sh script is running fine within my own computer (as a test), i can properly access it with localhost:80 in the browser. /var/www/onlyoffice is owned by the user onlyoffice. And a quick printout of onlyoffice related processes can be found below. Hopefully you can see a quick error which I'm missing... thanks!

Code: Select all
root@863a755b2b71:/var/www/onlyoffice# ps aux | grep onlyoffice
root         1  0.0  0.0    176     4 ?        Ss+  10:26   0:00 dumb-init bash --rcfile /app/onlyoffice/run-community-server.sh -i
root         7  0.0  0.0  19868  2828 ?        Ss   10:26   0:00 bash --rcfile /app/onlyoffice/run-community-server.sh -i
root      9264  0.0  0.0  10468  1452 ?        S+   11:59   0:00 grep --color=auto onlyoffice
onlyoff+ 22701  0.1  0.5 1316072 47556 ?       Sl   11:41   0:01 /usr/bin/mono --server /usr/lib/mono/4.5/mono-service.exe -d:/var/www/onlyoffice/Services/TeamLabSvc -l:/tmp/onlyofficeNotify /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe --service "ASC.Notify.NotifyServiceLauncher,ASC.Notify" --log Notify
onlyoff+ 22703  0.0  0.4 497068 40604 ?        Sl   11:41   0:01 /usr/bin/mono --server /usr/lib/mono/4.5/mono-service.exe -d:/var/www/onlyoffice/Services/MailWatchdog -l:/tmp/onlyofficeMailWatchdog /var/www/onlyoffice/Services/MailWatchdog/ASC.Mail.Watchdog.Service.exe
onlyoff+ 22707  0.1  0.5 500392 43796 ?        Sl   11:41   0:01 /usr/bin/mono --server /usr/lib/mono/4.5/mono-service.exe -d:/var/www/onlyoffice/Services/MailAggregator -l:/tmp/onlyofficeMailAggregator /var/www/onlyoffice/Services/MailAggregator/ASC.Mail.Aggregator.CollectionService.exe
onlyoff+ 22722  0.0  0.4 497620 34612 ?        Sl   11:41   0:01 /usr/bin/mono --server /usr/lib/mono/4.5/mono-service.exe -d:/var/www/onlyoffice/Services/TeamLabSvc -l:/tmp/onlyofficeJabber /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe --service "ASC.Xmpp.Host.XmppServerLauncher,ASC.Xmpp.Host" --log Jabber
onlyoff+ 22726  0.1  0.5 511120 45988 ?        Sl   11:41   0:01 /usr/bin/mono --server /usr/lib/mono/4.5/mono-service.exe -d:/var/www/onlyoffice/Services/TeamLabSvc -l:/tmp/onlyofficeFeed /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe --service "ASC.Feed.Aggregator.FeedAggregatorLauncher,ASC.Feed.Aggregator" --log Feed
onlyoff+ 22817  0.1  0.4 644856 39608 ?        Sl   11:41   0:01 /usr/bin/mono --server /usr/lib/hyperfastcgi/4.0/HyperFastCgi.exe /logfile=/var/log/onlyoffice/monoserve2.log /config=/etc/hyperfastcgi/onlyoffice2
onlyoff+ 22820  0.1  0.4 647344 39908 ?        Sl   11:42   0:01 /usr/bin/mono --server /usr/lib/hyperfastcgi/4.0/HyperFastCgi.exe /logfile=/var/log/onlyoffice/monoserveApiSystem.log /config=/etc/hyperfastcgi/onlyofficeApiSystem
onlyoff+ 22822  0.1  0.4 644860 37552 ?        Sl   11:42   0:01 /usr/bin/mono --server /usr/lib/hyperfastcgi/4.0/HyperFastCgi.exe /logfile=/var/log/onlyoffice/monoserve.log /config=/etc/hyperfastcgi/onlyoffice
onlyoff+ 22979  0.1  0.7 911232 60132 ?        Sl   11:42   0:01 /usr/bin/mono --server /usr/lib/mono/4.5/mono-service.exe -d:/var/www/onlyoffice/Services/TeamLabSvc -l:/tmp/onlyofficeSignalR /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe --service "ASC.SignalR.Base.SignalRLauncher,ASC.SignalR.Base" --log SignalR
onlyoff+ 22997  0.1  0.5 1312896 45380 ?       Sl   11:42   0:01 /usr/bin/mono --server /usr/lib/mono/4.5/mono-service.exe -d:/var/www/onlyoffice/Services/TeamLabSvc -l:/tmp/onlyofficeIndex /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe --service "ASC.FullTextIndex.Service.FullTextIndexLauncher,ASC.FullTextIndex" --log Index
onlyoff+ 23002  0.1  0.5 1647896 47876 ?       Sl   11:42   0:01 /usr/bin/mono --server /usr/lib/mono/4.5/mono-service.exe -d:/var/www/onlyoffice/Services/TeamLabSvc -l:/tmp/onlyofficeBackup /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe --service "ASC.Data.Backup.Service.BackupServiceLauncher,ASC.Data.Backup" --log Backup
jnielandt
 
Posts: 2
Joined: Wed Oct 19, 2016 11:54 am

Re: Docker install inside LXC container - permission error

Postby Maxim » Fri Oct 28, 2016 12:28 pm

Hello!
Honestly to say we have never tested docker installation inside LXC container. All we can do for you is to advice you to install ONLYOFFICE in Docker.
Maxim
 
Posts: 666
Joined: Tue Oct 11, 2016 2:34 pm


Return to Installation issues

Who is online

Users browsing this forum: No registered users and 1 guest

cron