Skip to content

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

@matthieumarrast

Description

@matthieumarrast

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions