Describe the issue or problem
City/Region data are not being shown in usage reports
Steps I took leading up to the issue
Firstly, the MaxMind database is no longer available at the given URL, but I found it elsewhere. And because I am using docker4ojs, I have had to adapt the instructions at https://docs.pkp.sfu.ca/admin-guide/3.3/en/statistics#configure-regional-data-tracking, and am bind-mounting the GeoLiteCity.dat
file in the volumes
section of the compose file with - ./GeoLiteCity.dat:/var/www/html/plugins/generic/usageStats/GeoLiteCity.dat
.
# In the same folder as `docker-compose.yml`
wget https://dl.miyuru.lk/geoip/maxmind/city/maxmind.dat.gz
gunzip maxmind.dat.gz
mv maxmind.dat GeoLiteCity.dat
chown systemd-network:systemd-journal GeoLiteCity.dat
This seems to be successful because when I list the plugins/generic/usageStats/
within the container I see GeoLiteCity.dat
together with other files such as GeoLocationTool.inc.php
and OJSUsageStatsReportPlugin.inc.php
:
-rw-r--r-- 0 apache apache 26947787 Aug 6 20:46 GeoLiteCity.dat
-rw-r--r-- 1 apache apache 4301 Aug 25 11:29 GeoLocationTool.inc.php
I have enabled the City and Region checkboxes in the Usage Statistics plugin settings, restarted the Docker network, and waited several days to allow the scheduled tasks to collect and process the data. Reports are generated showing visits to the site, exactly as before I mounted the GeoLiteCity.dat
, with no city or region data included.
Are there perhaps additional steps required, such as resetting the usage stats module so that it detects the IP database?
What application are you using?
OJS 3.3.0-19 in docker-ojs