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

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

Open
abmuslim opened this issue Sep 10, 2024 · 0 comments

Comments

@abmuslim
Copy link

abmuslim commented Sep 10, 2024

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?

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

No branches or pull requests

1 participant