Upgrading to 2.4.2 fails with bcrypt_elixir build failure and undefined column u1.pinned_activities
I was running 2.3.0, and tried upgrading to 2.4.2 using the From source installations (using git) instructions.
During step 5, the migrations failed with:
Unchecked dependencies for environment prod:
* bcrypt_elixir (Hex package)
the dependency build is outdated, please run "MIX_ENV=prod mix deps.compile"
** (Mix) Can't continue due to errors on dependencies
After running mix deps.compile
as suggested and re-running migrations, everything seemed fine. But then when trying to load the main timeline:
[error] #PID<0.6811.31> running Pleroma.Web.Endpoint (connection #PID<0.6871.31>, stream id 1) terminated
Server: [snip]:80 (http)
Request: GET /api/v1/timelines/public?only_media=false&with_muted=false&limit=20
** (exit) an exception was raised:
** (Postgrex.Error) ERROR 42703 (undefined_column) column u1.pinned_activities does not exist
(ecto_sql 3.4.5) lib/ecto/adapters/sql.ex:593: Ecto.Adapters.SQL.raise_sql_call_error/1
(ecto_sql 3.4.5) lib/ecto/adapters/sql.ex:526: Ecto.Adapters.SQL.execute/5
(ecto 3.4.6) lib/ecto/repo/queryable.ex:192: Ecto.Repo.Queryable.execute/4
(ecto 3.4.6) lib/ecto/repo/queryable.ex:17: Ecto.Repo.Queryable.all/3
(ecto 3.4.6) lib/ecto/repo/queryable.ex:112: Ecto.Repo.Queryable.one/3
(pleroma 2.3.0) lib/pleroma/web/plugs/o_auth_plug.ex:57: Pleroma.Web.Plugs.OAuthPlug.fetch_user_and_token/1
(pleroma 2.3.0) lib/pleroma/web/plugs/o_auth_plug.ex:25: Pleroma.Web.Plugs.OAuthPlug.call/2
(pleroma 2.3.0) Pleroma.Web.Router.authenticate/2
Edited by George Dorn