Feed not updating with cron but does by force
-
I need some help before I go crazy. I am trying to use the BadIP feed (7 day).
https://www.badips.com/get/list/any/2?age=7d
First it was blocked because of GeoIP. I tried to create a whitelist but that did not work. So I removed the country from the GeoIP (whole other issue I may start a new thread on).
It now updates, but only on a force. When it tries as part of a cron job, I get the following 2 errors in the cron log:
[ BadIPs_7d_v4 ]
( md5 feed ) . 502 Bad Gateway
Failed to download Feed for md5 comparison! Update skipped....
[ BadIPs_7d_v4 ] Downloading update .. 502 Bad Gateway
[ pfB_PRI4_v4 - BadIPs_7d_v4 ] Download FAIL [ 03/22/20 20:00:25 ]
Firewall and/or IDS (Legacy mode only) are not blocking download.Restoring previously downloaded file contents... completed ..
If I force a run, it does fine.
[ BadIPs_7d_v4 ] Downloading update .. 200 OK. completed ..
Aggregation Stats:
Original Final
26475 25972
Anyone have an idea of what is going on.... It is only this feed. All other feeds are working without issue as of now.
Running 2.2.5_29 dev on 2.4.4.R-p3
-
@Jobee said in Feed not updating with cron but does by force:
I need some help before I go crazy. I am trying to use the BadIP feed (7 day).
https://www.badips.com/get/list/any/2?age=7d
That feed appears to be down. I would just remove it from your pfBlocker list and then do a force reload. That should clear it.
It's not uncommon for some of the sites to go offline for several days.
-
Not sure what the "?age=7d" means (maybe IPs added in last week?), but I do get a list if I use https://www.badips.com/get/list/any/2 alone.
EDIT - Odd, https://www.badips.com/get/list/any/2?age=7d just now started working. Was getting "Bad Gateway"... Go figure.
-
@provels said in Feed not updating with cron but does by force:
Not sure what the "?age=7d" means (maybe IPs added in last week?), but I do get a list if I use https://www.badips.com/get/list/any/2 alone.
EDIT - Odd, https://www.badips.com/get/list/any/2?age=7d just now started working. Was getting "Bad Gateway"... Go figure.
Yep, it works for me now too, didn't work earlier.
-
@jdeloach Networking/Notworking...
-
Thanks for the suggestion but you missed the problem. The list works when you do it manually. It gets the bad gateway when the cron job does it.
-
Hello!
Are you using ram disks in System/Advanced/Miscellaneous?
This sounds oddly similar to these :
https://forum.netgate.com/topic/151591/sort-4-not-downloading-vrt-rules/
https://forum.netgate.com/topic/151634/php-errors/John