Skip to content

Docker container crashes on start after restart #32

@eloc3147

Description

@eloc3147

Fresh install of the container. I started it up, then hit restart, and the container now crashes on every start.
Docker 17.12.0-ce-win47 (15139) on Windows 10 Pro 16299

Docker log:
grabbing logs: EOF pre start hook... 22:40:20.562 [info] Loaded [bs] app 22:40:20.568 [info] Started [logger] app 22:40:20.568 [info] Running on node [bs@127.0.0.1] 22:40:20.568 [info] ===================================================== 22:40:20.568 [info] Storage Up Task 22:40:20.568 [info] ----------------------------------------------------- 22:40:20.568 [info] Creating schema on bs@127.0.0.1 22:40:20.709 [info] Created schema 22:40:20.709 [info] Done 22:40:26.094 [info] Loaded [bs] app 22:40:26.095 [info] Started [logger] app 22:40:26.096 [info] Running on node [bs@127.0.0.1] 22:40:26.096 [info] ===================================================== 22:40:26.096 [info] Migrate Task... 22:40:26.096 [info] ----------------------------------------------------- 22:40:26.096 [info] Booting dependencies... 22:40:26.272 [info] [ecto_mnesia] config: [host: :"bs@127.0.0.1", storage_type: :ram_copies] 22:40:26.272 [info] Running migrations for [BsRepo] 22:40:26.272 [info] Starting repos.. 22:40:26.281 [info] Running migrations for bs 22:40:26.309 [info] Migrations path: ./lib/bs-5.0.0/priv/bs_repo/migrations 22:40:26.313 [info] Repo config: [host: :"bs@127.0.0.1", storage_type: :ram_copies] 22:40:26.641 [info] == Running BsRepo.Migrations.CreateTableBsRepoGame.change/0 forward 22:40:26.642 [info] create table if not exists bs_repo_game 22:40:26.666 [info] == Migrated in 0.0s 22:40:26.765 [info] == Running BsRepo.Migrations.CreateGameForm.change/0 forward 22:40:26.765 [info] create table if not exists Elixir.BsRepo.GameForm 22:40:26.783 [info] == Migrated in 0.0s 22:40:26.835 [info] == Running BsRepo.Migrations.AddSnakeStartLengthToBsRepoGame.change/0 forward 22:40:26.835 [info] alter table bs_repo_game 22:40:26.867 [info] == Migrated in 0.0s 22:40:26.928 [info] == Running BsRepo.Migrations.AddSnakeStartLengthToGameForm.change/0 forward 22:40:26.928 [info] alter table Elixir.BsRepo.GameForm 22:40:26.990 [info] == Migrated in 0.0s 22:40:27.032 [info] == Running BsRepo.Migrations.AddDecHealthPointsToBsRepoGame.change/0 forward 22:40:27.032 [info] alter table bs_repo_game 22:40:27.072 [info] == Migrated in 0.0s 22:40:27.106 [info] == Running BsRepo.Migrations.AddDecHealthPointsToGameForm.change/0 forward 22:40:27.106 [info] alter table Elixir.BsRepo.GameForm 22:40:27.139 [info] == Migrated in 0.0s 22:40:27.140 [info] Done 22:40:29.551 [info] Running BsWeb.Endpoint with Cowboy using http://0.0.0.0:3000 post start hook... pre start hook... 22:42:27.511 [info] Loaded [bs] app 22:42:27.514 [info] Started [logger] app 22:42:27.514 [info] Running on node [bs@127.0.0.1] 22:42:27.514 [info] ===================================================== 22:42:27.514 [info] Storage Up Task 22:42:27.514 [info] ----------------------------------------------------- 22:42:27.514 [info] Creating schema on bs@127.0.0.1 22:42:27.648 [info] Schema already exists 22:42:27.648 [info] Done 22:42:33.206 [info] Loaded [bs] app 22:42:33.209 [info] Started [logger] app 22:42:33.209 [info] Running on node [bs@127.0.0.1] 22:42:33.209 [info] ===================================================== 22:42:33.209 [info] Migrate Task... 22:42:33.209 [info] ----------------------------------------------------- 22:42:33.209 [info] Booting dependencies... 22:42:33.518 [info] [ecto_mnesia] config: [host: :"bs@127.0.0.1", storage_type: :ram_copies] 22:42:33.518 [info] Running migrations for [BsRepo] 22:42:33.518 [info] Starting repos.. 22:42:33.544 [info] Running migrations for bs 22:42:33.560 [info] Migrations path: ./lib/bs-5.0.0/priv/bs_repo/migrations 22:42:33.567 [info] Repo config: [host: :"bs@127.0.0.1", storage_type: :ram_copies] 22:42:33.967 [info] == Running BsRepo.Migrations.CreateTableBsRepoGame.change/0 forward 22:42:33.968 [info] create table if not exists bs_repo_game 22:42:33.984 [info] == Migrated in 0.0s 22:42:34.100 [info] == Running BsRepo.Migrations.CreateGameForm.change/0 forward 22:42:34.101 [info] create table if not exists Elixir.BsRepo.GameForm 22:42:34.101 [info] == Migrated in 0.0s 22:42:34.142 [info] == Running BsRepo.Migrations.AddSnakeStartLengthToBsRepoGame.change/0 forward 22:42:34.142 [info] alter table bs_repo_game {"init terminating in do_boot",{#{'__exception__'=>true,'__struct__'=>'Elixir.RuntimeError',message=><<"Duplicate field snake_start_length">>},[{'Elixir.EctoMnesia.Storage.Migrator',reduce_fields,4,[{file,"lib/ecto_mnesia/storage/migrator.ex"},{line,207}]},{'Elixir.Enum','-reduce/3-lists^foldl/2-0-',3,[{file,"lib/enum.ex"},{line,1899}]},{'Elixir.EctoMnesia.Storage.Migrator',execute,3,[{file,"lib/ecto_mnesia/storage/migrator.ex"},{line,63}]},{'Elixir.Ecto.Migration.Runner','-flush/0-fun-1-',2,[{file,"lib/ecto/migration/runner.ex"},{line,98}]},{'Elixir.Enum','-reduce/3-lists^foldl/2-0-',3,[{file,"lib/enum.ex"},{line,1899}]},{'Elixir.Ecto.Migration.Runner',flush,0,[{file,"lib/ecto/migration/runner.ex"},{line,96}]},{timer,tc,2,[{file,"timer.erl"},{line,181}]},{'Elixir.Ecto.Migration.Runner',run,6,[{file,"lib/ecto/migration/runner.ex"},{line,27}]}]}} init terminating in do_boot ({,[{Elixir.EctoMnesia.Storage.Migrator,reduce_fields,4,[{_},{_}]},{Elixir.Enum,-reduce/3-lists^foldl/2-0-,3,[{_},{_}]},{Elixir.EctoMnesia.Storage.Migrator,execute,3,[{_},{ Crash dump is being written to: erl_crash.dump...done

erl_crash.dump:
erl_crash.dump.txt

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