Back

Realtime connection and function execution problems after migrating Appwrite from 1.4.14 to 1.5.4

  • 0
  • Self Hosted
  • Functions
  • Web
  • Realtime
Masterduck
17 Apr, 2024, 14:31

Hi, I've been having issues with realtime connections and function executions since I migrated my selfhosted Appwrite 1.4.14 to 1.5.4.

Realtime connections problem: When trying to use realtime connections I get error "Realtime got disconnected. Reconnect will be attempted in 1 seconds.". This keeps retrying and failing. (see screenshot) This is also happening in my appwrite console, so it doesn't look like it has anything to do with my specific frontend. (Which is a Svelte 4 SPA using the Appwrite Web SDK v14.0.0)

Function execution problem: When trying to execute a function I get error "AppwriteException: Network request failed". See the screenshots with the console error and the payload of the failed request. Looking at the payload makes me think this is also related to the realtime issue.

Possible cause/fix: I've figured out that the traefik image version in docker-compose.yml has been updated from traefik:2.9 to traefik:2.11 since migrating. Setting this back to 2.9 seems to FIX BOTH the issues... I haven't gotten any other errors since doing this, although I don't know if other things like the new Messaging functionality rely specifically on the 2.11 version.

TL;DR
Realtime connection and function execution problems arose after migrating Appwrite from 1.4.14 to 1.5.4. Realtime connections issue resulted in continuous disconnection attempts. Function execution problem gave "AppwriteException: Network request failed". Fix: Reverting traefik image version in docker-compose.yml from 2.11 to 2.9 resolved both issues.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more