Skip to content
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

Error loading dependency on CentOS 5 #593

Closed
subnetmarco opened this issue Oct 5, 2015 · 3 comments
Closed

Error loading dependency on CentOS 5 #593

subnetmarco opened this issue Oct 5, 2015 · 3 comments
Labels

Comments

@subnetmarco
Copy link
Member

This error happens on CentOS 5 when loading kong.plugins.basic-auth.daos. It must be related to the recent Basic Auth encryption implementation (#33).

/usr/local/bin/luajit: /usr/local/share/lua/5.1/kong/tools/utils.lua:128: /usr/local/share/lua/5.1/luarocks/loader.lua:117: error loading module 'crypto' from file '/usr/local/lib/lua/5.1/crypto.so':
    libcrypto.so.6: cannot open shared object file: No such file or directory
stack traceback:
    [C]: in function 'error'
    /usr/local/share/lua/5.1/kong/tools/utils.lua:128: in function 'load_module_if_exists'
    /usr/local/share/lua/5.1/kong/dao/cassandra/factory.lua:48: in function 'load_plugins'
    /usr/local/share/lua/5.1/kong/dao/cassandra/factory.lua:39: in function 'new'
    /usr/local/share/lua/5.1/classic.lua:63: in function 'DaoFactory'
    /usr/local/share/lua/5.1/kong/tools/io.lua:140: in function 'load_configuration_and_dao'
    /usr/local/share/lua/5.1/kong/cli/utils/signal.lua:31: in function 'get_kong_config'
    /usr/local/share/lua/5.1/kong/cli/utils/signal.lua:321: in function 'is_running'
    /usr/local/share/lua/5.1/kong/cli/start.lua:16: in main chunk
    [C]: in function 'require'
    /usr/local/lib/luarocks/rocks/kong/0.5.0-1/bin/kong:55: in main chunk
    [C]: at 0x004040c0
@thibaultcha thibaultcha changed the title Error loading dependency Error loading dependency on CentOS 5 Oct 15, 2015
@subnetmarco
Copy link
Member Author

Likely fixed in the next branch, since I cannot replicate anymore with the latest code.

@subnetmarco
Copy link
Member Author

Okay I was able to replicate. This happens on AWS Amazon Linux AMIs, and can be fixed by running sudo yum -y install openssl098e. This is a problem in the way the CentOS package is being generated, probably because the Amazon Linux AMI is a fork of CentOS 5 with a newer operating system, and a specific distribution needs to be created for it.

@subnetmarco
Copy link
Member Author

I have decided to update my distribution script to create a CentOS5-like distribution specifically for AWS - this will take effect starting from 0.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants