Geoip no longer working for devel.yaml
ap-wtioit opened this issue · 0 comments
ap-wtioit commented
Describe the bug
When running doodba with devel.yaml from https://github.com/Tecnativa/doodba-copier-template with GeoIP credentials present starting odoo container fails.
odoo_1 | doodba INFO: Waiting until postgres is listening at db...
odoo_1 | doodba INFO: Linking all addons from /opt/odoo/custom/src/addons.yaml in /opt/odoo/auto/addons
odoo_1 | doodba INFO: Activating GeoIP/GeoLite2 updates
odoo_1 | doodba INFO: This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com
odoo_1 | Traceback (most recent call last):
odoo_1 | File "/opt/odoo/common/entrypoint.d/45-geoip", line 23, in <module>
odoo_1 | geoip_conf = geoip_file.read()
odoo_1 | File "/usr/local/lib/python3.6/site-packages/plumbum/path/local.py", line 238, in read
odoo_1 | with self.open(mode) as f:
odoo_1 | File "/usr/local/lib/python3.6/site-packages/plumbum/path/local.py", line 232, in open
odoo_1 | return open(str(self), mode)
odoo_1 | FileNotFoundError: [Errno 2] No such file or directory: '/opt/odoo/auto/geoip/GeoIP.conf'
odoo_1 | Traceback (most recent call last):
odoo_1 | File "/opt/odoo/common/entrypoint", line 30, in <module>
odoo_1 | subprocess.check_call(command)
odoo_1 | File "/usr/local/lib/python3.6/subprocess.py", line 311, in check_call
odoo_1 | raise CalledProcessError(retcode, cmd)
odoo_1 | subprocess.CalledProcessError: Command '/opt/odoo/common/entrypoint.d/45-geoip' returned non-zero exit status 1.
To Reproduce
Affected versions: all since #316 and Tecnativa/doodba-copier-template@7bb9314
Steps to reproduce the behavior:
- prepare a scaffolding directory with doodba-copier-template
- provide GEOIP_ACCOUNT_ID and GEOIP_LICENSE_KEY
- run
docker-compose -f devel.yaml up odoo
Expected behavior
Odoo should start
Additional context
introduced with