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

Bugs in mediaMicroservices #266

Open
He-Jingkai opened this issue Mar 20, 2023 · 1 comment
Open

Bugs in mediaMicroservices #266

He-Jingkai opened this issue Mar 20, 2023 · 1 comment

Comments

@He-Jingkai
Copy link

He-Jingkai commented Mar 20, 2023

I got some errors while running media-microservices. I used write_movie_info.py to initialize it, and I found all "upload_movie_info"(/wrk2-api/movie-info/write) operations failed and 5 in 1000 "upload_plot"("/wrk2-api/plot/write") failed because of Internal Server Error.

I run it on k8s and used the helm chart.

Logs in nginx:

$ kubectl logs -n media-microsvcs svc/nginx-web-server
Defaulted container "nginx-web-server" out of: nginx-web-server, alpine-container (init)
2023/03/20 11:09:49 [error] 21#21: *481 [lua] write.lua:29: WriteMovieInfo(): Empty body, client: 10.32.0.1, server: localhost, request: "POST /wrk2-api/movie-info/write HTTP/1.1", host: "nginx-web-server.media-microsvcs:8080"
2023/03/20 11:09:49 [error] 31#31: *543 [lua] write.lua:29: WriteMovieInfo(): Empty body, client: 10.32.0.1, server: localhost, request: "POST /wrk2-api/movie-info/write HTTP/1.1", host: "nginx-web-server.media-microsvcs:8080"
2023/03/20 11:09:49 [error] 13#13: *558 [lua] write.lua:29: WriteMovieInfo(): Empty body, client: 10.32.0.1, server: localhost, request: "POST /wrk2-api/movie-info/write HTTP/1.1", host: "nginx-web-server.media-microsvcs:8080"
2023/03/20 11:09:50 [error] 18#18: *476 [lua] write.lua:29: WriteMovieInfo(): Empty body, client: 10.32.0.1, server: localhost, request: "POST /wrk2-api/movie-info/write HTTP/1.1", host: "nginx-web-server.media-microsvcs:8080"
2023/03/20 11:09:50 [error] 28#28: *607 [lua] write.lua:29: WriteMovieInfo(): Empty body, client: 10.32.0.1, server: localhost, request: "POST /wrk2-api/movie-info/write HTTP/1.1", host: "nginx-web-server.media-microsvcs:8080"
2023/03/20 11:09:50 [error] 18#18: *431 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/thrift/TBinaryProtocol.lua:135: bad argument #1 to 'len' (string expected, got userdata)
stack traceback:
coroutine 0:
        [builtin:len]: in function 'len'
        /usr/local/openresty/lualib/thrift/TBinaryProtocol.lua:135: in function 'writeString'
        /gen-lua/media_service_MovieInfoService.lua:186: in function 'write'
        /gen-lua/media_service_MovieInfoService.lua:543: in function 'send_WriteMovieInfo'
        /gen-lua/media_service_MovieInfoService.lua:525: in function 'WriteMovieInfo'
        ...penresty/nginx/lua-scripts/wrk2-api/movie-info/write.lua:56: in function 'WriteMovieInfo'
        content_by_lua(nginx.conf:91):3: in main chunk, client: 10.32.0.1, server: localhost, request: "POST /wrk2-api/movie-info/write HTTP/1.1", host: "nginx-web-server.media-microsvcs:8080"
