Updating Akkoma didn't work

I am trying to update Akkoma, but the process stops here and I can’t run the next step that would start Akkoma

** (Mix) Could not compile dependency :syslog, “/var/lib/akkoma/.asdf/installs/elixir/1.18.2-otp-27/.mix/elixir/1-18/rebar3 bare compile --paths /opt/akkoma/_build/prod/lib/*/ebin” command failed. Errors may have been logged above. You can recompile this dependency with “mix deps.compile syslog --force”, update it with “mix deps.update syslog” or clean it with “mix deps.clean syslog”

it doesn’t work with those

These are my notes from my last upgrade, a few weeks ago:-

cd /opt/akkoma

sudo -su akkoma

fetch changes

git fetch

check out the latest tag

git checkout $(git tag -l | grep -v ‘rc[0-9]*$’ | sort -V | tail -n 1)

Run with production configuration

export MIX_ENV=prod

Download and compile dependencies

mix deps.get
mix compile

Stop akkoma

sudo systemctl stop akkoma

Run database migrations

mix ecto.migrate

Start akkoma

sudo systemctl start akkoma

Update Akkoma-FE frontend to latest stable.

mix pleroma.frontend install pleroma-fe --ref stable

I did that but one compile fails, Akkoma won’t run

try with elixir 1.15, that’s what I am using and works

$ cat .tool-versions 
erlang 25.0
elixir 1.15.0

with elixir 1.15 it compiled but not in one run

Akkoma is still not starting

akkoma.service - Akkoma social network
Loaded: loaded (/etc/systemd/system/akkoma.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Thu 2025-05-29 00:32:06 UTC; 16s ago
Duration: 29ms
Process: 74740 ExecStart=/usr/bin/mix phx.server (code=exited, status=127)
Main PID: 74740 (code=exited, status=127)
CPU: 28ms

before that the error was:
May 28 23:11:19 server3 (mix)[2268]: akkoma.service: Failed to locate executable /usr/bin/mix: No such file or directory
May 28 23:11:19 server3 (mix)[2268]: akkoma.service: Failed at step EXEC spawning /usr/bin/mix: No such file or directory
May 28 23:11:19 server3 systemd[1]: akkoma.service: Main process exited, code=exited, status=203/EXEC

there was an error like this too:

akkoma.service - Akkoma social network
Loaded: loaded (/etc/systemd/system/akkoma.service; enabled; preset: enabled)
Active: inactive (dead) since Wed 2025-05-28 23:11:20 UTC; 3min 50s ago
Duration: 23ms
Process: 2277 ExecStart=/usr/bin/mix phx.server (code=exited, status=203/EXEC)
Main PID: 2277 (code=exited, status=203/EXEC)
CPU: 23ms

I am no techie, I manage only when I can copy and paste commands
this time I got mixed up with PATH’s and things I know nothing about
two three more lines of exact commands in the update instructions would have been helpful
I may have downloaded asdf as root and as akkoma and I have two versions of elixir on the server

Pleroma has been compiled anyway , the rest, asdf and PATH’s ? etc. has to be sorted out so that Akkoma will start

I got there, at the end I checked /etc/systemd/system/akkoma.service file where unchecking a few options started Akkoma

1 Like