-
Notifications
You must be signed in to change notification settings - Fork 655
Closed
Description
When I do a fresh clone of the crates.io repo, and then run docker-compose up
, the backend fails to come up and instead gets stuck in a loop:
...
backend_1 | Read-only file system (os error 30)
backend_1 | Migrations failed, retrying in 5 seconds...
backend_1 | Read-only file system (os error 30)
backend_1 | Migrations failed, retrying in 5 seconds...
backend_1 | Read-only file system (os error 30)
backend_1 | Migrations failed, retrying in 5 seconds...
...
For new contributors, this should not happen and should instead come up without errors to ease the path to start working on the project.
From what I've been able to tell so far, diesel migration run
is succeeding in the sense that it is running all of the migrations. (It lists the last migration that it is supposed to run, and I manually verified that that migration succeeded.)
Where it fails is that diesel migration run
is trying to create src/schema.rs.orig
on the source volume that is mounted as read-only, so when that fails it returns a non-zero exit code.
Two potential solutions I see:
- Mount the source directory as read-write instead of read-only. This would be a very easy fix, and allow
diesel migration run
to write that file, and that file may be valuable (I'm not sure, I haven't worked withdiesel
before.) - Determine what we need to do to make
diesel migration run
not write that file. Do we need to re-syncsrc/schema.rs
? Is there an option indiesel
that prevents creating that file?
Metadata
Metadata
Assignees
Labels
No labels