Giter VIP home page Giter VIP logo

radiusdesk / rdcore Goto Github PK

View Code? Open in Web Editor NEW
50.0 9.0 26.0 126.78 MB

A Cutting-Edge Management System for FreeRADIUS, OpenWrt, and Batman-adv Mesh Networks

Home Page: https://www.radiusdesk.com

License: GNU General Public License v3.0

JavaScript 24.82% SCSS 1.41% CSS 63.88% HTML 0.99% Shell 0.02% Batchfile 0.01% PHP 8.74% Perl 0.08% Ruby 0.01% Lua 0.06%
freeradius-webinterface freeradius mesh-networks batman-adv openwrt mesh-simplification wisp isp

rdcore's Introduction

The recommended Operating System to develop and run RdCore on is Ubuntu

Installing RdCore on Ubuntu 20.04

rdcore's People

Contributors

dirkvanderwalt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rdcore's Issues

How to Upgrade Radiusdesk from 16.04 working

Hello, i have Ubuntu 16.04 with a Radiusdesk working and a stablished DB with MySQL

Want to upgrade to the new graphic interface of RadiusDesk, and want to know how to do it before take down the stablished server

Rgds

Hotspot not responding in Chrome ver 100

Is it possible and how to solve the problem: Hotspot is not responding.
This problem occurred with the new version (100th) of the Chrome browser. The same problem occurs on both mobile and desktop versions where Chrome is the default browser (ver 100.)

Mac address authentication issue

Device used : MikroTik

Issue: Devices that are registered via the login page are able to connect to hotspot with soft limit applied although it is set in radiusdesk as hard limit. Looks like as long as that mac address is registered, that device can be able to connect although daily limit has been reached. This applies also in click to connect where registered device will always can connect although they need to authenticate every time set in radiusdesk, in other word soft limit was applied.

Openwrt

Hy @dirkvanderwalt

Openwrt 22.03.3
Mariadb
Php8

i tried to install radiusdesk on openwrt but there is a problem.

i see in the php8 makefile there are two options icu and icu-full i currently use icu

Request URL: /
Client IP: 192.168.1.242
2023-04-09 08:37:09 error: [IntlException] Constructor failed in /www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/I18n/Number.php on line 397
Stack Trace:
- /www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/I18n/Number.php:397
- /www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/I18n/Number.php:96
- /www/rdcore/cake4/rd_cake/vendor/cakephp/debug_kit/src/Panel/TimerPanel.php:125
- /www/rdcore/cake4/rd_cake/vendor/cakephp/debug_kit/src/ToolbarService.php:296
- /www/rdcore/cake4/rd_cake/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php:67
- /www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:73
- /www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:58
- /www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Server.php:90
- /www/rdcore/cake4/rd_cake/webroot/index.php:40

Screenshot_2023-04-09_163751

bootstrap5 login page voucher not working when voucher has capital letter

Hi, the bootstrap5 voucher login page js making the inputed voucher tolowercase,
this cause problem when the random generated voucher using the random_alpha_numeric (the voucher generated has capital letters)

e.g.
Fri Jul 22 18:13:07 2022 : Debug: (30) modsingle[authenticate]: calling pap (rlm_pap)
Fri Jul 22 18:13:07 2022 : Debug: (30) pap: Login attempt with password "fhc0sx5q" (8)
Fri Jul 22 18:13:07 2022 : Debug: (30) pap: Comparing with "known good" Cleartext-Password "Fhc0sx5Q" (8)
Fri Jul 22 18:13:07 2022 : ERROR: (30) pap: Cleartext password does not match "known good" password

right now I managed to get it all working again by removing the .toLowerCase() for $("#txtVoucher").val()
in every sConnect*.js at /rdcore/login/bootstrap5/js/

Vouchers import CVS dosn't work

Hello
I installed radiusdesk many times but the import CSV button doesn't work
it gives me this error in chrome

Failed to load resource: the server responded with a status of 500 (Internal Server Error)
25app.js?_dc=20221028084414:1 Uncaught ReferenceError: scrnApTree is not defined
    at ctor.initComponent (app.js?_dc=20221028084414:1:3783757)
    at ctor.constructor (app.js?_dc=20221028084414:1:581488)
    at new ctor (app.js?_dc=20221028084414:1:45115)
    at Object.widget (app.js?_dc=20221028084414:1:138403)
    at ctor.addCsvImport (app.js?_dc=20221028084414:1:3671880)
    at ctor.add (app.js?_dc=20221028084414:1:3671125)
    at ctor.fire (app.js?_dc=20221028084414:1:180957)
    at ctor.dispatch (app.js?_dc=20221028084414:1:521463)
    at ctor.callParent (app.js?_dc=20221028084414:1:120116)
    at ctor.dispatch (app.js?_dc=20221028084414:1:523271)

is there any other way to import from CSV from command line?
regards asadi

email settings not work after last update

hi
when i hit save after entring alla data i get error "failure ajax communication failed"!! when i make sending test i get error "failure undefined"
was working befaure update!
what is the problem?

Radius Profile Value Change Automatically

Hello,
You have great work here ,
i have question , i create many profiles and many time profile value change automatically (Data Quota)

image

as you see in Data Limit it should be enabled but swap button display as disabled ,
regarding to Reset i found it Daily instead of never and Check box i found it also unchecked

NAS on the latest version

Hi.

On the latest version of RADIUSdesk, I can create RADIUS clients, but do not seem to be able to create a NAS now, with its own key. Is this still possible, and if not, If I manually insert an entry into the SQL nas table, will this still work?

PHP Version 8 required but 7.4 should be installed?

Hello,

According to the install instructions I am suppposed to install php 7.4, which I did. Still I get this error in my nginx logs:

$ sudo tail -f /var/log/nginx/error.log
2024/01/03 16:38:28 [error] 14208#14208: *23 FastCGI sent in stderr: "PHP message: PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.33. in /var/www/rdcore/cake4/rd_cake/vendor/composer/platform_check.php on line 24" while reading response header from upstream, client: 10.212.134.200, server: _, request: "GET /cake4/rd_cake/dashboard/branding.json?_dc=1704299908573&sel_language=4_4 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "192.168.26.103", referrer: "http://192.168.26.103/rd/build/production/Rd/"
Here is my php version:

$ php -v
PHP 7.4.33 (cli) (built: Jun  9 2023 16:51:37) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies

How can I fix this? Simply install php8?

Documantation Ngnix

https://github.com/RADIUSdesk/rdcore/wiki/Prepare-RdCore-on-Ubuntu-20.04

Create an info.php file and confirm that it interprets PHP properly

sudo vi /usr/share/nginx/html/info.php ? so what?

sudo vi /var/www/html/info,php ,

sudo vi /etc/nginx/sites-enabled/default docroot is in default never set /usr/share/nginx/html/ ! or is there another reason.

Great project, am just starting out, and hope to get it running according to dukomentation

mariadb secure instalation

sudo apt-get -y install mariadb-server php-mysql
sudo systemctl enable mariadb
sudo systemctl restart mariadb
sudo systemctl status mariadb
sudo mysql_secure_installation

Next...
#NOTE FAILING THIS STEP will break the RADIUS graphs
sudo su
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql

root@radiusdesk:/var/www/html# mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/leapseconds' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/tzdata.zi' as time zone. Skipping it.

=?????

Missing controller and the json checkbox

I am getting this "Missing Controller" error with coova running on OpenWrt on the same network.

rd missing controller

Correct me if I'm wrong, I think this can be fixed by checking the 2 options on the login page settings. But unfortunately these 2 checkboxes, although shows saved, it does not save them and opening the settings again shows that it isn't checked.

Is there any way I can apply these 2 options on the login page by changing values in the database?

rd_checkbox issue

How to add unifi ap pro hardware?

Hi!
What's the hardware info (firmware ID and WAN port) that I should use?
I have already compiled openWRT with meshdesk and it's running. But I could not find "Firmware ID" to create a new hardware in radiusdesk appliance.
I would like just the APDesk, not meshdesk to control my AP's.

unable to add attribute to component profile

good afternoon!
Dropdown menus do not drop rows. there are lines in the logs:
`2022-12-05 10:13:01 error: [Error] Call to a member function getData() on null in /var/www/rdcore/cake4/rd_cake/src/Model/Behavior/FreeRadiusBeha
vior.php on line 588
Stack Trace:

  • /var/www/rdcore/cake4/rd_cake/src/Model/Behavior/FreeRadiusBehavior.php:426
  • /var/www/rdcore/cake4/rd_cake/src/Model/Behavior/FreeRadiusBehavior.php:334
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Event/EventManager.php:309
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Event/EventManager.php:286
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Event/EventDispatcherTrait.php:92
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:2024
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:1990
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:1883
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:1570
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Database/Connection.php:709
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:1571
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:1884
  • /var/www/rdcore/cake4/rd_cake/src/Shell/AccountingShell.php:219
  • /var/www/rdcore/cake4/rd_cake/src/Shell/AccountingShell.php:33
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Console/Shell.php:514
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Console/CommandRunner.php:352
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Console/CommandRunner.php:169
  • /var/www/rdcore/cake4/rd_cake/bin/cake.php:12
    `

Perhaps this error and the profile are not related.

[Main branch] SQL error when opening login page, settings tab

image

This happened in the main branch.

The full message:
{ "message": "SQLSTATE[42S22]: Column not found: 1054 Unknown column \u0027DynamicDetails.permanent_user_id\u0027 in \u0027on clause\u0027", "url": "/dynamic-details/view.json?_dc=1680708052276\u0026amp;dynamic_detail_id=21\u0026amp;token=64970759-07b1-45f4-bf31-d728cbfa9be3\u0026amp;sel_language=4_4\u0026amp;cloud_id=23", "code": 500, "file": "/var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Database/Statement/MysqlStatement.php", "line": 39 }

Ajax communication failed (error 500) only for wizard and cloud

Greetings,

As I want to find a solution to monitor a running and working freeradius setup as a small ISP lab point of view, I gave a try to RADIUSdesk.

I installed a fresh copy of RADIUSdesk on an ubuntu 22.04 VM following these instructions: https://www.radiusdesk.com/wiki/getting_started/22_install_ubuntu_nginx#install_radiusdesk

I made a few changes, as I have a nginx reverse proxy for it, and it points to /var/www/radiusdesk/ instead of /var/www/html/, and I made the symlinks to radiusdesk instead of html, and modified the paths properly from the tutorial, and for the cron4 tasks as well.

I did not sync with the running freeradius yet, as I encounter what seems to be a bug.
I can access the pages, PHP is working fine, I can change the settings, admins…
But I encounter an error as soon as I touch the Clouds, either from the wizard or the OTHERS->Clouds tab.

Creating a cloud (there is of course none by default) is giving me an Ajax communication failed on the GUI (Failed to load resource: the server responded with a status of 500 () on https://radiusdesk.mydomain.com/cake4/rd_cake/wizards/new-site-step-one.json or https://radiusdesk.mydomain.com/cake4/rd_cake/clouds/add.json)

The log shows this:

2023-04-17 11:36:13 warning: DebugKit is disabling itself as your host `radiusdesk.mydomain.com` is not in the known safe list of top-level-domains (localhost, invalid, test, example, local). If you would like to force DebugKit on use the `DebugKit.forceEnable` Configure option.
2023-04-17 11:36:13 error: [PDOException] SQLSTATE[HY000]: General error: 1364 Field 'description' doesn't have a default value in /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Database/Statement/MysqlStatement.php on line 39
Stack Trace:
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Database/Statement/MysqlStatement.php:39
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Database/Connection.php:360
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Core/Retry/CommandRetry.php:70
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Database/Connection.php:363
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Database/Query.php:254
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:2091
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:1984
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:1883
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:1570
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Database/Connection.php:709
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:1571
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:1884
- /var/www/rdcore/cake4/rd_cake/src/Controller/WizardsController.php:765
- /var/www/rdcore/cake4/rd_cake/src/Controller/WizardsController.php:176
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Controller/Controller.php:547
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php:139
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php:114
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/BaseApplication.php:320
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:77
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php:162
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:73
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php:186
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:73
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php:77
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:73
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php:131
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:73
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:58
- /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Server.php:90
- /var/www/rdcore/cake4/rd_cake/webroot/index.php:40
- /var/www/rdcore/cake4/rd_cake/index.php:16

Request URL: /wizards/new-site-step-one.json
Referer URL: https://radiusdesk.mydomain.com/rd/build/production/Rd/
Client IP: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
2023-04-19 11:34:52 warning: DebugKit is disabling itself as your host `radiusdesk.mydomain.com` is not in the known safe list of top-level-domains (localhost, invalid, test, example, local). If you would like to force DebugKit on use the `DebugKit.forceEnable` Configure option.

The problem is likely not nginx or php related, as all the rest works well, but anyway, here is my nginx config in /etc/nginx/site-enabled/radiusdesk.mydomain.com:

server {
    listen              80;
    listen              [::]:80;

    server_name         radiusdesk.mydomain.com;

    include             snippets/certbot.conf;

    location / {
	return              301 https://radiusdesk.mydomain.com$request_uri;
    }
}

server {
    listen	443 ssl http2;
    listen	[::]:443 ssl http2;
    server_name	radiusdesk.mydomain.com;

    allow	xxxx:xxxx:xxxx::/48;
    deny	all;

    add_header	Strict-Transport-Security "max-age=31536000; includeSubDomains" always;

    ssl_certificate	/path/to/certs/radiusdesk.mydomain.com/fullchain.pem;
    ssl_certificate_key	/path/to/certs/certs/radiusdesk.mydomain.com/privkey.pem;

    access_log	/var/log/nginx/access_radiusdesk.log;

    proxy_set_header	Host $http_host;
    include	snippets/robots.conf;
    include	snippets/certbot.conf;

    root /var/www/radiusdesk;
    index index.php index.html index.htm;

    # pass PHP scripts to FastCGI server
    #
    location ~ \.php$ {
      include snippets/fastcgi-php.conf;
      #
      #       # With php-fpm (or other unix sockets):
      fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
      #       # With php-cgi (or other tcp sockets):
      #       fastcgi_pass 127.0.0.1:9000;
    }

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    location ~ /\.ht {
      deny all;
    }

    location /cake4/rd_cake/node-reports/submit_report.json {
      try_files $uri $uri/ /reporting/reporting.php;
    }

    location /cake4/rd_cake {
      rewrite ^/cake4/rd_cake(.+)$ /cake4/rd_cake/webroot$1 break;
      try_files $uri $uri/ /cake4/rd_cake/index.php$is_args$args;
    }

    location ~ ^/cake4/.+\.(jpg|jpeg|gif|png|ico|js|css)$ {
      rewrite ^/cake4/rd_cake/webroot/(.*)$ /cake4/rd_cake/webroot/$1 break;
      rewrite ^/cake4/rd_cake/(.*)$ /cake4/rd_cake/webroot/$1 break;
      access_log off;
      expires max;
      add_header Cache-Control public;
    }

    location / {
      try_files $uri $uri/ =404;
    }
}

Thank you for you assistance :)

Ubuntu 22.04 LTS support

Hello..this is more a query..I playing with installation on upcoming Ubuntu 22.04 LTS without success. After installation I get to login page, but login doesn't work (failure undefined). In nginx error.log there are lots of php errors while trying to login.

Is this php8 issue that ubuntu 22.04 uses by default?

Thanks.

nginx error log;

2022/04/16 17:53:41 [error] 22081#22081: *34 FastCGI sent in stderr: "PHP message: PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/rdcore/cake3/rd_cake/vendor/cakephp/cakephp/src/Utility/Text.php on line 232" while reading upstream, client: 192.168.1.62, server: _, request: "POST /cake3/rd_cake/dashboard/authenticate.json HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "192.168.1.5", referrer: "http://192.168.1.5/rd/build/production/Rd/"
2022/04/16 17:53:41 [error] 22081#22081: *34 FastCGI sent in stderr: "PHP mess" while reading upstream, client: 192.168.1.62, server: _, request: "POST /cake3/rd_cake/dashboard/authenticate.json HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "192.168.1.5", referrer: "http://192.168.1.5/rd/build/production/Rd/"
2022/04/16 17:53:41 [error] 22081#22081: *34 FastCGI sent in stderr: "age: PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/rdcore/cake3/rd_cake/vendor/cakephp/cakephp/src/Utility/Text.php on line 232PHP message: PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/rdcore/cake3/rd_cake/vendor/cakephp/cakephp/src/Utility/Text.php on line 232PHP message: PHP Deprecated: Return type of Cake\Http\Cookie\CookieCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/rdcore/cake3/rd_cake/vendor/cakephp/cakephp/src/Http/Cookie/CookieCollection.php on line 198PHP message: PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /var/www/rdcore/cake3/rd_cake/vendor/cakephp/acl/src/Model/Table/PermissionsTable.php on line 185" while reading upstream, client: 192.168.1.62, server: _, request: "POST /cake3/rd_cake/dashboard/authenticate.json HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "192.168.1.5", referrer: "http://192.168.1.5/rd/build/production/Rd/"

Translate Log-in pages

Hi, there is a guide or information about to translate the log-in pages for the users. Where are the fies to modify it?

Best regards,

Not working

I don't know why I can't get to work latest version I can't see my router on "Nas Devices". but for RadiusDesk2017 its very easy to work and I can connect my router without diffucultys also the Daloradius but I do like this RadiusDesk GUI very user friendly but the problem its not working for me. I tried both Ubuntu 20.04 & 22.04.

Missing SQL tables after clean installation

Hi, i am running a clean installation of Ubuntu 22.04, with php8.1, following all the steps from the official wiki. Everything looks and work fine, except for the permanent users. When i try to add a new one, an alert pops up with the message "Ajax communication failed". Going depper into the error through the console, i get this message: "SQLSTATE[42502]: Base table or view not found: 1146 Table `rd.realm_vlans' doesn´t exist". I check through the terminal into the rd database and indeed the table does not exist. Makes no sense to me because i imported all the tables following the guide, i have about 150. Does anyone know why is this missing?

RADIUSdesk API Permanent Users

Hi, the API for create a permanent user give me this error:
{
"success": false,
"message": "realm or realm_id not found in DB or not supplied"
}
following the example, my url is:
http://xxx.xxx.xxx.xxx/cake4/rd_cake/permanent-users/add.json?token=b4c6ac81-8c7c-4802-b50a-0a6380555b50&user_id=44&realm_id=19&profile_id=46&username=demo2&password=password2&cloud_id=23

realm_id, user_id, profile_id and cloud_id are checked in DB with a working permanent-user created from the front-end.

I also tried with: real=myrealm, user_id=0 but nothing.

could you please help me?

stuck on loading

installation completed without any bug, but showing only loading, please guide me how can i fix this
screenshort attached
Screenshot 2023-09-28 021545

Unable to create Docker image

Hello All,

I am trying to create a new docker image, but I am getting mounting issue while using the provided scripts. Have check the permissions and mounts too.

Any solutions would greatly help.

Logs below

