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

Updating PATH for launching Openresty #89

Closed
jordijoangimenez opened this issue May 22, 2024 · 3 comments · Fixed by #90
Closed

Updating PATH for launching Openresty #89

jordijoangimenez opened this issue May 22, 2024 · 3 comments · Fixed by #90
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@jordijoangimenez
Copy link
Contributor

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.

@jordijoangimenez jordijoangimenez added the documentation Improvements or additions to documentation label May 22, 2024
@dsilhavy
Copy link
Contributor

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

@dsilhavy
Copy link
Contributor

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

  • Execute as sudo
  • Add path to path of sudo user
  • Create a dedicated issue to handle this as part of the startup process. AS sets the path. Python alters env variable.

@davidjwbbc
Copy link
Contributor

Closed by PR #90

@github-project-automation github-project-automation bot moved this from In Progress to Done in Documentation Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
Status: Done
3 participants