Open Biziol opened 1 day ago
This is log of docker-compose
sudo docker-compose up
[+] Running 8/0
✔ Container devilbox-bind-1 Running 0.0s
✔ Container devilbox-php-1 Created 0.0s
✔ Container devilbox-httpd-1 Created 0.0s
✔ Container devilbox-mongo-1 Running 0.0s
✔ Container devilbox-memcd-1 Running 0.0s
✔ Container devilbox-pgsql-1 Running 0.0s
✔ Container devilbox-redis-1 Running 0.0s
✔ Container devilbox-mysql-1 Created 0.0s
Attaching to bind-1, httpd-1, memcd-1, mongo-1, mysql-1, pgsql-1, php-1, redis-1
php-1 | [INFO] Debug level: 2
php-1 | [INFO] Changing user 'devilbox' uid to: 1000
php-1 | root $ usermod -u 1000 devilbox 2>/dev/null
php-1 | usermod: no changes
php-1 | root $ chown -R devilbox /home/devilbox 2>/dev/null || true
php-1 | root $ chown -R devilbox /var/lib/php/session
php-1 | root $ chown -R devilbox /var/lib/php/wsdlcache
php-1 | root $ chown -R devilbox /etc/supervisor/custom.d
php-1 | chown: cannot read directory '/etc/supervisor/custom.d': Permission denied
httpd-1 | [INFO] Entrypoint debug: 2
httpd-1 | [INFO] Runtime debug: 1
httpd-1 | [INFO] -------------------------------------------------------------------------
httpd-1 | [INFO] Environment Variables (set/default)
httpd-1 | [INFO] -------------------------------------------------------------------------
php-1 exited with code 1
httpd-1 | [INFO] Variables: General:
httpd-1 | [INFO] Set $NEW_UID Value: 1000
httpd-1 | [INFO] Set $NEW_GID Value: 1000
httpd-1 | [INFO] Set $TIMEZONE Value: UTC
httpd-1 | [INFO] Variables: Main Vhost:
httpd-1 | [INFO] Set $MAIN_VHOST_ENABLE Value: 1
httpd-1 | [INFO] Unset $MAIN_VHOST_DOCROOT_DIR Default: htdocs
httpd-1 | [INFO] Unset $MAIN_VHOST_TEMPLATE_DIR Default: cfg
httpd-1 | [INFO] Set $MAIN_VHOST_ALIASES_ALLOW Value: /devilbox-api/:/var/www/default/api, /vhost.d/:/etc/httpd
httpd-1 | [INFO] Unset $MAIN_VHOST_ALIASES_DENY Default: /.git, /.ht.
httpd-1 | [INFO] Set $MAIN_VHOST_BACKEND Value: conf:phpfpm:tcp:172.16.238.10:9000
httpd-1 | [INFO] Set $MAIN_VHOST_BACKEND_TIMEOUT Value: 180
httpd-1 | [INFO] Set $MAIN_VHOST_SSL_TYPE Value: both
httpd-1 | [INFO] Set $MAIN_VHOST_SSL_CN Value: localhost,.localhost,devilbox,.devilbox,httpd
httpd-1 | [INFO] Set $MAIN_VHOST_STATUS_ENABLE Value: 1
httpd-1 | [INFO] Set $MAIN_VHOST_STATUS_ALIAS Value: /devilbox-httpd-status
httpd-1 | [INFO] Variables: Mass Vhost:
httpd-1 | [INFO] Set $MASS_VHOST_ENABLE Value: 1
httpd-1 | [INFO] Set $MASS_VHOST_DOCROOT_DIR Value: htdocs
httpd-1 | [INFO] Set $MASS_VHOST_TEMPLATE_DIR Value: .devilbox
httpd-1 | [INFO] Set $MASS_VHOST_ALIASES_ALLOW Value: /devilbox-api/:/var/www/default/api:http(s)?://(.)$
httpd-1 | [INFO] Unset $MASS_VHOST_ALIASES_DENY Default: /.git, /.ht.
httpd-1 | [INFO] Set $MASS_VHOST_BACKEND Value: conf:phpfpm:tcp:172.16.238.10:9000
httpd-1 | [INFO] Set $MASS_VHOST_BACKEND_REWRITE Value: file:backend.cfg
httpd-1 | [INFO] Set $MASS_VHOST_BACKEND_TIMEOUT Value: 180
httpd-1 | [INFO] Set $MASS_VHOST_SSL_TYPE Value: both
httpd-1 | [INFO] Set $MASS_VHOST_TLD_SUFFIX Value: .dvl.to
httpd-1 | [INFO] Variables: Misc:
httpd-1 | [INFO] Set $WORKER_CONNECTIONS Value: 1024
httpd-1 | [INFO] Set $WORKER_PROCESSES Value: auto
httpd-1 | [INFO] Set $HTTP2_ENABLE Value: 1
httpd-1 | [INFO] Set $DOCKER_LOGS Value: 0
httpd-1 | [INFO] -------------------------------------------------------------------------
httpd-1 | [INFO] Validate Settings
httpd-1 | [INFO] -------------------------------------------------------------------------
httpd-1 | [INFO] Settings: General:
httpd-1 | [OK] Valid $NEW_UID User ID (uid) 1000
httpd-1 | [OK] Valid $NEW_GID Group ID (gid) 1000
httpd-1 | [OK] Valid $TIMEZONE ignored (not specified)
httpd-1 | [INFO] Settings: Main Vhost:
httpd-1 | [OK] Valid $MAIN_VHOST_ENABLE Default vhost Enabled
httpd-1 | [OK] Valid $MAIN_VHOST_DOCROOT_DIR Document root: /var/www/default/htdocs
httpd-1 | [OK] Valid $MAIN_VHOST_TEMPLATE_DIR Template dir /var/www/default/cfg
httpd-1 | [OK] Valid $MAIN_VHOST_ALIASES_ALLOW Defined Aliases /devilbox-api/, /vhost.d/
httpd-1 | [OK] Valid $MAIN_VHOST_ALIASES_DENY Defined Aliases /.git, /.ht.
httpd-1 | [OK] Valid $MAIN_VHOST_BACKEND PHP via PHP-FPM Remote: tcp://172.16.238.10:9000
httpd-1 | [OK] Valid $MAIN_VHOST_BACKEND_TIMEOUT Timeout: 180sec
httpd-1 | [OK] Valid $MAIN_VHOST_SSL_TYPE Vhost protocol HTTP and HTTPS
httpd-1 | [OK] Valid $MAIN_VHOST_SSL_CN SSL cert subject CN = localhost,.localhost,devilbox,.devilbox,httpd
httpd-1 | [OK] Valid $MAIN_VHOST_STATUS_ENABLE Status page Enabled
httpd-1 | [OK] Valid $MAIN_VHOST_STATUS_ALIAS Status page URL /devilbox-httpd-status
httpd-1 | [INFO] Settings: Mass Vhost:
httpd-1 | [OK] Valid $MASS_VHOST_ENABLE Mass vhost Enabled
httpd-1 | [OK] Valid $MASS_VHOST_DOCROOT_DIR Document root: /shared/httpd/
mysqld: Can't read dir of '/etc/mysql/docker-default.d/' (Errcode: 13 "Permission denied") mysql-1 | Fatal error in defaults handling. Program aborted
httpd-1 | ca-gen: [ERR] Command: openssl genrsa -out /ca/devilbox-ca.key 2048 httpd-1 | ca-gen: [ERR] Output: genrsa: Can't open "/ca/devilbox-ca.key" for writing, Permission denied
Have you already looked into this bug?
(Optional) Error message
Connection error! connect ECONNREFUSED 127.0.0.1:3306
What went wrong?
I don't know, I installed devilbox as usual and it always worked, this time it refuses the connection both to the portal on locahost accessible from a browser and to the mysql db
Expected behaviour
I would have expected it to connect
How can we reproduce the bug?
I did the following commands:
sudo dnf install docker
sudo dnf install docker-compose
git clone https://github.com/cytopia/devilbox
cd devilbox cp env-example .env
sudo docker-compose up -d
Host Operating System
Linux
Host Platform (amd64, arm64, other)
amd64
(Linux only) Is SELinux enabled?
Yes, SELinux is enabled
Docker version
Docker version 27.3.1, build 2.fc41
Docker Compose version
Docker Compose version 2.29.7
Devilbox version
the one that is installed by cloning the github repository
Have you removed stopped containers before starting?
Yes
Have you pulled latest Docker images before starting?
Yes
Devilbox start command
sudo docker-compose up -d
Config: .env file
Config: docker-compose.override.yml
Config: ./check-config.sh
Log: docker-compose logs
(Optional) Additional information
No response