5G-MAG / rt-5gms-application-server

5G Media Streaming - Application Server
https://www.5g-mag.com/streaming
Other
4 stars 5 forks source link

Updating PATH for launching Openresty #89

Closed jordijoangimenez closed 2 weeks ago

jordijoangimenez commented 1 month ago

Describe the bug When running the Application Server following the instructions it looks like the export PATH is not taking effect and running the AS produces the error of the "lua_package_path" missing.

Talking to @aaronmontilla, he experienced the same issue, just reported here:

aamonvi@aamonvi:~/rt-5gms-application-server$ sudo 5gms-application-server
[2024-05-22 13:26:53 +0200] [3977] [INFO] Running on http://127.0.0.1:7777/ (CTRL + C to quit)
INFO:hypercorn.error:Running on http://127.0.0.1:7777/ (CTRL + C to quit)
INFO:NginxWebProxy:
ERROR:NginxWebProxy:nginx: [emerg] unknown directive "lua_package_path" in /tmp/rt_5gms_as.conf:48
INFO:rt-5gms-as:Web proxy process exited, has been restarted

Remedy We are able to solve this by executing the following: sudo PATH="/usr/local/openresty/nginx/sbin:$PATH" 5gms-application-server (probably also works without sudo).

Not sure if we are doing something wrong that makes executing PATH="/usr/local/openresty/nginx/sbin:$PATH" export PATH have no effect.

dsilhavy commented 1 month ago

Related discussion: https://github.com/orgs/5G-MAG/discussions/72

dsilhavy commented 1 month ago

Adjust the documentation here: https://github.com/5G-MAG/rt-5gms-application-server?tab=readme-ov-file#running

davidjwbbc commented 2 weeks ago

Closed by PR #90