Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

koel:init crashes with 3.7.2 — not compatible with non interactive shells like docker #1

Open
raphaelyancey opened this issue May 1, 2018 · 0 comments

Comments

@raphaelyancey
Copy link

https://github.com/phanan/koel/blob/v3.7.2/app/Console/Commands/Init.php#L156-L157

These steps are skipped when in a docker container, creating an empty user, raising an exception on not-null fields.

app_1 | SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "name"
app_1 | violates not-null constraint
app_1 | DETAIL: Failing row contains (1, null, null, $2y$10$Dd9Fl/6C64iOKFSSP/O0Wu
app_1 | 2P4BIXS9h44SQIx2uouycK7Ziyjll6S, t, null, 2018-05-01 16:09:40, 2018-05-01 1
app_1 | 6:09:40, null). (SQL: insert into "users" ("name", "email", "password", "is
app_1 | _admin", "updated_at", "created_at") values (, , $2y$10$Dd9Fl/6C64iOKFSSP/O
app_1 | 0Wu2P4BIXS9h44SQIx2uouycK7Ziyjll6S, 1, 2018-05-01 16:09:40, 2018-05-01 16:0
app_1 | 9:40) returning "id")
app_1 |
app_1 |
app_1 | In PDOStatement.php line 107:
app_1 |
app_1 | SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "name"
app_1 | violates not-null constraint
app_1 | DETAIL: Failing row contains (1, null, null, $2y$10$Dd9Fl/6C64iOKFSSP/O0Wu
app_1 | 2P4BIXS9h44SQIx2uouycK7Ziyjll6S, t, null, 2018-05-01 16:09:40, 2018-05-01 1
app_1 | 6:09:40, null).
app_1 |
app_1 |
app_1 | In PDOStatement.php line 105:
app_1 |
app_1 | SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "name"
app_1 | violates not-null constraint
app_1 | DETAIL: Failing row contains (1, null, null, $2y$10$Dd9Fl/6C64iOKFSSP/O0Wu
app_1 | 2P4BIXS9h44SQIx2uouycK7Ziyjll6S, t, null, 2018-05-01 16:09:40, 2018-05-01 1
app_1 | 6:09:40, null).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant