You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/04/30 02:26:08 UTC

[GitHub] [apisix] dmsolr opened a new issue #4159: request help: install error on ubuntu 20.04

dmsolr opened a new issue #4159:
URL: https://github.com/apache/apisix/issues/4159


   ### Issue description
   
   failed to execute `./bin/apisix version` after walking through [install-dependencies.md](https://github.com/apache/apisix/blob/master/docs/zh/latest/install-dependencies.md) and `make deps` success.
   
   ```
   root@daming:~/apisix# ./bin/apisix version
   lua ./apisix/cli/apisix.lua version
   lua: error loading module 'ssl.core' from file '/root/apisix/deps/lib/lua/5.1/ssl.so':
           /root/apisix/deps/lib/lua/5.1/ssl.so: undefined symbol: luaL_setfuncs
   stack traceback:
           [C]: ?
           [C]: in function 'require'
           /root/apisix/deps/share/lua/5.1/ssl.lua:8: in main chunk
           [C]: in function 'require'
           /root/apisix/deps/share/lua/5.1/ssl/https.lua:10: in main chunk
           [C]: in function 'require'
           ./apisix/cli/etcd.lua:24: in main chunk
           [C]: in function 'require'
           ./apisix/cli/ops.lua:18: in main chunk
           [C]: in function 'require'
           ./apisix/cli/apisix.lua:32: in main chunk
           [C]: ?
   ```
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):
   master
   
   * OS (cmd: `uname -a`):
   Linux daming.sgp 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
   
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   nginx version: openresty/1.17.8.2
   
   * etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   * apisix-dashboard version, if have:
   * luarocks version, if the issue is about installation (cmd: `luarocks --version`):
   3.4.0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tzssangglass commented on issue #4159: request help: install error on ubuntu 20.04

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #4159:
URL: https://github.com/apache/apisix/issues/4159#issuecomment-829215765


   Please pay attention to whether the `luasec` dependency is installed successfully when you execute `make deps`, after that there should be `/apisix/deps/lib/lua/5.1/ssl.so` exist.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] dmsolr commented on issue #4159: request help: install error on ubuntu 20.04

Posted by GitBox <gi...@apache.org>.
dmsolr commented on issue #4159:
URL: https://github.com/apache/apisix/issues/4159#issuecomment-829243008


   hi @tzssangglass it is existed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] dmsolr commented on issue #4159: request help: install error on ubuntu 20.04

Posted by GitBox <gi...@apache.org>.
dmsolr commented on issue #4159:
URL: https://github.com/apache/apisix/issues/4159#issuecomment-829763684


   > root user?
   
   Yeah


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] dmsolr commented on issue #4159: request help: install error on ubuntu 20.04

Posted by GitBox <gi...@apache.org>.
dmsolr commented on issue #4159:
URL: https://github.com/apache/apisix/issues/4159#issuecomment-829781475


   Thank all. This is because I do `make deps` before executing `linux-install-luarocks.sh`.  And the key point, I don't remove `/deps`. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] dmsolr closed issue #4159: request help: install error on ubuntu 20.04

Posted by GitBox <gi...@apache.org>.
dmsolr closed issue #4159:
URL: https://github.com/apache/apisix/issues/4159


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] dmsolr commented on issue #4159: request help: install error on ubuntu 20.04

Posted by GitBox <gi...@apache.org>.
dmsolr commented on issue #4159:
URL: https://github.com/apache/apisix/issues/4159#issuecomment-829261535


   Thanks, @tzssangglass 
   I tried to move apisix out of /root and then it works well.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] dmsolr commented on issue #4159: request help: install error on ubuntu 20.04

Posted by GitBox <gi...@apache.org>.
dmsolr commented on issue #4159:
URL: https://github.com/apache/apisix/issues/4159#issuecomment-829759569


   Hi @spacewander 
   Here are my operation logs.
   
   ```
   root@daming:~/github/apisix# curl https://raw.githubusercontent.com/apache/apisix/master/utils/linux-install-luarocks.sh -sL | bash -
   --2021-04-30 10:36:28--  https://github.com/luarocks/luarocks/archive/v3.4.0.tar.gz
   Resolving github.com (github.com)... 13.250.177.223
   Connecting to github.com (github.com)|13.250.177.223|:443... connected.
   HTTP request sent, awaiting response... 302 Found
   Location: https://codeload.github.com/luarocks/luarocks/tar.gz/v3.4.0 [following]
   --2021-04-30 10:36:29--  https://codeload.github.com/luarocks/luarocks/tar.gz/v3.4.0
   Resolving codeload.github.com (codeload.github.com)... 54.251.140.56
   Connecting to codeload.github.com (codeload.github.com)|54.251.140.56|:443... connected.
   HTTP request sent, awaiting response... 200 OK
   Length: unspecified [application/x-gzip]
   Saving to: ‘v3.4.0.tar.gz’
   
   v3.4.0.tar.gz                                                [       <=>                                                                                                                        ]   5.13M  4.00MB/s    in 1.3s    
   
   2021-04-30 10:36:30 (4.00 MB/s) - ‘v3.4.0.tar.gz’ saved [5382897]
   
   mkdir: cannot create directory ‘/root/.luarocks’: File exists
   Wrote
           variables.OPENSSL_LIBDIR = "/usr/local/openresty/openssl111/lib"
   to
           /root/.luarocks/config-5.1.lua
   Wrote
           variables.OPENSSL_INCDIR = "/usr/local/openresty/openssl111/include"
   to
           /root/.luarocks/config-5.1.lua
   root@daming:~/github/apisix# ./bin/apisix version
   lua ./apisix/cli/apisix.lua version
   lua: ./apisix/cli/etcd.lua:18: module 'base64' not found:
           no field package.preload['base64']
           no file '/root/github/apisix/base64/init.lua'
           no file '/root/github/apisix/deps/share/lua/5.1/base64/init.lua'
           no file '/root/github/apisix/deps/share/lua/5.1/base64.lua'
           no file '/usr/local/apisix/deps/share/lua/5.1/base64.lua'
           no file './base64.lua'
           no file '/usr/local/share/lua/5.1/base64.lua'
           no file '/usr/local/share/lua/5.1/base64/init.lua'
           no file '/usr/local/lib/lua/5.1/base64.lua'
           no file '/usr/local/lib/lua/5.1/base64/init.lua'
           no file '/usr/share/lua/5.1/base64.lua'
           no file '/usr/share/lua/5.1/base64/init.lua'
           no file '/root/github/apisix/deps/lib64/lua/5.1/base64.so'
           no file '/root/github/apisix/deps/lib/lua/5.1/base64.so'
           no file '/usr/local/apisix/deps/lib64/lua/5.1/base64.so'
           no file '/usr/local/apisix/deps/lib/lua/5.1/base64.so'
           no file './base64.so'
           no file '/usr/local/lib/lua/5.1/base64.so'
           no file '/usr/lib/x86_64-linux-gnu/lua/5.1/base64.so'
           no file '/usr/lib/lua/5.1/base64.so'
           no file '/usr/local/lib/lua/5.1/loadall.so'
   stack traceback:
           [C]: in function 'require'
           ./apisix/cli/etcd.lua:18: in main chunk
           [C]: in function 'require'
           ./apisix/cli/ops.lua:18: in main chunk
           [C]: in function 'require'
           ./apisix/cli/apisix.lua:32: in main chunk
           [C]: ?
   root@daming:~/github/apisix# history |tail -10
    2007  history
    2008  wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
    2009  sudo apt-get update
    2010  sudo apt-get -y install software-properties-common
    2011  sudo add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main"
    2012  sudo apt-get update
    2013  apt-get install openresty-openssl111-dev
    2014  curl https://raw.githubusercontent.com/apache/apisix/master/utils/linux-install-luarocks.sh -sL | bash -
    2015  ./bin/apisix version
    2016  history |tail -10
   root@daming:~/github/apisix# 
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] dmsolr closed issue #4159: request help: install error on ubuntu 20.04

Posted by GitBox <gi...@apache.org>.
dmsolr closed issue #4159:
URL: https://github.com/apache/apisix/issues/4159


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] membphis commented on issue #4159: request help: install error on ubuntu 20.04

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #4159:
URL: https://github.com/apache/apisix/issues/4159#issuecomment-829763603


   root user?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tzssangglass removed a comment on issue #4159: request help:

Posted by GitBox <gi...@apache.org>.
tzssangglass removed a comment on issue #4159:
URL: https://github.com/apache/apisix/issues/4159#issuecomment-829200377


   I compared the code related to sls-logger in version 2.4 and 2.5, both are unchanged, please check if the sls-logger configuration is in effect first.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #4159: request help: install error on ubuntu 20.04

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #4159:
URL: https://github.com/apache/apisix/issues/4159#issuecomment-829752934


   luaL_setfuncs isn't Lua 5.1's symbol.
   You need to install luarocks without LuaJIT: https://github.com/apache/apisix/blob/724a9100a9a43ac50f4c89dffd6d4a6e5edcff2b/utils/linux-install-luarocks.sh#L33
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tzssangglass commented on issue #4159: request help:

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #4159:
URL: https://github.com/apache/apisix/issues/4159#issuecomment-829200377


   I compared the code related to sls-logger in version 2.4 and 2.5, both are unchanged, please check if the sls-logger configuration is in effect first.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] xialee3512 commented on issue #4159: request help: install error on ubuntu 20.04

Posted by GitBox <gi...@apache.org>.
xialee3512 commented on issue #4159:
URL: https://github.com/apache/apisix/issues/4159#issuecomment-898315551


   > luaL_setfuncs 不是 Lua 5.1 的符号。
   > 你需要在没有 LuaJIT 的情况下安装 luarocks:
   > 
   > https://github.com/apache/apisix/blob/724a9100a9a43ac50f4c89dffd6d4a6e5edcff2b/utils/linux-install-luarocks.sh#L33
   
   
   
   > luaL_setfuncs 不是 Lua 5.1 的符号。
   > 你需要在没有 LuaJIT 的情况下安装 luarocks:
   > 
   > https://github.com/apache/apisix/blob/724a9100a9a43ac50f4c89dffd6d4a6e5edcff2b/utils/linux-install-luarocks.sh#L33
   
   hi,openresty版本是1.19的,在本地debug的时候报错lua: error loading module 'ssl.core' from file '/root/apisix/deps/lib/lua/5.1/ssl.so':
           /root/apisix/deps/lib/lua/5.1/ssl.so: undefined symbol: luaL_setfuncs,通过源码直接make run是能正常运行的,请问这个是什么导致的呢?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org