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

docker-compose up fails with ** (ArgumentError) could not call Module #411

Closed
tarasrudyy opened this issue Feb 7, 2024 · 2 comments
Closed

Comments

@tarasrudyy
Copy link

Apple M1 Pro / macOS 14.2.1 (23C71)

accent-postgres | 2024-02-07 13:16:08.837 UTC [1] LOG: database system is ready to accept connections
accent | Running migrations for accent…
accent | ** (ArgumentError) could not call Module.put_attribute/3 because the module Accent.Repo.Migrations.CreateLanguages is already compiled
accent | (elixir 1.15.7) lib/module.ex:2310: Module.assert_not_readonly!/2
accent | (elixir 1.15.7) lib/module.ex:2007: Module.put_attribute/5
accent | lib/accent-1.19.12/priv/repo/migrations/20150929150001_create_projects.exs:2: (module)
accent exited with code 1

@simonprev
Copy link
Member

This is because we don’t build linux/arm64 on docker hub. See #377

If you make build the app locally on your M1 Pro it will work. The steps are listed in the README:

  1. Run make build to build the OTP release with Docker
  2. Run make dev-start-postgresql to start an instance of Postgresql. The instance will run on port 5432 with the postgres user. You can change those values in the docker-compose.yml file.
  3. Run make dev-start-application to start the app! The release hook of the release will execute migrations and seeds before starting the webserver on port 4000 (again you can change the settings in docker-compose.yml)

@tarasrudyy
Copy link
Author

Many thanks! Local build works.

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

2 participants