~mdotgru


#77 nostr-rs-relay daemon not listening on custom port (or any port) 10 months ago

Comment by ~mdotgru on ~gheartsfield/nostr-rs-relay

Solved by rebuilding from source.

#77 nostr-rs-relay daemon not listening on custom port (or any port) 1 year, 3 months ago

Ticket created by ~mdotgru on ~gheartsfield/nostr-rs-relay

I have built the latest version of the relay from source and am running it as a daemon. While the serviced log informs me that the relay is listening on port 7777:

nostr.service - nostr-rs relay server Loaded: loaded (/etc/systemd/system/nostr.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2023-05-18 07:53:27 UTC; 5s ago Main PID: 161785 (nostr-rs-relay) Tasks: 11 (limit: 4381) Memory: 10.6M CGroup: /system.slice/nostr.service └─161785 /opt/nostr-rs/nostr-rs-relay/target/release/nostr-rs-relay

May 18 07:53:27 systemd[1]: Starting nostr-rs relay server... May 18 07:53:27 systemd[1]: Started nostr-rs relay server. May 18 07:53:27 nostr-rs-relay[161785]: May 18 07:53:27.199 INFO nostr_rs_relay: Starting up from main May 18 07:53:27 nostr-rs-relay[161785]: May 18 07:53:27.203 INFO nostr_rs_relay::server: listening on: 127.0.0.1:7777 May 18 07:53:27 nostr-rs-relay[161785]: May 18 07:53:27.215 INFO nostr_rs_relay::repo::sqlite: Built a connection pool "writer" (min=0, max=2)

.... it isn't actually listening:

sudo netstat -ltnp | grep -w ':7777'

... returns nothing.

I have tried many other port combinations, with the same outcome.

Even tried the documented 8080, with no success: May 18 08:01:59 systemd[1]: Starting nostr-rs relay server... May 18 08:01:59 systemd[1]: Started nostr-rs relay server. May 18 08:01:59 nostr-rs-relay[161919]: May 18 08:01:59.862 INFO nostr_rs_relay: Starting up from main May 18 08:01:59 nostr-rs-relay[161919]: May 18 08:01:59.867 INFO nostr_rs_relay::server: listening on: 127.0.0.1:8080 May 18 08:01:59 nostr-rs-relay[161919]: May 18 08:01:59.880 INFO nostr_rs_relay::repo::sqlite: Built a connection pool "writer" (min=0, max=2)

sudo netstat -ltnp | grep ':8080'

... empty return.

If I manually run it, I get this: RUST_LOG=warn,nostr_rs_relay=info ./target/release/nostr-rs-relay May 18 08:09:22.196 INFO nostr_rs_relay: Starting up from main May 18 08:09:22.200 INFO nostr_rs_relay::server: listening on: 0.0.0.0:8080 May 18 08:09:22.212 INFO nostr_rs_relay::repo::sqlite: Built a connection pool "writer" (min=0, max=2)

and the netstat -ltnp | grep ':8080' still returns nothing.

Help would be greatly appreciated. I have also tried to redo the build but my issue persists.