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

'db' container is broken in Windows and docker-machine #18

Open
3 tasks
coord-e opened this issue Jul 9, 2018 · 0 comments
Open
3 tasks

'db' container is broken in Windows and docker-machine #18

coord-e opened this issue Jul 9, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@coord-e
Copy link
Contributor

coord-e commented Jul 9, 2018

Step 1: 環境

  • OSのバージョン: Windows 7
  • devenvのハッシュ: 776544c
  • frontendのハッシュ: 9d112ed
  • backendのハッシュ: f639616

Step 2: 問題

再現のための手順:

  1. docker-compose up

どうなってしまうか:

  • DBが落ちる
monitor_1   | wait-for-it: waiting for db:5432 without a timeout
frontend_1  | [2/4] Fetching packages...
db_1        | creating configuration files ... ok
db_1        | running bootstrap script ... 2018-07-09 05:22:22.724 UTC [31] LOG:could not link file "pg_wal/xlogtemp.31" to "pg_wal/000000010000000000000001": Operation not permitted                                                                                                                                                                                                          
db_1        | 2018-07-09 05:22:22.728 UTC [31] FATAL:  could not open file "pg_wal/000000010000000000000001": No such file or directory                                                                                            
db_1        | child process exited with exit code 1
db_1        | initdb: removing contents of data directory "/var/lib/postgresql/data"                                                                                                    
backend_1   | Creating a virtualenv for this project...

どうなるべきだったのか:

  • 落ちない

関連するコード:

- "./db:/var/lib/postgresql/data"

タスク:

  • マウントを切って動くか確認
  • マウント先を/tmp/dbなどwindowsと共有されていないところに置いて動くか確認
  • マウント先を指定する必要がそもそもあるか確認
@coord-e coord-e added the bug Something isn't working label Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant