Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sporadic Duplicate entries #680

Open
6 tasks
nottledim opened this issue Aug 24, 2024 · 1 comment
Open
6 tasks

Sporadic Duplicate entries #680

nottledim opened this issue Aug 24, 2024 · 1 comment
Labels
a:bug Something isn't working

Comments

@nottledim
Copy link

nottledim commented Aug 24, 2024

Can the issue be reproduced with the latest available release? (y/n)

I don't know - I can't find a way to reproduce this but it does occur sporadically. I'm using v2.5.0

Which one is the environment gotify server is running in?

  • [x ] Docker
  • [x ] Linux machine
  • Windows machine
Docker startup command or config file here (please mask sensitive information)
  gotify:
    image: gotify/server
    restart: unless-stopped
    ports:
      - 7339:80
    environment:
      - TZ=Europe/London
    env_file: "gotify.env"
    volumes:
      - "/var/lib/gotify:/app/data"

Do you have an reverse proxy installed in front of gotify server? (Please select None if the problem can be reproduced without the presense of a reverse proxy)

  • None
  • [x ] Nginx
  • Apache
  • Caddy
Reverse proxy configuration (please mask sensitive information)
  server {
       listen 443;
       server_name me.com;
       root /var/www/local;

       ssl_certificate        /etc/ssl/acme/xxx
       ssl_certificate_key    /etc/ssl/acme/xxx

       location / {
          proxy_set_header Host $host;
          proxy_set_header X-Forwarded-Host $http_host;
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header Proxy "";
          proxy_pass http://local:1234;
          proxy_http_version 1.1;
          proxy_set_header Upgrade $http_upgrade;
          proxy_set_header Connection $connection_upgrade;
       }
}

On which client do you experience problems? (Select as many as you can see)

  • [x ] WebUI
  • gotify-cli
  • [ x] Android Client
  • 3rd-party API call (Please include your code)

What did you do?
Used it! I send task completion messages from Proxmox Backup Server to an app. I also send messages from a monitoring script using curl to a different app once per day.

What did you expect to see?
I expect to see a single notification in the client list for each message

What did you see instead? (Include screenshots, android logcat/request dumps if possible)
Mostly the first time the app was used there were two identical notifications where there should be one.
Occasionally at other times duplicate notifications.

Deleting one of the excess notifications removes both but you have to refresh to experience that, otherwise it looks normal i.e. it looks like it's deleted one but actually the notification is gone. It's as if there is one notification in the database but that is displayed twice. When there's a duplicate notification it appears in the web page and in android. When it's deleted it is removed from both.

Annoyingly I can't find a way to reproduce this which makes it very difficult. I report this in case others have seen this error too but blamed finger trouble and dismissed it.

I've only been using Gotify for a couple of weeks and I've seen this error about 4 times.

@nottledim nottledim added the a:bug Something isn't working label Aug 24, 2024
@jmattheis
Copy link
Member

jmattheis commented Aug 25, 2024

Related for android: gotify/android#242

For the webapp duplication:

  • Do you keep the tab open at all times?
  • Do you use the recover tabs feature so that the gotify tab is automatically restored when starting the browesr?
  • Do you pin the gotify web app tab?
  • Does the No network connection or server unavailable. error banner appear for you?
  • What browser / os are you using?
  • When does the duplication normally appear. Just after starting the gotify web ui or at a later time?

The code of the webui is fairly stable and there weren't many chances to the websocket connection. I'd expect this issue to be either because of your environment where you use the client or some weird edge-case that is really rare. As you are the first one to report duplicates in the webui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug Something isn't working
Development

No branches or pull requests

2 participants