Error when running local test
cookandy opened this issue ยท 2 comments
cookandy commented
Hi! ๐
Thanks for the project. I'm trying to test things locally, but am receiving failed to load the resty.core module
when running make up
โฏ make up
docker-compose down -v
WARNING: The COVERALLS_REPO_TOKEN variable is not set. Defaulting to a blank string.
WARNING: The TRAVIS_JOB_ID variable is not set. Defaulting to a blank string.
WARNING: The TRAVIS_BRANCH variable is not set. Defaulting to a blank string.
WARNING: The TRAVIS_REPO_SLUG variable is not set. Defaulting to a blank string.
Stopping nginx-lua-redis-rate-measuring_redis_cluster_1 ... done
Removing nginx-lua-redis-rate-measuring_nginx_1 ... done
Removing nginx-lua-redis-rate-measuring_redis_cluster_1 ... done
Removing network nginx-lua-redis-rate-measuring_default
docker-compose up nginx
WARNING: The COVERALLS_REPO_TOKEN variable is not set. Defaulting to a blank string.
WARNING: The TRAVIS_JOB_ID variable is not set. Defaulting to a blank string.
WARNING: The TRAVIS_BRANCH variable is not set. Defaulting to a blank string.
WARNING: The TRAVIS_REPO_SLUG variable is not set. Defaulting to a blank string.
Creating network "nginx-lua-redis-rate-measuring_default" with the default driver
Creating nginx-lua-redis-rate-measuring_redis_cluster_1 ... done
Creating nginx-lua-redis-rate-measuring_nginx_1 ... done
Attaching to nginx-lua-redis-rate-measuring_nginx_1
nginx_1 | 2019/08/02 17:10:23 [error] 1#1: lua_load_resty_core failed to load the resty.core module from https://github.com/openresty/lua-resty-core; ensure you are using an OpenResty release from https://openresty.org/en/download.html (rc: 2, reason: module 'resty.core' not found:
nginx_1 | no field package.preload['resty.core']
nginx_1 | no file '/usr/local/openresty/luajit/share/lua/5.1/resty/core.lua'
nginx_1 | no file '/lua/src/resty/core.lua'
nginx_1 | no file '/usr/local/openresty/luajit/lib/lua/5.1/resty/core.so'
nginx_1 | no file '/usr/local/openresty/luajit/lib/lua/5.1/resty.so')
nginx_1 | nginx: [error] lua_load_resty_core failed to load the resty.core module from https://github.com/openresty/lua-resty-core; ensure you are using an OpenResty release from https://openresty.org/en/download.html (rc: 2, reason: module 'resty.core' not found:
nginx_1 | no field package.preload['resty.core']
nginx_1 | no file '/usr/local/openresty/luajit/share/lua/5.1/resty/core.lua'
nginx_1 | no file '/lua/src/resty/core.lua'
nginx_1 | no file '/usr/local/openresty/luajit/lib/lua/5.1/resty/core.so'
nginx_1 | no file '/usr/local/openresty/luajit/lib/lua/5.1/resty.so')
nginx_1 | 2019/08/02 17:10:23 [error] 1#1: init_by_lua error: /usr/local/openresty/luajit/share/lua/5.1/resty/lock.lua:4: module 'resty.core.shdict' not found:
nginx_1 | no field package.preload['resty.core.shdict']
nginx_1 | no file '/usr/local/openresty/luajit/share/lua/5.1/resty/core/shdict.lua'
nginx_1 | no file '/lua/src/resty/core/shdict.lua'
nginx_1 | no file '/usr/local/openresty/luajit/lib/lua/5.1/resty/core/shdict.so'
nginx_1 | no file '/usr/local/openresty/luajit/lib/lua/5.1/resty.so'
nginx_1 | stack traceback:
nginx_1 | [C]: in function 'require'
nginx_1 | /usr/local/openresty/luajit/share/lua/5.1/resty/lock.lua:4: in main chunk
nginx_1 | [C]: in function 'require'
nginx_1 | ...l/openresty/luajit/share/lua/5.1/resty-redis-cluster.lua:3: in main chunk
nginx_1 | [C]: in function 'require'
nginx_1 | init_by_lua:13: in main chunk
nginx-lua-redis-rate-measuring_nginx_1 exited with code 1
Any ideas? Thanks!
leandromoreira commented
Hi @cookandy I'm seeing the same error as you =x i don't know why, the tests are passing okay make test
but make up
is not okay.
leandromoreira commented