Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distribution group getting it to work #6

Open
tokio69 opened this issue Jan 14, 2025 · 1 comment
Open

Distribution group getting it to work #6

tokio69 opened this issue Jan 14, 2025 · 1 comment

Comments

@tokio69
Copy link

tokio69 commented Jan 14, 2025

I followed the guide and all seems to be staring up. I see the node in Meshchat but when i want to send a message, I get the following error in the node terminal it needs some sort of identity filled in? And if yes, where and what do I need to will in in what config file?
Do I also need to install the extended version? I tried that and got a syntax error in line 8 if I want to do that
First the error messages for the non-extended setup :

root@mesh-22-desktop:/lxmf-tools# systemctl start lxmf_distribution_group
root@mesh-22-desktop:
/lxmf-tools# systemctl status lxmf_distribution_group
● lxmf_distribution_group.service - lxmf_distribution_group
Loaded: loaded (/etc/systemd/system/lxmf_distribution_group.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2025-01-14 18:08:54 CET; 18min ago
Process: 28150 ExecStartPre=/bin/sleep 5 (code=exited, status=0/SUCCESS)
Main PID: 28151 (python3)
Tasks: 7 (limit: 9438)
Memory: 22.8M
CPU: 588ms
CGroup: /system.slice/lxmf_distribution_group.service
└─28151 python3 /root/lxmf-tools/lxmf_distribution_group.py

jan 14 18:08:49 mesh-22-desktop systemd[1]: Starting lxmf_distribution_group...
jan 14 18:08:54 mesh-22-desktop systemd[1]: Started lxmf_distribution_group.
root@mesh-22-desktop:~/lxmf-tools# ./lxmf_distribution_group.py
[2025-01-14 18:27:54] [Notice] LXMF - Loaded Primary Identity from /root/.config/lxmf_distribution_group/identity
[2025-01-14 18:27:54] [] ...............................................................................
[2025-01-14 18:27:54] [] LXMF - Address: <3447d8ed89f8df62664ea72439f6d200>
[2025-01-14 18:27:54] [] ...............................................................................
[2025-01-14 18:28:48] [Error] Error while retrieving physical link stats for LXMF delivery packet: digest sent was rejected
[2025-01-14 18:28:48] [Error] An error occurred in the external delivery callback for <LXMessage 3667ef03aa7bf9ea3dec15e2419c01459f1b4e077930150391d9926f706c19d3>
[2025-01-14 18:28:48] [Error] An unhandled <class 'ValueError'> exception occurred: Can't create outbound SINGLE destination without an identity
[2025-01-14 18:28:48] [Error] Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/LXMF/LXMRouter.py", line 1368, in lxmf_delivery
self.__delivery_callback(message)
File "/root/lxmf-tools/./lxmf_distribution_group.py", line 653, in process_lxmf_message_propagated
self.message_received_callback(message)
File "/root/lxmf-tools/./lxmf_distribution_group.py", line 943, in lxmf_message_received_callback
LXMF_PEER.send(source_hash, DATA["main"]["welcome"].replace("!n!", "\n"), title, fields_generate(members=True, data=True, cmd=source_right, config=source_right, result_key="join", result_value=True))
File "/root/lxmf-tools/./lxmf_distribution_group.py", line 390, in send
destination = RNS.Destination(destination_identity, RNS.Destination.OUT, RNS.Destination.SINGLE, destination_name, destination_type)
File "/usr/local/lib/python3.10/dist-packages/RNS/Destination.py", line 171, in init
raise ValueError("Can't create outbound SINGLE destination without an identity")
ValueError: Can't create outbound SINGLE destination without an identity

[2025-01-14 18:29:45] [Error] Error while retrieving physical link stats for LXMF delivery packet: digest sent was rejected
[2025-01-14 18:29:59] [Error] Error while retrieving physical link stats for LXMF delivery packet: digest sent was rejected

@SebastianObi
Copy link
Owner

I cleaned up the code for lxmf_distribution, this was old and no more needed. You should only use lxmf_distribution_group_extended or lxmf_distribution_group_minimal.

At the moment i'm still on vacation, therefore i have not seen your messages.

I try to find some time soon to help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants