Back

appwrite-schedule container exit after several days - Self host

  • 0
  • Self Hosted
  • Functions
Chris
8 Dec, 2023, 08:43

Hello, i have a function that is scheduled to run every 20 minuets i came to notice appwrite-schedule stops after 3 days. What could be the possible cause ?

I have attached an error log for appwrite-schedule.

TL;DR
Problem: The appwrite-schedule container stops running after three days. Possible Cause: The issue may be due to attackers trying to abuse the redis instance, or the redis port being exposed publicly. Recommended Solution: 1. Remove all "ports" definitions in the docker-compose.yml file, except for ports 80 and 443, to enhance server security. 2. Instead of running from source, consider using a stable version in a production environment. 3. Check if the redis port is exposed publicly and secure it if necessary. Additional Information: An error log for appwrite-schedule has been attached.
Drake
8 Dec, 2023, 08:50

Are you running from source? Is redis port exposed publicly?

Chris
9 Dec, 2023, 12:29

Yes @Drake how can i check the redis port.

Drake
9 Dec, 2023, 16:04

Why are you running from source? You shouldn't be running from source in a production environment

Chris
11 Dec, 2023, 05:14

I have added a custom phone adapter to be able to send OTP during phone auth since it didn't support other providers, that was the reason why I decided to run from source. @Drake

Drake
11 Dec, 2023, 05:55

Hmm... I'd probably just mount in files instead

Chris
11 Dec, 2023, 06:02

That seems tough sir.

Meldiron
11 Dec, 2023, 06:53

In docker-compose.yml, I wpuld recommend to remove all "ports" definitions except port 80 and 443. That way your server stays secure

Meldiron
11 Dec, 2023, 06:53

Problem you are seeing is common when attackers try to abuse your redis instance.

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