matrix-org / sygnal

Sygnal: reference Push Gateway for Matrix
Apache License 2.0
167 stars 148 forks source link

Push notification issue #311

Closed pavan-makadia closed 2 years ago

pavan-makadia commented 2 years ago

I've configured Sygnal and Synapse with the help of ansible playbook.

I'm not receiving notifications in Android and iOS Devices.

Here's configurations and logs I've got.

sygnal.yaml

apps:
  chat.co:
    api_key: <api-key>
    key_id: <key-id>
    keyfile: /data/AuthKey.p8
    team_id: <team-id>
    topic: chat.co
    type: gcm
  me.co:
    api_key: <api-key>
    type: gcm
http:
  bind_addresses:
  - '::'
  port: 6000
log:
  access:
    x_forwarded_for: true
  setup:
    disable_existing_loggers: false
    formatters:
      normal:
        format: '%(asctime)s [%(process)d] %(levelname)-5s %(name)s %(message)s'
    handlers:
      stderr:
        class: logging.StreamHandler
        formatter: normal
        stream: ext://sys.stderr
      stdout:
        class: logging.StreamHandler
        formatter: normal
        stream: ext://sys.stdout
    loggers:
      sygnal:
        handlers:
        - stderr
        propagate: false
      sygnal.access:
        handlers:
        - stdout
        level: INFO
        propagate: false
    root:
      handlers:
      - stderr
      level: INFO
    version: 1
metrics:
  opentracing:
    enabled: false
    implementation: jaeger
    jaeger:
      logging: true
      sampler:
        param: 1
        type: const
    service_name: sygnal
  prometheus:
    address: 0.0.0.0
    enabled: false
    port: 8000
  sentry:
    enabled: false

Docker logs:

Using configuration file: /config/sygnal.yaml
2022-06-29 14:31:29,611 [1] INFO  __main__ Importing pushkin module: sygnal.gcmpushkin
2022-06-29 14:31:29,625 [1] INFO  __main__ Creating pushkin: GcmPushkin
2022-06-29 14:31:29,625 [1] WARNING sygnal.gcmpushkin The following configuration fields are not understood: {'topic', 'keyfile', 'key_id', 'team_id'}
2022-06-29 14:31:29,632 [1] INFO  __main__ Importing pushkin module: sygnal.gcmpushkin
2022-06-29 14:31:29,632 [1] INFO  __main__ Creating pushkin: GcmPushkin
2022-06-29 14:31:29,638 [1] INFO  __main__ Configured with app IDs: dict_keys(['chat.co', 'me.co'])
2022-06-29 14:31:29,638 [1] INFO  __main__ Starting listening on :: port 6000
2022-06-29 14:31:29,643 [1] INFO  twisted SygnalLoggedSite starting on 6000
2022-06-29 14:31:29,644 [1] INFO  twisted Starting factory <sygnal.http.SygnalLoggedSite object at 0x7fd1c72a8810>
2022-06-29 17:34:31,794 [1] INFO  sygnal.gcmpushkin [d1165063-2c94-673a-9e21-f62e0907bf50] Sending (attempt 0) => ['<hash-string>']
2022-06-29 17:34:31,797 [1] INFO  sygnal.gcmpushkin [de9fd1e9-7b44-2ca1-qf12-2d2a2e734390] Sending (attempt 0) => ['<hash-string>']
2022-06-29 17:34:31,802 [1] INFO  twisted Starting factory _HTTP11ClientFactory(<function HTTPConnectionPool._newConnection.<locals>.quiescentCallback at 0x7fd1c7206830>, <twisted.internet.endpoints._WrapperEndpoint object at 0x7fd1c7202d10>)
2022-06-29 17:34:31,803 [1] INFO  twisted Starting factory _HTTP11ClientFactory(<function HTTPConnectionPool._newConnection.<locals>.quiescentCallback at 0x7fd1c7145710>, <twisted.internet.endpoints._WrapperEndpoint object at 0x7fd1c716fd50>)
2022-06-29 17:34:31,861 [1] WARNING sygnal.gcmpushkin [de9fd1e9-7b44-2ca1-qf12-2d2a2e354390] Error for pushkey <hash-string>: NotRegistered
2022-06-29 17:34:31,862 [1] INFO  sygnal.gcmpushkin [de9fd1e9-7b44-2ca1-qf12-2d2a2e354390] Reg ID '<hash-string>' has permanently failed with code 'NotRegistered': rejecting upstream
2022-06-29 17:34:31,862 [1] INFO  sygnal.http [de9fd1e9-7b44-2ca1-qf12-2d2a2e734390] Successfully delivered notifications with 1 rejected pushkeys

I'm not sure what is wrong here. Your responses and help would be very appreciated.

Thanks.

richvdh commented 2 years ago

I'm afraid we're not able to provide support on this issue tracker. You might find someone who can help in #sygnal:matrix.org.