mollyim / mollysocket

MollySocket allows getting Signal notifications via UnifiedPush.
GNU Affero General Public License v3.0
110 stars 10 forks source link

delayed / missing notifications #24

Closed eylenburg closed 10 months ago

eylenburg commented 10 months ago

I installed Molly-UP and set up an airgapped Mollysocket on Fly.io (https://github.com/pcrockett/mollysocket-fly).

However, I often dont get notifications until I open the app or I get a notification like an hour later.

In Molly it says the UP status is "ok".

I gave unrestricted battery permissions to Molly and ntfy.

eylenburg commented 10 months ago

Some outputs from mollysocket (I have no idea what I'm doing, just trying random commands):

root@2866441be26398:/app# mollysocket connection list
[2024-01-26T09:06:09Z INFO  mollysocket::config] No config file supplied
[src/cli/connection.rs:75] &connection = Connection {
    uuid: "<removed>",
    device_id: 3,
    password: "<removed>",
    endpoint: "https://ntfy.sh/<removed>?up=1",
    forbidden: false,
    last_registration: OptTime(
        None,
    ),
}
root@2866441be26398:/app# mollysocket server     
[2024-01-26T09:09:24Z ERROR rocket::error] Rocket failed to bind network socket to given address/port.
thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rocket-0.5.0/src/error.rs:279:9:
aborting due to socket bind error
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
root@2866441be26398:/app# MOLLY_PORT=8021 mollysocket -v server
[2024-01-26T10:15:15Z INFO  mollysocket::config] No config file supplied
[2024-01-26T10:15:15Z INFO  rocket::launch] 🔧 Configured for release.
[2024-01-26T10:15:15Z INFO  rocket::launch::_] address: 127.0.0.1
[2024-01-26T10:15:15Z INFO  rocket::launch::_] port: 8021
[2024-01-26T10:15:15Z INFO  rocket::launch::_] workers: 1
[2024-01-26T10:15:15Z INFO  rocket::launch::_] max blocking threads: 512
[2024-01-26T10:15:15Z INFO  rocket::launch::_] ident: Rocket
[2024-01-26T10:15:15Z INFO  rocket::launch::_] IP header: X-Real-IP
[2024-01-26T10:15:15Z INFO  rocket::launch::_] limits: bytes = 8KiB, data-form = 2MiB, file = 1MiB, form = 32KiB, json = 1MiB, msgpack = 1MiB, string = 8KiB
[2024-01-26T10:15:15Z INFO  rocket::launch::_] temp dir: /tmp
[2024-01-26T10:15:15Z INFO  rocket::launch::_] http/2: true
[2024-01-26T10:15:15Z INFO  rocket::launch::_] keep-alive: 5s
[2024-01-26T10:15:15Z INFO  rocket::launch::_] tls: disabled
[2024-01-26T10:15:15Z INFO  rocket::launch::_] shutdown: ctrlc = true, force = true, signals = [SIGTERM], grace = 2s, mercy = 3s
[2024-01-26T10:15:15Z INFO  rocket::launch::_] log level: critical
[2024-01-26T10:15:15Z INFO  rocket::launch::_] cli colors: true
[2024-01-26T10:15:15Z INFO  rocket::launch] 📬 Routes:
[2024-01-26T10:15:15Z INFO  rocket::launch::_] (discover) GET /
[2024-01-26T10:15:15Z INFO  rocket::launch::_] (register) POST / application/json
[2024-01-26T10:15:15Z INFO  rocket::launch::_] GET /metrics/
[2024-01-26T10:15:15Z INFO  rocket::launch] 📡 Fairings:
[2024-01-26T10:15:15Z INFO  rocket::launch::_] Shield (liftoff, response, singleton)
[2024-01-26T10:15:15Z INFO  rocket::launch::_] Prometheus metric collection (request, response)
[2024-01-26T10:15:15Z ERROR rocket::error] Rocket failed to bind network socket to given address/port.
[2024-01-26T10:15:15Z INFO  rocket::error::_] Address already in use (os error 98)
thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rocket-0.5.0/src/error.rs:279:9:
aborting due to socket bind error
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
eylenburg commented 10 months ago

I have deleted the app and launched it again. So far no error message. Doesn't seem to be a Mollysocket bug per se. I'll keep an eye on the notifications, but hopefully this will be solved now.

eylenburg commented 10 months ago

Sorry, but it is still not working. I think I'm going back to Websockets...

eylenburg commented 10 months ago

This is the error I get now with a brand new installation of mollysocket-fly:

root@080ee7ef646748:/app# MOLLY_PORT=8021 mollysocket -v server
[2024-01-26T19:13:41Z INFO  mollysocket::config] No config file supplied
[2024-01-26T19:13:41Z INFO  rocket::launch] 🔧 Configured for release.
[2024-01-26T19:13:41Z INFO  rocket::launch::_] address: 127.0.0.1
[2024-01-26T19:13:41Z INFO  rocket::launch::_] port: 8021
[2024-01-26T19:13:41Z INFO  rocket::launch::_] workers: 1
[2024-01-26T19:13:41Z INFO  rocket::launch::_] max blocking threads: 512
[2024-01-26T19:13:41Z INFO  rocket::launch::_] ident: Rocket
[2024-01-26T19:13:41Z INFO  rocket::launch::_] IP header: X-Real-IP
[2024-01-26T19:13:41Z INFO  rocket::launch::_] limits: bytes = 8KiB, data-form = 2MiB, file = 1MiB, form = 32KiB, json = 1MiB, msgpack = 1MiB, string = 8KiB
[2024-01-26T19:13:41Z INFO  rocket::launch::_] temp dir: /tmp
[2024-01-26T19:13:41Z INFO  rocket::launch::_] http/2: true
[2024-01-26T19:13:41Z INFO  rocket::launch::_] keep-alive: 5s
[2024-01-26T19:13:41Z INFO  rocket::launch::_] tls: disabled
[2024-01-26T19:13:41Z INFO  rocket::launch::_] shutdown: ctrlc = true, force = true, signals = [SIGTERM], grace = 2s, mercy = 3s
[2024-01-26T19:13:41Z INFO  rocket::launch::_] log level: critical
[2024-01-26T19:13:41Z INFO  rocket::launch::_] cli colors: true
[2024-01-26T19:13:41Z INFO  rocket::launch] 📬 Routes:
[2024-01-26T19:13:41Z INFO  rocket::launch::_] (discover) GET /
[2024-01-26T19:13:41Z INFO  rocket::launch::_] (register) POST / application/json
[2024-01-26T19:13:41Z INFO  rocket::launch::_] GET /metrics/
[2024-01-26T19:13:41Z INFO  rocket::launch] 📡 Fairings:
[2024-01-26T19:13:41Z INFO  rocket::launch::_] Shield (liftoff, response, singleton)
[2024-01-26T19:13:41Z INFO  rocket::launch::_] Prometheus metric collection (request, response)
[2024-01-26T19:13:41Z ERROR rocket::error] Rocket failed to bind network socket to given address/port.
[2024-01-26T19:13:41Z INFO  rocket::error::_] Address already in use (os error 98)
thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rocket-0.5.0/src/error.rs:279:9:
aborting due to socket bind error
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
p1gp1g commented 10 months ago

This can't work if you run multiple instances of mollysocket.

p1gp1g commented 10 months ago

If you need help setting up or running mollysocket, check out the README, tutorials, or hit up the community :)