`./local_build.sh

  • docker network create --attachable -d bridge radiusdesk-bridge
    Error response from daemon: network with name radiusdesk-bridge already exists
  • source ./.env
    ++ RADIUSDESK_VOLUME=/mnt/data/radiusdesk
    ++ RADIUSDESK_NETWORK=radiusdesk-bridge
  • echo Radiusdesk 2-docker system builder v1.0
    Radiusdesk 2-docker system builder v1.0
  • echo ---------------------------------------

  • echo

  • echo Special shout out to:
    Special shout out to:

  • echo - Dirk van der Walt for building this brilliant software and helping debug the dockers

  • Dirk van der Walt for building this brilliant software and helping debug the dockers
  • echo - Enock Mbewe for building the first docker version and showing the way with supervisord
  • Enock Mbewe for building the first docker version and showing the way with supervisord
  • echo - Keegan White for all the work on traefik and improving the iNethi architecture
  • Keegan White for all the work on traefik and improving the iNethi architecture
  • echo

  • echo Starting Build ....
    Starting Build ....

  • echo

  • echo Copying database files to volume mounts for MariaDB ...
    Copying database files to volume mounts for MariaDB ...

  • mkdir -p /mnt/data/radiusdesk

  • mkdir -p /mnt/data/radiusdesk/db_startup

  • mkdir -p /mnt/data/radiusdesk/db_conf

  • chmod -R 777 /mnt/data/radiusdesk

  • chmod -R 777 /mnt/data/radiusdesk/db_startup

  • chmod -R 777 /mnt/data/radiusdesk/db_conf

  • '[' -d rdcore ']'

  • echo 'Directory rdcore exists.'
    Directory rdcore exists.

  • cp rdcore/cake4/rd_cake/setup/db/rd.sql /mnt/data/radiusdesk/db_startup

  • cp db_priveleges.sql /mnt/data/radiusdesk/db_startup

  • cp startup.sh /mnt/data/radiusdesk/db_startup

  • cp my_custom.cnf /mnt/data/radiusdesk/db_conf

  • echo

  • echo Building docker database container ...
    Building docker database container ...

  • docker-compose up -d rdmariadb
    /usr/lib/python3/dist-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated
    "class": algorithms.Blowfish,
    Starting radiusdesk-mariadb ... error

ERROR: for radiusdesk-mariadb Cannot start service rdmariadb: Mounts denied:
The path /mnt/data/radiusdesk/db_conf/my_custom.cnf is not shared from the host and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
See https://docs.docker.com/ for more info.

ERROR: for rdmariadb Cannot start service rdmariadb: Mounts denied:
The path /mnt/data/radiusdesk/db_conf/my_custom.cnf is not shared from the host and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
See https://docs.docker.com/ for more info.
ERROR: Encountered errors while bringing up the project.

  • echo

  • echo Waiting for MariaDB to come up ...
    Waiting for MariaDB to come up ...

  • sleep 60

  • echo Creating database for Radiusdesk ...
    Creating database for Radiusdesk ...

  • docker exec -u 0 -it radiusdesk-mariadb /tmp/startup.sh
    Error response from daemon: Container 765a367c96cc638d82490b614e6f1da498271f65b7f56201beae760428477d73 is not running

  • echo

  • echo Building Radiusdesk container with nginx, php-fpm and freeradius ...
    Building Radiusdesk container with nginx, php-fpm and freeradius ...

  • docker-compose build
    /usr/lib/python3/dist-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated
    "class": algorithms.Blowfish,
    rdmariadb uses an image, skipping
    Building radiusdesk
    [+] Building 5.7s (59/59) FINISHED
    => [internal] load build definition from Dockerfile-build-radiusdesk 0.0s
    => => transferring dockerfile: 5.44kB 0.0s
    => [internal] load .dockerignore 0.0s
    => => transferring context: 2B 0.0s
    => [internal] load metadata for docker.io/jtreminio/php:8.1 0.4s
    => [internal] load build context 4.1s
    => => transferring context: 427.18MB 4.0s
    => [ 1/54] FROM docker.io/jtreminio/php:8.1@sha256:5d33f361015f910ad3cb270f2b2c574e1a8bf329ff65d7b15 0.0s
    => CACHED [ 2/54] RUN apt-get update 0.0s
    => CACHED [ 3/54] RUN apt-get -y install language-pack-en-base 0.0s
    => CACHED [ 4/54] RUN apt-get -y install nginx 0.0s
    => CACHED [ 5/54] RUN apt-get -y install libdatetime-perl 0.0s
    => CACHED [ 6/54] RUN apt-get -y install freeradius freeradius-mysql 0.0s
    => CACHED [ 7/54] RUN apt-get install -y supervisor 0.0s
    => CACHED [ 8/54] RUN apt-get install -y subversion 0.0s
    => CACHED [ 9/54] COPY ./default /etc/nginx/sites-enabled/ 0.0s
    => CACHED [10/54] COPY ./disable_strict_mode.cnf /etc/mysql/conf.d/ 0.0s
    => CACHED [11/54] COPY ./rdcore /var/www/rdcore 0.0s
    => CACHED [12/54] RUN mkdir -p /var/www/html 0.0s
    => CACHED [13/54] RUN ln -s /var/www/rdcore/rd /var/www/html/rd 0.0s
    => CACHED [14/54] RUN ln -s /var/www/rdcore/cake4 /var/www/html/cake4 0.0s
    => CACHED [15/54] RUN ln -s /var/www/rdcore/cake4 /var/www/html/cake3 0.0s
    => CACHED [16/54] RUN ln -s /var/www/rdcore/login /var/www/html/login 0.0s
    => CACHED [17/54] RUN ln -s /var/www/rdcore/AmpConf/build/production/AmpConf /var/www/html/conf_dev 0.0s
    => CACHED [18/54] RUN ln -s /var/www/rdcore/login/rd_client/build/production/AmpConf /var/www/html/u 0.0s
    => CACHED [19/54] RUN ln -s /var/www/rdcore/cake4/rd_cake/setup/scripts/reporting /var/www/html/repo 0.0s
    => CACHED [20/54] RUN mkdir -p /var/www/html/cake4/rd_cake/logs 0.0s
    => CACHED [21/54] RUN mkdir -p /var/www/html/cake4/rd_cake/webroot/files/imagecache 0.0s
    => CACHED [22/54] RUN mkdir -p /var/www/html/cake4/rd_cake/tmp 0.0s
    => CACHED [23/54] RUN chown -R www-data. /var/www/html/cake4/rd_cake/tmp 0.0s
    => CACHED [24/54] RUN chown -R www-data. /var/www/html/cake4/rd_cake/logs 0.0s
    => CACHED [25/54] RUN chown -R www-data. /var/www/html/cake4/rd_cake/webroot/img/realms 0.0s
    => CACHED [26/54] RUN chown -R www-data. /var/www/html/cake4/rd_cake/webroot/img/dynamic_details 0.0s
    => CACHED [27/54] RUN chown -R www-data. /var/www/html/cake4/rd_cake/webroot/img/dynamic_photos 0.0s
    => CACHED [28/54] RUN chown -R www-data. /var/www/html/cake4/rd_cake/webroot/img/access_providers 0.0s
    => CACHED [29/54] RUN chown -R www-data. /var/www/html/cake4/rd_cake/webroot/img/hardwares 0.0s
    => CACHED [30/54] RUN chown -R www-data. /var/www/html/cake4/rd_cake/webroot/files/imagecache 0.0s
    => CACHED [31/54] RUN cp /var/www/html/cake4/rd_cake/setup/cron/cron4 /etc/cron.d/ 0.0s
    => CACHED [32/54] RUN chmod 0644 /etc/cron.d/cron4 0.0s
    => CACHED [33/54] RUN crontab /etc/cron.d/cron4 0.0s
    => CACHED [34/54] RUN mkdir -p /var/log/php-fpm 0.0s
    => CACHED [35/54] RUN mv /etc/freeradius /etc/freeradius.orig 0.0s
    => CACHED [36/54] RUN mkdir -p /etc/freeradius 0.0s
    => CACHED [37/54] RUN tar xzf /var/www/html/cake4/rd_cake/setup/radius/freeradius-3-radiusdesk.tar.g 0.0s
    => CACHED [38/54] RUN mv /etc/freeradius/freeradius /etc/freeradius/3.0 0.0s
    => CACHED [39/54] RUN chown -R freerad. /etc/freeradius/3.0/ 0.0s
    => CACHED [40/54] RUN mkdir -p /var/run/freeradius 0.0s
    => CACHED [41/54] RUN chown freerad. /var/run/freeradius 0.0s
    => CACHED [42/54] COPY ./freeradius.service /lib/systemd/system/ 0.0s
    => CACHED [43/54] RUN rm -rf /var/lib/apt/lists/* 0.0s
    => CACHED [44/54] COPY ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf 0.0s
    => CACHED [45/54] COPY ./php.ini /etc/php/php.ini 0.0s
    => CACHED [46/54] RUN sed -i "s/'host' => 'localhost'/'host' => 'rdmariadb'/g" /var/www/html/cake4 0.0s
    => CACHED [47/54] RUN sed -i "s/$servername = "localhost";/$servername = "rdmariadb";/g" /var/www 0.0s
    => CACHED [48/54] RUN sed -i "s/$servername = "localhost";/$servername = "rdmariadb";/g" /var/www 0.0s
    => CACHED [49/54] RUN sed -i "s/$servername = "localhost";/$servername = "rdmariadb";/g" /var/www 0.0s
    => CACHED [50/54] RUN sed -i "s/$servername = "localhost";/$servername = "rdmariadb";/g" /var/www 0.0s
    => CACHED [51/54] RUN sed -i "s/$servername = "localhost";/$servername = "rdmariadb";/g" /var/www 0.0s
    => CACHED [52/54] RUN sed -i "s/$servername = "localhost";/$servername = "rdmariadb";/g" /var/www 0.0s
    => CACHED [53/54] RUN sed -i 's/server = "localhost"/server = "rdmariadb"/g' /etc/freeradius/3 0.0s
    => CACHED [54/54] RUN cp -R /var/www/html/rd/build/production/Rd/* /var/www/html/ 0.0s
    => exporting to image 0.3s
    => => exporting layers 0.0s
    => => writing image sha256:f1a2655963b5feec4a991a1503c3e0f9c27cf2b5198a37b0de7bbe3a618254b1 0.2s
    => => naming to docker.io/library/docker_radiusdesk 0.0s

  • docker-compose up -d radiusdesk
    /usr/lib/python3/dist-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated
    "class": algorithms.Blowfish,
    Starting radiusdesk-mariadb ... error

ERROR: for radiusdesk-mariadb Cannot start service rdmariadb: Mounts denied:
The path /mnt/data/radiusdesk/db_conf/my_custom.cnf is not shared from the host and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
See https://docs.docker.com/ for more info.

ERROR: for rdmariadb Cannot start service rdmariadb: Mounts denied:
The path /mnt/data/radiusdesk/db_conf/my_custom.cnf is not shared from the host and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
See https://docs.docker.com/ for more info.
ERROR: Encountered errors while bringing up the project.

  • echo

  • echo All 'done!'
    All done!`

