Geoip with Maxmind not working in Release 22.1.2_1

Started by quiksilvercgn, March 05, 2022, 01:30:45 AM

Previous topic - Next topic
Hi everybody,

i started to implement GeoIP with maxmind as described here very good an precisely https://techlabs.blog/blog-categories/how-to-guides/set-up-maxmind-geoip-blocking-in-opnsense

I did all this and after entering the Database URL nothing happens, although I can enter this URL in my browser and the necessary files get downloaded. which means that the URL is correct.

Each time I press apply and try to update the country list with that url a message shows up at the backend log with warning level.

2022-03-05T01:19:08   Error   configd.py   [cf8269a1-a507-496e-8c0f-7a663cf90cd6] Script action failed with Command '/usr/local/bin/flock -n -E 0 -o /tmp/filter_update_tables.lock /usr/local/opnsense/scripts/filter/update_tables.py ' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/processhandler.py", line 478, in execute subprocess.check_call(script_command, env=self.config_environment, shell=True, File "/usr/local/lib/python3.8/subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '/usr/local/bin/flock -n -E 0 -o /tmp/filter_update_tables.lock /usr/local/opnsense/scripts/filter/update_tables.py ' returned non-zero exit status 1.

Is it a bug? Any ideas? Thank you very much and stay safe in these dark times ...

Could it be related to this...?  See the second post under this topic...although you're getting a different error.

https://forum.opnsense.org/index.php?topic=19117.0
HP T730/AMD  RX-427BB/8GB/500GB SSD
HP NC365T 4-PORT

Hi.
I have the same problem.

2022-03-12T09:45:57   Error   configd.py   [94af974d-090a-43c8-b54e-9f676c6cef5a] Script action failed with Command '/usr/local/bin/flock -n -E 0 -o /tmp/filter_update_tables.lock /usr/local/opnsense/scripts/filter/update_tables.py ' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/processhandler.py", line 478, in execute subprocess.check_call(script_command, env=self.config_environment, shell=True, File "/usr/local/lib/python3.8/subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '/usr/local/bin/flock -n -E 0 -o /tmp/filter_update_tables.lock /usr/local/opnsense/scripts/filter/update_tables.py ' returned non-zero exit status 1.