Skip to content
Back

Strange sites behavior on self-hosted

  • 0
  • Self Hosted
  • Sites
Jorge
30 Jul, 2025, 03:19

Hello!

I've been using sites for some weeks now, and everything seemed to be working fine.

I have three sites (static) set, linked with github repositories:

I use nginx in front of appwrite and handle SSL generation myself.

In the past few days, however, I made some pushes to "Site 2" repository - PR to master triggers a build and it passes, and when PR is merged it triggers another build that passes. The deployment is marked as "ready" in the console, and when I activate it the site gets updated, as expected.

However, when activating this new deployment, Site 1 and eventually Site 3 start pointing to this Site 2 deployment - I access anotherdomain.com or mydomain.com and I see Site 2's content.

The solution I found is to remove the custom domains from the other sites and add them again - sometimes I also have to redeploy the other sites for them to work.

Is anyone else having a similar issue? What can I do to troubleshoot it?

The logs for worker-builds is as follows:

TypeScript
appwrite-worker-builds  | Skipped SMS processing. Missing "_APP_SMS_PROVIDER" or "_APP_SMS_FROM" environment variables.
appwrite-worker-builds  | [Worker] Worker 0 is ready!
appwrite-worker-builds  | Worker builds  started
appwrite-worker-builds  | [Job] Received Job (68877183ba0884.20780360).
appwrite-worker-builds  | Creating build for deployment: 68877183340f132b98a4
appwrite-worker-builds  | Build id: 68877183340f132b98a4 created
appwrite-worker-builds  | [Job] (68877183ba0884.20780360) successfully run.
appwrite-worker-builds  | [Job] Received Job (688985cb879097.66723283).
appwrite-worker-builds  | Creating build for deployment: 688985c99912af7f6105
appwrite-worker-builds  | 
appwrite-worker-builds  | Notice: PDOStatement::execute(): Send of 125 bytes failed with errno=104 Connection reset by peer in @swoole/library/core/Database/PDOStatementProxy.php on line 49
appwrite-worker-builds  | 
appwrite-worker-builds  | Notice: PDOStatement::execute(): Send of 128 bytes failed with errno=104 Connection reset by peer in @swoole/library/core/Database/PDOStatementProxy.php on line 49
appwrite-worker-builds  | 
appwrite-worker-builds  | Warning: Undefined array key 1 in /usr/src/code/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php on line 778
appwrite-worker-builds  | 
appwrite-worker-builds  | Warning: Undefined array key 1 in /usr/src/code/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php on line 778
appwrite-worker-builds  | Build id: 688985c99912af7f6105 created
appwrite-worker-builds  | [Job] (688985cb879097.66723283) successfully run.
appwrite-worker-builds  | [Job] Received Job (6889866b9685b7.54633992).
appwrite-worker-builds  | Creating build for deployment: 6889866a5c1901c00eca
appwrite-worker-builds  | 
appwrite-worker-builds  | Warning: Undefined array key 1 in /usr/src/code/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php on line 778
appwrite-worker-builds  | Build id: 6889866a5c1901c00eca created
appwrite-worker-builds  | [Job] (6889866b9685b7.54633992) successfully run.
appwrite-worker-builds  | [Job] Received Job (6889879d6a60d5.57340619).
appwrite-worker-builds  | Creating build for deployment: 6889879ccf7f75a4c887
appwrite-worker-builds  | Build id: 6889879ccf7f75a4c887 created
appwrite-worker-builds  | [Job] (6889879d6a60d5.57340619) successfully run.
TL;DR
Multiple static sites hosted are pointing to the wrong content after deploying changes to one specific site. To resolve this, remove and re-add custom domains for the affected sites and redeploy them, if necessary. Shared logs indicate issues with PDOStatement::execute() and undefined array keys, for which further troubleshooting may be required.
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