delimitrou / DeathStarBench

Open-source benchmark suite for cloud microservices
Apache License 2.0
752 stars 418 forks source link

mediaMicroservices in K8 cluster: lua entry thread aborted: runtime error: unknown reason #345

Open abmuslim opened 2 months ago

abmuslim commented 2 months ago

I deployed the mediaMicroservice in my 3-node Kubernetes cluster. When trying to register movies and cast information using the following command:

python3 scripts/write_movie_info.py -c <path-to-casts.json> -m <path-to-movies.json> --server_address <nginx_server> && scripts/register_users.sh && scripts/register_movies.sh

The command runs successfully and outputs 18194 casts finished, 1000 movies finished. However, when I check the logs of my nginx-web-server pod, I see the following errors:

k logs nginx-web-server-579975cd6-9n59z -c nginx-web-server -n test --tail 50 .../openresty/nginx/lua-scripts/wrk2-api/movie/register.lua:36: in function 'RegisterMovie' content_by_lua(nginx.conf:77):3: in main chunk, client: 127.0.0.1, server: localhost, request: "POST /wrk2-api/movie/register HTTP/1.1", host: "127.0.0.1:8080" 2024/09/10 17:17:19 [error] 22#22: 95640 lua entry thread aborted: runtime error: unknown reason stack traceback: coroutine 0: [C]: in function 'error' /gen-lua/media_service_MovieIdService.lua:326: in function 'recv_RegisterMovieId' /gen-lua/media_service_MovieIdService.lua:299: in function 'RegisterMovieId' .../openresty/nginx/lua-scripts/wrk2-api/movie/register.lua:36: in function 'RegisterMovie' content_by_lua(nginx.conf:77):3: in main chunk, client: 127.0.0.1, server: localhost, request: "POST /wrk2-api/movie/register HTTP/1.1", host: "127.0.0.1:8080" 2024/09/10 17:17:19 [error] 8#8: 95642 lua entry thread aborted: runtime error: unknown reason stack traceback: coroutine 0: [C]: in function 'error' /gen-lua/media_service_MovieIdService.lua:326: in function 'recv_RegisterMovieId' /gen-lua/media_service_MovieIdService.lua:299: in function 'RegisterMovieId' .../openresty/nginx/lua-scripts/wrk2-api/movie/register.lua:36: in function 'RegisterMovie' content_by_lua(nginx.conf:77):3: in main chunk, client: 127.0.0.1, server: localhost, request: "POST /wrk2-api/movie/register HTTP/1.1", host: "127.0.0.1:8080" 2024/09/10 17:17:19 [error] 32#32: 95644 lua entry thread aborted: runtime error: unknown reason stack traceback: coroutine 0: [C]: in function 'error' /gen-lua/media_service_MovieIdService.lua:326: in function 'recv_RegisterMovieId' /gen-lua/media_service_MovieIdService.lua:299: in function 'RegisterMovieId' .../openresty/nginx/lua-scripts/wrk2-api/movie/register.lua:36: in function 'RegisterMovie' content_by_lua(nginx.conf:77):3: in main chunk, client: 127.0.0.1, server: localhost, request: "POST /wrk2-api/movie/register HTTP/1.1", host: "127.0.0.1:8080" 2024/09/10 17:17:19 [error] 8#8: 95646 lua entry thread aborted: runtime error: unknown reason stack traceback: coroutine 0: [C]: in function 'error' /gen-lua/media_service_MovieIdService.lua:326: in function 'recv_RegisterMovieId' /gen-lua/media_service_MovieIdService.lua:299: in function 'RegisterMovieId' .../openresty/nginx/lua-scripts/wrk2-api/movie/register.lua:36: in function 'RegisterMovie' content_by_lua(nginx.conf:77):3: in main chunk, client: 127.0.0.1, server: localhost, request: "POST /wrk2-api/movie/register HTTP/1.1", host: "127.0.0.1:8080" 2024/09/10 17:17:19 [error] 8#8: 95648 lua entry thread aborted: runtime error: unknown reason stack traceback: coroutine 0: [C]: in function 'error' /gen-lua/media_service_MovieIdService.lua:326: in function 'recv_RegisterMovieId' /gen-lua/media_service_MovieIdService.lua:299: in function 'RegisterMovieId' .../openresty/nginx/lua-scripts/wrk2-api/movie/register.lua:36: in function 'RegisterMovie' content_by_lua(nginx.conf:77):3: in main chunk, client: 127.0.0.1, server: localhost, request: "POST /wrk2-api/movie/register HTTP/1.1", host: "127.0.0.1:8080" 2024/09/10 17:17:19 [error] 22#22: 95650 lua entry thread aborted: runtime error: unknown reason stack traceback: coroutine 0: [C]: in function 'error' /gen-lua/media_service_MovieIdService.lua:326: in function 'recv_RegisterMovieId' /gen-lua/media_service_MovieIdService.lua:299: in function 'RegisterMovieId' .../openresty/nginx/lua-scripts/wrk2-api/movie/register.lua:36: in function 'RegisterMovie' content_by_lua(nginx.conf:77):3: in main chunk, client: 127.0.0.1, server: localhost, request: "POST /wrk2-api/movie/register HTTP/1.1", host: "127.0.0.1:8080

Has anyone faced a similar issue, or is there any guide that could help resolve this?