some functions not working

Hello!
when executing the command:
/var/www/rdcore/cake4/rd_cake/bin# ./cake accounting
I get an error:
`Test the usertype of den
den is a Permanent User
=============================-=
--Find potential counters for--
-------400mb day 5mbits---------


Array
(
[cap] => hard
[reset] => daily
[value] => 419430400
[reset_interval] =>
[mac_counter] =>
)
Start at midnightSELECT IFNULL(SUM(acctinputoctets)+ SUM(acctoutputoctets),0) as used FROM radacct WHERE username='den' AND UNIX_TIMESTAMP(acctstarttime) + acctsessiontime > '1670976000'2 Update usage percentage for den to 0
2022-12-14 12:56:11 error: [Error] Call to a member function getData() on null in /var/www/rdcore/cake4/rd_cake/src/Model/Behavior/FreeRadiusBehavior.php on line 589
Stack Trace:

  • /var/www/rdcore/cake4/rd_cake/src/Model/Behavior/FreeRadiusBehavior.php:426
  • /var/www/rdcore/cake4/rd_cake/src/Model/Behavior/FreeRadiusBehavior.php:334
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Event/EventManager.php:309
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Event/EventManager.php:286
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Event/EventDispatcherTrait.php:92
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:2024
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:1990
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:1883
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:1570
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Database/Connection.php:709
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:1571
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php:1884
  • /var/www/rdcore/cake4/rd_cake/src/Shell/AccountingShell.php:254
  • /var/www/rdcore/cake4/rd_cake/src/Shell/AccountingShell.php:33
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Console/Shell.php:514
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Console/CommandRunner.php:352
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Console/CommandRunner.php:169
  • /var/www/rdcore/cake4/rd_cake/bin/cake.php:12

[Error] Call to a member function getData() on null in /var/www/rdcore/cake4/rd_cake/src/Model/Behavior/FreeRadiusBehavior.php on line 589

Stack Trace:

#0 /var/www/rdcore/cake4/rd_cake/src/Model/Behavior/FreeRadiusBehavior.php(426): App\Model\Behavior\FreeRadiusBehavior->_forPermanentUserEdit()
#1 /var/www/rdcore/cake4/rd_cake/src/Model/Behavior/FreeRadiusBehavior.php(334): App\Model\Behavior\FreeRadiusBehavior->_doAfterSave()
#2 /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Event/EventManager.php(309): App\Model\Behavior\FreeRadiusBehavior->afterSave()
#3 /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Event/EventManager.php(286): Cake\Event\EventManager->_callListener()
#4 /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Event/EventDispatcherTrait.php(92): Cake\Event\EventManager->dispatch()
#5 /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php(2024): Cake\ORM\Table->dispatchEvent()
#6 /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php(1990): Cake\ORM\Table->_onSaveSuccess()
#7 /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php(1883): Cake\ORM\Table->_processSave()
#8 /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php(1570): Cake\ORM\Table->Cake\ORM{closure}()
#9 /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Database/Connection.php(709): Cake\ORM\Table->Cake\ORM{closure}()
#10 /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php(1571): Cake\Database\Connection->transactional()
#11 /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Table.php(1884): Cake\ORM\Table->_executeTransaction()
#12 /var/www/rdcore/cake4/rd_cake/src/Shell/AccountingShell.php(254): Cake\ORM\Table->save()
#13 /var/www/rdcore/cake4/rd_cake/src/Shell/AccountingShell.php(33): App\Shell\AccountingShell->process_username()
#14 /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Console/Shell.php(514): App\Shell\AccountingShell->main()
#15 /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Console/CommandRunner.php(352): Cake\Console\Shell->runCommand()
#16 /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Console/CommandRunner.php(169): Cake\Console\CommandRunner->runShell()
#17 /var/www/rdcore/cake4/rd_cake/bin/cake.php(12): Cake\Console\CommandRunner->run()
#18 {main}

`

also does not display % used traffic volume and is not shown on the client's page as well as the total volume.

2022-12-14 11:00:16 error: [Cake\ORM\Exception\MissingTableClassException] Table class for alias MacUsagescould not be found. in /var/www/rdcore/c ake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Locator/TableLocator.php on line 243 Exception Attributes: array ( 0 => 'for aliasMacUsages`',
)
Stack Trace:

  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Datasource/Locator/AbstractLocator.php:68
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/ORM/Locator/TableLocator.php:205
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Datasource/ModelAwareTrait.php:128
  • /var/www/rdcore/cake4/rd_cake/src/Controller/RadacctsController.php:52
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Controller/Controller.php:547
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php:139
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php:114
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/BaseApplication.php:320
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:77
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php:157
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php:186
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php:77
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php:131
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:58
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Server.php:90
  • /var/www/rdcore/cake4/rd_cake/webroot/index.php:40
  • /var/www/rdcore/cake4/rd_cake/index.php:16

