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

DigitalOcean droplet server does not work #292

Open
scusi opened this issue Jan 14, 2022 · 4 comments
Open

DigitalOcean droplet server does not work #292

scusi opened this issue Jan 14, 2022 · 4 comments

Comments

@scusi
Copy link

scusi commented Jan 14, 2022

Summary

smp-server binary from the release page with BuildID cd99e16fec87f49fbfc352350b688e9f90f36e56 DOES work.
smp-server binary from the DigitalOcean droplet with BuildID 9dcbeeef5875acc615c486a4c55be8b125592628 DOES NOT work.

What i did

I used the simplex digital Ocean droplet and run it.
Then i downloaded the simplex-chat (client application) and tried to connect it to my new server (running on digital ocean).
unfortunately this did not work. I got the following error message:

me@mybox:~$ simplex-chat -s smp://tXC4IMc1KUOAEYfXwX+S9ACu2EEitBlSxqCObdKDBEU=@simplex.scusi.io
option -s: @: Failed reading: satisfyWith

How i found out

When i tried the same thing with one of the offical server, it works.

I downloaded the server binary from the release page and started it locally on my computer.
I connected to my local instance, did work, as seen below.

me@mybox:~/$ simplex-chat -s smp://h9ZEZW7uiweKkT6DtExxo5JI9mgyGjc1vSp8wBHaGaE=@127.0.0.1
SimpleX Chat v1.0.0
db: /home/me/.simplex/simplex_v1_chat.db, /home/me/.simplex/simplex_v1_agent.db
type "/help" or "/h" for usage info
[...]

Next thing i did was to check if the local server binary is the same as the one in the digital ocean droplet.
Turns out it is not.

root@simplex:~# file /opt/simplex/bin/smp-server
/opt/simplex/bin/smp-server: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=9dcbeeef5875acc615c486a4c55be8b125592628, stripped

The local server binary (downloaded from the release page) is different from the above.

me@mybox:~/Downloads$ file smp-server-ubuntu-20_04-x86-64 
smp-server-ubuntu-20_04-x86-64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=cd99e16fec87f49fbfc352350b688e9f90f36e56, stripped

After finding out that the binaries from the release page and the droplet are different i just uploaded the release binary into my droplet and overwrote /opt/simplex/bin/smp-server.

After replacing the smp-server binary from the droplet with the one from the release page it also works for me with my digital ocean droplet. I think the digital ocean droplet needs some love and a binary to be updated.

P.S. Thank you for that software project, i like it.

@epoberezkin
Copy link
Member

I think the digital ocean droplet needs some love and a binary to be updated.

Absolutely - we are currently updating droplet to be v1 - the previous version that is currently deployed to DO is not compatible with v1 client, sorry. We should have it up within less than a week (accounting for DO approval).

We probably should update readme for now - we will do it!

Thank you for that software project, i like it.

Thank you so much!

@vaddi
Copy link

vaddi commented Mar 13, 2022

Have the same Problem.

I followed the Instruction into the Readme file:
https://github.com/simplex-chat/simplexmq#deploy-smp-server-on-digitalocean

connection seems to works fine, /cs lists my contact:

$ simplex-chat -s smp://fingerprint@ipaddress
SimpleX Chat v1.3.1
db: /Users/XXXXX/.simplex/simplex_v1_chat.db, /Users/XXXXX/.simplex/simplex_v1_agent.db
type "/help" or "/h" for usage info
Current user: XXXXX
1 contacts connected (use /cs for the list)
> /cs
USER (USERNAME)

Got error when try to do following commands:

> /address
smp agent error: BROKER {brokerErr = TIMEOUT}
exception: HandshakeFailed (Error_Packet_Parsing "Failed reading: invalid header type: 0\nFrom:\theader\n\n")
...
> /connect
smp agent error: BROKER {brokerErr = NETWORK}
exception: HandshakeFailed (Error_Packet_Parsing "Failed reading: invalid header type: 0\nFrom:\theader\n\n")

Current, by Droplet installed, Version:

>/version
SimpleX Chat v1.3.1
To update run: curl -o- https://raw.githubusercontent.com/simplex-chat/simplex-chat/master/install.sh | bash

I realize the sha1 hash is identical as in the initialising thread from scusi: #292 (comment)

$ file /opt/simplex/bin/smp-server
/opt/simplex/bin/smp-server: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=9dcbeeef5875acc615c486a4c55be8b125592628, stripped

So how can i upgrade the DigitalOcean droplet to the newer version?

P.S. Nice Project

@epoberezkin
Copy link
Member

Is is indeed not updated unfortunately, need to chase their support again... There is a not on their page, but probably not that noriceable... Sorry

Please use Linode for now - the stackscript is up to date

@vaddi
Copy link

vaddi commented Mar 14, 2022

Hello epoberezkin,

thanks for the Information.

I find a simple Solution, maybe they are helpful for others:

  1. Delete my Droplet of simplex
  2. Build my own Digital Ocean Image by the Instructions from here:
    https://github.com/simplex-chat/simplexmq/tree/master/scripts/smp-server-digitalocean-droplet
  3. After the Image was created, i was able to create a droplet from the Image in the Digital Ocean Site
    (you should find one under the "Image" Section, after planer has build it successful).

Have no problems in this version.

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