movim / movim_docker

Official Docker Compose stack for Movim, maintained by @kawaii and the @movim team
https://movim.eu/
GNU Affero General Public License v3.0
79 stars 29 forks source link

Failed to listen on Unix domain socket "unix:///var/www/html/cache/socketapi.sock": Unknown error #27

Closed adamshand closed 1 year ago

adamshand commented 4 years ago

Hi,

Trying to get Movim up and running on a stock Ubuntu box with no other docker containers running.

hihi(adam)$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04 LTS
Release:    20.04
Codename:   focal

hihi(adam)$ dpkg -l | grep docker
ii  docker-ce                            5:19.03.11~3-0~ubuntu-focal       amd64        Docker: the open-source application container engine
ii  docker-ce-cli                        5:19.03.11~3-0~ubuntu-focal       amd64        Docker CLI: the open-source application container engine
ii  python3-docker                       4.1.0-1                           all          Python 3 wrapper to access docker.io's control socket
ii  python3-dockerpty                    0.4.1-2                           all          Pseudo-tty handler for docker Python client (Python 3.x)

Copied the YML from the Readme file (image is movim/movim:0.18rc8) Edited MOVIM_PASSWORD, MOVIM_DOMAIN and POSTGRES_PASSWORD Started with docker-compose Got the error below

movim_1       | --- Server Configuration - nginx ---
movim_1       | Add this in your configuration file
movim_1       | location /ws/ {
movim_1       |     proxy_pass http://127.0.0.1:8080/;
movim_1       |     proxy_http_version 1.1;
movim_1       |     proxy_set_header Upgrade $http_upgrade;
movim_1       |     proxy_set_header Connection "Upgrade";
movim_1       |     proxy_set_header Host $host;
movim_1       |     proxy_set_header X-Real-IP $remote_addr;
movim_1       |     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
movim_1       |     proxy_set_header X-Forwarded-Proto https;
movim_1       |     proxy_redirect off;
movim_1       | }
movim_1       |
movim_1       | An error occured, check syslog for more information
movim_1       |
movim_1       | In UnixServer.php line 75:
movim_1       |
movim_1       |   [RuntimeException]
movim_1       |   Failed to listen on Unix domain socket "unix:///var/www/html/cache/socketap
movim_1       |   i.sock": Unknown error
movim_1       |
movim_1       |
movim_1       | Exception trace:
movim_1       |   at /var/www/html/vendor/react/socket/src/UnixServer.php:75
movim_1       |  React\Socket\UnixServer->__construct() at /var/www/html/vendor/react/socket/src/Server.php:34
movim_1       |  React\Socket\Server->__construct() at /var/www/html/src/Movim/Console/DaemonCommand.php:110
movim_1       |  Movim\Console\DaemonCommand->execute() at /var/www/html/vendor/symfony/console/Command/Command.php:255
movim_1       |  Symfony\Component\Console\Command\Command->run() at /var/www/html/vendor/symfony/console/Application.php:1000
movim_1       |  Symfony\Component\Console\Application->doRunCommand() at /var/www/html/vendor/symfony/console/Application.php:271
movim_1       |  Symfony\Component\Console\Application->doRun() at /var/www/html/vendor/symfony/console/Application.php:147
movim_1       |  Symfony\Component\Console\Application->run() at /var/www/html/daemon.php:20
movim_1       |
movim_1       | start [-u|--url [URL]] [-p|--port [PORT]] [-i|--interface [INTERFACE]] [-d|--debug]
movim_1       |
movim_movim_1 exited with code 1
adamshand commented 4 years ago

After restarting the movim container the error no longer shows up. Now I get:

movim_1       | The configuration key username has been updated from admin to admin
movim_1       | The configuration key password has been updated from $2y$10$5Rzai...H1voLdMgOIbfm to $2y$10$UiM...ykdIZ2tVvXZ3say.jVhr8zf4fS
movim_1       | An error occured, check syslog for more information
movim_1       | [09-Jul-2020 04:08:25] NOTICE: fpm is running, pid 24
movim_1       | [09-Jul-2020 04:08:25] NOTICE: ready to handle connections
nginx_1       | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx_1       | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx_1       | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx_1       | 10-listen-on-ipv6-by-default.sh: Getting the checksum of /etc/nginx/conf.d/default.conf
nginx_1       | 10-listen-on-ipv6-by-default.sh: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
nginx_1       | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx_1       | /docker-entrypoint.sh: Configuration complete; ready for start up
movim_1       |
movim_1       | Movim daemon launched
movim_1       | Base URL: http://--redacted--.nz/
movim_1       |
movim_1       | Debug is enabled, check the logs in syslog or /var/www/html/log/

There are no additional logs in /var/www/html/log.

When going to the website I get the default Nginx page.

image