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
- Redirect from clicking team invite link ...
Hi all! Pretty new to app development in general so this might be something more generic than appwrite, but I've found (after reading the docs for the Teams API...
- Hosting Issues with Static IP not domain...
I have a machine with Static Public IP. I want to host Appwrite Site on it but I tried it but it doesn't allow IP addresses in Domain names. What should I do h...
- encrypt and decrypt buckets
I have a bucket where I switched from encryption to not encrypting files. I later realized that files already uploaded earlier stay encrypted. Now I have a buck...