GeoIP GeoLite2 database format


I have configured my openlitespeed server version 1.4.39 with GeoIP legacy city database. (GeoIPCity.dat) This works fine.
Maxmind (distributor of GeoIP database) will end support for legacy datbases on Jan/2 2019.
I have tested the new GeoIP-2 database format from maxmind. I have found a kb article:
But the new file is not working.
Following error messages are in the log file:
2018-11-01 09:22:55.749646NOTICE[Child: 17735] LiteSpeed/1.4.39 Open starts successfully!
2018-11-01 09:22:55.782175ERROR[GEO] No environment variables were added but files were set
2018-11-01 09:22:55.782229ERROR[GEO] Error setting default ENV
2018-11-01 09:22:55.834428ERROR[GEO] No open GeoIP2 databases. Must be specified in config file
2018-11-01 09:22:55.855193ERROR[GEO] No open GeoIP2 databases. Must be specified in config file
2018-11-01 09:22:56.243485ERROR[GEO] No open GeoIP2 databases. Must be specified in config file
2018-11-01 09:22:56.500140NOTICE[Child: 13988] Shut down successfully!

Database is the cuttent City database - downloaded from

Thanks for help,


How did you install openlitespeed? through souce code compliling or rpm/deb package?

Have you download db file to /usr/local/share/GeoIP/GeoLite2-City.mmdb and defined the location in OLS config file? Our test showed it should work. If not, you may need to log ticket with us with tmp root ssh login for us to take a look.
Last edited:
I have installed it from CentOS Linux 7.5.1804 with yum.
Have copied to /usr/local/share/GeoIP/GeoLite2-City.mmdb and configured it in OLS config.

2018-11-03 17:52:49.637461NOTICELoading LiteSpeed/1.4.40 Open ...
2018-11-03 17:52:49.637472NOTICEUsing [BoringSSL]
2018-11-03 17:52:49.638252NOTICE[ADMIN] server socket: uds://usr/local/lsws/admin/tmp/admin.sock.7352
2018-11-03 17:52:49.638652NOTICERecovering server socket: [xxx:80]
2018-11-03 17:52:49.638684NOTICERecovering server socket: [xxx:443]
2018-11-03 17:52:49.638698NOTICERecovering server socket: [*:7080]
2018-11-03 17:52:49.638754NOTICEchroot is disabled.
2018-11-03 17:52:49.646374NOTICE[PID: 31002]: forked cgid: 31006
2018-11-03 17:52:49.660701NOTICEThe maximum number of file descriptor limit is set to 9000.
2018-11-03 17:52:49.661234NOTICE[config:server:epsr:lsphp] 'Process Limit' probably is too low, adjust the limit to: 930.
2018-11-03 17:52:49.661300NOTICE[config:server:rails] Cannot find ruby interpreter, Rails easy configuration is turned off
2018-11-03 17:52:49.728601ERROR GeoIP DB file test failed: '/usr/local/share/GeoIP/GeoLite2-City.mmdb'
2018-11-03 17:52:49.728634WARN Failed to setup a valid GeoIP DB file, Geolocation is disabled!
2018-11-03 17:52:49.738711NOTICE[ZConfManager] No VHosts added, do not send!
2018-11-03 17:52:49.739129NOTICE[AutoRestarter] new child process with pid=31014 is forked!

How can i log a ticket with you? Server console is not easyly to reach. Only behind a security system. Maybe i can open a SSH tunnel to it.