bunkerweb
bunkerweb copied to clipboard
[BUG] exception while running mmdb-country.py
What happened?
bunker-bw-scheduler-1 | [2024-04-05 12:54:40] - JOBS.MMDB-COUNTRY - ℹ️ - Downloading mmdb file from url https://download.db-ip.com/free/dbip-country-lite-2024-04.mmdb.gz ...
bunker-bw-scheduler-1 | [2024-04-05 12:54:40] - JOBS.MMDB-COUNTRY - ℹ️ - Decompressing mmdb file ...
bunker-bw-scheduler-1 | [2024-04-05 12:54:40] - JOBS.MMDB-COUNTRY - ℹ️ - Checking if mmdb file is valid ...
bunker-bw-scheduler-1 | [2024-04-05 12:54:40] - JOBS.MMDB-COUNTRY - ❌ - Exception while running mmdb-country.py :
bunker-bw-scheduler-1 | Traceback (most recent call last):
bunker-bw-scheduler-1 | File "/usr/share/bunkerweb/core/jobs/jobs/mmdb-country.py", line 115, in <module>
bunker-bw-scheduler-1 | with open_database(content, mode=MODE_FD) as reader:
bunker-bw-scheduler-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bunker-bw-scheduler-1 | File "/usr/share/bunkerweb/deps/python/maxminddb/__init__.py", line 69, in open_database
bunker-bw-scheduler-1 | return Reader(database, mode)
bunker-bw-scheduler-1 | ^^^^^^^^^^^^^^^^^^^^^^
bunker-bw-scheduler-1 | File "/usr/share/bunkerweb/deps/python/maxminddb/reader.py", line 81, in __init__
bunker-bw-scheduler-1 | filename = database.name # type: ignore
bunker-bw-scheduler-1 | ^^^^^^^^^^^^^
bunker-bw-scheduler-1 | AttributeError: '_io.BytesIO' object has no attribute 'name'
bunker-bw-scheduler-1 |
bunker-bw-scheduler-1 | [2024-04-05 12:54:41] - SCHEDULER - ❌ - Error while executing job mmdb-country from plugin jobs
How to reproduce?
not sure
Configuration file(s) (yaml or .env)
No response
Relevant log output
No response
BunkerWeb version
1.5.6
What integration are you using?
Docker
Linux distribution (if applicable)
No response
Removed private data
- [X] I have removed all private data from the configuration file and the logs
Code of Conduct
- [X] I agree to follow this project's Code of Conduct