Closed saru2020 closed 2 weeks ago
@revant can you help here?
I can't really help. All my setup are migrating properly.
I can just suggest:
@revant thank you for your inputs, I hope your contributions get well rewarded. I'm going back to the hectic VM route for now.
Description of the issue
when running
docker-compose exec -T backend bench --site <my_site> migrate
, it is always stuck and nothing happensContext information (for bug reports)
NOTE: I did a fresh docker setup with custom images and restored my site
this stuck issue is almost similar to this one where it happened during
bench build
and the solution there was tobench disable-production
and then do the build/migrate andbench setup production <user>
, which worked in that case but if we dobench disable-production
within docker, this is the behaviour (when I execute these commands from within the container asfrappe
user:bench disable-production
fails withWARN: superuser privileges required for this command
where as
sudo bench disable-production
fails withOCI runtime exec failed: exec failed: unable to start container process: exec: "sudo": executable file not found in $PATH: unknown
and
docker-compose exec -u root -T backend bench disable-production
fails withand running
bench setup production frappe
fails withhow do I disable production mode on the frappe app running inside a docker container within EC2 instance?
Steps to reproduce the issue
bench migrate
Observed result
the migration is stuck at
Migrating <my_site>
Expected result
site migration should work
I feel like I've been going in circles trying to fix this issue for a long time now, any help would really appreciated
Edit: I have referred the FAQ page and know that we cannot use any build commands, but I can't get rid of the
bench migrate
issue, I'm stuck there and don't know what else to do except going back to VM but that's not a good choice for I have to write automate deployment and manage it manually, not a good place to be in and above are my attempts to just try & find & see if I could get rid of that issue.