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

Daemon working correctly but signal-curses not showing contacts #4

Open
riazm opened this issue Oct 16, 2018 · 6 comments
Open

Daemon working correctly but signal-curses not showing contacts #4

riazm opened this issue Oct 16, 2018 · 6 comments

Comments

@riazm
Copy link

riazm commented Oct 16, 2018

I think I have set up the signal-cli daemon correctly but when i run main.py I do not get any of my contacts loaded. I captured one log where my friend sent me a message but it does not show up..

r@belatinous:~/signal-curses$ cat sc.log
2018-10-16 08:57:11 args Namespace(bus='session', configDir='/home/r/.config/signal', phone='+REDACT')
2018-10-16 08:57:11 main None
2018-10-16 08:57:11 daemon thread
2018-10-16 08:57:11 message thread
2018-10-16 08:57:11 contacts:  0
2018-10-16 08:57:11 daemon popen
2018-10-16 08:57:11 waiting for (session) dbus...
2018-10-16 08:57:11 start forms {'MAIN': <__main__.SelectForm object at 0x7f8f25561ac8>, 'APP': <__main__.AppForm object at 0x7f8f245057b8>}
2018-10-16 08:57:15 got dbus
2018-10-16 08:57:25 line: {"envelope":{"source":"+REDACT","sourceDevice":2,"relay":null,"timestamp":1539680232979,"isReceipt":false,"dataMessage":{"timestamp":1539680232979,"message":"I got home and jacob had made beetroot noodles","expiresInSeconds":0,"attachments":[],"groupInfo":null},"syncMessage":null,"callMessage":null}}

2018-10-16 08:57:25 handleDaemonLine {"envelope":{"source":"+REDACT","sourceDevice":2,"relay":null,"timestamp":1539680232979,"isReceipt":false,"dataMessage":{"timestamp":1539680232979,"message":"I got home and jacob had made beetroot noodles","expiresInSeconds":0,"attachments":[],"groupInfo":null},"syncMessage":null,"callMessage":null}}

2018-10-16 08:57:25 should_notify None +REDACT +REDACT I got home and jacob had made beetroot noodles
2018-10-16 08:57:25 notifying line
2018-10-16 08:57:35 SIGINT
2018-10-16 08:57:35 queue item {'exit': 1}
2018-10-16 08:57:35 message thread exit
r@belatinous:~/signal-curses$ ls
daemon.log  main.py  README.md  requirements.txt  sc.log  screenshots
r@belatinous:~/signal-curses$ cat daemon.log 
{"envelope":{"source":"+REDACT","sourceDevice":2,"relay":null,"timestamp":1539680232979,"isReceipt":false,"dataMessage":{"timestamp":1539680232979,"message":"I got home and jacob had made beetroot noodles","expiresInSeconds":0,"attachments":[],"groupInfo":null},"syncMessage":null,"callMessage":null}}

I have one group partially loaded but if I try to send a message i it I get an error that the 'group does not exist' scrolling around curses, log below

image

2018-10-16 09:02:36 args Namespace(bus='session', configDir='/home/r/.config/signal', phone='+REDACT')
2018-10-16 09:02:36 main None
2018-10-16 09:02:36 daemon thread
2018-10-16 09:02:36 message thread
2018-10-16 09:02:36 contacts:  0
2018-10-16 09:02:36 daemon popen
2018-10-16 09:02:36 start forms {'MAIN': <__main__.SelectForm object at 0x7fb0318b3b00>, 'APP': <__main__.AppForm object at 0x7fb030056390>}
2018-10-16 09:02:36 waiting for (session) dbus...
2018-10-16 09:02:40 got dbus
2018-10-16 09:02:40 3
2018-10-16 09:02:40 {'groupId': 'ZxUv6bnPu7C7oTYcpnb1Bw==', 'name': 'decentralised dads', 'members': ['REDACT'], 'color': None, 'active': False}
2018-10-16 09:02:40 new state: state type: group name: decentralised dads numbers: REDACT
2018-10-16 09:02:40 mloop forms {'MAIN': <__main__.SelectForm object at 0x7fb0318b3b00>, 'APP': <__main__.AppForm object at 0x7fb030056390>}
2018-10-16 09:02:44 handleEnter 10 hello 1539680564240
2018-10-16 09:02:44 markAsEnvelope: {"envelope": {"timestamp": 1539680564240, "source": "+REDACT", "dataMessage": {"timestamp": 1539680564240, "message": "hello"}}} (sending)
2018-10-16 09:02:44 markAs success: ('2018-10-16 09:02:44', 'You (REDACT)', 'hello')
2018-10-16 09:02:44 mark:  ('2018-10-16 09:02:44', 'You (+REDACT)', 'hello') as:  (sending)
2018-10-16 09:02:44 sendHandler hello 1539680564240
2018-10-16 09:02:44 queue item {'state': <__main__.AppState object at 0x7fb0318a1ef0>, 'currentSend': <__main__.CurrentSend object at 0x7fb030092ef0>}
2018-10-16 09:02:44 send_message group ZxUv6bnPu7C7oTYcpnb1Bw== hello
2018-10-16 09:02:44 group id: ZxUv6bnPu7C7oTYcpnb1Bw==  b64: b'WnhVdjZiblB1N0M3b1RZY3BuYjFCdz09'
2018-10-16 09:02:56 SIGINT
2018-10-16 09:02:56 daemon exit

The daemon.log doesn't appear to have updated after this, it still has the message about beetroot noodles

@riazm
Copy link
Author

riazm commented Oct 16, 2018

It appears that something is up with the json in my data file being read in so I guess this is an issue with signal-cli not the signal-curses?

  },
    "contactStore": {
        "contacts": []
    },

@jwoglom
Copy link
Owner

jwoglom commented Oct 16, 2018 via email

@riazm
Copy link
Author

riazm commented Oct 23, 2018

I tried this and it still broke, the problem is definitely in signal-cli though. Ithink it is AsamK/signal-cli#123 this issue

@riazm
Copy link
Author

riazm commented Dec 26, 2018

Anyway, i tried to hack aronud this by just manually adding
{ "name" : "myFrend", "number" : "+44friend" } entries to the contactstore which half worked, but i lose chat history if i tab away, and if i read a message on another device (my phone, desktop client) it doesn't show up in the curses client (and no other messages do)

have you got any ideas for further hacking to fix this? I can send messages fine now!

@riazm
Copy link
Author

riazm commented Dec 26, 2018

eugh i just checked sc.log (forgot about it) and found a bunch of

2018-12-26 22:36:09 handleDaemonLine {"error":{"message":"org.whispersystems.libsignal.InvalidMessageException: No valid sessions."},"envelope":{"source":"+REDACTED","sourceDevice":6,"relay":null,"timestamp":1545863768700,"isReceipt":false,"dataMessage":null,"syncMessage":null,"callMessage":null}}

with the source both as me and +44friend so I'm guessing this once again isn't really your issue and is something to do with weird daemon behaviour. Ohhhh well. It's really frustrating because if I just sit looking at the receive coming in from my dbus I get all the messages, can send any messages I want if I just use phone numbers, but for whatever reason when i try to string it together, everything goes to hell.

@elsehow
Copy link

elsehow commented May 25, 2020

I'm also experiencing this issue.

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

3 participants