jotta / jotta-cli-issues

45 stars 1 forks source link

Cannot establish connection to the host. - Jottad is running #104

Open ckvist72 opened 4 years ago

ckvist72 commented 4 years ago

Make sure you are running the latest version of jotta-cli before reporting an issue.

**jotta-cli release (jotta-cli version): - Unknown, just get: Cannot establish connection to the host.

**Description of problem: See above. :-)

**Expected:

**jotta-cli status (jotta-cli status): Unknown, just ger Cannot establish connection to the host.

**Relevant logs for the issue (cat ~/.jottad/jottabackup.log) Log seems finr: pid:4355 2020/01/24 08:13:08 Starting /usr/bin/jottad version 0.6.21799 pid:4355 2020/01/24 08:13:08 jottad.init pid:4355 2020/01/24 08:13:08 jottad.init.appdata => /var/lib/jottad pid:4355 2020/01/24 08:13:08 jottad.appdata /var/lib/jottad pid:4355 2020/01/24 08:13:08 jottad.appdata /var/lib/jottad/.ignore (1579848360|490) pid:4355 2020/01/24 08:13:08 jottad.appdata /var/lib/jottad/db (1579849803|32768) pid:4355 2020/01/24 08:13:08 jottad.appdata /var/lib/jottad/downloads pid:4355 2020/01/24 08:13:08 jottad.appdata /var/lib/jottad/downloads/history (1579848361|16384) pid:4355 2020/01/24 08:13:08 jottad.appdata /var/lib/jottad/jottabackup.log (1579849988|2985) pid:4355 2020/01/24 08:13:08 jottad.appdata /var/lib/jottad/nstore - (366a5fdbaae3da1e36b585e5d38872c3|1579849791|65536) pid:4355 2020/01/24 08:13:08 jottad.appdata /var/lib/jottad/userconfig.json (1579848360|185) pid:4355 2020/01/24 08:13:08 jottad.init.cfg.downloadratae => 0B pid:4355 2020/01/24 08:13:08 jottad.init.cfg.uploadrate => 0B pid:4355 2020/01/24 08:13:08 jottad.init.cfg.scaninterval => 1h0m0s pid:4355 2020/01/24 08:13:08 jottad.init.user => [iklbxmhapwgac9xrib6eqwjh] on [Host] @ [829a5d430c2b8beb351810dc6b1bded7] pid:4355 2020/01/24 08:13:08 jottad.init.done => ok pid:4355 2020/01/24 08:13:08 jottad.startup pid:4355 2020/01/24 08:13:08 jottad.startup.confirm-remote pid:4355 2020/01/24 08:13:08 running 3 delayed startup tasks pid:4355 2020/01/24 08:13:08 api.grpc.active => 127.0.0.1:14443 pid:4355 2020/01/24 08:13:08 jottad.startup.confirm-remote => ok pid:4355 2020/01/24 08:13:08 jottad.startup => ok pid:4355 2020/01/24 08:13:09 GET https://repo.jotta.us/archives/VERSION 200

Traceback

Additional info:

Kimbsen commented 4 years ago

Are you running jotta-cli on the same host as jottad?

Jottad's listnening socket does seem to be active as per this line from the log: pid:4355 2020/01/24 08:13:08 api.grpc.active => 127.0.0.1:14443

But jottad is only listening on localhost. Not the network. If you need to connect from a different device on the network you need to edit/create jottad's config file.

Initially jottad listened on 0.0.0.0 but in version 0.6 we changed the default behaviour to only listen to 127.0.0.1.

If that is the case add a section to the config file located here ( on linux ) or create the file if it does not exist. /etc/jottad/config.ini

The contents could look like this:

[settings]
ListenAddr=0.0.0.0