[ERROR] plainPassword (admin)
This value is too short. It should have 8 characters or more.
Changing the above command with a longer password will succeed, but the next command will also fail:
docker exec kimai2 bin/console kimai:reset-dev
Fails with:
[ERROR] Failed to create database schema: Schema-Tool failed with Error 'An
exception occurred while executing 'CREATE TABLE kimai2_users (id
INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, username VARCHAR(180) NOT
NULL, username_canonical VARCHAR(180) NOT NULL, email VARCHAR(180) NOT
NULL, email_canonical VARCHAR(180) NOT NULL, enabled BOOLEAN NOT NULL,
salt VARCHAR(255) DEFAULT NULL, password VARCHAR(255) NOT NULL,
last_login DATETIME DEFAULT NULL --(DC2Type:datetime)
, confirmation_token VARCHAR(180) DEFAULT NULL, password_requested_at
DATETIME DEFAULT NULL --(DC2Type:datetime)
, roles CLOB NOT NULL --(DC2Type:array)
, alias VARCHAR(60) DEFAULT NULL, registration_date DATETIME DEFAULT
NULL --(DC2Type:datetime)
, title VARCHAR(50) DEFAULT NULL, avatar VARCHAR(255) DEFAULT NULL,
api_token VARCHAR(255) DEFAULT NULL)':
SQLSTATE[HY000]: General error: 1 table kimai2_users already exists'
while executing DDL: CREATE TABLE kimai2_users (id INTEGER PRIMARY KEY
AUTOINCREMENT NOT NULL, username VARCHAR(180) NOT NULL,
username_canonical VARCHAR(180) NOT NULL, email VARCHAR(180) NOT NULL,
email_canonical VARCHAR(180) NOT NULL, enabled BOOLEAN NOT NULL, salt
VARCHAR(255) DEFAULT NULL, password VARCHAR(255) NOT NULL, last_login
DATETIME DEFAULT NULL --(DC2Type:datetime)
, confirmation_token VARCHAR(180) DEFAULT NULL, password_requested_at
DATETIME DEFAULT NULL --(DC2Type:datetime)
, roles CLOB NOT NULL --(DC2Type:array)
, alias VARCHAR(60) DEFAULT NULL, registration_date DATETIME DEFAULT
NULL --(DC2Type:datetime)
, title VARCHAR(50) DEFAULT NULL, avatar VARCHAR(255) DEFAULT NULL,
api_token VARCHAR(255) DEFAULT NULL)
The instructions given in the Quick start guide under Evaluate and in the documentation are not working.
docker run --rm -ti -p 8001:8001 --name kimai2 kimai/kimai2:dev
This is workingdocker exec kimai2 bin/console kimai:create-user admin admin@example.com ROLE_SUPER_ADMIN admin
Gives the error:Changing the above command with a longer password will succeed, but the next command will also fail:
docker exec kimai2 bin/console kimai:reset-dev
Fails with: