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

"lua entry thread aborted: runtime error" while trying to inject file through HTTP (mfdata loaded as interactive_profile) #397

Open
matthieumarrast opened this issue Jun 9, 2021 · 0 comments
Assignees

Comments

@matthieumarrast
Copy link
Contributor

If the MFDATA environment is loaded/activated using the interactive_profile (source {MFDATA_HOME}/share/interative_profile)

When I try to inject a file to mfdata through the HTTP protocol, url http://localhost:9091/incoming/, I face the error :

2021/06/09 15:20:09 [error] 21948#21948: *2 lua entry thread aborted: runtime error: /opt/metwork-mfext-0.9/opt/openresty/lualib/mfutil.lua:10: libmfutil.so: cannot open shared object file: No such file or directory
stack traceback:
coroutine 0:
        [C]: in function 'require'
        content_by_lua(nginx.conf:45):2: in main chunk, client: 127.0.0.1, server: , request: "PUT /incoming/file.txt HTTP/1.1", host: "localhost:9091"

Note: using url http://localhost:9091/ raise different error :

2021/06/09 16:04:12 [error] 21946#21946: *4 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:45):2: attempt to call a userdata value
stack traceback:
coroutine 0:
        content_by_lua(nginx.conf:45): in main chunk, client: 127.0.0.1, server: , request: "PUT /file.txt HTTP/1.1", host: "localhost:9091"

No error while loading the environment using the mfdata user (su - mfdata)

@thebaptiste thebaptiste changed the title "lua entry thread aborted: runtime error" while trying to inject file through HTTP (mfdata loaded as interative_profile) "lua entry thread aborted: runtime error" while trying to inject file through HTTP (mfdata loaded as interactive_profile) Jan 16, 2023
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

2 participants