Closed analogic closed 5 years ago
New Haraka installation with geoip on will not start due exception:
2019-07-10 18:17:40.035270500 [CRIT] [-] [core] Error: Maxmind v2 module has changed API. 2019-07-10 18:17:40.035314500 [CRIT] [-] [core] Upgrade instructions can be found here: https://github.com/runk/node-maxmind/wiki/Migration-guide 2019-07-10 18:17:40.035357500 [CRIT] [-] [core] If you want to use legacy libary then explicitly install maxmind@1 2019-07-10 18:17:40.035399500 [CRIT] [-] [core] at Object.exports.openSync (/usr/lib/node_modules/Haraka/node_modules/maxmind/lib/index.js:38:11) 2019-07-10 18:17:40.035440500 [CRIT] [-] [core] at forEach (/usr/lib/node_modules/Haraka/node_modules/haraka-plugin-geoip/index.js:71:44) 2019-07-10 18:17:40.035482500 [CRIT] [-] [core] at Array.forEach (<anonymous>) 2019-07-10 18:17:40.035529500 [CRIT] [-] [core] at Plugin.exports.load_dbs (/usr/lib/node_modules/Haraka/node_modules/haraka-plugin-geoip/index.js:66:23) 2019-07-10 18:17:40.035571500 [CRIT] [-] [core] at Plugin.exports.register (/usr/lib/node_modules/Haraka/node_modules/haraka-plugin-geoip/index.js:16:10) 2019-07-10 18:17:40.035615500 [CRIT] [-] [core] at Object.plugins._register_plugin.plugin [as _register_plugin] (/usr/lib/node_modules/Haraka/plugins.js:376:12) 2019-07-10 18:17:40.035657500 [CRIT] [-] [core] at Object.plugins.load_plugin.name [as load_plugin] (/usr/lib/node_modules/Haraka/plugins.js:350:17) 2019-07-10 18:17:40.035699500 [CRIT] [-] [core] at plugin_list.forEach.plugin (/usr/lib/node_modules/Haraka/plugins.js:322:17) 2019-07-10 18:17:40.035740500 [CRIT] [-] [core] at Array.forEach (<anonymous>) 2019-07-10 18:17:40.035782500 [CRIT] [-] [core] at Object.plugins.load_plugins.override [as load_plugins] (/usr/lib/node_modules/Haraka/plugins.js:321:17) 2019-07-10 18:17:40.039142500 [NOTICE] [-] [core] Shutting down
see: https://github.com/runk/node-maxmind/blob/0e057f104cccc3b163b253df34b7dced749d7bec/src/index.ts#L59
New Haraka installation with geoip on will not start due exception:
see: https://github.com/runk/node-maxmind/blob/0e057f104cccc3b163b253df34b7dced749d7bec/src/index.ts#L59