OPNsense Forum

English Forums => General Discussion => Topic started by: amp on December 20, 2021, 06:43:12 pm

Title: SOLVED - ACME plugin errors on configutation reload after new install 21.7.7
Post by: amp on December 20, 2021, 06:43:12 pm
Dear all,

i had to re-install our opnsense on a Netboard A10 because of a failing SD card. I installed a fresh 21.7.7 from a nano image and loaded the backup up configuration.

All went fine so far only the acme plugin gives errors:

/usr/local/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php:572:
[OPNsense\AcmeClient\AcmeClient:validations.validation.88315961-72eb-48dd-b681-e7f966e36ce3.tlsalpn_acme_interface] option not in list
[OPNsense\AcmeClient\AcmeClient:validations.validation.7b2234ad-7d70-4fdf-90c3-4a9ca0bcfa23.tlsalpn_acme_interface] option not in list


when i test the config. Also i can't change any settings in the plugin as it always throws this error and asks me to correct it.

I checke the config.xml and find the validation method "7b2234ad-7d70-4fdf-90c3-4a9ca0bcfa23" under certificates and also under "validations".

The error points out to the TLS-ALPN-01 validation method which i don't use and have it not configured.

How can i fix this in the config?

I already submmitted the bug report via WebGUI, here is again the PHP Errors:

Code: [Select]
[20-Dec-2021 17:30:51 Europe/Berlin] Phalcon\Validation\Exception: [OPNsense\AcmeClient\AcmeClient:validations.validation.88315961-72eb-48dd-b681-e7f966e36ce3.tlsalpn_acme_interface] option not in list
[OPNsense\AcmeClient\AcmeClient:validations.validation.7b2234ad-7d70-4fdf-90c3-4a9ca0bcfa23.tlsalpn_acme_interface] option not in list
 in /usr/local/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php:572
Stack trace:
#0 /usr/local/opnsense/mvc/app/controllers/OPNsense/AcmeClient/Api/ServiceController.php(224): OPNsense\Base\BaseModel->serializeToConfig()
#1 [internal function]: OPNsense\AcmeClient\Api\ServiceController->resetAction()
#2 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->callActionMethod(Object(OPNsense\AcmeClient\Api\ServiceController), 'resetAction', Array)
#3 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->dispatch()
#4 /usr/local/opnsense/www/api.php(26): Phalcon\Mvc\Application->handle('/api/acmeclient...')
#5 {main}
[20-Dec-2021 18:31:25 Europe/Berlin] Phalcon\Validation\Exception: [OPNsense\AcmeClient\AcmeClient:validations.validation.88315961-72eb-48dd-b681-e7f966e36ce3.tlsalpn_acme_interface] option not in list
 in /usr/local/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php:572
Stack trace:
#0 /usr/local/opnsense/mvc/app/controllers/OPNsense/Base/ApiMutableModelControllerBase.php(256): OPNsense\Base\BaseModel->serializeToConfig()
#1 /usr/local/opnsense/mvc/app/controllers/OPNsense/Base/ApiMutableModelControllerBase.php(422): OPNsense\Base\ApiMutableModelControllerBase->save()
#2 /usr/local/opnsense/mvc/app/controllers/OPNsense/AcmeClient/Api/ValidationsController.php(66): OPNsense\Base\ApiMutableModelControllerBase->delBase('validations.val...', '7b2234ad-7d70-4...')
#3 [internal function]: OPNsense\AcmeClient\Api\ValidationsController->delAction('7b2234ad-7d70-4...')
#4 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->callActionMethod(Object(OPNsense\AcmeClient\Api\ValidationsController), 'delAction', Array)
#5 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->dispatch()
#6 /usr/local/opnsense/www/api.php(26): Phalcon\Mvc\Application->handle('/api/acmeclient...')
#7 {main}

Also, when i try to reset the Acme client settings it won't do it because if the given error - i should first fix the error.

Thanks for your support! Alex
Title: Re: ACME plugin errors on configutation reload after new install 21.7.7
Post by: Fright on December 20, 2021, 08:31:34 pm
hi
can you try fixes?
https://github.com/opnsense/plugins/issues/2712#issuecomment-997464895
please share results
Title: Re: ACME plugin errors on configutation reload after new install 21.7.7
Post by: amp on December 20, 2021, 10:05:44 pm
Hi Fright,

your mentioned patch fixed my errors. Thanks! I mark this as solved.

Alex
Title: Re: SOLVED - ACME plugin errors on configutation reload after new install 21.7.7
Post by: Fright on December 21, 2021, 08:15:19 am
thanks!