You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# docker logs elkarbackup -f
Could not create database `prod_elkarbackup`for connection named default
An exception occurred while executing 'CREATE DATABASE `prod_elkarbackup`':
SQLSTATE[HY000]: General error: 1007 Can't create database 'prod_elkarbackup'; database exists Application MigrationsNo migrations to execute.Admin user exists and reset was not requested. Nothing to do. // Clearing the cache for the prod environment with debug false [OK] Cache for the "prod" environment (debug=false) was successfully cleared.Dumping all prod assets.Debug mode is off.11:11:29 [file+] /app/elkarbackup/app/../web/js/50d2dad.js11:11:29 [file+] /app/elkarbackup/app/../web/js/fbef3cc.js11:11:29 [file+] /app/elkarbackup/app/../web/css/92f5b2c.css11:11:29 [file+] /app/elkarbackup/app/../web/js/02c4d9e.js11:11:29 [file+] /app/elkarbackup/app/../web/js/4acda04.js11:11:29 [file+] /app/elkarbackup/app/../web/js/2c3c294.js11:11:29 [file+] /app/elkarbackup/app/../web/js/28b0684.js11:11:29 [file+] /app/elkarbackup/app/../web/js/ae16382.js11:11:29 [file+] /app/elkarbackup/app/../web/js/dc67ef4.js11:11:29 [file+] /app/elkarbackup/app/../web/js/8e8eb4d.js11:11:29 [file+] /app/elkarbackup/app/../web/js/6f75296.jsAH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.41.20. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.41.20. Set the 'ServerName' directive globally to suppress this message[Mon Oct 12 11:11:29.627563 2020] [mpm_prefork:notice] [pid 24] AH00163: Apache/2.4.38 (Debian) PHP/7.1.33 configured -- resuming normal operations[Mon Oct 12 11:11:29.627624 2020] [core:notice] [pid 24] AH00094: Command line: 'apache2 -D FOREGROUND'EB_CRON is enabled. Running tick command every minute...^C
# docker exec -it elkarbackup bash
root@6397d4f4cec1:/var/www/html# apt-get update
[..]
root@6397d4f4cec1:/var/www/html# apt-get install -y net-tools
[..]
root@6397d4f4cec1:/var/www/html# netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.11:36369 0.0.0.0:* LISTEN
tcp 0 0 192.168.41.20:50814 192.168.41.10:3306 TIME_WAIT
udp 0 0 127.0.0.11:40355 0.0.0.0:*
as you can see from netstat above, there is no Listen in 443/tcp, and no errors are reported.
And this is the workaround.
1. Need to map volume to /etc/ssl to find certificate and key for apache
see line below (--volume="/srv/elkarbackup/ssl:/etc/ssl")
/srv/elkarbackup/ssl/certs:
-rw-r--r--. 1 root elkarwww 1013 Oct 12 10:53 ssl-cert-snakeoil.pem
/srv/elkarbackup/ssl/private:
-rw-r-----. 1 root elkarwww 1708 Oct 12 10:54 ssl-cert-snakeoil.key
# docker logs elkarbackup -f
Could not create database `prod_elkarbackup`for connection named default
An exception occurred while executing 'CREATE DATABASE `prod_elkarbackup`':
SQLSTATE[HY000]: General error: 1007 Can't create database 'prod_elkarbackup'; database exists Application MigrationsNo migrations to execute.Admin user exists and reset was not requested. Nothing to do. // Clearing the cache for the prod environment with debug false [OK] Cache for the "prod" environment (debug=false) was successfully cleared.Dumping all prod assets.Debug mode is off.11:14:59 [file+] /app/elkarbackup/app/../web/js/50d2dad.js11:14:59 [file+] /app/elkarbackup/app/../web/js/fbef3cc.js11:14:59 [file+] /app/elkarbackup/app/../web/css/92f5b2c.css11:14:59 [file+] /app/elkarbackup/app/../web/js/02c4d9e.js11:14:59 [file+] /app/elkarbackup/app/../web/js/4acda04.js11:14:59 [file+] /app/elkarbackup/app/../web/js/2c3c294.js11:14:59 [file+] /app/elkarbackup/app/../web/js/28b0684.js11:14:59 [file+] /app/elkarbackup/app/../web/js/ae16382.js11:14:59 [file+] /app/elkarbackup/app/../web/js/dc67ef4.js11:14:59 [file+] /app/elkarbackup/app/../web/js/8e8eb4d.js11:14:59 [file+] /app/elkarbackup/app/../web/js/6f75296.jsAH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.41.20. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.41.20. Set the 'ServerName' directive globally to suppress this message[Mon Oct 12 11:15:00.183710 2020] [mpm_prefork:notice] [pid 25] AH00163: Apache/2.4.38 (Debian) PHP/7.1.33 configured -- resuming normal operations[Mon Oct 12 11:15:00.183774 2020] [core:notice] [pid 25] AH00094: Command line: 'apache2 -D FOREGROUND'EB_CRON is enabled. Running tick command every minute...^C
2. Need to enable module ssl on apache and restart
# docker exec -it elkarbackup bash
root@46e1d8943410:/var/www/html# apt-get update
[..]
root@46e1d8943410:/var/www/html# apt-get install -y net-tools
[..]
root@46e1d8943410:/var/www/html# a2enmod ssl
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Enabling module socache_shmcb.
Enabling module ssl.
See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates.
To activate the new configuration, you need to run:
root@46e1d8943410:/var/www/html# service apache2 restart
[....] Restarting Apache httpd web server: apache2Terminated
root@46e1d8943410:/var/www/html# service apache2 restart
[....] Restarting Apache httpd web server: apache2AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.41.20. Set the 'ServerName' directive globally to suppress this message[Mon Oct 12 11:17:07.341474 2020] [ssl:warn] [pid 383] AH01909: elkarbackup.local:443:0 server certificate does NOT include an ID which matches the server name. okroot@46e1d8943410:/var/www/html# netstat -anActive Internet connections (servers and established)Proto Recv-Q Send-Q Local Address Foreign Address Statetcp 0 0 0.0.0.0:80 0.0.0.0:* LISTENtcp 0 0 0.0.0.0:443 0.0.0.0:* LISTENtcp 0 0 127.0.0.11:34149 0.0.0.0:* LISTENtcp 0 0 192.168.41.20:50846 192.168.41.10:3306 TIME_WAITtcp 0 0 192.168.41.20:50848 192.168.41.10:3306 TIME_WAITudp 0 0 127.0.0.11:54821 0.0.0.0:*Active UNIX domain sockets (servers and established)Proto RefCnt Flags Type State I-Node Path
Problem with workaround is that if container is removed, it's necessary to redo all steps.
The text was updated successfully, but these errors were encountered:
Docker port-forwarding is ok.
Problem is as follows:
as you can see from netstat above, there is no Listen in 443/tcp, and no errors are reported.
And this is the workaround.
1. Need to map volume to /etc/ssl to find certificate and key for apache
see line below (
--volume="/srv/elkarbackup/ssl:/etc/ssl"
)2. Need to enable module ssl on apache and restart
Problem with workaround is that if container is removed, it's necessary to redo all steps.
The text was updated successfully, but these errors were encountered: