{"action":"created","issue":{"url":"https://api.github.com/repos/ONLYOFFICE/Docker-CommunityServer/issues/55","repository_url":"https://api.github.com/repos/ONLYOFFICE/Docker-CommunityServer","labels_url":"https://api.github.com/repos/ONLYOFFICE/Docker-CommunityServer/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/ONLYOFFICE/Docker-CommunityServer/issues/55/comments","events_url":"https://api.github.com/repos/ONLYOFFICE/Docker-CommunityServer/issues/55/events","html_url":"https://github.com/ONLYOFFICE/Docker-CommunityServer/issues/55","id":360750845,"node_id":"MDU6SXNzdWUzNjA3NTA4NDU=","number":55,"title":"Community Server does not start correctly ?","user":{"login":"manypozo","id":3026075,"node_id":"MDQ6VXNlcjMwMjYwNzU=","avatar_url":"https://avatars3.githubusercontent.com/u/3026075?v=4","gravatar_id":"","url":"https://api.github.com/users/manypozo","html_url":"https://github.com/manypozo","followers_url":"https://api.github.com/users/manypozo/followers","following_url":"https://api.github.com/users/manypozo/following{/other_user}","gists_url":"https://api.github.com/users/manypozo/gists{/gist_id}","starred_url":"https://api.github.com/users/manypozo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manypozo/subscriptions","organizations_url":"https://api.github.com/users/manypozo/orgs","repos_url":"https://api.github.com/users/manypozo/repos","events_url":"https://api.github.com/users/manypozo/events{/privacy}","received_events_url":"https://api.github.com/users/manypozo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2018-09-17T07:29:39Z","updated_at":"2018-10-24T14:47:13Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI have just started playing with onlyoffice because I would like to test it in __docker environments__ before buying a licence.\r\n\r\nIt seems I can not really start the community edition container since it does not serve the WebUI.\r\n\r\nContext:\r\n- I am running the Docker installation with simply mysql + community edition.\r\n- Docker Version 18.06.1-ce\r\n- MacBook Pro 2018;  16 Gb RAM;   2,2 GHz Intel Core i7\r\n\r\nI did follow step by step the docker setup (network creation, mysql start and community edition start) without adding or changing any environmental variables.\r\n\r\nFirst I noticed that community edition container always take a while to start (around 6-8 minutes) because of the several mysql updates. But at the end, it reaches the `tail -f /dev/null` and the container just waits (what it suppose to do due to the `run-community-server.sh`). Find below the `logs -f`:\r\n```\r\n+ '[' -f /var/www/onlyoffice/Data/certs/onlyoffice.crt -a -f /var/www/onlyoffice/Data/certs/onlyoffice.key ']'\r\n+ cp /etc/nginx/includes/onlyoffice-communityserver-common.conf.template /app/onlyoffice/config/nginx/prepare-onlyoffice\r\n+ sed -i 1d /etc/logrotate.d/nginx\r\n+ sed '1 i\\/var/log/nginx/*.log /var/log/onlyoffice/nginx.*.log {' -i /etc/logrotate.d/nginx\r\n+ '[' 192.168.80.3/20 ']'\r\n+ sed 's,{{DOCKER_ONLYOFFICE_SUBNET}},192.168.80.3/20,' -i /app/onlyoffice/config/nginx/prepare-onlyoffice\r\n+ '[' ']'\r\n+ echo Start=No\r\n+ grep -q 'name=\"textindex\"' /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe.Config\r\n+ '[' false == true ']'\r\n+ '[' false == true ']'\r\n+ '[' false == true ']'\r\n+ '[' SERVER == SERVER ']'\r\n++ seq 1 1\r\n+ for serverID in '$(seq 1 ${ONLYOFFICE_MONOSERVE_COUNT})'\r\n+ '[' 1 == 1 ']'\r\n+ sed '/web.warmup.count/s/value=\\\"\\S*\\\"/value=\\\"1\\\"/g' -i /var/www/onlyoffice/WebStudio/web.appsettings.config\r\n+ sed '/web.warmup.domain/s/value=\\\"\\S*\\\"/value=\\\"localhost\\/warmup\\\"/g' -i /var/www/onlyoffice/WebStudio/web.appsettings.config\r\n+ sed '/core.machinekey/s!value=\".*\"!value=\"Vskoproizvolny Salt par Chivreski\"!g' -i /var/www/onlyoffice/WebStudio/web.appsettings.config\r\n+ sed '/core.machinekey/s!value=\".*\"!value=\"Vskoproizvolny Salt par Chivreski\"!g' -i /var/www/onlyoffice/ApiSystem/Web.config\r\n+ sed '/core.machinekey/s!value=\".*\"!value=\"Vskoproizvolny Salt par Chivreski\"!g' -i /var/www/onlyoffice/Services/TeamLabSvc/TeamLabSvc.exe.Config\r\n+ sed '/core\\.machinekey/s!\"core\\.machinekey\".*!\"core\\.machinekey\":\"Vskoproizvolny Salt par Chivreski\",!' -i /var/www/onlyoffice/Services/ASC.Socket.IO/config/config.json\r\n+ sed '/core.machinekey/s!value=\".*\"!value=\"Vskoproizvolny Salt par Chivreski\"!g' -i /var/www/onlyoffice/Services/MailAggregator/ASC.Mail.EmlDownloader.exe.config\r\n+ sed '/core.machinekey/s!value=\".*\"!value=\"Vskoproizvolny Salt par Chivreski\"!g' -i /var/www/onlyoffice/Services/MailAggregator/ASC.Mail.Aggregator.CollectionService.exe.config\r\n+ continue\r\n+ sed 's/{{ONLYOFFICE_NIGNX_KEEPLIVE}}/32/g' -i /app/onlyoffice/config/nginx/prepare-onlyoffice\r\n+ bash -c 'echo \"onlyoffice ALL=(ALL) NOPASSWD: /usr/sbin/service\" | (EDITOR=\"tee -a\" visudo)'\r\nonlyoffice ALL=(ALL) NOPASSWD: /usr/sbin/service\r\n+ '[' false == true ']'\r\n+ service redis-server start\r\nredis-server: unrecognized service\r\n+ '[' true == true ']'\r\n+ rm -f /etc/god/conf.d/mysql.god\r\n+ '[' SERVER == SERVICES ']'\r\n+ '[' DEBUG ']'\r\n+ echo 'fix docker bug volume mapping for onlyoffice'\r\nfix docker bug volume mapping for onlyoffice\r\n+ chown -R onlyoffice:onlyoffice /var/log/onlyoffice\r\n+ chown -R onlyoffice:onlyoffice /var/www/onlyoffice/DocumentServerData\r\n++ ls -alhd /var/www/onlyoffice/Data\r\n++ awk '{ print $3 }'\r\n+ '[' onlyoffice '!=' onlyoffice ']'\r\n++ seq 1 1\r\n+ for serverID in '$(seq 1 ${ONLYOFFICE_MONOSERVE_COUNT})'\r\n+ index=1\r\n+ '[' 1 == 1 ']'\r\n+ index=\r\n+ service monoserve restart\r\nStarting monoserve... OK\r\n+ service monoserveApiSystem restart\r\nStarting monoserveApiSystem... OK\r\n+ '[' false == true ']'\r\n+ service onlyofficeSocketIO restart\r\nStarting onlyofficeSocketIO... OK\r\n+ service onlyofficeFeed restart\r\nStarting onlyofficeFeed... OK\r\n+ service onlyofficeIndex restart\r\nStarting onlyofficeIndex... OK\r\n+ service onlyofficeJabber restart\r\nStarting onlyofficeJabber... OK\r\n+ service onlyofficeMailAggregator restart\r\nStarting onlyofficeMailAggregator... OK\r\n+ service onlyofficeMailWatchdog restart\r\nStarting onlyofficeMailWatchdog... OK\r\n+ service onlyofficeNotify restart\r\nStarting onlyofficeNotify... OK\r\n+ service onlyofficeBackup restart\r\nStarting onlyofficeBackup... OK\r\n+ service onlyofficeAutoreply stop\r\nonlyofficeAutoreply is not running\r\n+ service onlyofficeHealthCheck stop\r\nonlyofficeHealthCheck: unrecognized service\r\n+ service god restart\r\nRestarting god... The server is not available (or you do not have permissions to access it)\r\nOK\r\n+ '[' SERVER == SERVER ']'\r\n+ mv /app/onlyoffice/config/nginx/prepare-onlyoffice /etc/nginx/sites-enabled/onlyoffice\r\n+ service nginx reload\r\n * Reloading nginx nginx                                                 [ OK ]\r\n+ log_debug 'reload nginx config'\r\n+ echo 'onlyoffice: [Debug] reload nginx config'\r\nonlyoffice: [Debug] reload nginx config\r\n+ log_debug FINISH\r\n+ echo 'onlyoffice: [Debug] FINISH'\r\nonlyoffice: [Debug] FINISH\r\n++ ps auxf\r\n++ grep cron\r\n++ awk '{print $2}'\r\n++ grep -v grep\r\n+ PID=\r\n+ '[' -n '' ']'\r\n+ cron\r\n+ '[' true == true ']'\r\n+ exec tail -f /dev/null\r\n```\r\n\r\n__Notice__ that some serviced have not been restarted, for instance onlyofficeHealthCheck, god. I do not know the impact of this in the container start.\r\n\r\nOn the other hand, meanwhile the community container runs it is possible to visit the WebUI at`localhost:80`, but  I receive 502 in loop due to a HTTP `GET /api/2.0/capabilities.json`\r\n```\r\nhead -n10 /var/log/nginx/access.log\r\n192.168.48.1 - - [16/Sep/2018:11:40:24 +0000] \"GET /api/2.0/capabilities.json HTTP/1.1\" 502 173 \"http://localhost/\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13;\r\n rv:62.0) Gecko/20100101 Firefox/62.0\" \"-\"\r\n192.168.48.1 - - [16/Sep/2018:11:40:29 +0000] \"GET /api/2.0/capabilities.json HTTP/1.1\" 502 173 \"http://localhost/\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13;\r\n rv:62.0) Gecko/20100101 Firefox/62.0\" \"-\"\r\n```\r\nI have checked the nginx error logs:\r\n```\r\nhead -n10 /var/log/nginx/error.log\r\n2018/09/16 11:40:23 [alert] 59#59: worker process 65 exited on signal 9\r\n2018/09/16 11:40:24 [crit] 100#100: *1 connect() to unix:/var/run/onlyoffice/onlyoffice.socket failed (2: No such file or directory) while connecting to upstream,\r\n client: 192.168.48.1, server: , request: \"GET /api/2.0/capabilities.json HTTP/1.1\", upstream: \"fastcgi://unix:/var/run/onlyoffice/onlyoffice.socket:\", host: \"loc\r\nalhost\", referrer: \"http://localhost/\"\r\n2018/09/16 11:40:25 [alert] 59#59: worker process 100 exited on signal 9\r\n2018/09/16 11:40:25 [alert] 59#59: worker process 66 exited on signal 9\r\n```\r\n\r\nIn addition, these calls stop in the very moment the community server container stalls in `exec tail -f /dev/null`.\r\n\r\nI am not sure yet of what is going on under the hoods, but it can be a great help to start the service to really understand =]\r\n\r\nAny ideas on how I can continue and avoid this issue?\r\nThank you !"},"comment":{"url":"https://api.github.com/repos/ONLYOFFICE/Docker-CommunityServer/issues/comments/432688828","html_url":"https://github.com/ONLYOFFICE/Docker-CommunityServer/issues/55#issuecomment-432688828","issue_url":"https://api.github.com/repos/ONLYOFFICE/Docker-CommunityServer/issues/55","id":432688828,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjY4ODgyOA==","user":{"login":"manypozo","id":3026075,"node_id":"MDQ6VXNlcjMwMjYwNzU=","avatar_url":"https://avatars3.githubusercontent.com/u/3026075?v=4","gravatar_id":"","url":"https://api.github.com/users/manypozo","html_url":"https://github.com/manypozo","followers_url":"https://api.github.com/users/manypozo/followers","following_url":"https://api.github.com/users/manypozo/following{/other_user}","gists_url":"https://api.github.com/users/manypozo/gists{/gist_id}","starred_url":"https://api.github.com/users/manypozo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manypozo/subscriptions","organizations_url":"https://api.github.com/users/manypozo/orgs","repos_url":"https://api.github.com/users/manypozo/repos","events_url":"https://api.github.com/users/manypozo/events{/privacy}","received_events_url":"https://api.github.com/users/manypozo/received_events","type":"User","site_admin":false},"created_at":"2018-10-24T14:47:13Z","updated_at":"2018-10-24T14:47:13Z","author_association":"NONE","body":"it does not stuck anymore while loading the database ?"}}
{"actor":{"display_login":"manypozo"}}