Skip to content

Running Dbus as System bus is failing - Ubuntu 20.0.4 #610

@lazynomad

Description

@lazynomad

Hey folks.. Been trying for 2 days with no luck...
Trying to get Dbus run on system bus so I can have my another application (.net based if it matters) issue Send messages.

However I have been stuck with various issues.
Guide followed: https://github.com/AsamK/signal-cli/wiki/DBus-service

  • I do not see signal.service file in repo. I assumed it could be "signal-cli.service" or "signal-cli@.service". Tried both but I made a little progress with the former.
  • The "sed" command has ""s|%number%|<INSERT_YOUR_NUMBER>|"". However the file "signal-cli.service" DOES NOT have %number% parameter. So I don't know where is the "Sender" number provided as the dbus-send command has only Receipient number.
  • I had to add "-u %I" to signal-cli.service file to make a little progress.
  • I created a user "signal-cli" as per doc, but not sure what does it mean by "If you registered with user signal-cli, remove the config option.".. I removed the "--config" option anyway but uncertain if I missed some registration step.
  • Once I get everything "somehow" running error free, then when I run the below command for first time, it doesn't work.

Command: dbus-send --system --type=method_call --print-reply --dest="org.asamk.Signal" /org/asamk/Signal org.asamk.Signal.sendMessage string:"Test message" array:string: string:+1234567890

Error: Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Note: I tried restarting several times with no luck. I must be missing something very basic. Any help is appreciated.

PS: I do not have any issues running "signal-cli" commands directly. Dbus is what's failing for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions