OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 22.1 Legacy Series »
  • [SOLVED] NGINX does'n start after update to 22.1.9
« previous next »
  • Print
Pages: 1 2 [3]

Author Topic: [SOLVED] NGINX does'n start after update to 22.1.9  (Read 11562 times)

vinz81

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: NGINX does'n start after update to 22.1.9
« Reply #30 on: June 27, 2022, 07:14:21 pm »
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.
Logged

jimlano

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: [SOLVED] NGINX does'n start after update to 22.1.9
« Reply #31 on: July 10, 2022, 10:13:06 pm »
Dear all,
I tried the 3 steps and the jsinclude problem went away. But another one came up

Code: [Select]
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!
Logged

marcelmah

  • Jr. Member
  • **
  • Posts: 61
  • Karma: 3
    • View Profile
Re: [SOLVED] NGINX does'n start after update to 22.1.9
« Reply #32 on: July 11, 2022, 06:41:22 pm »
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
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17749
  • Karma: 1620
    • View Profile
Re: [SOLVED] NGINX does'n start after update to 22.1.9
« Reply #33 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
Logged

marcelmah

  • Jr. Member
  • **
  • Posts: 61
  • Karma: 3
    • View Profile
Re: [SOLVED] NGINX does'n start after update to 22.1.9
« Reply #34 on: July 12, 2022, 12:36:38 pm »
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?
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17749
  • Karma: 1620
    • View Profile
Re: [SOLVED] NGINX does'n start after update to 22.1.9
« Reply #35 on: July 12, 2022, 12:54:12 pm »
It looks ok to me. What version is your nginx plugin?
Logged

marcelmah

  • Jr. Member
  • **
  • Posts: 61
  • Karma: 3
    • View Profile
Re: [SOLVED] NGINX does'n start after update to 22.1.9
« Reply #36 on: July 12, 2022, 12:55:35 pm »
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
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17749
  • Karma: 1620
    • View Profile
Re: [SOLVED] NGINX does'n start after update to 22.1.9
« Reply #37 on: July 12, 2022, 03:04:10 pm »
I mean the plugin os-nginx. Maybe you locked it.


Cheers,
Franco
Logged

marcelmah

  • Jr. Member
  • **
  • Posts: 61
  • Karma: 3
    • View Profile
Re: [SOLVED] NGINX does'n start after update to 22.1.9
« Reply #38 on: July 12, 2022, 03:08:10 pm »
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.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17749
  • Karma: 1620
    • View Profile
Re: [SOLVED] NGINX does'n start after update to 22.1.9
« Reply #39 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.
Logged

marcelmah

  • Jr. Member
  • **
  • Posts: 61
  • Karma: 3
    • View Profile
Re: [SOLVED] NGINX does'n start after update to 22.1.9
« Reply #40 on: July 12, 2022, 06:54:10 pm »
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
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17749
  • Karma: 1620
    • View Profile
Re: [SOLVED] NGINX does'n start after update to 22.1.9
« Reply #41 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
Logged

marcelmah

  • Jr. Member
  • **
  • Posts: 61
  • Karma: 3
    • View Profile
Re: [SOLVED] NGINX does'n start after update to 22.1.9
« Reply #42 on: July 12, 2022, 09:27:05 pm »
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...
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17749
  • Karma: 1620
    • View Profile
Re: [SOLVED] NGINX does'n start after update to 22.1.9
« Reply #43 on: July 13, 2022, 09:14:01 am »
Solved is solved :)
Logged

  • Print
Pages: 1 2 [3]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 22.1 Legacy Series »
  • [SOLVED] NGINX does'n start after update to 22.1.9
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2