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/06/01 05:10:11 UTC

[GitHub] [apisix] imjoey commented on issue #4157: bug: After installing the Apisix on ARM-based System,but it can't works properly.

imjoey commented on issue #4157:
URL: https://github.com/apache/apisix/issues/4157#issuecomment-851809766


   > > @Molio-tan
   > > I used kylin V10 arm64 and encountered the same problem.
   > > ```
   > > [C]: in function 'require'
   > > 	/usr/local/apisix/apisix/init.lua:95: in function 'http_init_worker'
   > > 	init_worker_by_lua:2: in main chunk
   > > 2021/05/14 10:33:35 [error] 111#111: init_worker_by_lua error: /usr/local/apisix/apisix/init.lua:95: module 'resty.worker.events' not found:
   > > 	no field package.preload['resty.worker.events']
   > > 	no file '/usr/local/apisix//deps/share/lua/5.1/resty/worker/events.lua'
   > > 	no file '/usr/local/apisix//deps/share/lua/5.1/resty/worker/events/init.lua'
   > > 	no file '/usr/local/apisix/resty/worker/events.lua'
   > > 	no file '/usr/local/apisix/resty/worker/events/init.lua'
   > > 	no file '/usr/local/openresty/site/lualib/resty/worker/events.ljbc'
   > > 	no file '/usr/local/openresty/site/lualib/resty/worker/events/init.ljbc'
   > > 	no file '/usr/local/openresty/lualib/resty/worker/events.ljbc'
   > > 	no file '/usr/local/openresty/lualib/resty/worker/events/init.ljbc'
   > > 	no file '/usr/local/openresty/site/lualib/resty/worker/events.lua'
   > > 	no file '/usr/local/openresty/site/lualib/resty/worker/events/init.lua'
   > > 	no file '/usr/local/openresty/lualib/resty/worker/events.lua'
   > > 	no file '/usr/local/openresty/lualib/resty/worker/events/init.lua'
   > > 	no file './resty/worker/events.lua'
   > > 	no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/resty/worker/events.lua'
   > > 	no file '/usr/local/share/lua/5.1/resty/worker/events.lua'
   > > 	no file '/usr/local/share/lua/5.1/resty/worker/events/init.lua'
   > > 	no file '/usr/local/openresty/luajit/share/lua/5.1/resty/worker/events.lua'
   > > 	no file '/usr/local/openresty/luajit/share/lua/5.1/resty/worker/events/init.lua'
   > > 	no file './resty/worker/events.lua'
   > > 	no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/resty/worker/events.lua'
   > > 	no file '/usr/local/share/lua/5.1/resty/worker/events.lua'
   > > 	no file '/usr/local/share/lua/5.1/resty/worker/events/init.lua'
   > > 	no file '/usr/local/openresty/luajit/share/lua/5.1/resty/worker/events.lua'
   > > 	no file '/usr/local/openresty/luajit/share/lua/5.1/resty/worker/events/init.lua'
   > > 	no file '/usr/local/apisix//deps/lib64/lua/5.1/resty/worker/events.so'
   > > 	no file '/usr/local/apisix//deps/lib/lua/5.1/resty/worker/events.so'
   > > 	no file '/usr/local/openresty/site/lualib/resty/worker/events.so'
   > > 	no file '/usr/local/openresty/lualib/resty/worker/events.so'
   > > 	no file './resty/worker/events.so'
   > > 	no file '/usr/local/lib/lua/5.1/resty/worker/events.so'
   > > 	no file '/usr/local/openresty/luajit/lib/lua/5.1/resty/worker/events.so'
   > > 	no file '/usr/local/lib/lua/5.1/loadall.so'
   > > 	no file './resty/worker/events.so'
   > > 	no file '/usr/local/lib/lua/5.1/resty/worker/events.so'
   > > 	no file '/usr/local/openresty/luajit/lib/lua/5.1/resty/worker/events.so'
   > > 	no file '/usr/local/lib/lua/5.1/loadall.so'
   > > 	no file '/usr/local/apisix//deps/lib64/lua/5.1/resty.so'
   > > 	no file '/usr/local/apisix//deps/lib/lua/5.1/resty.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'
   > > 	no file '/usr/local/lib/lua/5.1/loadall.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'
   > > 	no file '/usr/local/lib/lua/5.1/loadall.so'
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > Moreover, I tried to compile in the centos7 arm64 container, but when I created a route and tried to connect, the same error occurred. CentOS\ Alpine \kylin V10 could not, the same error
   > > Is it possible that the path is wrong? I found that there are more "/" '/usr/local/apisix//'
   > > ```
   > > no file '/usr/local/apisix//deps/share/lua/5.1/resty/worker/events.lua'
   > > no file '/usr/local/apisix//deps/share/lua/5.1/resty/worker/events/init.lua'
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > cc @tokers @membphis @imjoey PTAL,
   > > I tried a lot of methods and encountered the same problem. Apisix(v2.4) can run, and dashboard(v2.5) can run and login.
   > > However, the created route cannot be accessed because apisix does not work properly.
   > 
   > @Jaycean I'm sorry for replying for you on time.By the way, have you solved the problem?
   > @imjoey Is there any good news for the problem?
   
   @Molio-tan Hi, I just tried the apisix v2.6 in your environment, the error is gone and everything is so smooth. FYI, I installed the apisix v2.6 under `/opt/ALB-V1.0/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