musa najami - 2022-06-09

hello after a clean install on a clean ubuntu server 20.04 everything works
fine, we built our own OpenWRT for tp-link archer c7 with meshdesk exactly
as explained in the documentation.
everything is fine except for "kick user off" and "close session".
it gives the following errors in the console:

GET
http://xx.xx.xx.xx/cake3/rd_cake/radaccts/close_open.json?_dc=1654729694398&1=1&token=b4c6ac81-8c7c-4802-b50a-0a6380555b50&sel_language=4_4
500 (Internal Server Error)

and in the error log there are the following errors:

Error: [Error] Call to a member function setTimezone() on null
(/var/www/rdcore/cake3/rd_cake/src/Controller/RadacctsController.php:309)

and

Error: [PDOException] SQLSTATE[23000]: Integrity constraint violation: 1062
Duplicate entry '' for key 'acctuniqueid'
(/var/www/rdcore/cake3/rd_cake/vendor/cakephp/cakephp/src/Database/Statement/MysqlStatement.php:37)

we are using :
10.3.34-MariaDB-0ubuntu0.20.04.1
ubuntu server 20.04
nginx/1.18.0 (Ubuntu)
PHP 7.4.3 (cli) (built: Mar 2 2022 15:36:52) ( NTS )
php7.4-fpm
FreeRADIUS Version 3.0.20, for host x86_64-pc-linux-gnu
RADIUSdesk Version 21-42-1