8000 GeoLite2-City.mmdb does not exist or is not readable · Issue #2420 · shlinkio/shlink · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

GeoLite2-City.mmdb does not exist or is not readable #2420

New issue

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

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

Already on GitHub? Sign in to your account

Closed
Inetov opened this issue Apr 21, 2025 · 3 comments
Closed

GeoLite2-City.mmdb does not exist or is not readable #2420

Inetov opened this issue Apr 21, 2025 · 3 comments

Comments

@Inetov
Copy link
Inetov commented Apr 21, 2025

Shlink version

4.4.6

PHP version

8.4.5

How do you serve Shlink

Self-hosted Apache

Database engine

MariaDB

Database version

11.7.2

Current behavior

I noticed that the country and city definition stopped working.
updated Shlink to the latest version, tried to execute the command
docker exec -it my_shlink shlink visit:locate -vvv
got the result:

 [WARNING] A geolocation db is already being downloaded by another process.

Processing IP 164.92.71.0

 [ERROR] The file "/etc/shlink/config/autoload/../../data/GeoLite2-City.mmdb" does not exist or is not readable.

In Reader.php line 91:

  [InvalidArgumentException]
  The file "/etc/shlink/config/autoload/../../data/GeoLite2-City.mmdb" does not exist or is not readable.

Exception trace:
  at /etc/shlink/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php:91
 MaxMind\Db\Reader->__construct() at /etc/shlink/vendor/geoip2/geoip2/src/Database/Reader.php:69
 GeoIp2\Database\Reader->__construct() at /etc/shlink/vendor/shlinkio/shlink-ip-geolocation/src/GeoLite2/GeoLite2ReaderFactory.php:21
 Shlinkio\Shlink\IpGeolocation\GeoLite2\GeoLite2ReaderFactory->__invoke() at /etc/shlink/vendor/shlinkio/shlink-ip-geolocation/src/Resolver/GeoLite2LocationResolver.php:34
 Shlinkio\Shlink\IpGeolocation\Resolver\GeoLite2LocationResolver->resolveIpLocation() at /etc/shlink/vendor/shlinkio/shlink-ip-geolocation/src/Resolver/ChainIpLocationResolver.php:29
 Shlinkio\Shlink\IpGeolocation\Resolver\ChainIpLocationResolver->resolveIpLocation() at /etc/shlink/module/Core/src/Visit/Geolocation/VisitToLocationHelper.php:35
 Shlinkio\Shlink\Core\Visit\Geolocation\VisitToLocationHelper->resolveVisitLocation() at /etc/shlink/module/CLI/src/Command/Visit/LocateVisitsCommand.php:139
 Shlinkio\Shlink\CLI\Command\Visit\LocateVisitsCommand->geolocateVisit() at /etc/shlink/module/Core/src/Visit/Geolocation/VisitLocator.php:49
 Shlinkio\Shlink\Core\Visit\Geolocation\VisitLocator->locateVisits() at /etc/shlink/module/Core/src/Visit/Geolocation/VisitLocator.php:24
 Shlinkio\Shlink\Core\Visit\Geolocation\VisitLocator->locateUnlocatedVisits() at /etc/shlink/module/CLI/src/Command/Visit/LocateVisitsCommand.php:112
 Shlinkio\Shlink\CLI\Command\Visit\LocateVisitsCommand->lockedExecute() at /etc/shlink/module/CLI/src/Command/Util/AbstractLockedCommand.php:35
 Shlinkio\Shlink\CLI\Command\Util\AbstractLockedCommand->execute() at /etc/shlink/vendor/symfony/console/Command/Command.php:279
 Symfony\Component\Console\Command\Command->run() at /etc/shlink/vendor/symfony/console/Application.php:1076
 Symfony\Component\Console\Application->doRunCommand() at /etc/shlink/vendor/symfony/console/Application.php:342
 Symfony\Component\Console\Application->doRun() at /etc/shlink/vendor/symfony/console/Application.php:193
 Symfony\Component\Console\Application->run() at /etc/shlink/bin/cli:10

command visit:download-db
says [WARNING] A geolocation db is already being downloaded by another process.

Expected behavior

country and city definition works) commands also work.

Minimum steps to reproduce

@Inetov Inetov added the bug label Apr 21, 2025
@acelaya acelaya removed the bug label Apr 21, 2025
@acelaya acelaya closed this as not planned Won't fix, can't repro, duplicate, stale Apr 21, 2025
@github-project-automation github-project-automation bot moved this to Done in Shlink Apr 21, 2025
@acelaya
Copy link
Member
acelaya commented Apr 21, 2025

Closing, as no steps to reproduce were provided. I'm happy to reopen when provided.

@Inetov
Copy link
Author
Inetov commented Apr 21, 2025

no steps to reproduce were provided

can you try updating from a version about half a year ago?
I didn't do anything strange, all the settings correspond to the instructions on the site, it worked without problems before.
I don't know what version was installed (image: shlinkio/shlink:stable)

@Inetov
Copy link
Author
Inetov commented Apr 21, 2025

Also, I looked at the download history on maxmind.com and found that there were no downloads since 2025-03-01 and one appeared today after the update.

@acelaya acelaya removed this from Shlink Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0