Skip to content
New issue

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

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

Already on GitHub? # to your account

[BUG] Bad cron for geoip db #171

Open
madmath03 opened this issue Aug 15, 2020 · 1 comment
Open

[BUG] Bad cron for geoip db #171

madmath03 opened this issue Aug 15, 2020 · 1 comment

Comments

@madmath03
Copy link
Contributor

madmath03 commented Aug 15, 2020

# download geoip db on start if it does not exist
@reboot www-data [[ "$(ls -A /var/www/html/app/cache/ip_data 2>/dev/null)" ]] || php /var/www/html/app/bin mautic:iplookup:download > /var/log/cron.pipe 2>&1

It should be php /var/www/html/bin/console mautic:iplookup:download


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

madmath03 added a commit to Monogramm/docker-mautic-base that referenced this issue Aug 15, 2020
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
@EnziinSystem
Copy link

EnziinSystem commented Dec 31, 2020

I solved it with the guide on the page:

https://mauteam.org/mautic/mautic-admins/solved-maxmind-geolite2-database-not-updating

And change Dockerfile to:

...
RUN apt-get update && wget https://github.com/maxmind/geoipupdate/releases/download/v4.6.0/geoipupdate_4.6.0_linux_amd64.deb \
    && dpkg -i geoipupdate_4.6.0_linux_amd64.deb && rm geoipupdate_4.6.0_linux_amd64.deb
...
COPY GeoIP.conf /etc/GeoIP.conf
...

And change cron file:

...
*/5 * * * *     www-data  geoipupdate -f /etc/GeoIP.conf -d /var/www/html/app/cache/ip_data > /var/log/cron.pipe 2>&1
...

Remember remove old cron:

...
#        0 4 15 * *     www-data   php /var/www/html/bin/console mautic:iplookup:download > /var/log/cron.pipe 2>&1
...

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants