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

Development branch: Missing Nginx mime.types after clean installation #83

Closed
dsilhavy opened this issue Jan 11, 2024 · 2 comments · Fixed by #90
Closed

Development branch: Missing Nginx mime.types after clean installation #83

dsilhavy opened this issue Jan 11, 2024 · 2 comments · Fixed by #90
Assignees
Labels
bug Something isn't working

Comments

@dsilhavy
Copy link
Contributor

Description

I am doing a clean installation of the Application Server on a freshy installed Ubuntu 22 machine using the current development branch. Latest commit: 4ebaa7b

I ran into an issue with missing nginx mime.types when starting the Application Server with sudo 5gms-application-server

The following error occured:

ERROR:NginxWebProxy:nginx: [emerg] open() "/etc/nginx/mime.types" failed (2: No such file or directory) in /tmp/rt_5gms_as.conf:53

INFO:rt-5gms-as:Web proxy process exited, has been restarted

I did not have a previous version of nginx installed and only installed openresty (which includes nginx).

Solution

The solution is to include the mime.types located in the nginx installation of openresty. For that reason we need to adjust nginx.conf.tmpl prior to the installation of the Application Server:

include             /usr/local/openresty/nginx/conf/mime.types;
@davidjwbbc
Copy link
Contributor

I think the AS python should check which mime.types file is available and use a variable to set that path in the nginx.conf.tmpl.

davidjwbbc added a commit to davidjwbbc/rt-5gms-application-server that referenced this issue Apr 30, 2024
@davidjwbbc davidjwbbc moved this from Todo to In Progress in 5GMS: Basic media stream handling (MVP#1) Apr 30, 2024
davidjwbbc added a commit to davidjwbbc/rt-5gms-application-server that referenced this issue Jun 7, 2024
davidjwbbc added a commit to davidjwbbc/rt-5gms-application-server that referenced this issue Jun 7, 2024
@davidjwbbc
Copy link
Contributor

Closed with merge of PR #90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
4 participants