2023/03/20 11:09:50 [error] 8#8: *451 [lua] write.lua:29: WriteMovieInfo(): Empty body, client: 10.32.0.1, server: localhost, request: "POST /wrk2-api/movie-info/write HTTP/1.1", host: "nginx-web-server.media-microsvcs:8080"
2023/03/20 11:09:50 [error] 9#9: *421 [lua] write.lua:29: WriteMovieInfo(): Empty body, client: 10.32.0.1, server: localhost, request: "POST /wrk2-api/movie-info/write HTTP/1.1", host: "nginx-web-server.media-microsvcs:8080"
2023/03/20 11:09:50 [error] 21#21: *499 [lua] write.lua:29: WriteMovieInfo(): Empty body, client: 10.32.0.1, server: localhost, request: "POST /wrk2-api/movie-info/write HTTP/1.1", host: "nginx-web-server.media-microsvcs:8080"
2023/03/20 11:09:50 [error] 13#13: *544 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: 10.32.0.1, server: localhost, request: "POST /wrk2-api/movie/register HTTP/1.1", host: "nginx-web-server.media-microsvcs:8080"
2023/03/20 11:09:50 [error] 8#8: *451 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/thrift/TBinaryProtocol.lua:135: bad argument #1 to 'len' (string expected, got userdata)
stack traceback:
coroutine 0:
        [builtin:len]: in function 'len'
        /usr/local/openresty/lualib/thrift/TBinaryProtocol.lua:135: in function 'writeString'
        /gen-lua/media_service_MovieInfoService.lua:186: in function 'write'
        /gen-lua/media_service_MovieInfoService.lua:543: in function 'send_WriteMovieInfo'
        /gen-lua/media_service_MovieInfoService.lua:525: in function 'WriteMovieInfo'
        ...penresty/nginx/lua-scripts/wrk2-api/movie-info/write.lua:56: in function 'WriteMovieInfo'
        content_by_lua(nginx.conf:91):3: in main chunk, client: 10.32.0.1, server: localhost, request: "POST /wrk2-api/movie-info/write HTTP/1.1", host: "nginx-web-server.media-microsvcs:8080"
2023/03/20 11:09:50 [error] 24#24: *436 [lua] write.lua:29: WriteMovieInfo(): Empty body, client: 10.32.0.1, server: localhost, request: "POST /wrk2-api/movie-info/write HTTP/1.1", host: "nginx-web-server.media-microsvcs:8080"
2023/03/20 11:09:50 [error] 31#31: *543 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: 10.32.0.1, server: localhost, request: "POST /wrk2-api/movie/register HTTP/1.1", host: "nginx-web-server.media-microsvcs:8080"
2023/03/20 11:09:50 [error] 8#8: *577 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: 10.32.0.1, server: localhost, request: "POST /wrk2-api/movie/register HTTP/1.1", host: "nginx-web-server.media-microsvcs:8080"
2023/03/20 11:09:51 [error] 9#9: *441 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: 10.32.0.1, server: localhost, request: "POST /wrk2-api/movie/register HTTP/1.1", host: "nginx-web-server.media-microsvcs:8080"
2023/03/20 11:09:51 [error] 9#9: *458 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/thrift/TBinaryProtocol.lua:135: bad argument #1 to 'len' (string expected, got userdata)
stack traceback:
coroutine 0:
        [builtin:len]: in function 'len'
        /usr/local/openresty/lualib/thrift/TBinaryProtocol.lua:135: in function 'writeString'
        /gen-lua/media_service_MovieInfoService.lua:186: in function 'write'
        /gen-lua/media_service_MovieInfoService.lua:543: in function 'send_WriteMovieInfo'
        /gen-lua/media_service_MovieInfoService.lua:525: in function 'WriteMovieInfo'
        ...penresty/nginx/lua-scripts/wrk2-api/movie-info/write.lua:56: in function 'WriteMovieInfo'
        content_by_lua(nginx.conf:91):3: in main chunk, client: 10.32.0.1, server: localhost, request: "POST /wrk2-api/movie-info/write HTTP/1.1", host: "nginx-web-server.media-microsvcs:8080"
2023/03/20 11:09:51 [error] 31#31: *427 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: 10.32.0.1, server: localhost, request: "POST /wrk2-api/movie/register HTTP/1.1", host: "nginx-web-server.media-microsvcs:8080"
@He-Jingkai He-Jingkai changed the title Bugs in mediamicroservices Bugs in mediaMicroservices Mar 20, 2023
@He-Jingkai
Copy link
Author

The problem is same as #233

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