nginx issue

alexbonazzi

Dabbler
Joined
May 17, 2021
Messages
12
I have TrueNAS Scale 22.12.3.3 and I reinstalled nginx 2.10.4_1.0.15 and put data and configuration files in a Host Folder (i.e. /mnt/disk1/disk2/nginx). when I start nginx is stuck in deploying and never come online. Anyone can suggest how to solve ?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
I reinstalled nginx 2.10.4_1.0.15
If that's a reinstall, what was installed before?

How did you install it? TrueCharts? Launch Docker Image?
 

alexbonazzi

Dabbler
Joined
May 17, 2021
Messages
12
It stops deploying 1 month ago.
I tried reinstalling official end truecharts apps with same result.
Now I reinstalled witout using host path but nothing changes.
if I launch from pod shell nginx this is result.

"nginx: [emerg] open() "/etc/nginx/conf.d/include/resolvers.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:52"
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
/etc/nginx/nginx.conf:52
So it appears line 52 of the config file points to a file (/etc/nginx/conf.d/include/resolvers.conf) which doesn't exist...

I don't think I see that same error, but the way forward would seem to be to remove that line from that file.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Also, you mean nginx proxy manager, right?
 

alexbonazzi

Dabbler
Joined
May 17, 2021
Messages
12
So it appears line 52 of the config file points to a file (/etc/nginx/conf.d/include/resolvers.conf) which doesn't exist...

I don't think I see that same error, but the way forward would seem to be to remove that line from that file.
I can't find any editor in pod how to have one ? and how to make this change permanent ?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
I can't find any editor in pod how to have one ? and how to make this change permanent ?
I would start by creating an empty file in the expected location instead...

use

touch /etc/nginx/conf.d/include/resolvers.conf

Making it permanent is a whole different proposition as I haven't yet worked out why yours would be broken and mine isn't... perhaps that file is automatically created based on some DNS settings on the host.
 

alexbonazzi

Dabbler
Joined
May 17, 2021
Messages
12
I would start by creating an empty file in the expected location instead...

use

touch /etc/nginx/conf.d/include/resolvers.conf

Making it permanent is a whole different proposition as I haven't yet worked out why yours would be broken and mine isn't... perhaps that file is automatically created based on some DNS settings on the host.
nginx starts now thanks.
At login I got bad gateway now
 

alexbonazzi

Dabbler
Joined
May 17, 2021
Messages
12
I would start by creating an empty file in the expected location instead...

use

touch /etc/nginx/conf.d/include/resolvers.conf

Making it permanent is a whole different proposition as I haven't yet worked out why yours would be broken and mine isn't... perhaps that file is automatically created based on some DNS settings on the host.
I added a resolver directive and now I got this.

nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/npm-3/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/npm-3/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700

alexbonazzi

Dabbler
Joined
May 17, 2021
Messages
12
Solved certificate. Now at login I get bad gateway and took time many mintues to be active. Then when I add a host I get internal error.
 
Top