Hi,
I’m using Crate in a pretty simple setup - a single host, on a Raspberry Pi, nothing more.
I can successfully connect to it from localhost using http. I’m trying to figure out the configuration to allow me to connect from another host.
I can’t access the admin UI from another host, or connect using the crate python module.
I’ve been looking through crate.yml
to try to identify what to change to allow this, and can’t figure it out.
My first thought was that I needed to set
network.host: 192.168.0.200
However, this failed with:
Mar 26 11:09:04 raspberrypi crate[3595]: [2024-03-26T11:09:04,942][INFO ][o.e.n.Node ] [Höfats] starting ...
Mar 26 11:09:05 raspberrypi crate[3595]: [2024-03-26T11:09:05,017][INFO ][psql ] [Höfats] publish_address {192.168.0.200:5432}, bound_addresses {192.168.0.200:5432}
Mar 26 11:09:05 raspberrypi crate[3595]: [2024-03-26T11:09:05,029][INFO ][o.e.h.n.Netty4HttpServerTransport] [Höfats] publish_address {192.168.0.200:4200}, bound_addresses {192.168.0.200:4200}
Mar 26 11:09:05 raspberrypi crate[3595]: [2024-03-26T11:09:05,040][INFO ][o.e.t.TransportService ] [Höfats] publish_address {192.168.0.200:4300}, bound_addresses {192.168.0.200:4300}
Mar 26 11:09:05 raspberrypi crate[3595]: [2024-03-26T11:09:05,300][INFO ][o.e.b.BootstrapChecks ] [Höfats] bound or publishing to a non-loopback address, enforcing bootstrap checks
Mar 26 11:09:05 raspberrypi crate[3595]: ERROR: [1] bootstrap checks failed
I get the same error with using _wlan0_
or _site_
Thinking that this wasn’t the issue, I then tried various options in the auth
section of the config, changing the whole auth
section to look like this:
auth:
host_based:
config:
0:
user: crate
address: _local_
method: trust
1:
user: my_user
address: 192.168.0.201
method: trush
99:
method: password
I also tried with the new section being password
as the method.
None of these have worked for me - when I try to connect from another host, I get a timeout every time (using exactly the same script (apart from the host, username and password) to test).
Any tips as to how to allow this?
Thanks
EDIT: I found another thread on here that mentioned that you could set multiple network.host
values, so I tried doing:
network.host: _local_, _wlan0_
I tried this (the comment in the config file, and the documentation don’t make it clear that multiple values are allowed), but got this error in the log (similar to above):
Mar 26 11:33:18 raspberrypi crate[4928]: [2024-03-26T11:33:18,153][INFO ][psql ] [Krofička] publish_address {192.168.0.200:5432}, bound_addresses {192.168.0.200:5432}, {[::1]:5432}, {127.0.0.1:5432}, {[fe80::1914:7916:eb39:e149]:5432}
Mar 26 11:33:18 raspberrypi crate[4928]: [2024-03-26T11:33:18,189][INFO ][o.e.h.n.Netty4HttpServerTransport] [Krofička] publish_address {192.168.0.200:4200}, bound_addresses {192.168.0.200:4200}, {[::1]:4200}, {127.0.0.1:4200}, {[fe80::1914:7916:eb39:e149]:4200}
Mar 26 11:33:18 raspberrypi crate[4928]: [2024-03-26T11:33:18,200][INFO ][o.e.t.TransportService ] [Krofička] publish_address {192.168.0.200:4300}, bound_addresses {192.168.0.200:4300}, {[::1]:4300}, {127.0.0.1:4300}, {[fe80::1914:7916:eb39:e149]:4300}
Mar 26 11:33:18 raspberrypi crate[4928]: [2024-03-26T11:33:18,430][INFO ][o.e.b.BootstrapChecks ] [Krofička] bound or publishing to a non-loopback address, enforcing bootstrap checks
Mar 26 11:33:18 raspberrypi crate[4928]: ERROR: [1] bootstrap checks failed