[SOLVED] NGINX does'n start after update to 22.1.9

Started by muchacha_grande, June 23, 2022, 06:12:43 PM

Previous topic - Next topic
I had the same issue this morning. Tried to revert, upgrade and patch as suggested but it didn't work.

I commented "js_include" directive  in /usr/local/etc/nginx/nginx.conf and nginx finally started (v1.27).

I stay with this temp fix for now, waiting for a patch.

Dear all,
I tried the 3 steps and the jsinclude problem went away. But another one came up

BIO_new_file("/usr/local/etc/dh-parameters.4096") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/etc/dh-parameters.4096','r') error:2006D080:BIO routines:BIO_new_file:no such file)

Does anyone have a clue? Thanks!

Just updated to 22.1.10 and can't start NGINX anymore...
unknown directive "js_include" in /usr/local/etc/nginx/nginx.conf:40

Restoring to older version of NGINX does not help (opnsense-revert -r 22.1.8 nginx):
SyntaxError: Illegal export statement in ngx_functions.js:51, included in /usr/local/etc/nginx/nginx.conf:40

Which mirror are you using or are you managing a mirror yourself? It was fixed in a hotfix update.


Cheers,
Franco

Quote from: franco on July 12, 2022, 08:48:49 AM
Which mirror are you using or are you managing a mirror yourself? It was fixed in a hotfix update.


Cheers,
Franco
Hi,

I'm coming from OPNsense 22.1.8_1-amd64 using mirror OPNsense in Amsterdam.
When I check for update I only see 22.1.10, so I skipped 22.1.9 and 22.1.9_1.
Is there a 22.1.10_1?

It looks ok to me. What version is your nginx plugin?

Quote from: franco on July 12, 2022, 12:54:12 PM
It looks ok to me. What version is your nginx plugin?
This is what I get (amongst the rest of the packages) when I open the update page:
nginx   1.20.2_9,2   1.22.0_6,2   upgrade   OPNsense

I mean the plugin os-nginx. Maybe you locked it.


Cheers,
Franco

Quote from: franco on July 12, 2022, 03:04:10 PM
I mean the plugin os-nginx. Maybe you locked it.


Cheers,
Franco
This is now: os-nginx (installed)   1.27   902KiB   OPNsense   Nginx HTTP server and reverse proxy
You want to know what version it is when I've updated to 22.1.10 again?
If so, I think I can try again this evening.

Yes so the latest version is 1.28_1 as you can see from the link:

http://mirror.ams1.nl.leaseweb.net/opnsense/FreeBSD%3A13%3Aamd64/22.1/latest/All/os-nginx-1.28_1.pkg

1.27 definitely doesn't work with the latest nginx software shipped.

Quote from: franco on July 12, 2022, 03:36:53 PM
Yes so the latest version is 1.28_1 as you can see from the link:

http://mirror.ams1.nl.leaseweb.net/opnsense/FreeBSD%3A13%3Aamd64/22.1/latest/All/os-nginx-1.28_1.pkg

1.27 definitely doesn't work with the latest nginx software shipped.
Just updated again 22.1.10
NGINX won't start: os-nginx (installed)   1.28_1   908KiB   OPNsense   Nginx HTTP server and reverse proxy

same error: unknown directive "js_include" in /usr/local/etc/nginx/nginx.conf:40

If you apply your nginx configuration it should work, otherwise it just keeps the old one until reboot.


Cheers,
Franco

Quote from: franco on July 12, 2022, 08:35:10 PM
If you apply your nginx configuration it should work, otherwise it just keeps the old one until reboot.


Cheers,
Franco
Hi,

This is weird, I just loaded my snapshot (I run OPNsense in an ESXi VM) of my last test (faster then updating again from 22.1.8_1) and this time everyting booted and started fine. I could swear I did a reboot yesterday after I discoverd the problem...