i use docker cmd to create appwrite on my vps:
docker run -it --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
appwrite/appwrite:1.3.4
and set port to 9980 and 9443 , The rest of the settings are “localhost”
I want to use Nginx inside my VPS for reverse proxy, using the configuration in this post: https://github.com/appwrite/appwrite/discussions/4329 And I have set up my domain SSL
But when I access my https domain, I get a 502 Bad Gateway
What should I do? I found the following error in the docker log, Keeps reappearing over and over again
Failed: Query has failed: Request failed! curl_errno: 7
#0 /usr/src/code/vendor/influxdb/influxdb-php/src/InfluxDB/Database.php(78): InfluxDB\Client->query('telegraf', 'SELECT sum(valu...', Array)
#1 /usr/src/code/src/Appwrite/Usage/Calculators/TimeSeries.php(476): InfluxDB\Database->query('SELECT sum(valu...')
#2 /usr/src/code/src/Appwrite/Usage/Calculators/TimeSeries.php(528): Appwrite\Usage\Calculators\TimeSeries->syncFromInfluxDB('databases.$all....', Array, Array)
#3 /usr/src/code/app/tasks/usage.php(132): Appwrite\Usage\Calculators\TimeSeries->collect()
#4 /usr/src/code/vendor/utopia-php/cli/src/CLI/Console.php(208): {closure}()
#5 /usr/src/code/app/tasks/usage.php(137): Utopia\CLI\Console::loop(Object(Closure), 30)
#6 /usr/src/code/vendor/utopia-php/cli/src/CLI/CLI.php(233): {closure}()
#7 /usr/src/code/app/cli.php(32): Utopia\CLI\CLI->run()
#8 {main}
Should I set my own domain name when I start appwrite? But the domain name may change later too
This is my Nginx config [see config.txt]
Can you run docker ps and share the results?
Thank you for your reply, I use docker exec appwrite doctor I checked my service and found that the database failed to start, I found that it was caused by not starting the service with root. It has just worked fine, thanks!
[CLOSED] Bad Gateway on host AppWrite with Nginx
glad you made it work @Milukun
[CLOSED] Bad Gateway on host Appwrite with Nginx
Recommended threads
- Creation failedUnknown sort order:asc. M...
Hi there, I'm getting this error on self hosted when trying to create an Index. Any ideas?
- Redis with user/pass doesn't work NO_AUT...
When trying to externalize my redis to a valkey server, i saw the user/pass doesn't work. After looking the appwrite code, i saw some of the init does not pass...
- Export, Import or Migration giving this ...
As you can see in yhe screenshot i am not able to export any data or export the data from tables. Also it is affecting the migration from appwrite to appwrite h...