OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: BiTRiP on March 13, 2019, 04:03:32 pm

Title: A Problem was detected....after adding Certificate Authority
Post by: BiTRiP on March 13, 2019, 04:03:32 pm
Hi,

I created a OpenVPN tunnel beween my OPNSense router and a remote Synology Router. The Synology is the server so OPN connects as client.
In order to get the link working I had to add an Authority with a certificate.
After successfully creating this authority I get error on login at OPNSense:

Code: [Select]
PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function OPNsense\OpenVPN\Api\ExportController::accountsAction(), 0 passed and exactly 1 expected in /usr/local/opnsense/mvc/app/controllers/OPNsense/OpenVPN/Api/ExportController.php:205
Stack trace:
#0 [internal function]: OPNsense\OpenVPN\Api\ExportController->accountsAction()
#1 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(OPNsense\OpenVPN\Api\ExportController), 'accountsAction', Array)
#2 [internal function]: Phalcon\Dispatcher->dispatch()
#3 /usr/local/opnsense/www/api.php(26): Phalcon\Mvc\Application->handle()
#4 {main}
  thrown in /usr/local/opnsense/mvc/app/controllers/OPNsense/OpenVPN/Api/ExportController.php on line 205

Any idea how to get rid of this error/bug?

Thanks in advance,
BiTRiP
Title: Re: A Problem was detected....after adding Certificate Authority
Post by: fabian on March 13, 2019, 04:41:02 pm
can you check if the URL of the request ends with a VPN id? (i. e. network tab of firefox)
Title: Re: A Problem was detected....after adding Certificate Authority
Post by: BiTRiP on March 13, 2019, 11:04:48 pm

Sorry, I don't know what you mean. Which URL?
Title: Re: A Problem was detected....after adding Certificate Authority
Post by: fabian on March 14, 2019, 05:53:43 am
The one which is called in background when you perform this action.
Title: Re: A Problem was detected....after adding Certificate Authority
Post by: BiTRiP on March 14, 2019, 10:48:55 am

I'm not requesting a special url. Just logging in onto OPNSense which goes fine but the crash reporter within OPNSense says there is an error.

(https://i.ibb.co/ZYVJpf3/Screenshot-2019-03-14-at-10-42-17.png)

By clicking for more information the crash reporter says the problem is as described above.

Thanks,
BiTRiP
Title: Re: A Problem was detected....after adding Certificate Authority
Post by: franco on March 14, 2019, 11:00:35 am
Which version is this then?


Cheers,
Franco
Title: Re: A Problem was detected....after adding Certificate Authority
Post by: BiTRiP on March 14, 2019, 02:02:47 pm

OPNsense 19.1.4-amd64

Thanks,
BiTRiP