Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cf-nginx-ip-passthrough script fails randomly #67

Open
rixls opened this issue Aug 7, 2024 · 0 comments
Open

cf-nginx-ip-passthrough script fails randomly #67

rixls opened this issue Aug 7, 2024 · 0 comments

Comments

@rixls
Copy link

rixls commented Aug 7, 2024

I have a scheduled task which fetches and runs the cf-nginx-ip-passthrough (cf.sh) script periodically. It seems to fail at random, disabling the cloudflare.conf file and touching cf-stop. I believe this is caused by an occasional network hiccup but I can't be sure, and it highlights three problems:

  1. The script always returns 0 so the Plesk setting to notify on error doesn't work.
  2. If I enable notifications for every run, the emails only contain the cURL output and Configuration applied. Restarting Nginx. On and after the fatal failure, I only receive the cURL output in the emails, so I can't be certain what going wrong.
  3. Oddly, the .disabled file is always valid when I log in to intervene (I rename it back to cloudflare.conf and nginx -t succeeds), so I wonder if the code to rollback to the previous working config is broken.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant