Skip to content

Docker container not running - stuck in init? #168

@tobidemski

Description

@tobidemski

Hey guys,

im trying to get running roundcube in docker.
But im facing issues while the container tries to start.
Docker Host: Synology DS916+
Tried already with Tags: latest, latest-fpm-alpine, 1.5.2-fpm-alpine

Docker compose file: (Also i tried the "simple" in example to get it work)

`version: '2'

services:
roundcubedb:
image: mysql:5.7
container_name: roundcubedb
restart: unless-stopped
volumes:
- "/volume1/docker/roundcube/mysql:/var/lib/mysql"
environment:
- MYSQL_ROOT_PASSWORD=QWkw5W3iJwvHBkvKF
- MYSQL_DATABASE=roundcubemail

roundcubemail:
image: roundcube/roundcubemail:1.5.2-fpm-alpine
container_name: roundcubemail
restart: unless-stopped
depends_on:
- roundcubedb
links:
- roundcubedb
volumes:
- "/volume1/docker/roundcube/web:/var/www/html"
ports:
- 37080:80
environment:
- ROUNDCUBEMAIL_DB_TYPE=mysql
- ROUNDCUBEMAIL_DB_HOST=roundcubedb
- ROUNDCUBEMAIL_DB_PASSWORD=QWkw5W3iJwvHBkvKF
- ROUNDCUBEMAIL_SKIN=elastic
- ROUNDCUBEMAIL_DEFAULT_HOST=mail.domain.com
- ROUNDCUBEMAIL_SMTP_SERVER=mail.domain.com`

Error message from the roundcube container:

For additional security you should declare the allow-plugins config with a list of packages names that are allowed to run code. See https://getcomposer.org/allow-plugins
You have until July 2022 to add the setting. Composer will then switch the default behavior to disallow all plugins.
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Write Docker config to /var/www/html/config/config.docker.inc.php
Installing dependencies from lock file
Nothing to install, update or remove
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
5 packages you are using are looking for funding.
Use the composer fund command to find out more!
wait-for-it.sh: waiting 30 seconds for roundcubedb:3306
wait-for-it.sh: roundcubedb:3306 is available after 0 seconds
ERROR: [1050] Table 'session' already exists (SQL Query: CREATE TABLE session (
sess_id varchar(128) NOT NULL,
changed datetime NOT NULL DEFAULT '1000-01-01 00:00:00',
ip varchar(40) NOT NULL,
vars mediumtext NOT NULL,
PRIMARY KEY(sess_id),
INDEX changed_index (changed)
) ROW_FORMAT=DYNAMIC ENGINE=INNODB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci)
ERROR: [1050] Table 'session' already exists
Creating database schema... [FAILED]
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
[Sun Jan 23 23:51:56.214382 2022] [:crit] [pid 1] (38)Function not implemented: AH00141: Could not initialize random number generator
roundcubemail found in /var/www/html - installing update...
Target installation already in version 1.5.2. Do you want to update again? (y/N)
Copying files to target location...done.

Running update script at target...
Executing database schema update.
NOTICE: Update dependencies by running php composer.phar update --no-dev
This instance of Roundcube is up-to-date.

!

.
For additional security you should declare the allow-plugins config with a list of packages names that are allowed to run code. See https://getcomposer.org/allow-plugins
You have until July 2022 to add the setting. Composer will then switch the default behavior to disallow all plugins.
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file
Nothing to install, update or remove
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
5 packages you are using are looking for funding.
Use the composer fund command to find out more!
wait-for-it.sh: waiting 30 seconds for roundcubedb:3306
wait-for-it.sh: roundcubedb:3306 is available after 0 seconds
Write Docker config to /var/www/html/config/config.docker.inc.php
Creating database schema... [FAILED]
ERROR: [1050] Table 'session' already exists (SQL Query: CREATE TABLE session (
sess_id varchar(128) NOT NULL,
changed datetime NOT NULL DEFAULT '1000-01-01 00:00:00',
ip varchar(40) NOT NULL,
vars mediumtext NOT NULL,
PRIMARY KEY(sess_id),
INDEX changed_index (changed)
) ROW_FORMAT=DYNAMIC ENGINE=INNODB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci)
ERROR: [1050] Table 'session' already exists
Generating locales (this might take a while)...

This errors messages appears all day long. Not sure what im missing here. Thought it should be easy to set this up :/

Maybe someone knows the issue and can help me out?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions