selim13 / docker-openresty-prometheus

An extended OpenResty image with the Prometheus metric exporter plugin added
4 stars 1 forks source link

module 'resty.core' not found #1

Open ariefMudahMy opened 3 years ago

ariefMudahMy commented 3 years ago

hi, i try deploy the docker image but i get this logs 2020/12/18 08:35:48 [alert] 1#1: failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found: no field package.preload['resty.core'] no file '/usr/local/openresty/lualib/prometheus/resty/core.lua' no file '/usr/local/openresty/site/lualib/resty/core.so' no file '/usr/local/openresty/lualib/resty/core.so' no file './resty/core.so' no file '/usr/local/lib/lua/5.1/resty/core.so' no file '/usr/local/openresty/luajit/lib/lua/5.1/resty/core.so' no file '/usr/local/lib/lua/5.1/loadall.so' no file '/usr/local/openresty/site/lualib/resty.so' no file '/usr/local/openresty/lualib/resty.so' no file './resty.so' no file '/usr/local/lib/lua/5.1/resty.so' no file '/usr/local/openresty/luajit/lib/lua/5.1/resty.so'

any info why is that happen?

i try load openresty: alpine image all ok with default config, but after i add prometheus.lua, it show error

selim13 commented 3 years ago

Hello! Most probably this happened due to heavily outdated configuration files. I haven't used openresty since 2016 and never updated config and at some point, it probably broke after the base image update. I would recommend making your own image since I don't have plans to support this one and probably will archive it.