[GH-ISSUE #556] android, no google, no notifications without manual refresh. #422

Closed
opened 2026-05-07 00:24:01 +02:00 by BreizhHardware · 4 comments

Originally created by @japtain-cack on GitHub (Dec 24, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/556

I'm no longer receiving background notifications when the phone is asleep. I have to open the app and manually refresh. I'm using element, with ntfy set as the notification backend, and I have grafana alerts going to ntfy. Grafana goes to a cloud function which parses the alert, then forwards that to the ntfy server (no issues recorded in the cloud function logs).

Web UI and desktop notifications are working 100%. Only the android app is having issues, but only during sleep mode. I have ensured all required permissions and notifications are enabled, battery optimization is unrestricted. I should also mention, I'm using ntfy behind HAProxy using json http, not websockets. I haven't taken the time to set up HAProxy for websockets yet, but plan to, especially if it might help with this issue.

This is all running on prem in a HA k3s cluster with openfaas for cloud functions, vault + external-secrets operator for secrets, longhorn for storage, and traefik for ingress.

Thank you for the amazing app, and making self hosted push notifications possible. You're doing the Lords work 🤣.

Cloud function repo

https://gitlab.com/japtain_cack/function_grafantfy

ntfy kustomize

### ./ntfy-svc.yaml ###
apiVersion: v1
kind: Service
metadata:
  name: ntfy-svc
spec:
  type: ClusterIP
  selector:
    app: ntfy-pod
  ports:
    - name: http-ntfy-out
      protocol: TCP
      port: 6080
      targetPort:  http-ntfy


### ./ntfy-ingress.yaml ###
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ntfy-ingress
  annotations:
    kubernetes.io/ingress.class: traefik
spec:
  rules:
    - host: ntfy.mimir-tech.org
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name:  ntfy-svc
                port:
                  name: http-ntfy-out


### ./kustomization.yaml ###
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
  - ntfy-namespace.yaml
  - ntfy-deployment.yaml # deployment definition
  - ntfy-svc.yaml # service connecting pods to cluster network
  - ntfy-pvc.yaml # pvc used to store cache and attachment
  - ntfy-ingress.yaml # ingress definition
configMapGenerator: # will parse config from raw config to configmap,it allows for dynamic reload of application if additional app is deployed ie https://github.com/stakater/Reloader
    - name: server-config
      files:
        - server.yml
namespace: ntfy


### ./ntfy-deployment.yaml ###
apiVersion: apps/v1
kind: Deployment
metadata:
  name: ntfy-deployment
  labels:
    app: ntfy-deployment
spec:
  revisionHistoryLimit: 1
  replicas: 1
  selector:
    matchLabels:
      app: ntfy-pod
  template:
    metadata:
      labels:
        app: ntfy-pod
    spec:
      containers:
        - name: ntfy
          image: binwiederhier/ntfy:v1.28.0
          args:
            - "serve"
            #- '--log_level'
            #- "TRACE"
          env:
            - name: TZ
              value: America/Boise
            - name: NTFY_DEBUG
              value: "false"
            - name: NTFY_LOG_LEVEL
              value: DEBUG
            - name: NTFY_BASE_URL
              value: https://ntfy.mimir-tech.org
          ports:
            - containerPort: 80
              name: http-ntfy
          resources:
            limits:
              memory: 300Mi
              cpu:  200m
            requests:
              cpu: 150m
              memory: 150Mi
          volumeMounts:
            - mountPath: /etc/ntfy/server.yml
              subPath: server.yml
              name: config-volume
            - mountPath: /var/cache/ntfy
              name: cache-volume
      volumes:
        - name: config-volume
          configMap:
            name: server-config
        - name: cache-volume
          persistentVolumeClaim:
            claimName: ntfy-pvc


### ./ntfy-namespace.yaml ###
apiVersion: v1
kind: Namespace
metadata:
  name: ntfy


### ./ntfy-pvc.yaml ###
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: ntfy-pvc
spec:
  accessModes:
    - ReadWriteOnce
  storageClassName: longhorn-iscsi-backedup # adjust storage if needed
  resources:
    requests:
      storage: 1Gi


### ./server.yml ###
cache-file: "/var/cache/ntfy/cache.db"
cache-duration: 12h

attachment-cache-dir: "/var/cache/ntfy/attachments"
attachment-total-size-limit: 5G
attachment-file-size-limit: 15M
attachment-expiry-duration: 3h

auth-file: "/var/cache/ntfy/user.db"
auth-default-access: deny-all

behind-proxy: true

global-topic-limit: 15000

visitor-subscription-limit: 30
visitor-request-limit-burst: 60
visitor-request-limit-replenish: 5s
visitor-request-limit-exempt-hosts: ''
visitor-attachment-total-size-limit: 100M
visitor-attachment-daily-bandwidth-limit: 500M
keepalive-interval: 30s

auth-default-access: deny-all

ntfy android app logs

ntfy.log

ntfy server logs

2022/12/24 17:43:10 INFO Listening on :80[http], ntfy 1.28.0, log level is DEBUG
2022/12/24 17:44:10 DEBUG Manager: Starting
2022/12/24 17:44:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 17:44:10 DEBUG Manager: No expired attachments to delete
2022/12/24 17:44:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:44:10
2022/12/24 17:44:10 INFO Stats: 0 messages published, 147 in cache, 1 topic(s) active, 0 subscriber(s), 0 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 17:44:10 DEBUG Manager: Finished
2022/12/24 17:45:10 DEBUG Manager: Starting
2022/12/24 17:45:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 17:45:10 DEBUG Manager: No expired attachments to delete
2022/12/24 17:45:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:45:10
2022/12/24 17:45:10 INFO Stats: 0 messages published, 147 in cache, 1 topic(s) active, 0 subscriber(s), 0 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 17:45:10 DEBUG Manager: Finished
2022/12/24 17:46:10 DEBUG Manager: Starting
2022/12/24 17:46:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 17:46:10 DEBUG Manager: No expired attachments to delete
2022/12/24 17:46:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:46:10
2022/12/24 17:46:10 INFO Stats: 0 messages published, 147 in cache, 1 topic(s) active, 0 subscriber(s), 0 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 17:46:10 DEBUG Manager: Finished
2022/12/24 17:46:51 DEBUG 10.42.2.0 HTTP POST / Dispatching request
2022/12/24 17:46:51 DEBUG 10.42.2.0/grafana/BFxCnRLPV5oR Received message: event=message, body=437 byte(s), delayed=false, firebase=true, cache=true, up=false, email=
2022/12/24 17:47:10 DEBUG Manager: Starting
2022/12/24 17:47:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 17:47:10 DEBUG Manager: No expired attachments to delete
2022/12/24 17:47:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:47:10
2022/12/24 17:47:10 INFO Stats: 1 messages published, 148 in cache, 1 topic(s) active, 0 subscriber(s), 1 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 17:47:10 DEBUG Manager: Finished
2022/12/24 17:48:10 DEBUG Manager: Starting
2022/12/24 17:48:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 17:48:10 DEBUG Manager: No expired attachments to delete
2022/12/24 17:48:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:48:10
2022/12/24 17:48:10 INFO Stats: 1 messages published, 148 in cache, 1 topic(s) active, 0 subscriber(s), 1 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 17:48:10 DEBUG Manager: Finished
2022/12/24 17:49:10 DEBUG Manager: Starting
2022/12/24 17:49:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 17:49:10 DEBUG Manager: No expired attachments to delete
2022/12/24 17:49:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:49:10
2022/12/24 17:49:10 INFO Stats: 1 messages published, 148 in cache, 1 topic(s) active, 0 subscriber(s), 1 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 17:49:10 DEBUG Manager: Finished
2022/12/24 17:50:10 DEBUG Manager: Starting
2022/12/24 17:50:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 17:50:10 DEBUG Manager: No expired attachments to delete
2022/12/24 17:50:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:50:10
2022/12/24 17:50:10 INFO Stats: 1 messages published, 148 in cache, 1 topic(s) active, 0 subscriber(s), 1 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 17:50:10 DEBUG Manager: Finished
2022/12/24 17:50:30 DEBUG 10.42.6.0 HTTP GET /grafana/json?since=none Dispatching request
2022/12/24 17:50:30 DEBUG 10.42.6.0 HTTP GET /grafana/json?since=none HTTP stream connection opened
2022/12/24 17:50:48 DEBUG 10.42.6.0 HTTP GET /grafana/json?since=none Dispatching request
2022/12/24 17:50:48 DEBUG 10.42.6.0 HTTP GET /grafana/json?since=none HTTP stream connection opened
2022/12/24 17:51:00 DEBUG 10.42.6.0 HTTP GET /grafana/json?since=none HTTP stream connection closed
2022/12/24 17:51:10 DEBUG Manager: Starting
2022/12/24 17:51:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 17:51:10 DEBUG Manager: No expired attachments to delete
2022/12/24 17:51:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:51:10
2022/12/24 17:51:10 INFO Stats: 1 messages published, 148 in cache, 1 topic(s) active, 1 subscriber(s), 2 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 17:51:10 DEBUG Manager: Finished
2022/12/24 17:51:18 DEBUG 10.42.6.0 HTTP GET /grafana/json?since=none HTTP stream connection closed
2022/12/24 17:51:51 DEBUG 10.42.2.0 HTTP POST / Dispatching request
2022/12/24 17:51:51 DEBUG 10.42.2.0/grafana/Oko8iPSF3SQo Received message: event=message, body=437 byte(s), delayed=false, firebase=true, cache=true, up=false, email=
2022/12/24 17:52:10 DEBUG Manager: Starting
2022/12/24 17:52:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 17:52:10 DEBUG Manager: No expired attachments to delete
2022/12/24 17:52:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:52:10
2022/12/24 17:52:10 INFO Stats: 2 messages published, 149 in cache, 1 topic(s) active, 0 subscriber(s), 2 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 17:52:10 DEBUG Manager: Finished
2022/12/24 17:53:10 DEBUG Manager: Starting
2022/12/24 17:53:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 17:53:10 DEBUG Manager: No expired attachments to delete
2022/12/24 17:53:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:53:10
2022/12/24 17:53:10 INFO Stats: 2 messages published, 149 in cache, 1 topic(s) active, 0 subscriber(s), 2 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 17:53:10 DEBUG Manager: Finished
2022/12/24 17:54:10 DEBUG Manager: Starting
2022/12/24 17:54:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 17:54:10 DEBUG Manager: No expired attachments to delete
2022/12/24 17:54:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:54:10
2022/12/24 17:54:10 INFO Stats: 2 messages published, 149 in cache, 1 topic(s) active, 0 subscriber(s), 2 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 17:54:10 DEBUG Manager: Finished
2022/12/24 17:55:10 DEBUG Manager: Starting
2022/12/24 17:55:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 17:55:10 DEBUG Manager: No expired attachments to delete
2022/12/24 17:55:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:55:10
2022/12/24 17:55:10 INFO Stats: 2 messages published, 149 in cache, 1 topic(s) active, 0 subscriber(s), 2 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 17:55:10 DEBUG Manager: Finished
2022/12/24 17:56:10 DEBUG Manager: Starting
2022/12/24 17:56:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 17:56:10 DEBUG Manager: No expired attachments to delete
2022/12/24 17:56:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:56:10
2022/12/24 17:56:10 INFO Stats: 2 messages published, 149 in cache, 1 topic(s) active, 0 subscriber(s), 2 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 17:56:10 DEBUG Manager: Finished
2022/12/24 17:56:11 DEBUG 10.42.6.0 HTTP GET /grafana/json?poll=1&since=Qip8NzV83rjH Dispatching request
2022/12/24 17:56:11 DEBUG 10.42.6.0 HTTP GET /grafana/json?poll=1&since=Qip8NzV83rjH HTTP stream connection opened
2022/12/24 17:56:11 DEBUG 10.42.6.0 HTTP GET /grafana/json?poll=1&since=Qip8NzV83rjH HTTP stream connection closed
2022/12/24 17:56:51 DEBUG 10.42.2.0 HTTP POST / Dispatching request
2022/12/24 17:56:51 DEBUG 10.42.2.0/grafana/h0ZqN5vqzRJ8 Received message: event=message, body=437 byte(s), delayed=false, firebase=true, cache=true, up=false, email=
2022/12/24 17:57:10 DEBUG Manager: Starting
2022/12/24 17:57:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 17:57:10 DEBUG Manager: No expired attachments to delete
2022/12/24 17:57:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:57:10
2022/12/24 17:57:10 INFO Stats: 3 messages published, 150 in cache, 1 topic(s) active, 0 subscriber(s), 2 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 17:57:10 DEBUG Manager: Finished
2022/12/24 17:57:31 DEBUG 10.42.7.0 HTTP GET /grafana Dispatching request
2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/js/main.04a41eb3.js Dispatching request
2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/img/favicon.png Dispatching request
2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /config.js Dispatching request
2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/css/fonts.css Dispatching request
2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/langs/en.json Dispatching request
2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/langs/en-US.json Dispatching request
2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/img/favicon.png Dispatching request
2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/media/ntfy.813163689f875c027536f701421d9b3d.svg Dispatching request
2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/fonts/roboto-v29-latin-regular.woff2 Dispatching request
2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/fonts/roboto-v29-latin-500.woff2 Dispatching request
2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=W28IDTpzKqgG&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ Dispatching request
2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/media/priority-1.3aadff1fb92cfa76f86f7d35b47085f0.svg Dispatching request
2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=W28IDTpzKqgG&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection opened
2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/media/ding.8ff4b56682af95dfe03a.mp3 Dispatching request
2022/12/24 17:57:33 DEBUG 10.42.7.0 HTTP GET /static/media/priority-5.4893ebefb25ead9b6ac4db783a1c97e1.svg Dispatching request
2022/12/24 17:57:40 DEBUG 10.42.7.0 HTTP GET /grafana/json?poll=1&since=h0ZqN5vqzRJ8 Dispatching request
2022/12/24 17:57:40 DEBUG 10.42.7.0 HTTP GET /grafana/json?poll=1&since=h0ZqN5vqzRJ8 HTTP stream connection opened
2022/12/24 17:57:40 DEBUG 10.42.7.0 HTTP GET /grafana/json?poll=1&since=h0ZqN5vqzRJ8 HTTP stream connection closed
2022/12/24 17:58:10 DEBUG Manager: Starting
2022/12/24 17:58:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 17:58:10 DEBUG Manager: No expired attachments to delete
2022/12/24 17:58:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:58:10
2022/12/24 17:58:10 INFO Stats: 3 messages published, 150 in cache, 1 topic(s) active, 1 subscriber(s), 3 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 17:58:10 DEBUG Manager: Finished
2022/12/24 17:58:32 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=W28IDTpzKqgG&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection closed
2022/12/24 17:58:37 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ Dispatching request
2022/12/24 17:58:38 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection opened
2022/12/24 17:59:08 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection closed
2022/12/24 17:59:08 INFO 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket error: read tcp 10.42.3.185:80->10.42.1.131:59622: read: connection reset by peer
2022/12/24 17:59:10 DEBUG Manager: Starting
2022/12/24 17:59:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 17:59:10 DEBUG Manager: No expired attachments to delete
2022/12/24 17:59:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:59:10
2022/12/24 17:59:10 INFO Stats: 3 messages published, 150 in cache, 1 topic(s) active, 0 subscriber(s), 3 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 17:59:10 DEBUG Manager: Finished
2022/12/24 17:59:13 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ Dispatching request
2022/12/24 17:59:14 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection opened
2022/12/24 17:59:44 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection closed
2022/12/24 17:59:49 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ Dispatching request
2022/12/24 17:59:50 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection opened
2022/12/24 18:00:10 DEBUG Manager: Starting
2022/12/24 18:00:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 18:00:10 DEBUG Manager: No expired attachments to delete
2022/12/24 18:00:10 DEBUG Manager: Pruning messages older than 2022-12-24 06:00:10
2022/12/24 18:00:10 INFO Stats: 3 messages published, 150 in cache, 1 topic(s) active, 1 subscriber(s), 3 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 18:00:10 DEBUG Manager: Finished
2022/12/24 18:00:20 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection closed
2022/12/24 18:00:25 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ Dispatching request
2022/12/24 18:00:26 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection opened
2022/12/24 18:00:56 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection closed
2022/12/24 18:01:01 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ Dispatching request
2022/12/24 18:01:02 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection opened
2022/12/24 18:01:10 DEBUG Manager: Starting
2022/12/24 18:01:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 18:01:10 DEBUG Manager: No expired attachments to delete
2022/12/24 18:01:10 DEBUG Manager: Pruning messages older than 2022-12-24 06:01:10
2022/12/24 18:01:10 INFO Stats: 3 messages published, 150 in cache, 1 topic(s) active, 1 subscriber(s), 3 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 18:01:10 DEBUG Manager: Finished
2022/12/24 18:01:32 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection closed
2022/12/24 18:01:37 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ Dispatching request
2022/12/24 18:01:38 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection opened
2022/12/24 18:01:51 DEBUG 10.42.2.0 HTTP POST / Dispatching request
2022/12/24 18:01:51 DEBUG 10.42.2.0/grafana/A45vCuuAHKTx Received message: event=message, body=437 byte(s), delayed=false, firebase=true, cache=true, up=false, email=
2022/12/24 18:01:51 DEBUG 10.42.2.0/grafana/A45vCuuAHKTx Forwarding to 1 subscriber(s)
2022/12/24 18:01:51 DEBUG 10.42.7.0 HTTP GET /static/media/ding.8ff4b56682af95dfe03a.mp3 Dispatching request
2022/12/24 18:02:10 DEBUG Manager: Starting
2022/12/24 18:02:10 DEBUG Manager: Deleted 0 stale visitor(s)
2022/12/24 18:02:10 DEBUG Manager: No expired attachments to delete
2022/12/24 18:02:10 DEBUG Manager: Pruning messages older than 2022-12-24 06:02:10
2022/12/24 18:02:10 INFO Stats: 4 messages published, 151 in cache, 1 topic(s) active, 1 subscriber(s), 3 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed)
2022/12/24 18:02:10 DEBUG Manager: Finished
2022/12/24 18:02:32 DEBUG 10.42.7.0 HTTP GET /grafana/json?poll=1&since=A45vCuuAHKTx Dispatching request
2022/12/24 18:02:33 DEBUG 10.42.7.0 HTTP GET /grafana/json?poll=1&since=A45vCuuAHKTx HTTP stream connection opened
2022/12/24 18:02:33 DEBUG 10.42.7.0 HTTP GET /grafana/json?poll=1&since=A45vCuuAHKTx HTTP stream connection closed
Originally created by @japtain-cack on GitHub (Dec 24, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/556 I'm no longer receiving background notifications when the phone is asleep. I have to open the app and manually refresh. I'm using element, with ntfy set as the notification backend, and I have grafana alerts going to ntfy. Grafana goes to a cloud function which parses the alert, then forwards that to the ntfy server (no issues recorded in the cloud function logs). Web UI and desktop notifications are working 100%. Only the android app is having issues, but only during sleep mode. I have ensured all required permissions and notifications are enabled, battery optimization is unrestricted. I should also mention, I'm using ntfy behind HAProxy using json http, not websockets. I haven't taken the time to set up HAProxy for websockets yet, but plan to, especially if it might help with this issue. This is all running on prem in a HA k3s cluster with openfaas for cloud functions, vault + external-secrets operator for secrets, longhorn for storage, and traefik for ingress. Thank you for the amazing app, and making self hosted push notifications possible. You're doing the Lords work 🤣. # Cloud function repo https://gitlab.com/japtain_cack/function_grafantfy # ntfy kustomize ``` ### ./ntfy-svc.yaml ### apiVersion: v1 kind: Service metadata: name: ntfy-svc spec: type: ClusterIP selector: app: ntfy-pod ports: - name: http-ntfy-out protocol: TCP port: 6080 targetPort: http-ntfy ### ./ntfy-ingress.yaml ### apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: ntfy-ingress annotations: kubernetes.io/ingress.class: traefik spec: rules: - host: ntfy.mimir-tech.org http: paths: - path: / pathType: Prefix backend: service: name: ntfy-svc port: name: http-ntfy-out ### ./kustomization.yaml ### apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ntfy-namespace.yaml - ntfy-deployment.yaml # deployment definition - ntfy-svc.yaml # service connecting pods to cluster network - ntfy-pvc.yaml # pvc used to store cache and attachment - ntfy-ingress.yaml # ingress definition configMapGenerator: # will parse config from raw config to configmap,it allows for dynamic reload of application if additional app is deployed ie https://github.com/stakater/Reloader - name: server-config files: - server.yml namespace: ntfy ### ./ntfy-deployment.yaml ### apiVersion: apps/v1 kind: Deployment metadata: name: ntfy-deployment labels: app: ntfy-deployment spec: revisionHistoryLimit: 1 replicas: 1 selector: matchLabels: app: ntfy-pod template: metadata: labels: app: ntfy-pod spec: containers: - name: ntfy image: binwiederhier/ntfy:v1.28.0 args: - "serve" #- '--log_level' #- "TRACE" env: - name: TZ value: America/Boise - name: NTFY_DEBUG value: "false" - name: NTFY_LOG_LEVEL value: DEBUG - name: NTFY_BASE_URL value: https://ntfy.mimir-tech.org ports: - containerPort: 80 name: http-ntfy resources: limits: memory: 300Mi cpu: 200m requests: cpu: 150m memory: 150Mi volumeMounts: - mountPath: /etc/ntfy/server.yml subPath: server.yml name: config-volume - mountPath: /var/cache/ntfy name: cache-volume volumes: - name: config-volume configMap: name: server-config - name: cache-volume persistentVolumeClaim: claimName: ntfy-pvc ### ./ntfy-namespace.yaml ### apiVersion: v1 kind: Namespace metadata: name: ntfy ### ./ntfy-pvc.yaml ### apiVersion: v1 kind: PersistentVolumeClaim metadata: name: ntfy-pvc spec: accessModes: - ReadWriteOnce storageClassName: longhorn-iscsi-backedup # adjust storage if needed resources: requests: storage: 1Gi ### ./server.yml ### cache-file: "/var/cache/ntfy/cache.db" cache-duration: 12h attachment-cache-dir: "/var/cache/ntfy/attachments" attachment-total-size-limit: 5G attachment-file-size-limit: 15M attachment-expiry-duration: 3h auth-file: "/var/cache/ntfy/user.db" auth-default-access: deny-all behind-proxy: true global-topic-limit: 15000 visitor-subscription-limit: 30 visitor-request-limit-burst: 60 visitor-request-limit-replenish: 5s visitor-request-limit-exempt-hosts: '' visitor-attachment-total-size-limit: 100M visitor-attachment-daily-bandwidth-limit: 500M keepalive-interval: 30s auth-default-access: deny-all ``` # ntfy android app logs [ntfy.log](https://github.com/binwiederhier/ntfy/files/10299015/ntfy.log) # ntfy server logs ``` 2022/12/24 17:43:10 INFO Listening on :80[http], ntfy 1.28.0, log level is DEBUG 2022/12/24 17:44:10 DEBUG Manager: Starting 2022/12/24 17:44:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 17:44:10 DEBUG Manager: No expired attachments to delete 2022/12/24 17:44:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:44:10 2022/12/24 17:44:10 INFO Stats: 0 messages published, 147 in cache, 1 topic(s) active, 0 subscriber(s), 0 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 17:44:10 DEBUG Manager: Finished 2022/12/24 17:45:10 DEBUG Manager: Starting 2022/12/24 17:45:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 17:45:10 DEBUG Manager: No expired attachments to delete 2022/12/24 17:45:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:45:10 2022/12/24 17:45:10 INFO Stats: 0 messages published, 147 in cache, 1 topic(s) active, 0 subscriber(s), 0 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 17:45:10 DEBUG Manager: Finished 2022/12/24 17:46:10 DEBUG Manager: Starting 2022/12/24 17:46:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 17:46:10 DEBUG Manager: No expired attachments to delete 2022/12/24 17:46:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:46:10 2022/12/24 17:46:10 INFO Stats: 0 messages published, 147 in cache, 1 topic(s) active, 0 subscriber(s), 0 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 17:46:10 DEBUG Manager: Finished 2022/12/24 17:46:51 DEBUG 10.42.2.0 HTTP POST / Dispatching request 2022/12/24 17:46:51 DEBUG 10.42.2.0/grafana/BFxCnRLPV5oR Received message: event=message, body=437 byte(s), delayed=false, firebase=true, cache=true, up=false, email= 2022/12/24 17:47:10 DEBUG Manager: Starting 2022/12/24 17:47:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 17:47:10 DEBUG Manager: No expired attachments to delete 2022/12/24 17:47:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:47:10 2022/12/24 17:47:10 INFO Stats: 1 messages published, 148 in cache, 1 topic(s) active, 0 subscriber(s), 1 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 17:47:10 DEBUG Manager: Finished 2022/12/24 17:48:10 DEBUG Manager: Starting 2022/12/24 17:48:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 17:48:10 DEBUG Manager: No expired attachments to delete 2022/12/24 17:48:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:48:10 2022/12/24 17:48:10 INFO Stats: 1 messages published, 148 in cache, 1 topic(s) active, 0 subscriber(s), 1 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 17:48:10 DEBUG Manager: Finished 2022/12/24 17:49:10 DEBUG Manager: Starting 2022/12/24 17:49:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 17:49:10 DEBUG Manager: No expired attachments to delete 2022/12/24 17:49:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:49:10 2022/12/24 17:49:10 INFO Stats: 1 messages published, 148 in cache, 1 topic(s) active, 0 subscriber(s), 1 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 17:49:10 DEBUG Manager: Finished 2022/12/24 17:50:10 DEBUG Manager: Starting 2022/12/24 17:50:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 17:50:10 DEBUG Manager: No expired attachments to delete 2022/12/24 17:50:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:50:10 2022/12/24 17:50:10 INFO Stats: 1 messages published, 148 in cache, 1 topic(s) active, 0 subscriber(s), 1 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 17:50:10 DEBUG Manager: Finished 2022/12/24 17:50:30 DEBUG 10.42.6.0 HTTP GET /grafana/json?since=none Dispatching request 2022/12/24 17:50:30 DEBUG 10.42.6.0 HTTP GET /grafana/json?since=none HTTP stream connection opened 2022/12/24 17:50:48 DEBUG 10.42.6.0 HTTP GET /grafana/json?since=none Dispatching request 2022/12/24 17:50:48 DEBUG 10.42.6.0 HTTP GET /grafana/json?since=none HTTP stream connection opened 2022/12/24 17:51:00 DEBUG 10.42.6.0 HTTP GET /grafana/json?since=none HTTP stream connection closed 2022/12/24 17:51:10 DEBUG Manager: Starting 2022/12/24 17:51:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 17:51:10 DEBUG Manager: No expired attachments to delete 2022/12/24 17:51:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:51:10 2022/12/24 17:51:10 INFO Stats: 1 messages published, 148 in cache, 1 topic(s) active, 1 subscriber(s), 2 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 17:51:10 DEBUG Manager: Finished 2022/12/24 17:51:18 DEBUG 10.42.6.0 HTTP GET /grafana/json?since=none HTTP stream connection closed 2022/12/24 17:51:51 DEBUG 10.42.2.0 HTTP POST / Dispatching request 2022/12/24 17:51:51 DEBUG 10.42.2.0/grafana/Oko8iPSF3SQo Received message: event=message, body=437 byte(s), delayed=false, firebase=true, cache=true, up=false, email= 2022/12/24 17:52:10 DEBUG Manager: Starting 2022/12/24 17:52:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 17:52:10 DEBUG Manager: No expired attachments to delete 2022/12/24 17:52:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:52:10 2022/12/24 17:52:10 INFO Stats: 2 messages published, 149 in cache, 1 topic(s) active, 0 subscriber(s), 2 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 17:52:10 DEBUG Manager: Finished 2022/12/24 17:53:10 DEBUG Manager: Starting 2022/12/24 17:53:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 17:53:10 DEBUG Manager: No expired attachments to delete 2022/12/24 17:53:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:53:10 2022/12/24 17:53:10 INFO Stats: 2 messages published, 149 in cache, 1 topic(s) active, 0 subscriber(s), 2 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 17:53:10 DEBUG Manager: Finished 2022/12/24 17:54:10 DEBUG Manager: Starting 2022/12/24 17:54:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 17:54:10 DEBUG Manager: No expired attachments to delete 2022/12/24 17:54:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:54:10 2022/12/24 17:54:10 INFO Stats: 2 messages published, 149 in cache, 1 topic(s) active, 0 subscriber(s), 2 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 17:54:10 DEBUG Manager: Finished 2022/12/24 17:55:10 DEBUG Manager: Starting 2022/12/24 17:55:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 17:55:10 DEBUG Manager: No expired attachments to delete 2022/12/24 17:55:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:55:10 2022/12/24 17:55:10 INFO Stats: 2 messages published, 149 in cache, 1 topic(s) active, 0 subscriber(s), 2 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 17:55:10 DEBUG Manager: Finished 2022/12/24 17:56:10 DEBUG Manager: Starting 2022/12/24 17:56:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 17:56:10 DEBUG Manager: No expired attachments to delete 2022/12/24 17:56:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:56:10 2022/12/24 17:56:10 INFO Stats: 2 messages published, 149 in cache, 1 topic(s) active, 0 subscriber(s), 2 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 17:56:10 DEBUG Manager: Finished 2022/12/24 17:56:11 DEBUG 10.42.6.0 HTTP GET /grafana/json?poll=1&since=Qip8NzV83rjH Dispatching request 2022/12/24 17:56:11 DEBUG 10.42.6.0 HTTP GET /grafana/json?poll=1&since=Qip8NzV83rjH HTTP stream connection opened 2022/12/24 17:56:11 DEBUG 10.42.6.0 HTTP GET /grafana/json?poll=1&since=Qip8NzV83rjH HTTP stream connection closed 2022/12/24 17:56:51 DEBUG 10.42.2.0 HTTP POST / Dispatching request 2022/12/24 17:56:51 DEBUG 10.42.2.0/grafana/h0ZqN5vqzRJ8 Received message: event=message, body=437 byte(s), delayed=false, firebase=true, cache=true, up=false, email= 2022/12/24 17:57:10 DEBUG Manager: Starting 2022/12/24 17:57:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 17:57:10 DEBUG Manager: No expired attachments to delete 2022/12/24 17:57:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:57:10 2022/12/24 17:57:10 INFO Stats: 3 messages published, 150 in cache, 1 topic(s) active, 0 subscriber(s), 2 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 17:57:10 DEBUG Manager: Finished 2022/12/24 17:57:31 DEBUG 10.42.7.0 HTTP GET /grafana Dispatching request 2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/js/main.04a41eb3.js Dispatching request 2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/img/favicon.png Dispatching request 2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /config.js Dispatching request 2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/css/fonts.css Dispatching request 2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/langs/en.json Dispatching request 2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/langs/en-US.json Dispatching request 2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/img/favicon.png Dispatching request 2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/media/ntfy.813163689f875c027536f701421d9b3d.svg Dispatching request 2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/fonts/roboto-v29-latin-regular.woff2 Dispatching request 2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/fonts/roboto-v29-latin-500.woff2 Dispatching request 2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=W28IDTpzKqgG&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ Dispatching request 2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/media/priority-1.3aadff1fb92cfa76f86f7d35b47085f0.svg Dispatching request 2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=W28IDTpzKqgG&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection opened 2022/12/24 17:57:32 DEBUG 10.42.7.0 HTTP GET /static/media/ding.8ff4b56682af95dfe03a.mp3 Dispatching request 2022/12/24 17:57:33 DEBUG 10.42.7.0 HTTP GET /static/media/priority-5.4893ebefb25ead9b6ac4db783a1c97e1.svg Dispatching request 2022/12/24 17:57:40 DEBUG 10.42.7.0 HTTP GET /grafana/json?poll=1&since=h0ZqN5vqzRJ8 Dispatching request 2022/12/24 17:57:40 DEBUG 10.42.7.0 HTTP GET /grafana/json?poll=1&since=h0ZqN5vqzRJ8 HTTP stream connection opened 2022/12/24 17:57:40 DEBUG 10.42.7.0 HTTP GET /grafana/json?poll=1&since=h0ZqN5vqzRJ8 HTTP stream connection closed 2022/12/24 17:58:10 DEBUG Manager: Starting 2022/12/24 17:58:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 17:58:10 DEBUG Manager: No expired attachments to delete 2022/12/24 17:58:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:58:10 2022/12/24 17:58:10 INFO Stats: 3 messages published, 150 in cache, 1 topic(s) active, 1 subscriber(s), 3 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 17:58:10 DEBUG Manager: Finished 2022/12/24 17:58:32 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=W28IDTpzKqgG&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection closed 2022/12/24 17:58:37 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ Dispatching request 2022/12/24 17:58:38 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection opened 2022/12/24 17:59:08 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection closed 2022/12/24 17:59:08 INFO 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket error: read tcp 10.42.3.185:80->10.42.1.131:59622: read: connection reset by peer 2022/12/24 17:59:10 DEBUG Manager: Starting 2022/12/24 17:59:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 17:59:10 DEBUG Manager: No expired attachments to delete 2022/12/24 17:59:10 DEBUG Manager: Pruning messages older than 2022-12-24 05:59:10 2022/12/24 17:59:10 INFO Stats: 3 messages published, 150 in cache, 1 topic(s) active, 0 subscriber(s), 3 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 17:59:10 DEBUG Manager: Finished 2022/12/24 17:59:13 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ Dispatching request 2022/12/24 17:59:14 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection opened 2022/12/24 17:59:44 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection closed 2022/12/24 17:59:49 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ Dispatching request 2022/12/24 17:59:50 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection opened 2022/12/24 18:00:10 DEBUG Manager: Starting 2022/12/24 18:00:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 18:00:10 DEBUG Manager: No expired attachments to delete 2022/12/24 18:00:10 DEBUG Manager: Pruning messages older than 2022-12-24 06:00:10 2022/12/24 18:00:10 INFO Stats: 3 messages published, 150 in cache, 1 topic(s) active, 1 subscriber(s), 3 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 18:00:10 DEBUG Manager: Finished 2022/12/24 18:00:20 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection closed 2022/12/24 18:00:25 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ Dispatching request 2022/12/24 18:00:26 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection opened 2022/12/24 18:00:56 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection closed 2022/12/24 18:01:01 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ Dispatching request 2022/12/24 18:01:02 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection opened 2022/12/24 18:01:10 DEBUG Manager: Starting 2022/12/24 18:01:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 18:01:10 DEBUG Manager: No expired attachments to delete 2022/12/24 18:01:10 DEBUG Manager: Pruning messages older than 2022-12-24 06:01:10 2022/12/24 18:01:10 INFO Stats: 3 messages published, 150 in cache, 1 topic(s) active, 1 subscriber(s), 3 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 18:01:10 DEBUG Manager: Finished 2022/12/24 18:01:32 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection closed 2022/12/24 18:01:37 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ Dispatching request 2022/12/24 18:01:38 DEBUG 10.42.7.0 HTTP GET /grafana/ws?since=h0ZqN5vqzRJ8&auth=QmFzaWMgWjNKaFptRnVkR1o1T2tac2IzTnpMVVJ5YVhwNmJHVXRRV1p2YjNRdFVtVnRaV1JwWVd3dFEyOXVjMjlzWlMxRVpXSmhkR2x1WnkxVVlXY3RSbVZ1WTJVPQ WebSocket connection opened 2022/12/24 18:01:51 DEBUG 10.42.2.0 HTTP POST / Dispatching request 2022/12/24 18:01:51 DEBUG 10.42.2.0/grafana/A45vCuuAHKTx Received message: event=message, body=437 byte(s), delayed=false, firebase=true, cache=true, up=false, email= 2022/12/24 18:01:51 DEBUG 10.42.2.0/grafana/A45vCuuAHKTx Forwarding to 1 subscriber(s) 2022/12/24 18:01:51 DEBUG 10.42.7.0 HTTP GET /static/media/ding.8ff4b56682af95dfe03a.mp3 Dispatching request 2022/12/24 18:02:10 DEBUG Manager: Starting 2022/12/24 18:02:10 DEBUG Manager: Deleted 0 stale visitor(s) 2022/12/24 18:02:10 DEBUG Manager: No expired attachments to delete 2022/12/24 18:02:10 DEBUG Manager: Pruning messages older than 2022-12-24 06:02:10 2022/12/24 18:02:10 INFO Stats: 4 messages published, 151 in cache, 1 topic(s) active, 1 subscriber(s), 3 visitor(s), 0 mails received (0 successful, 0 failed), 0 mails sent (0 successful, 0 failed) 2022/12/24 18:02:10 DEBUG Manager: Finished 2022/12/24 18:02:32 DEBUG 10.42.7.0 HTTP GET /grafana/json?poll=1&since=A45vCuuAHKTx Dispatching request 2022/12/24 18:02:33 DEBUG 10.42.7.0 HTTP GET /grafana/json?poll=1&since=A45vCuuAHKTx HTTP stream connection opened 2022/12/24 18:02:33 DEBUG 10.42.7.0 HTTP GET /grafana/json?poll=1&since=A45vCuuAHKTx HTTP stream connection closed ```
Author
Owner

@binwiederhier commented on GitHub (Mar 3, 2023):

I hope you got that figured out. Sorry I didn't respond earlier. I assume this is working now or you gave up. For troubleshooting, it's best to join the Discord or Matrix room.

Closing this for now.

<!-- gh-comment-id:1452860549 --> @binwiederhier commented on GitHub (Mar 3, 2023): I hope you got that figured out. Sorry I didn't respond earlier. I assume this is working now or you gave up. For troubleshooting, it's best to join the Discord or Matrix room. Closing this for now.
Author
Owner

@japtain-cack commented on GitHub (Mar 5, 2023):

The fix was, wait longer. It seems it can take anywhere from 5 to 30 mins for messages to come in. I've disabled all battery restrictions on ntfy, but that doesn't seem to affect anything. Must be an android thing.

<!-- gh-comment-id:1454964109 --> @japtain-cack commented on GitHub (Mar 5, 2023): The fix was, wait longer. It seems it can take anywhere from 5 to 30 mins for messages to come in. I've disabled all battery restrictions on ntfy, but that doesn't seem to affect anything. Must be an android thing.
Author
Owner

@binwiederhier commented on GitHub (Mar 6, 2023):

On Android it should not take that long if instant delivery is turned on. Weird that you don't see stack traces in the Android logs...

<!-- gh-comment-id:1455311982 --> @binwiederhier commented on GitHub (Mar 6, 2023): On Android it should not take that long if instant delivery is turned on. Weird that you don't see stack traces in the Android logs...
Author
Owner

@japtain-cack commented on GitHub (Mar 13, 2023):

I seem to have forgotten to mention, I'm running LineageOS 19. Not sure if that makes a difference, but I don't have any google services installed, not even microG. I've kind of gotten used to my notifications in general not being instant, even SMS takes the same amount of time to notify if the phone is asleep. So probably OS related since, after some testing, it seems to be more than ntfy that is affected.

<!-- gh-comment-id:1465634904 --> @japtain-cack commented on GitHub (Mar 13, 2023): I seem to have forgotten to mention, I'm running LineageOS 19. Not sure if that makes a difference, but I don't have any google services installed, not even microG. I've kind of gotten used to my notifications in general not being instant, even SMS takes the same amount of time to notify if the phone is asleep. So probably OS related since, after some testing, it seems to be more than ntfy that is affected.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#422
No description provided.