DOMjudge / domjudge-packaging

DOMjudge packaging for (Linux) distributions and live image
31 stars 37 forks source link

domjudge/domserver:7.2.0 failed to startup #50

Closed ChieloNewctle closed 4 years ago

ChieloNewctle commented 4 years ago

Description of the problem

The latest image domjudge/domserver:7.2.0 fails to run the /script/start.sh and logs:

[..] Updating database credentials file
sed: can't read webapp/app/config/parameters.yml: No such file or directory

Your environment

Steps to reproduce

docker-compose.yml:

version: "3"
services:
    database:
        image: mariadb:10.4
        hostname: database
        networks:
            - domjudge_net
        env_file:
            - domserver.env
        volumes:
            - ../data/database:/var/lib/mysql
        command: --max-connections=1000
    domserver:
        image: domjudge/domserver:7.2.0
        hostname: domserver
        networks:
            - domjudge_net
        env_file:
            - domserver.env
        volumes:
            - /sys/fs/cgroup:/sys/fs/cgroup:ro
        ports:
            - 127.0.0.1:5283:80
        depends_on:
            - database
networks:
    domjudge_net:
        driver: bridge

domjudge.env:

CONTAINER_TIMEZONE=Asia/Shanghai
TZ=Asia/Shanghai
MYSQL_HOST=database
MYSQL_DATABASE=domjudge
MYSQL_USER=domjudge
MYSQL_PASSWORD=b9NIhdxuJAhqcVW8bg4RgUni
MYSQL_ROOT_PASSWORD=UmHDaoOMl1Nzoke1lyV5FZbSfYXmJvkO
DJ_DB_INSTALL_BARE=1

Expected behaviour

Success. Or it may fail due to some database or network problems.

Actual behaviour

It fails during the early run of /script/start.sh.

Here is the full log:

[..] Setting timezone

Current default time zone: 'Asia/Shanghai'
Local time is now:      Tue Jan  7 13:11:05 CST 2020.
Universal Time is now:  Tue Jan  7 05:11:05 UTC 2020.

[ok] Container timezone set to: Asia/Shanghai

[..] Changing nginx and PHP configuration settings
[ok] Done changing nginx and PHP configuration settings

[..] Updating database credentials file
sed: can't read webapp/app/config/parameters.yml: No such file or directory

Any other information that you want to share?

Image domjudge/domserver:7.1.2 works fine.

nickygerritsen commented 4 years ago

Thanks, we changed some config files, which broke the Docker images. I have just pushed new 7.2.0 and latest tags with the fix.