If OTP installing guide we should change directory before 'su akkoma -s $SHELL -lc "./bin/pleroma_ctl instance gen ..."' #1069

Closed
opened 2026-02-23 19:44:21 +00:00 by aac1122 · 1 comment

Your setup

OTP

Extra details

Debian Linux

Version

Installing from instructions

PostgreSQL version

15.16

What were you trying to do?

In OTP install instruction (https://docs.akkoma.dev/stable/installation/otp_en/) on step "Run the config generator" used the command:

su akkoma -s $SHELL -lc "./bin/pleroma_ctl instance gen ..."

It supposes that user already is in directory /opt/akkoma. If launch it from any other catalog (for example, from /root), it ends with error ./bin/pleroma_ctl: No such file or directory.

I suggest:

    Or change directory before it cd /opt/akkoma

    Or use absolute path /opt/akkoma/bin/pleroma_ctl

It will help to avoid confusion among next users...

What did you expect to happen?

Going to the next step without error reports

What actually happened?

root@server-higkdx:# # Run the config generator
su akkoma -s $SHELL -lc "./bin/pleroma_ctl instance gen --output /etc/akkoma/config.exs --output-psql /tmp/setup_db.psql"
-bash: line 1: ./bin/pleroma_ctl: No such file or directory
root@server-higkdx:
#

Logs

No response

Severity

I cannot use it as easily as I'd like

Have you searched for this issue?

  • I have double-checked and have not found this issue mentioned anywhere.
### Your setup OTP ### Extra details Debian Linux ### Version Installing from instructions ### PostgreSQL version 15.16 ### What were you trying to do? In OTP install instruction (https://docs.akkoma.dev/stable/installation/otp_en/) on step "Run the config generator" used the command: su akkoma -s $SHELL -lc "./bin/pleroma_ctl instance gen ..." It supposes that user already is in directory /opt/akkoma. If launch it from any other catalog (for example, from /root), it ends with error ./bin/pleroma_ctl: No such file or directory. I suggest: Or change directory before it cd /opt/akkoma Or use absolute path /opt/akkoma/bin/pleroma_ctl It will help to avoid confusion among next users... ### What did you expect to happen? Going to the next step without error reports ### What actually happened? root@server-higkdx:~# # Run the config generator su akkoma -s $SHELL -lc "./bin/pleroma_ctl instance gen --output /etc/akkoma/config.exs --output-psql /tmp/setup_db.psql" -bash: line 1: ./bin/pleroma_ctl: No such file or directory root@server-higkdx:~# ### Logs _No response_ ### Severity I cannot use it as easily as I'd like ### Have you searched for this issue? - [ ] I have double-checked and have not found this issue mentioned anywhere.
Owner

su -l creates a login environment whose effects are documented to include “change to the target user’s home directory”. Earlier in the instructions /opt/akkoma was setup as akkoma’s home directory.

It looks like you either chose a different home directory, or your su is broken and silently accepts -l without actually changing the directory.

`su -l` creates a login environment whose effects are documented to include *“change to the target user’s home directory”*. Earlier in the instructions `/opt/akkoma` was setup as `akkoma`’s home directory. It looks like you either chose a different home directory, or your `su` is broken and silently accepts `-l` without actually changing the directory.
Oneric changed title from [bug] If OTP installing guide we should change directory before 'su akkoma -s $SHELL -lc "./bin/pleroma_ctl instance gen ..."' to If OTP installing guide we should change directory before 'su akkoma -s $SHELL -lc "./bin/pleroma_ctl instance gen ..."' 2026-03-02 01:42:52 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AkkomaGang/akkoma#1069
No description provided.