OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 22.7 Legacy Series »
  • Upgrade from 22.1.10 went fine, apart from HAproxy warnings
« previous next »
  • Print
Pages: [1]

Author Topic: Upgrade from 22.1.10 went fine, apart from HAproxy warnings  (Read 2576 times)

meyergru

  • Hero Member
  • *****
  • Posts: 1770
  • Karma: 172
  • IT Aficionado
    • View Profile
    • congenio
Upgrade from 22.1.10 went fine, apart from HAproxy warnings
« on: July 28, 2022, 04:56:05 pm »
Seems I go first here...

Upgraded a few systems from 22.1.10 to 22.7 with only a few errors from HAproxy which like depreciation warnings because of the new PHP version - no worries, HAproxy works as before.

Good work!
Logged
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 440 up, Bufferbloat A+

schnerring

  • Newbie
  • *
  • Posts: 23
  • Karma: 11
    • View Profile
    • Michael Schnerring - Software Engineer
Re: Upgrade from 22.1.10 went fine, apart from HAproxy warnings
« Reply #1 on: July 28, 2022, 06:59:57 pm »
I follwed the popular HAProxy + Let's Encrypt Wildcard Certificates + 100% A+ Rating tutorial.

Some PHP errors are reported by OPNsense:

Code: [Select]
[28-Jul-2022 16:47:15 Etc/UTC] PHP Deprecated:  Required parameter $expression follows optional parameter $description in /usr/local/opnsense/mvc/app/models/OPNsense/HAProxy/HAProxy.php on line 147
[28-Jul-2022 16:47:15 Etc/UTC] PHP Deprecated:  Required parameter $testType follows optional parameter $description in /usr/local/opnsense/mvc/app/models/OPNsense/HAProxy/HAProxy.php on line 176
[28-Jul-2022 16:47:15 Etc/UTC] PHP Deprecated:  Required parameter $type follows optional parameter $description in /usr/local/opnsense/mvc/app/models/OPNsense/HAProxy/HAProxy.php on line 176
[28-Jul-2022 16:47:15 Etc/UTC] PHP Deprecated:  Required parameter $address follows optional parameter $description in /usr/local/opnsense/mvc/app/models/OPNsense/HAProxy/HAProxy.php on line 204
[28-Jul-2022 16:47:15 Etc/UTC] PHP Deprecated:  Required parameter $port follows optional parameter $description in /usr/local/opnsense/mvc/app/models/OPNsense/HAProxy/HAProxy.php on line 204
[28-Jul-2022 16:47:15 Etc/UTC] PHP Deprecated:  Required parameter $mode follows optional parameter $description in /usr/local/opnsense/mvc/app/models/OPNsense/HAProxy/HAProxy.php on line 204
[28-Jul-2022 16:47:15 Etc/UTC] PHP Deprecated:  Required parameter $name follows optional parameter $enabled in /usr/local/opnsense/mvc/app/models/OPNsense/HAProxy/HAProxy.php on line 230
[28-Jul-2022 16:47:15 Etc/UTC] PHP Deprecated:  Required parameter $mode follows optional parameter $enabled in /usr/local/opnsense/mvc/app/models/OPNsense/HAProxy/HAProxy.php on line 230
[28-Jul-2022 16:47:15 Etc/UTC] PHP Deprecated:  Required parameter $algorithm follows optional parameter $enabled in /usr/local/opnsense/mvc/app/models/OPNsense/HAProxy/HAProxy.php on line 230

Those probably are the same errors you're seeing. But it still works!
Logged

schnerring

  • Newbie
  • *
  • Posts: 23
  • Karma: 11
    • View Profile
    • Michael Schnerring - Software Engineer
Re: Upgrade from 22.1.10 went fine, apart from HAproxy warnings
« Reply #2 on: July 28, 2022, 07:39:17 pm »
A PR has already been merged to fix the issue. So all we have to do is wait for a new haproxy release.
Logged

deeler

  • Newbie
  • *
  • Posts: 15
  • Karma: 1
    • View Profile
Re: Upgrade from 22.1.10 went fine, apart from HAproxy warnings
« Reply #3 on: July 29, 2022, 07:45:39 am »
I have these errors to, but also HAproxy not working
Logged

deeler

  • Newbie
  • *
  • Posts: 15
  • Karma: 1
    • View Profile
Re: Upgrade from 22.1.10 went fine, apart from HAproxy warnings
« Reply #4 on: July 29, 2022, 07:46:50 am »
this is the error seen on the GUI:

Code: [Select]
An API exception occurred
/usr/local/opnsense/mvc/app/controllers/OPNsense/Base/ApiControllerBase.php:159: Error at /usr/local/opnsense/mvc/app/models/OPNsense/HAProxy/HAProxy.php:147 - Required parameter $expression follows optional parameter $description (errno=8192)

after clicking 'OK' the pages still show, but all config is empty
Logged

Re4mstr

  • Newbie
  • *
  • Posts: 6
  • Karma: 2
    • View Profile
Re: Upgrade from 22.1.10 went fine, apart from HAproxy warnings
« Reply #5 on: July 29, 2022, 08:04:05 am »
I have the exact issue.

Except for HAproxy, everything works..
Logged
HP EliteDesk 800 G2 Mini - i5 3.2Ghz, 8GB RAM, 1TB SSD

peysche

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: Upgrade from 22.1.10 went fine, apart from HAproxy warnings
« Reply #6 on: January 06, 2023, 04:31:55 pm »
Hi,

I upgradet a old System this Days to 22.7_10.2.

HAProxy Seams to work fine, but as soon as i add a new Condition or Rule they will not get written into /usr/local/etc/haproxy.conf.staging or /usr/local/etc/haproxy.conf


I can not see anything pointing to an error in logs or config validation.

Existing Rules/Conditions can be modified, and are written into the config for HAProxy.


Did someone have the same experience ?


My workaround currently is to mod the config Files manually.

Thx
Peysche
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 22.7 Legacy Series »
  • Upgrade from 22.1.10 went fine, apart from HAproxy warnings
 

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