Request URL: /radaccts/get_usage.json?username=slava&mac=D0-57-xx-xx-xx-xx
Referer URL: http://100.64.0.1/login/bootstrap5/index.html?res=notyet&uamip=100.64.0.1&uamport=3990&challenge=f2d8cb42582368f15ba193406f2e204f&called
=00-15-xx-xx-xx-xx&mac=D0-57-xx-xx-xx-xx&ip=1.64.0.11&ssid=Hotspot&nasid=HotSpot&sessionid=167099514500000001&userurl=http%3a%2f%2fwww.msftconn
ecttest.com%2fredirect&md=CFC83A3921DD42832729FF5220B79BDC&i18n=en_GB
Client IP: 1.64.0.11`

and also the flows button doesn't work

2022-12-13 09:01:56 error: [BadMethodCallException] Unknown method "schema" called on App\Model\Table\SoftflowsTable in /var/www/rdcore/cake4/rd_cake
/vendor/cakephp/cakephp/src/ORM/Table.php on line 2656
Stack Trace:

  • /var/www/rdcore/cake4/rd_cake/src/Controller/SoftflowsController.php:90
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Controller/Controller.php:547
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php:139
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php:114
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/BaseApplication.php:320
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:77
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php:157
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php:186
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php:77
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php:131
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php:60
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php:58
  • /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Server.php:90
  • /var/www/rdcore/cake4/rd_cake/webroot/index.php:40
  • /var/www/rdcore/cake4/rd_cake/index.php:16

Request URL: /softflows/index.json?_dc=1670922116526&dynamic_client_id=45&timespan=now&timezone_id=23&page=1&start=0&limit=50&token=b4c6ac81-8c7c-48
02-b50a-0a6380555b50&sel_language=4_4&cloud_id=23
Referer URL: http://10.1.1.1/
Client IP: 10.4.8.2

tell me how to fix.

Can't login captive portal

Hi @dirkvanderwalt ,

Thank you for your open source radiusdesk, it's a useful software.

I meet a problem with radiusdesk when I install it on ubuntu 20.04 and meskdesk on openwrt 21.02. Can you help me, please?

I try to use captive portal with guest access. When I select the guest ssid (captive portal is running with this ssid) then I see coova's log showing radius reject with the reason that User E6-14-CF-29-2C-E7 not registered. If I try to click guest access on the login page I get the message: Latest Challenge could not be fetched from hotspot

How can i fix this issue? Thank you so much.

freeradius_log.txt

cp_error

authenticate.json is missed

I can't log in to radiusdesk dashboard, looks like some directories and scripts are missed. I get the error 404 cake3/rd_cake/dashboard/authenticate.json in the browser console.

cant add captive portal or ap profile

hello
i downloaded the latest version and installed it on fresh ubuntu 20.04
i have found that when i try to add new captive portal to the AP profile it gives 500 ERROR
by following the error and the log file i found out the following

cakephp log:
2022-09-24 20:14:33 error: [PDOException] SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'auto_dynamic_client cannot be null in /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Database/Statement/MysqlStatement.php on line 39

browser log:

{
    "message": "SQLSTATE[23000]: Integrity constraint violation: 1048 Column \u0027auto_dynamic_client\u0027 cannot be null",
    "url": "\/ap-profiles\/ap_profile_exit_add.json",
    "code": 500,
    "file": "\/var\/www\/rdcore\/cake4\/rd_cake\/vendor\/cakephp\/cakephp\/src\/Database\/Statement\/MysqlStatement.php",
    "line": 39
}

also if i try to add new profile it gives error UNDEFINED

here is the logs from cakephp and the browser
cakephp log:
2022-09-24 20:45:14 warning: Cannot modify header information - headers already sent by (output started at /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) Request URL: /ap-profiles/add.json

browser log:

**Notice (8) : Undefined variable: cdata [in /var/www/rdcore/cake4/rd_cake/src/Controller/ApProfilesController.php, line 134]
[Code](javascript:void(0);)**
        $user_id = $user['id'];
        $apProfileEntity = $this->{$this->main_model}->newEntity($cdata);
App\Controller\ApProfilesController::add() /var/www/rdcore/cake4/rd_cake/src/Controller/ApProfilesController.php, line 134
Cake\Controller\Controller::invokeAction() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Controller/Controller.php, line 547
Cake\Controller\ControllerFactory::handle() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 139
Cake\Controller\ControllerFactory::invoke() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114
Cake\Http\BaseApplication::handle() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320
Cake\Http\Runner::handle() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php, line 77
Cake\Http\Middleware\BodyParserMiddleware::process() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 162
Cake\Http\Runner::handle() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php, line 73
Cake\Routing\Middleware\RoutingMiddleware::process() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 186
Cake\Http\Runner::handle() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php, line 73
Cake\Routing\Middleware\AssetMiddleware::process() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 77
Cake\Http\Runner::handle() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php, line 73
Cake\Error\Middleware\ErrorHandlerMiddleware::process() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 131
Cake\Http\Runner::handle() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php, line 73
Cake\Http\Runner::run() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Runner.php, line 58
Cake\Http\Server::run() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Server.php, line 90
require /var/www/rdcore/cake4/rd_cake/webroot/index.php, line 40
[main] /var/www/rdcore/cake4/rd_cake/index.php, line 16

**Warning (512) : Unable to emit headers. Headers sent in file=/var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=36 [in /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 71]**

[Code](javascript:void(0);)
            $message = "Unable to emit headers. Headers sent in file=$file line=$line";
            trigger_error($message, E_USER_WARNING);
        }
Cake\Http\ResponseEmitter::emit() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 71
Cake\Http\Server::emit() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Server.php, line 128
require /var/www/rdcore/cake4/rd_cake/webroot/index.php, line 40
[main] /var/www/rdcore/cake4/rd_cake/index.php, line 16

**Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) [in /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 168]**

[Code](javascript:void(0);)
            $response->getStatusCode(),
            ($reasonPhrase ? ' ' . $reasonPhrase : '')
        ));
header [internal], line ??
Cake\Http\ResponseEmitter::emitStatusLine() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 168
Cake\Http\ResponseEmitter::emit() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 74
Cake\Http\Server::emit() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Server.php, line 128
require /var/www/rdcore/cake4/rd_cake/webroot/index.php, line 40
[main] /var/www/rdcore/cake4/rd_cake/index.php, line 16

**Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) [in /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197]**

[Code](javascript:void(0);)
            foreach ($values as $value) {
                header(sprintf(
                    '%s: %s',
header [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197
Cake\Http\ResponseEmitter::emit() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 75
Cake\Http\Server::emit() /var/www/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Http/Server.php, line 128
require /var/www/rdcore/cake4/rd_cake/webroot/index.php, line 40
[main] /var/www/rdcore/cake4/rd_cake/index.php, line 16

**{ "message": "Argument 1 passed to Cake\\ORM\\Table::newEntity() must be of the type array, null given, called in \/var\/www\/rdcore\/cake4\/rd_cake\/src\/Controller\/ApProfilesController.php on line 134", "url": "\/ap-profiles\/add.json", "code": 500, "file": "\/var\/www\/rdcore\/cake4\/rd_cake\/vendor\/cakephp\/cakephp\/src\/ORM\/Table.php", "line": 2774 }**

Dashboard/clouds folder(s) missing from current version

Following this guide https://radiusdesk.com/wiki/getting_started/22_install_ubuntu_nginx on a new build. I get these two errors.

XHRGEThttp://127.0.0.1/cake4/rd_cake/clouds/index.json?_dc=1670855526780&node=root
[HTTP/1.1 502 Bad Gateway 0ms]

XHRGEThttp://127.0.0.1/cake4/rd_cake/dashboard/branding.json?_dc=1670855526876&sel_language=4_4
[HTTP/1.1 502 Bad Gateway 0ms]

This results in a blank screen http://127.0.0.1/rd/build/production/Rd/#dashboard

Edit what is included in Disconnect Packet

Is there a way to edit what is include in the disconnect packet, for a unifi dream machine I need :
Acct-Session-Id
NAS-IP-Address
Calling-Station
NAS-Identifier
I've tested the disconnect successfully with radclient using this

failed install via docker

rdmariadb uses an image, skipping
Building radiusdesk
[+] Building 30.9s (6/58) docker:default
=> [internal] load build definition from Dockerfile-build-radiusdesk 0.1s
=> => transferring dockerfile: 5.44kB 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/jtreminio/php:8.1 2.3s
=> CACHED [ 1/54] FROM docker.io/jtreminio/php:8.1@sha256:5d33f361015f910ad3cb270f2b2c574e1a8bf329ff65d7b157f3298eae9d0018 0.0s
=> CANCELED [internal] load build context 25.1s
=> => transferring context: 55.19MB 24.9s
=> ERROR [ 2/54] RUN apt-get update 25.1s
------ > [ 2/54] RUN apt-get update:
2.188 exec /bin/sh: exec format error

Dockerfile-build-radiusdesk:10

8 |
9 | # Sets up Nginx and required language pack
10 | >>> RUN apt-get update
11 | RUN apt-get -y install language-pack-en-base
12 | RUN apt-get -y install nginx

ERROR: failed to solve: process "/bin/sh -c apt-get update" did not complete successfully: exit code: 1
ERROR: Service 'radiusdesk' failed to build : Build failed

  • docker-compose up -d radiusdesk
    Building radiusdesk
    [+] Building 67.1s (6/58) docker:default
    => [internal] load .dockerignore 0.1s
    => => transferring context: 2B 0.0s
    => [internal] load build definition from Dockerfile-build-radiusdesk 0.2s
    => => transferring dockerfile: 5.44kB 0.0s
    => [internal] load metadata for docker.io/jtreminio/php:8.1 1.1s
    => CACHED [ 1/54] FROM docker.io/jtreminio/php:8.1@sha256:5d33f361015f910ad3cb270f2b2c574e1a8bf329ff65d7b157f3298eae9d0018 0.0s
    => CANCELED [internal] load build context 58.8s
    => => transferring context: 179.25MB 58.5s
    => ERROR [ 2/54] RUN apt-get update 58.6s
    ------ > [ 2/54] RUN apt-get update:
    1.204 exec /bin/sh: exec format error

Dockerfile-build-radiusdesk:10

8 |
9 | # Sets up Nginx and required language pack
10 | >>> RUN apt-get update
11 | RUN apt-get -y install language-pack-en-base
12 | RUN apt-get -y install nginx

ERROR: failed to solve: process "/bin/sh -c apt-get update" did not complete successfully: exit code: 1
ERROR: Service 'radiusdesk' failed to build : Build failed

  • echo

  • echo All 'done!'
    All done!

pake debian di stb bekas

Provide the Entire NGINX Config File, please?

I have multiples of multiples of projects and services running through my NGINX server, and assuming that this will be the only one running on anyone's NGINX server is, honestly, disingenuous at best.

The directions honestly kind of muddle up where and how exactly everything is expected to be pulled from with the NGINX server, and having it pull logically from within its own repo would make life much nicer.

I'd really appreciate clearing this up!

User permissions issue

Hi. When using RADIUSdesk to create additional admin users, I've noticed they cannot edit permanent user accounts, and when using the authentication activity tab, they only see accepted authentications, but not failed ones.

How can I enable other admins to use these functions? I've been through the rights objects anything that would allow this. Apologies if I have missed something obvious.

Thanks

Doesnt Work

No matter what i do and no matter what install howto i follow when i goto the dashboard i get a loading in the center of the screen and then a blank screen, i have done this on ubuntu 20.04 22.04 and also a proxmoc container vm, none work .. Any ideas ?

Single Voucher Generate

Hi,

How can i limit single phrase voucher build from common words character to 3 Letter?

Thanks

Hotspot users get the error "RADIUS server is not responding" when they run out of bundles.

Description

Once a user has acquired a voucher, they can log in via splash page to browse. However, if they try logging in after the voucher is exhausted they get an error that RADIUS server is not responding

  • Mikrotik log entry:
    mikrotil_hs

  • Voucher balance
    voucher_balance

Expected behavior

The expectation is that the error message would be to notify that the package is exhausted

Notes:

Setup was done following the guide on the repo

Server details:

  • OS: Ubuntu 20.04.6 LTS
  • Freeradius version: 3.0.20+dfsg-3ubuntu0.2
  • Database: mariadb-server version 1:10.3.38-0ubuntu0.20.04.1
  • PHP 8.2

I would really appreciate if you can offer guidance on customizing the response message for depleted vouchers

Import accounts

how to import logins, passwords, email from a file? over 1000 accounts.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.