ezkrg / docker-bitlbee-libpurple

bitlbee with libpurple and plugins
28 stars 17 forks source link

Signald not spawning? #19

Closed jkaberg closed 3 years ago

jkaberg commented 3 years ago

So trying to add an signal account:

11:25:04 <@joel> account add hehoe-signald NUMERIC-PHONE-NUMBER
11:25:04 <@root> Account successfully added with tag hehoe-signald
11:25:09 <@joel> ac l
11:25:09 <@root>  0 (hehoe-signald): hehoe-signald, NUMERIC-PHONE-NUMBER
11:25:09 <@root> End of account list
11:25:20 <@joel> ac 0 on
11:25:31 <@root> hehoe-signald - Login error: Could not connect to socket.
11:25:31 <@root> hehoe-signald - Logging in: Signing off..
11:25:31 <@root> hehoe-signald - Logging in: Reconnecting in 5 seconds..
11:25:38 <@joel> ac 0 off
11:25:45 <@joel> plugins
11:25:47 <@root> Plugin                          Version
11:25:47 <@root> aim                             2.13.0
11:25:47 <@root> bitlbee-discord                 0.4.3
11:25:47 <@root> bitlbee-mastodon                1.4.4
11:25:47 <@root> bonjour                         2.13.0
11:25:47 <@root> eionrobb-rocketchat             0.9.2020.11.20
11:25:47 <@root> facebook                        1.2.0
11:25:47 <@root> gg                              2.13.0
11:25:47 <@root> hangouts                        0.1
11:25:47 <@root> hehoe-signald                   0.6.0~gitaf18341
11:25:47 <@root> icq                             2.13.0
11:25:47 <@root> irc                             2.13.0
11:25:47 <@root> jabber                          2.13.0
11:25:47 <@root> matrix                          1.0
11:25:47 <@root> novell                          2.13.0
11:25:47 <@root> otr                             3.6
11:25:47 <@root> simple                          2.13.0
11:25:47 <@root> sipe                            1.25.0
11:25:47 <@root> skypeweb                        1.7
11:25:47 <@root> slack                           0.1
11:25:47 <@root> steam                           1.4.2
11:25:47 <@root> telegram                        1.4.3
11:25:47 <@root> zephyr                          2.13.0
11:25:47 <@root>  
11:25:47 <@root> Enabled Protocols: aim, bonjour, discord, eionrobb-rocketchat, facebook, gg, hangouts, hehoe-signald, icq, identica, irc, jabber, mastodon, matrix, novell, simple, sipe, skypeweb, slack, steam, telegram, twitter, zephyr

From within the container:

bash-5.0# ps aux
PID   USER     TIME  COMMAND
    1 bitlbee   0:00 /usr/sbin/bitlbee -F -n -u bitlbee
    6 bitlbee   0:00 /usr/sbin/bitlbee -F -n -u bitlbee
   14 root      0:00 bash
   20 root      0:00 ps aux
bash-5.0#

It seems signald isnt spawned?

docker-compose:

....

  bitlbee:
          #    image: ezkrg/bitlbee-libpurple
    build: https://github.com/ezkrg/docker-bitlbee-libpurple.git
    restart: unless-stopped
    volumes:
      - ${STORAGE_DIR}/bitlbee:/var/lib/bitlbee
    networks:
      - irc
...

Any suggestions @heywoodlh ?

jkaberg commented 3 years ago

Doesn't seem like the signald binary is downloaded? https://github.com/ezkrg/docker-bitlbee-libpurple/blob/master/Dockerfile#L293-L309

https://git.callpipe.com/finn/signald

ezkrg commented 3 years ago

The container not spawn singald itself, you can connect to it via cross-mount signald socket in bitlbee container:

https://git.callpipe.com/finn/signald/-/blob/master/docs/install/docker.md

jkaberg commented 3 years ago

@ezkrg ah thanks, got it working now:

  bitlbee:
          #    image: ezkrg/bitlbee-libpurple
    build: https://github.com/ezkrg/docker-bitlbee-libpurple.git
    depends_on:
      - signald
    restart: unless-stopped
    volumes:
      - ${STORAGE_DIR}/bitlbee:/var/lib/bitlbee
      - ${STORAGE_DIR}/signald/run:/var/run/signald
    networks:
      - irc

  signald:
    image: finn/signald
    restart: unless-stopped
    volumes:
      - ${STORAGE_DIR}/signald/config:/home/gradle/.config
      - ${STORAGE_DIR}/signald/run:/var/run/signald

Perhaps this should be included in the README?

ezkrg commented 3 years ago

@jkaberg Feel free to update the README :)