[bug] federation borked? #654

Closed
opened 2023-10-22 04:20:38 +00:00 by fluffery · 2 comments

Your setup

From source

Extra details

Debian 12, Source Install, had to reinstall after messing up postgresql

Version

3.10.4-1-gebfb617b, e7a558a

PostgreSQL version

16

What were you trying to do?

federate new instance with other servers

What did you expect to happen?

profile successfully loads data and or follows user

What actually happened?

user profile is never loaded, or just never follows

Logs

Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]: Server: fedi.omada.cafe:80 (http)
Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]: Request: POST /inbox
Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]: ** (exit) an exception was raised:
Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]:     ** (FunctionClauseError) no function clause matching in Pleroma.Signature.sign/2
Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]:         (pleroma 3.10.4-1-gebfb617b) lib/pleroma/signature.ex:70: Pleroma.Signature.sign(nil, %{"(request-target)": "get /users/991mq7a88u", date: "Sun, 22 Oct 2023 04:01:11 GMT", host: "lea.pet">
Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]:         (pleroma 3.10.4-1-gebfb617b) lib/pleroma/object/fetcher.ex:213: Pleroma.Object.Fetcher.make_signature/2
Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]:         (pleroma 3.10.4-1-gebfb617b) lib/pleroma/object/fetcher.ex:224: Pleroma.Object.Fetcher.sign_fetch/3
Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]:         (pleroma 3.10.4-1-gebfb617b) lib/pleroma/object/fetcher.ex:276: Pleroma.Object.Fetcher.get_object/1
Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]:         (pleroma 3.10.4-1-gebfb617b) lib/pleroma/object/fetcher.ex:247: Pleroma.Object.Fetcher.fetch_and_contain_remote_object_from_id/1
Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]:         (pleroma 3.10.4-1-gebfb617b) lib/pleroma/web/activity_pub/activity_pub.ex:1723: Pleroma.Web.ActivityPub.ActivityPub.fetch_and_prepare_user_from_ap_id/2
Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]:         (pleroma 3.10.4-1-gebfb617b) lib/pleroma/web/activity_pub/activity_pub.ex:1828: Pleroma.Web.ActivityPub.ActivityPub.make_user_from_ap_id/2
Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]:         (pleroma 3.10.4-1-gebfb617b) lib/pleroma/user.ex:1961: Pleroma.User.get_or_fetch_by_ap_id/1
Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: 06:01:15.602 request_id=F5BSDP-kc1N3u-AAABOk [error] Cannot create service actor: https://fedi.omada.cafe/internal/fetch/.
Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: [nickname: {"has already been taken", [constraint: :unique, constraint_name: "users_nickname_index"]}]
Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: 06:01:15.602 request_id=F5BSDP-kc1N3u-AAABOk [error] Internal server error: %FunctionClauseError{module: Pleroma.Signature, function: :sign, arity: 2, kind: nil, args: nil, clauses: nil}
Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: 06:01:15.603 [error] #PID<0.2498.0> running Pleroma.Web.Endpoint (connection #PID<0.2497.0>, stream id 1) terminated
Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: Server: fedi.omada.cafe:80 (http)
Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: Request: GET /users/9d51jpr7gw
Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: ** (exit) an exception was raised:
Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]:     ** (FunctionClauseError) no function clause matching in Pleroma.Signature.sign/2
Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]:         (pleroma 3.10.4-1-gebfb617b) lib/pleroma/signature.ex:70: Pleroma.Signature.sign(nil, %{"(request-target)": "get /actor/", date: "Sun, 22 Oct 2023 04:01:15 GMT", host: "takahe.social"})
Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]:         (pleroma 3.10.4-1-gebfb617b) lib/pleroma/object/fetcher.ex:213: Pleroma.Object.Fetcher.make_signature/2
Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]:         (pleroma 3.10.4-1-gebfb617b) lib/pleroma/object/fetcher.ex:224: Pleroma.Object.Fetcher.sign_fetch/3
Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]:         (pleroma 3.10.4-1-gebfb617b) lib/pleroma/object/fetcher.ex:276: Pleroma.Object.Fetcher.get_object/1
Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]:         (pleroma 3.10.4-1-gebfb617b) lib/pleroma/object/fetcher.ex:247: Pleroma.Object.Fetcher.fetch_and_contain_remote_object_from_id/1
Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]:         (pleroma 3.10.4-1-gebfb617b) lib/pleroma/web/activity_pub/activity_pub.ex:1723: Pleroma.Web.ActivityPub.ActivityPub.fetch_and_prepare_user_from_ap_id/2
Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]:         (pleroma 3.10.4-1-gebfb617b) lib/pleroma/web/activity_pub/activity_pub.ex:1828: Pleroma.Web.ActivityPub.ActivityPub.make_user_from_ap_id/2
Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]:         (pleroma 3.10.4-1-gebfb617b) lib/pleroma/user.ex:1961: Pleroma.User.get_or_fetch_by_ap_id/1
Oct 22 06:01:16 vmi1483956.contaboserver.net mix[58578]: 06:01:16.046 request_id=F5BSDRLsXtrN6H4AACFD [error] Cannot create service actor: https://fedi.omada.cafe/internal/fetch/.
Oct 22 06:01:16 vmi1483956.contaboserver.net mix[58578]: [nickname: {"has already been taken", [constraint: :unique, constraint_name: "users_nickname_index"]}]
Oct 22 06:01:16 vmi1483956.contaboserver.net mix[58578]: 06:01:16.047 request_id=F5BSDRLsXtrN6H4AACFD [error] Internal server error: %FunctionClauseError{module: Pleroma.Signature, function: :sign, arity: 2, kind: nil, args: nil, clauses: nil}
Oct 22 06:01:16 vmi1483956.contaboserver.net mix[58578]: 06:01:16.047 [error] #PID<0.2500.0> running Pleroma.Web.Endpoint (connection #PID<0.2499.0>, stream id 1) terminated

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 From source ### Extra details Debian 12, Source Install, had to reinstall after messing up postgresql ### Version 3.10.4-1-gebfb617b, e7a558a ### PostgreSQL version 16 ### What were you trying to do? federate new instance with other servers ### What did you expect to happen? profile successfully loads data and or follows user ### What actually happened? user profile is never loaded, or just never follows <video src="/attachments/7a81544a-026f-41ee-8fe0-7e3c5976659c" title="2023-10-22 07-12-42.mp4" controls></video> ### Logs ```shell Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]: Server: fedi.omada.cafe:80 (http) Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]: Request: POST /inbox Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]: ** (exit) an exception was raised: Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]: ** (FunctionClauseError) no function clause matching in Pleroma.Signature.sign/2 Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]: (pleroma 3.10.4-1-gebfb617b) lib/pleroma/signature.ex:70: Pleroma.Signature.sign(nil, %{"(request-target)": "get /users/991mq7a88u", date: "Sun, 22 Oct 2023 04:01:11 GMT", host: "lea.pet"> Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]: (pleroma 3.10.4-1-gebfb617b) lib/pleroma/object/fetcher.ex:213: Pleroma.Object.Fetcher.make_signature/2 Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]: (pleroma 3.10.4-1-gebfb617b) lib/pleroma/object/fetcher.ex:224: Pleroma.Object.Fetcher.sign_fetch/3 Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]: (pleroma 3.10.4-1-gebfb617b) lib/pleroma/object/fetcher.ex:276: Pleroma.Object.Fetcher.get_object/1 Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]: (pleroma 3.10.4-1-gebfb617b) lib/pleroma/object/fetcher.ex:247: Pleroma.Object.Fetcher.fetch_and_contain_remote_object_from_id/1 Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]: (pleroma 3.10.4-1-gebfb617b) lib/pleroma/web/activity_pub/activity_pub.ex:1723: Pleroma.Web.ActivityPub.ActivityPub.fetch_and_prepare_user_from_ap_id/2 Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]: (pleroma 3.10.4-1-gebfb617b) lib/pleroma/web/activity_pub/activity_pub.ex:1828: Pleroma.Web.ActivityPub.ActivityPub.make_user_from_ap_id/2 Oct 22 06:01:12 vmi1483956.contaboserver.net mix[58578]: (pleroma 3.10.4-1-gebfb617b) lib/pleroma/user.ex:1961: Pleroma.User.get_or_fetch_by_ap_id/1 Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: 06:01:15.602 request_id=F5BSDP-kc1N3u-AAABOk [error] Cannot create service actor: https://fedi.omada.cafe/internal/fetch/. Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: [nickname: {"has already been taken", [constraint: :unique, constraint_name: "users_nickname_index"]}] Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: 06:01:15.602 request_id=F5BSDP-kc1N3u-AAABOk [error] Internal server error: %FunctionClauseError{module: Pleroma.Signature, function: :sign, arity: 2, kind: nil, args: nil, clauses: nil} Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: 06:01:15.603 [error] #PID<0.2498.0> running Pleroma.Web.Endpoint (connection #PID<0.2497.0>, stream id 1) terminated Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: Server: fedi.omada.cafe:80 (http) Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: Request: GET /users/9d51jpr7gw Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: ** (exit) an exception was raised: Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: ** (FunctionClauseError) no function clause matching in Pleroma.Signature.sign/2 Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: (pleroma 3.10.4-1-gebfb617b) lib/pleroma/signature.ex:70: Pleroma.Signature.sign(nil, %{"(request-target)": "get /actor/", date: "Sun, 22 Oct 2023 04:01:15 GMT", host: "takahe.social"}) Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: (pleroma 3.10.4-1-gebfb617b) lib/pleroma/object/fetcher.ex:213: Pleroma.Object.Fetcher.make_signature/2 Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: (pleroma 3.10.4-1-gebfb617b) lib/pleroma/object/fetcher.ex:224: Pleroma.Object.Fetcher.sign_fetch/3 Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: (pleroma 3.10.4-1-gebfb617b) lib/pleroma/object/fetcher.ex:276: Pleroma.Object.Fetcher.get_object/1 Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: (pleroma 3.10.4-1-gebfb617b) lib/pleroma/object/fetcher.ex:247: Pleroma.Object.Fetcher.fetch_and_contain_remote_object_from_id/1 Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: (pleroma 3.10.4-1-gebfb617b) lib/pleroma/web/activity_pub/activity_pub.ex:1723: Pleroma.Web.ActivityPub.ActivityPub.fetch_and_prepare_user_from_ap_id/2 Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: (pleroma 3.10.4-1-gebfb617b) lib/pleroma/web/activity_pub/activity_pub.ex:1828: Pleroma.Web.ActivityPub.ActivityPub.make_user_from_ap_id/2 Oct 22 06:01:15 vmi1483956.contaboserver.net mix[58578]: (pleroma 3.10.4-1-gebfb617b) lib/pleroma/user.ex:1961: Pleroma.User.get_or_fetch_by_ap_id/1 Oct 22 06:01:16 vmi1483956.contaboserver.net mix[58578]: 06:01:16.046 request_id=F5BSDRLsXtrN6H4AACFD [error] Cannot create service actor: https://fedi.omada.cafe/internal/fetch/. Oct 22 06:01:16 vmi1483956.contaboserver.net mix[58578]: [nickname: {"has already been taken", [constraint: :unique, constraint_name: "users_nickname_index"]}] Oct 22 06:01:16 vmi1483956.contaboserver.net mix[58578]: 06:01:16.047 request_id=F5BSDRLsXtrN6H4AACFD [error] Internal server error: %FunctionClauseError{module: Pleroma.Signature, function: :sign, arity: 2, kind: nil, args: nil, clauses: nil} Oct 22 06:01:16 vmi1483956.contaboserver.net mix[58578]: 06:01:16.047 [error] #PID<0.2500.0> running Pleroma.Web.Endpoint (connection #PID<0.2499.0>, stream id 1) terminated ``` ### Severity I cannot use the software ### Have you searched for this issue? - [ ] I have double-checked and have not found this issue mentioned anywhere.
fluffery added the
bug
label 2023-10-22 04:20:38 +00:00

can you expand on what you did to postgres?

the error sounds like you have managed to wipe all public keys associated with users which will render federation impossible

can you expand on what you did to postgres? the error sounds like you have managed to wipe all public keys associated with users which will render federation impossible
floatingghost removed the
bug
label 2023-10-22 05:04:46 +00:00
Author

the other person has the solid kitty-term setup
im the translucent one
(you can see the messages behind it lmao)

we dropped the database
done here
remade the database and re-set it back up
meow

this was after we couldnt get it to Start so we just redid it
old psql setup
presql-setup
before it said we didnt setuo db yada
re-run the setup-db script
"error"

so I helped the other Person i set it up with DB, and just dropped it and re-set it up
what we did is in the top of this
calling us idiots is very fair

the other person has the solid kitty-term setup im the translucent one (you can see the messages behind it lmao) we dropped the database ![done here](https://fedi.omada.cafe/media/f40f998bc1f7817a63289b5d8ca958675774ba4210f80e7dcc08d09fb064d479.png) remade the database and re-set it back up ![meow](https://fedi.omada.cafe/media/6ca62df5611215227a3f7f3d081149a57d012f83d55048b30f4c9d9a92dee1b4.png) this was after we couldnt get it to Start so we just redid it old psql setup ![presql-setup](https://fedi.omada.cafe/media/446441c3dfddaa8fb66e313c7069977fee4d21a3a845e24856064cbb291b1c54.png) before it said we didnt setuo db yada re-run the setup-db script !["error"](https://fedi.omada.cafe/media/a4c1e57f463150af7613fbac9c045819e34e1a73a758388c99cdc009906411cc.png) so I helped the other Person i set it up with DB, and just dropped it and re-set it up what we did is in the top of this calling us idiots is very fair
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#654
No description provided.