Skip to content

wait-for-it.sh has issues with IPv6 literals #252

@86dd

Description

@86dd

Hello,
I was trying to setup a roundcubemail-docker container, but I saw it won't start up. Apparently the database "is not up".
The script used does not support IPv6 literals and considers the first colon as a port separator
See: vishnubob/wait-for-it#124
My proposal is to either move to a different script or add an ENVVAR to disable it.

roundcube_1  | roundcubemail not found in /var/www/html - copying now...
roundcube_1  | Complete! ROUNDCUBEMAIL has been successfully copied to /var/www/html
roundcube_1  | wait-for-it.sh: waiting 30 seconds for [2a01:4f8
roundcube_1  | wait-for-it.sh: timeout occurred after waiting 30 seconds for [2a01:4f8
roundcube_1  | Write root config to /var/www/html/config/config.inc.php
roundcube_1  | Write Docker config to /var/www/html/config/config.docker.inc.php
roundcube_1  | ERROR: SQLSTATE[08006] [7] invalid integer value "4f8" for connection option "port"
roundcube_1  | ERROR: Failed to connect to database
roundcube_1  | Failed to initialize/update the database. Please start with an empty database and restart the container.
roundcube_1  | Generating locales (this might take a while)...
roundcube_1  |   en_US.UTF-8... done
roundcube_1  | Generation complete.
roundcube_1  | [30-May-2024 06:51:30] NOTICE: fpm is running, pid 1
roundcube_1  | [30-May-2024 06:51:30] NOTICE: ready to handle connections

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions