[bug] ./bin/pleroma daemon results sed error #445

Closed
opened 2023-01-25 13:27:34 +00:00 by Lastorder · 8 comments

Your setup

OTP

Extra details

Debian 11 with Yunohost (akkoma itself is not installed using yunohost)

Version

OTP amd64 flavour

PostgreSQL version

15.1

What were you trying to do?

I'm following OTP installation guide. I tried to run below to test my installation.

su akkoma -s $SHELL -lc "./bin/pleroma daemon"

What did you expect to happen?

akkoma runs fine

What actually happened?

sed: -e expression #1, char 25: inappropriate comparison character

Logs

No response

Severity

I cannot use the software

Have you searched for this issue?

  • I have double-checked and have not found this issue mentioned anywhere.
### Your setup OTP ### Extra details Debian 11 with Yunohost (akkoma itself is not installed using yunohost) ### Version OTP amd64 flavour ### PostgreSQL version 15.1 ### What were you trying to do? I'm following OTP installation guide. I tried to run below to test my installation. ``` su akkoma -s $SHELL -lc "./bin/pleroma daemon" ``` ### What did you expect to happen? akkoma runs fine ### What actually happened? sed: -e expression #1, char 25: inappropriate comparison character ### Logs _No response_ ### Severity I cannot use the software ### Have you searched for this issue? - [x] I have double-checked and have not found this issue mentioned anywhere.
Lastorder added the
bug
label 2023-01-25 13:27:34 +00:00

sed -e is not used in any of akkoma, check that this isn't run by any of your setup

`sed -e` is not used in any of akkoma, check that this isn't run by any of your setup
Author

I looked a bit, and turns out below code is causing error.

ESCAPED="$ESCAPED $(echo "$PART" | sed 's/[^a-zA-Z0-9_\-\/]/\\&/g')"

It's from /opt/akkoma/releases/3.5.0-0-gd9508474b/elixir

I looked a bit, and turns out below code is causing error. ``` ESCAPED="$ESCAPED $(echo "$PART" | sed 's/[^a-zA-Z0-9_\-\/]/\\&/g')" ``` It's from `/opt/akkoma/releases/3.5.0-0-gd9508474b/elixir`

i say your setup because you're running in an unusual environment

running in a debian 11 docker container does not throw that issue, so check that everything is up to date and such

i say `your setup` because you're running in an unusual environment running in a debian 11 docker container does not throw that issue, so check that everything is up to date and such
Author

echo "test" | sed 's/[^a-zA-Z0-9_\-\/]/\\&/g' at non root user - works fine
echo "test" | sed 's/[^a-zA-Z0-9_\-\/]/\\&/g' at root user - errors

Still not sure what's causing this, but clearly this is not akkoma's issue. Closing but I'll keep updating about this.

`echo "test" | sed 's/[^a-zA-Z0-9_\-\/]/\\&/g'` at non root user - works fine `echo "test" | sed 's/[^a-zA-Z0-9_\-\/]/\\&/g'` at root user - errors Still not sure what's causing this, but clearly this is not akkoma's issue. Closing but I'll keep updating about this.
Contributor

I think this is related to this issue in Elixir which was fixed last week:

https://github.com/elixir-lang/elixir/issues/12345

and only recent upgrade of busybox, which became stricter about regex parsing, is failing on the regex. GNU sed seems to be silently ignoring the issue.

I think this is related to this issue in Elixir which was fixed last week: https://github.com/elixir-lang/elixir/issues/12345 > and only recent upgrade of busybox, which became stricter about regex parsing, is failing on the regex. GNU sed seems to be silently ignoring the issue.

interesting! thanks

lemme see if there's a builder image out for it

interesting! thanks lemme see if there's a builder image out for it

nah sadly no release as yet, will update when we can

nah sadly no release as yet, will update when we can
Author

For now, Installing pleroma first and update to akkoma just works fine with Yunohost.

For now, Installing pleroma first and update to akkoma just works fine with Yunohost.
Sign in to join this conversation.
No milestone
No project
No assignees
3 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#445
No description provided.