Giter Club home page Giter Club logo

muffycompo / radiusdesk-installer Goto Github PK

View Code? Open in Web Editor NEW
36.0 14.0 27.0 483 KB

[READ-ONLY] RADIUSDesk Installer is an Ansible powered utility that attempts to simplify or ease the process of getting a working installation of RADIUSDesk on a vanilla/minimal installation of RHEL/CentOS 6.7/7.x and Ubuntu 14.04/16.04/17.10/18.04 servers.

Home Page: http://muffycompo.github.io/radiusdesk-installer/

License: MIT License

Shell 3.03% Perl 11.86% Jinja 85.11%
radiusdesk-installer ansible centos ubuntu

radiusdesk-installer's Introduction

RADIUSDesk Installer 1.2.2

Introduction

RADIUSDesk Installer is an Ansible powered utility that attempts to simplify the process of getting a working installation of RADIUSDesk on a vanilla/minimal installation of RHEL/CentOS 6.7/7.x and Ubuntu 14.04/16.04/17.10/18.04 servers.

Documentation Wiki

The Documentation has been moved to a dedicated Wiki Page for proper structure.

https://github.com/muffycompo/radiusdesk-installer/wiki

radiusdesk-installer's People

Contributors

jonathonwiebe avatar muffycompo 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

Watchers

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

radiusdesk-installer's Issues

Error - Adding RadiusDesk MAO Apt Repository Key (Ubuntu 14+)

Please help with issue. How to fix it? Thanks in advance.

TASK [radiusdesk : Adding RadiusDesk MAO Apt Repository Key (Ubuntu 14+)] ****************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": "/usr/bin/apt-key add -", "failed": true, "msg": "gpg: no valid OpenPGP data found.", "rc": 2, "stderr": "gpg: no valid OpenPGP data found.\n", "stderr_lines": ["gpg: no valid OpenPGP data found."], "stdout": "", "stdout_lines": []}

FATAL LOCALHOST FAILED

Sorry, have failed during installation, can you help?

fatal: [localhost]: FAILED! => {"failed": true, "msg": "The conditional check 'enable_pptpd_support and ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14'' failed. The error was: error while evaluating conditional (enable_pptpd_support and ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14'): 'enable_pptpd_support' is undefined\n\nThe error appears to have been in '/home/victor/radiusdesk-installer/roles/radiusdesk/tasks/main.yml': line 39, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: RadiusDesk PPTPD Setup (Ubuntu 14+)\n ^ here\n"}

TASK [radiusdesk : Installing Nginx (RHEL/CentOS 6+)] Failed

==== RADIUSDesk Installer 1.2.0 ====

  1. [I]nstall/Reconfigure RADIUSDesk
  2. [Q]uit
    Select an Option: 1
    Installing/Reconfiguring RADIUSDesk

statically included: /root/radiusdesk/roles/radiusdesk/tasks/Nginx_Debian.yml
statically included: /root/radiusdesk/roles/radiusdesk/tasks/Nginx_RedHat.yml
statically included: /root/radiusdesk/roles/radiusdesk/tasks/Freeradius_Debian.yml
statically included: /root/radiusdesk/roles/radiusdesk/tasks/Freeradius_RedHat.yml
statically included: /root/radiusdesk/roles/radiusdesk/tasks/Nodejs_Debian.yml
statically included: /root/radiusdesk/roles/radiusdesk/tasks/Nodejs_RedHat.yml
statically included: /root/radiusdesk/roles/radiusdesk/tasks/Pptpd_Debian.yml
statically included: /root/radiusdesk/roles/radiusdesk/tasks/Pptpd_RedHat.yml
statically included: /root/radiusdesk/roles/radiusdesk/tasks/Coovachilli_Debian.yml
statically included: /root/radiusdesk/roles/radiusdesk/tasks/Coovachilli_RedHat.yml

PLAY [default] *****************************************************************

TASK [setup] *******************************************************************
ok: [localhost]

TASK [radiusdesk : Checking for Supported OS] **********************************
skipping: [localhost]

TASK [radiusdesk : Adding RadiusDesk Variables (Ubuntu 14+)] *******************
skipping: [localhost]

TASK [radiusdesk : Adding RadiusDesk Variables (RHEL/CentOS 6+)] ***************
ok: [localhost]

TASK [radiusdesk : Ensuring Apache is not installed (Ubuntu 14+)] **************
skipping: [localhost]

TASK [radiusdesk : Installing Nginx (Ubuntu 14+)] ******************************
skipping: [localhost]

TASK [radiusdesk : Installing PHP5 packages (Ubuntu 14+)] **********************
skipping: [localhost] => (item=[])

TASK [radiusdesk : Installing PHP7 packages (Ubuntu 14+)] **********************
skipping: [localhost] => (item=None)

TASK [radiusdesk : Installing RadiusDesk packages (Ubuntu 14+)] ****************
skipping: [localhost] => (item=[])

TASK [radiusdesk : Configuring PHP5-FPM to use UNIX sockets (Ubuntu 14+)] ******
skipping: [localhost]

TASK [radiusdesk : Configuring PHP7-FPM to use UNIX sockets (Ubuntu 14+)] ******
skipping: [localhost]

TASK [radiusdesk : Configuring Nginx to use UNIX sockets (Ubuntu 14+)] *********
skipping: [localhost]

TASK [radiusdesk : Configuring Nginx for RadiusDesk Web Compression (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Restarting RadiusDesk services for PHP5 (Ubuntu 14+)] *******
skipping: [localhost] => (item=nginx)
skipping: [localhost] => (item=php-fpm)

TASK [radiusdesk : Restarting RadiusDesk services for PHP7 (Ubuntu 14+)] *******
skipping: [localhost] => (item=nginx)
skipping: [localhost] => (item=None)

TASK [radiusdesk : Downloading CakePHP Source from Github (Ubuntu 14+)] ********
skipping: [localhost]

TASK [radiusdesk : Copying CakePHP Source to Webroot (Ubuntu 14+)] *************
skipping: [localhost]

TASK [radiusdesk : Downloading RadiusDesk CakePHP Source from Subversion (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Copying RadiusDesk CakePHP App Source to Webroot (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Downloading RadiusDesk Viewer Source from Subversion (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Copying RadiusDesk Viewer Source to Webroot (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Downloading RadiusDesk Login Source from Subversion (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Copying RadiusDesk Login Source webroot (Ubuntu 14+)] *******
skipping: [localhost]

TASK [radiusdesk : Configuring UAM Service for RadiusDesk Login (Ubuntu 14+)] **
skipping: [localhost]

TASK [radiusdesk : Checking if we already downloaded ExtJS 6 sources (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Downloading ExtJS 6 sources from Subversion (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Extracting ExtJS 6 archive for RadiusDesk Viewer (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Correcting Webroot ownership and permissions (Ubuntu 14+)] **
skipping: [localhost]

TASK [radiusdesk : Fix PHP5 Default Timezone] **********************************
skipping: [localhost]

TASK [radiusdesk : Fix PHP7 Default Timezone] **********************************
skipping: [localhost]

TASK [radiusdesk : Ensuring Nginx is Started (Ubuntu 14+)] *********************
skipping: [localhost]

TASK [radiusdesk : Ensuring PHP5-FPM is Started (Ubuntu 14+)] ******************
skipping: [localhost]

TASK [radiusdesk : Ensuring PHP7-FPM is Started (Ubuntu 14+)] ******************
skipping: [localhost]

TASK [radiusdesk : Configuring RadiusDesk Cron Jobs (Ubuntu 14+)] **************
skipping: [localhost]

TASK [radiusdesk : Ensuring MySQL is Started (Ubuntu 14+)] *********************
skipping: [localhost]

TASK [radiusdesk : Ensuring MySQL Root password has been set (Ubuntu 14+)] *****
skipping: [localhost]

TASK [radiusdesk : Changing MySQL Root password (Ubuntu 14+)] ******************
skipping: [localhost] => (item=127.0.0.1)
skipping: [localhost] => (item=localhost)

TASK [radiusdesk : Adding .my.cnf for MySQL root Password Idempotency (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Remove Anonymous MySQL Users (Ubuntu 14+)] ******************
skipping: [localhost] => (item=127.0.0.1)
skipping: [localhost] => (item=localhost)

TASK [radiusdesk : Creating RadiusDesk Database (Ubuntu 14+)] ******************
skipping: [localhost]

TASK [radiusdesk : Creating RadiusDesk Database User (Ubuntu 14+)] *************
skipping: [localhost] => (item=127.0.0.1)
skipping: [localhost] => (item=localhost)

TASK [radiusdesk : Importing RadiusDesk Database (Ubuntu 14+)] *****************
skipping: [localhost]

TASK [radiusdesk : Ensuring SELinux is in Permissive Mode (RHEL/CentOS 6+)] ****
ok: [localhost]

TASK [radiusdesk : Ensuring Apache is not installed (RHEL/CentOS 6+)] **********
ok: [localhost]

TASK [radiusdesk : Checking for EPEL Repository (RHEL/CentOS 6+)] **************
ok: [localhost]

TASK [radiusdesk : Installing EPEL Repo for RadiusDesk (RHEL/CentOS 6+)] *******
ok: [localhost]

TASK [radiusdesk : Installing MySQL 5 Repo for RadiusDesk (RHEL/CentOS 6+)] ****
skipping: [localhost]

TASK [radiusdesk : Installing Nginx (RHEL/CentOS 6+)] **************************
fatal: [localhost]: FAILED! => {"changed": true, "failed": true, "msg": "Error: Package: nginx18-1.8.1-1.w6.x86_64 (webtatic)\n Requires: GeoIP\nError: Package: nginx18-1.8.1-1.w6.x86_64 (webtatic)\n Requires: libprofiler.so.0()(64bit)\nError: Package: nginx18-1.8.1-1.w6.x86_64 (webtatic)\n Requires: libGeoIP.so.1()(64bit)\n", "rc": 1, "results": ["Loaded plugins: fastestmirror, refresh-packagekit, replace, security\nSetting up Install Process\nLoading mirror speeds from cached hostfile\n * base: mirror.nbrc.ac.in\n * extras: mirror.nbrc.ac.in\n * updates: mirror.nbrc.ac.in\n * webtatic: sp.repo.webtatic.com\nResolving Dependencies\n--> Running transaction check\n---> Package nginx18.x86_64 0:1.8.1-1.w6 will be installed\n--> Processing Dependency: gd for package: nginx18-1.8.1-1.w6.x86_64\n--> Processing Dependency: GeoIP for package: nginx18-1.8.1-1.w6.x86_64\n--> Processing Dependency: libprofiler.so.0()(64bit) for package: nginx18-1.8.1-1.w6.x86_64\n--> Processing Dependency: libgd.so.2()(64bit) for package: nginx18-1.8.1-1.w6.x86_64\n--> Processing Dependency: libGeoIP.so.1()(64bit) for package: nginx18-1.8.1-1.w6.x86_64\n--> Running transaction check\n---> Package gd.x86_64 0:2.0.35-11.el6 will be installed\n---> Package nginx18.x86_64 0:1.8.1-1.w6 will be installed\n--> Processing Dependency: GeoIP for package: nginx18-1.8.1-1.w6.x86_64\n--> Processing Dependency: libprofiler.so.0()(64bit) for package: nginx18-1.8.1-1.w6.x86_64\n--> Processing Dependency: libGeoIP.so.1()(64bit) for package: nginx18-1.8.1-1.w6.x86_64\n--> Finished Dependency Resolution\n You could try using --skip-broken to work around the problem\n** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:\ndevtoolset-2-gcc-4.8.2-15.1.el6.x86_64 is a duplicate with devtoolset-2-gcc-4.8.2-15.el6.x86_64\n"]}

NO MORE HOSTS LEFT *************************************************************
to retry, use: --limit @/root/radiusdesk/rd-installer-ansible.retry

PLAY RECAP *********************************************************************
localhost : ok=6 changed=0 unreachable=0 failed=1

nginx fails after system restart

after installation is through when we restart the server nginx fails to start with error
nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (13: Permission denied)

I have freshly installed centos 6.6 minimal
installed radiusdesk installation script with default values
after installation configuration page availeble at http://ip/rd
but after server restart above error comes..
var/log/nginx/error.log has same eeror reported

Please inform where to search for error and solve the problem

Mysql root password

hi, I have installed using your script from scratch without nginx & mysql.
so, what the password default for mysql root ?

ubuntu 16.04 cannot open radiusdesk in browser after installation

Hey @muffycompo,
I try to install RADIUSdesk, to enable social login an a captive portal, on Ubuntu server 16.04 for a while now and I am still not successful. After a long search I found the latest installation guide with ansible, because it made the installation quite easy.
I have installed till now
coovachilli for captive portal, freeradius, apache2, php, mysql, python 2.7,ansible
I have followed your steps and the only difference till now was in the
server file

[default]
192.168.1.221 ansible_connection=local ansible_ssh_user=root
  • I removed the last 4 lines like you suggested in the tutorial video
  • I set the IP address of my virtual machine since I can only access the server threw an external browser because the server itself does not have a browser.
  • I didn't changed anything in the rd-installer-ansible.yml file (perhaps I should but I have too few exprience)

The installation went threw with success.
I can ping the server's 192.168.1.221 address from my windows machine on my computer as well as the virtual ubuntu client while the captive portal is open.
When pasting the server's network address http://192.168.1.221/rd get 404 error from the apache server.
Have I done something wrong? Is there a collision between the apache server and RADIUSdesk? Is there a place where I can check if the network configuration is correct?
For any advice I will be thankfull because it takes hours to find any solution and I don't have any ideas any more.
Thank You
Kamil

raspberry pi install

When i try and install on raspberry pi it just goes to commandline without any errors ? i dont know if im doing something wrong....think it might be debian or something.

Authentication.json

Hi,
I have an issue on this file, from web during the login i see an error "Ajax comunication failed", and in debug option from browser i see error 500 on file Authentication.json.
Anyone know how to fix this issue?

Improve debug log and status checking during installation

I checked the code and notice that most installation steps in functions.sh ignore the command output (just redirect them to >dev>null). This is pretty a bad idea because you won't know whether the command succeeds or not and if not, what the error messages are. I believe all output needs to be redirected to a log file for debugging purposes.

Secondly, the last step of the installation (Checking if services are operational) calls start_service and restart_service for the nodejs, apache/nginx and radiusd service but does not attempt to check if the services have been successfully restarted. In my case, FreeRadius could not be installed due to a 404 returned from the maomuffy repo but the script still says that the installation is successful!

I believe the correct way is to check the service command return code, or at least use something like "service radiusd status" after "service radiusd start" without output redirection and let the user see whether the service has been installed successfully.

Lastly the script should also check whether CakePHP and NodeJS have been successfully installed by wgetting http://localhost:8000/socket.io/socket.io.js and http://localhost/cake2/rd_cake/phrase_values/get_language_strings.json?_dc=1355816922405&language= as per the instructions from http://www.radiusdesk.com/getting_started/install after installation. If successful, the first URL will return the NodeJS socket javascript code whereas the second one will return some JSON output, which is being used for RadiusDesk localization. These two URLs are critical for the operation of RadiusDesk.

And for those who encounter similar problems of RadiusDesk not loaded after installation, first check the browser console log for possible error messages. Next, check the CakePHP error log at /var/www/html/cake2/rd_cake/tmp/. If there are things like "JSON strings could not be decoded" inside the logs and the RadiusDesk dialog header is cut-off or otherwise non-functional, one possible reason is the unexpected output of debug messages (warnings/errors) from the PHP engine and CakePHP. Check /etc/php.ini and set display_errors to off, then edit app/config/core.php inside the RadiusDesk CakePHP application change Configure::write() to disable the logging totally. This is because the warnings/debug messages output may disrupt the format of the JSON data stream and cause the RadiusDesk app to fail.

Installation Problem

Im getting this fail In Ubuntu 16.04:

failed: [localhost] (item=127.0.0.1) => {"failed": true, "item": "127.0.0.1", "msg": "unable to connect to database, check login_user and login_password are correct or /home/ubuntu/.my.cnf has the credentials. Exception message: (1045, "Acces
s denied for user '********'@'localhost' (using password: NO)")"}

Radiusdesk runs, but neither the console shows any freeradius logs in the app, neither the radius functions seems to work.

Installer not passing "Configuring Nginx to use UNIX sockets (Ubuntu)" on fresh ubuntu 14.04

TASK: [radiusdesk | Configuring Nginx to use UNIX sockets (Ubuntu)] ***********
fatal: [localhost] => {'msg': "One or more undefined variables: 'ansible_distribution_major_version' is undefined", 'failed': True}
fatal: [localhost] => {'msg': "One or more undefined variables: 'ansible_distribution_major_version' is undefined", 'failed': True}

FATAL: all hosts have already failed -- aborting

dynamic clients patch!

Hello!
Congratulations for your hard work in creating this script!
I have a question about the dynamics clients (NAS device) and radiusdesk, namely whether the patch is included in the install script?
Best regards!

Error: TASK [radiusdesk : Downloading RadiusDesk CakePHP Source from Subversion (Ubuntu 14+)]

Hello,

I try to install into a Ubuntu 16.04 Server.

I have this error.....

TASK [radiusdesk : Downloading RadiusDesk CakePHP Source from Subversion (Ubuntu 14+)] *********************************************
[WARNING]: Consider using subversion module rather than running svn

fatal: [localhost]: FAILED! => {"changed": true, "cmd": "svn checkout -r 2085 https://svn.code.sf.net/p/radiusdesk/code/trunk/rd_cake /tmp/rd_sources/rd_cake", "delta": "0:00:00.314358", "end": "2018-02-16 01:29:31.176404", "msg": "non-zero return code", "rc": 1, "start": "2018-02-16 01:29:30.862046", "stderr": "svn: E170013: Unable to connect to a repository at URL 'https://svn.code.sf.net/p/radiusdesk/code/trunk/rd_cake'\nsvn: E175002: Unexpected HTTP status 502 'Bad Gateway' on '/p/radiusdesk/code/trunk/rd_cake'", "stderr_lines": ["svn: E170013: Unable to connect to a repository at URL 'https://svn.code.sf.net/p/radiusdesk/code/trunk/rd_cake'", "svn: E175002: Unexpected HTTP status 502 'Bad Gateway' on '/p/radiusdesk/code/trunk/rd_cake'"], "stdout": "", "stdout_lines": []}
to retry, use: --limit @/root/radiusdesk-installer/rd-installer-ansible.retry

-bash: /usr/bin/node: Too many levels of symbolic links

TASK [radiusdesk : Reloading Nodejs Socket.io Daemon (Ubuntu 16+)] *********************************************************************************************************************************************************
fatal: [172.21.1.1]: FAILED! => {"changed": true, "cmd": "systemctl daemon-reload && systemctl enable nodejs-socket-io && systemctl start nodejs-socket-io", "delta": "0:00:00.191369", "end": "2018-01-17 10:09:43.856462", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2018-01-17 10:09:43.665093", "stderr": "Created symlink from /etc/systemd/system/multi-user.target.wants/nodejs-socket-io.service to /lib/systemd/system/nodejs-socket-io.service.\nJob for nodejs-socket-io.service failed because the control process exited with error code. See "systemctl status nodejs-socket-io.service" and "journalctl -xe" for details.", "stderr_lines": ["Created symlink from /etc/systemd/system/multi-user.target.wants/nodejs-socket-io.service to /lib/systemd/system/nodejs-socket-io.service.", "Job for nodejs-socket-io.service failed because the control process exited with error code. See "systemctl status nodejs-socket-io.service" and "journalctl -xe" for details."], "stdout": "", "stdout_lines": []}

Coovachilli support

Hello Mr. Muffy/Team
i have his scenario at hand and i need help from your development team.

I have an internet IP from my ISP as : 197.210.203.2 255.255.255.252. I want to use coovachilli as my captive portal instead of a Mikrotik router. I have successfully installed radiusdesk on my server ( ubuntu server 14.04 64bits), and i have also installed coovachilli 1.3.0 on the same server. My internet is on eth0 , and i want to use eth1 for the hotspot. The truth is am confused on the steps to take. Please if you can help me outline all the steps to take inorder to run coovachilli on the server.
Thanks for all the Support. God Bless!

I used to chat you on whatsapp before, but i lost your contact. my number is: +2348162661972 if you can chat me too. Thanks again.

Problem Installing on Ubuntu 15.10

included: /root/radiusdesk-installer/roles/radiusdesk/tasks/Freeradius_Debian.yml for localhost

TASK [radiusdesk : Adding RadiusDesk MAO Apt Repository Key (Ubuntu)] **********
changed: [localhost]

TASK [radiusdesk : Adding RadiusDesk MAO Apt Main Repository (Ubuntu)] *********
changed: [localhost]

TASK [radiusdesk : Installing Freeradius for RadiusDesk (Ubuntu)] **************
failed: [localhost](item=[u'freeradius=2.2.9-rd*', u'freeradius-utils=2.2.9-rd*', u'freeradius-mysql=2.2.9-rd*', u'freeradius-ldap=2.2.9-rd*', u'freeradius-krb5=2.2.9-rd*', u'freeradius-common=2.2.9-rd*', u'libnet-telnet-perl']) => {"cache_update_time": 1469683134, "cache_updated": true, "failed": true, "item": ["freeradius=2.2.9-rd_", "freeradius-utils=2.2.9-rd_", "freeradius-mysql=2.2.9-rd_", "freeradius-ldap=2.2.9-rd_", "freeradius-krb5=2.2.9-rd_", "freeradius-common=2.2.9-rd_", "libnet-telnet-perl"], "msg": "'/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" install 'freeradius=2.2.9-rd_' 'freeradius-utils=2.2.9-rd_' 'freeradius-mysql=2.2.9-rd_' 'freeradius-ldap=2.2.9-rd_' 'freeradius-krb5=2.2.9-rd_' 'freeradius-common=2.2.9-rd_' 'libnet-telnet-perl'' failed: E: Version '2.2.9-rd_' for 'freeradius' was not found\nE: Version '2.2.9-rd_' for 'freeradius-utils' was not found\nE: Version '2.2.9-rd_' for 'freeradius-mysql' was not found\nE: Version '2.2.9-rd_' for 'freeradius-ldap' was not found\nE: Version '2.2.9-rd_' for 'freeradius-krb5' was not found\n", "stderr": "E: Version '2.2.9-rd_' for 'freeradius' was not found\nE: Version '2.2.9-rd_' for 'freeradius-utils' was not found\nE: Version '2.2.9-rd_' for 'freeradius-mysql' was not found\nE: Version '2.2.9-rd_' for 'freeradius-ldap' was not found\nE: Version '2.2.9-rd_' for 'freeradius-krb5' was not found\n", "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information..."]}
...ignoring

TASK [radiusdesk : Checking if we already have Freeradius Configuration Directory Backup (Ubuntu)] ***
ok: [localhost]

TASK [radiusdesk : Renaming Freeradius Configuration Directory (Ubuntu)] *******
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "cp -afR /etc/freeradius /etc/freeradius_orig", "delta": "0:00:00.029367", "end": "2016-07-28 10:49:46.378349", "failed": true, "rc": 1, "start": "2016-07-28 10:49:46.348982", "stderr": "cp: cannot stat ‘/etc/freeradius’: No such file or directory", "stdout": "", "stdout_lines": [], "warnings": []}

RUNNING HANDLER [radiusdesk : Start Nginx] *************************************

RUNNING HANDLER [radiusdesk : Restart Nginx] ***********************************

RUNNING HANDLER [radiusdesk : Start PHP-FPM] ***********************************

RUNNING HANDLER [radiusdesk : Restart PHP-FPM] *********************************

RUNNING HANDLER [radiusdesk : Restart MySQL] ***********************************
to retry, use: --limit @/root/radiusdesk-installer/rd-installer-ansible.retry

PLAY RECAP *********************************************************************
localhost : ok=39 changed=25 unreachable=0 failed=1

Installing Failed

Hello,
I have a problem :(

./rd-installer

==== RADIUSDesk Installer 1.2.0 ====

  1. [I]nstall/Reconfigure RADIUSDesk
  2. [Q]uit
    Select an Option: i
    Installing/Reconfiguring RADIUSDesk

PLAY [default] *****************************************************************

TASK [setup] *******************************************************************
ok: [localhost]

TASK [radiusdesk : Checking for Supported OS] **********************************
skipping: [localhost]

TASK [radiusdesk : Adding RadiusDesk Variables (Ubuntu 14+)] *******************
skipping: [localhost]

TASK [radiusdesk : Adding RadiusDesk Variables (RHEL/CentOS 6+)] ***************
ok: [localhost]

TASK [radiusdesk : Ensuring Apache is not installed (Ubuntu 14+)] **************
skipping: [localhost]

TASK [radiusdesk : Installing Nginx (Ubuntu 14+)] ******************************
skipping: [localhost]

TASK [radiusdesk : Installing PHP5 packages (Ubuntu 14+)] **********************
skipping: [localhost] => (item=[])

TASK [radiusdesk : Installing PHP7 packages (Ubuntu 14+)] **********************
skipping: [localhost] => (item=None)

TASK [radiusdesk : Installing RadiusDesk packages (Ubuntu 14+)] ****************
skipping: [localhost] => (item=[])

TASK [radiusdesk : Installing RadiusDesk packages (Ubuntu 16+)] ****************
skipping: [localhost] => (item=[])

TASK [radiusdesk : Configuring PHP5-FPM to use UNIX sockets (Ubuntu 14+)] ******
skipping: [localhost]

TASK [radiusdesk : Configuring PHP7-FPM to use UNIX sockets (Ubuntu 14+)] ******
skipping: [localhost]

TASK [radiusdesk : Configuring Nginx to use UNIX sockets (Ubuntu 14+)] *********
skipping: [localhost]

TASK [radiusdesk : Configuring Nginx for RadiusDesk Web Compression (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Restarting RadiusDesk services for PHP5 (Ubuntu 14+)] *******
skipping: [localhost] => (item=php-fpm)
skipping: [localhost] => (item=nginx)

TASK [radiusdesk : Restarting RadiusDesk services for PHP7 (Ubuntu 14+)] *******
skipping: [localhost] => (item=nginx)
skipping: [localhost] => (item=None)

TASK [radiusdesk : Downloading CakePHP Source from Github (Ubuntu 14+)] ********
skipping: [localhost]

TASK [radiusdesk : Copying CakePHP Source to Webroot (Ubuntu 14+)] *************
skipping: [localhost]

TASK [radiusdesk : Downloading RadiusDesk CakePHP Source from Subversion (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Copying RadiusDesk CakePHP App Source to Webroot (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Downloading RadiusDesk Viewer Source from Subversion (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Copying RadiusDesk Viewer Source to Webroot (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Downloading RadiusDesk Login Source from Subversion (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Copying RadiusDesk Login Source webroot (Ubuntu 14+)] *******
skipping: [localhost]

TASK [radiusdesk : Configuring UAM Service for RadiusDesk Login (Ubuntu 14+)] **
skipping: [localhost]

TASK [radiusdesk : Checking if we already downloaded ExtJS 6 sources (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Downloading ExtJS 6 sources from Subversion (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Extracting ExtJS 6 archive for RadiusDesk Viewer (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Correcting Webroot ownership and permissions (Ubuntu 14+)] **
skipping: [localhost]

TASK [radiusdesk : Fix PHP5 Default Timezone] **********************************
skipping: [localhost]

TASK [radiusdesk : Fix PHP7 Default Timezone] **********************************
skipping: [localhost]

TASK [radiusdesk : Ensuring Nginx is Started (Ubuntu 14+)] *********************
skipping: [localhost]

TASK [radiusdesk : Ensuring PHP5-FPM is Started (Ubuntu 14+)] ******************
skipping: [localhost]

TASK [radiusdesk : Ensuring PHP7-FPM is Started (Ubuntu 14+)] ******************
skipping: [localhost]

TASK [radiusdesk : Configuring RadiusDesk Cron Jobs (Ubuntu 14+)] **************
skipping: [localhost]

TASK [radiusdesk : Ensuring MySQL is Started (Ubuntu 14+)] *********************
skipping: [localhost]

TASK [radiusdesk : Ensuring MySQL Root password has been set (Ubuntu 14+)] *****
skipping: [localhost]

TASK [radiusdesk : Changing MySQL Root password (Ubuntu 14+)] ******************
skipping: [localhost] => (item=127.0.0.1)
skipping: [localhost] => (item=localhost)

TASK [radiusdesk : Adding .my.cnf for MySQL root Password Idempotency (Ubuntu 14+)] ***
skipping: [localhost]

TASK [radiusdesk : Remove Anonymous MySQL Users (Ubuntu 14+)] ******************
skipping: [localhost] => (item=localhost)
skipping: [localhost] => (item=127.0.0.1)

TASK [radiusdesk : Creating RadiusDesk Database (Ubuntu 14+)] ******************
skipping: [localhost]

TASK [radiusdesk : Creating RadiusDesk Database User (Ubuntu 14+)] *************
skipping: [localhost] => (item=localhost)
skipping: [localhost] => (item=127.0.0.1)

TASK [radiusdesk : Importing RadiusDesk Database (Ubuntu 14+)] *****************
skipping: [localhost]

TASK [radiusdesk : Ensuring SELinux is in Permissive Mode (RHEL/CentOS 6+)] ****
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Destination /etc/sysconfig/selinux does not exist !", "rc": 257}
to retry, use: --limit @/root/radiusdesk-installer/rd-installer-ansible.retry

PLAY RECAP *********************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=1

Installation not working on ubuntu 14.04.3 on digital ocean

I get all of these errors:

  1. Installing CakePHP
    mv: cannot stat ‘/tmp/radiusdesk/cakephp’: No such file or directory

  1. Installing RADIUSdesk
    cp: cannot create directory ‘/usr/share/nginx/html/cake2/’: File exists
    cp: cannot stat ‘/usr/share/nginx/html/cake2/rd_cake/Setup/Node.js/nodejs-socket-io’: No such file or directory

  1. Installing Sencha ExtJS

  1. Installing Cron Script for RADIUSdesk
    cp: cannot stat ‘/usr/share/nginx/html/cake2/rd_cake/Setup/Cron/rd’: No such file or directory
    grep: /usr/share/nginx/html/cake2: No such file or directory
    sed: no input files
    sed: can't read /etc/cron.d/rd: No such file or directory

  1. Updating RADIUSdesk Paths for Ubuntu/Debian compatibility
    sed: can't read /usr/share/nginx/html/cake2/rd_cake/Config/RadiusDesk.php: No such file or directory

  1. Installing FreeRADIUS
    sed: can't read /usr/share/nginx/html/cake2/rd_cake/Setup/Scripts/radscenario.pl: No such file or directory
    sed: can't read /usr/share/nginx/html/cake2/rd_cake/Setup/Db/rd.sql: No such file or directory
    tar (child): freeradius-server-2.2.0.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    includes/functions.sh: line 327: cd: freeradius-server*/: No such file or directory
    includes/functions.sh: line 328: /usr/share/nginx/html/cake2/rd_cake/Setup/Radius/rlm_raw_patch: No such file or directory
    includes/functions.sh: line 329: src/modules/stable: No such file or directory
    cp: cannot stat ‘/usr/local/sbin/rc.radiusd’: No such file or directory
    cp: cannot stat ‘/usr/share/nginx/html/cake2/rd_cake/Setup/Radius/checkrad’: No such file or directory
    mv: cannot stat ‘/usr/local/etc/raddb/’: No such file or directory
    tar (child): /usr/share/nginx/html/cake2/rd_cake/Setup/Radius/raddb_rd.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    sed: can't read /usr/local/etc/raddb/radiusd.conf: No such file or directory
    sed: can't read /usr/local/etc/raddb/clients.conf: No such file or directory
    sed: can't read /usr/local/etc/raddb/clients.conf: No such file or directory
    ln: failed to create symbolic link ‘/usr/local/etc/raddb/sites-enabled/dynamic-clients’: No such file or directory
    cp: cannot create regular file ‘/usr/local/etc/raddb/sites-enabled/dynamic-clients’: No such file or directory
    includes/functions.sh: line 352: /usr/local/etc/raddb/modules/raw: No such file or directory
    sed: can't read /usr/share/nginx/html/cake2/rd_cake/Setup/Node.js/Logfile.node.js: No such file or directory
    sed: can't read /usr/share/nginx/html/cake2/rd_cake/Setup/Node.js/Logfile.node.js: No such file or directory
    sed: can't read /usr/share/nginx/html/cake2/rd_cake/Setup/Node.js/Logfile.node.js: No such file or directory
    sed: can't read /usr/share/nginx/html/cake2/rd_cake/Setup/Node.js/Logfile.node.js: No such file or directory
    sed: can't read /usr/local/etc/raddb/sql.conf: No such file or directory
    sed: can't read /usr/local/etc/raddb/sql.conf: No such file or directory
    sed: can't read /usr/local/etc/raddb/sql.conf: No such file or directory
    sed: can't read /usr/local/etc/raddb/sql.conf: No such file or directory
    sed: can't read /usr/local/etc/raddb/rlm_perl_modules/SQLConnector.pm: No such file or directory
    sed: can't read /usr/local/etc/raddb/rlm_perl_modules/SQLConnector.pm: No such file or directory
    sed: can't read /usr/local/etc/raddb/rlm_perl_modules/SQLConnector.pm: No such file or directory
    sed: can't read /usr/local/etc/raddb/rlm_perl_modules/SQLConnector.pm: No such file or directory
    sed: can't read /usr/share/nginx/html/cake2/rd_cake/Config/database.php: No such file or directory
    sed: can't read /usr/share/nginx/html/cake2/rd_cake/Config/database.php: No such file or directory
    sed: can't read /usr/share/nginx/html/cake2/rd_cake/Config/database.php: No such file or directory
    sed: can't read /usr/share/nginx/html/cake2/rd_cake/Config/database.php: No such file or directory

  1. Installing Database Schema for RADIUSdesk
    includes/functions.sh: line 280: /usr/share/nginx/html/cake2/rd_cake/Setup/Db/rd.sql: No such file or directory
    chmod: cannot access ‘/usr/local/sbin/checkrad’: No such file or directory
    chmod: cannot access ‘/usr/local/etc/raddb/dictionary’: No such file or directory
    chmod: cannot access ‘/usr/share/nginx/html/cake2/rd_cake/Setup/Scripts/*.pl’: No such file or directory
    chmod: cannot access ‘/etc/init.d/nodejs-socket-io’: No such file or directory

  1. Installing NodeJS
    sed: can't read /etc/init.d/nodejs-socket-io: No such file or directory
    sed: can't read /etc/init.d/nodejs-socket-io: No such file or directory
    sed: can't read /etc/init.d/nodejs-socket-io: No such file or directory

  1. Checking if services are fully Operational

INSTALLATION COMPLETED SUCCESSFULLY!!!

Is the script broken??

Thanks

cannot connect to database

Centos 7 Fresh Install

TASK [radiusdesk : Changing MySQL Root password (RHEL/CentOS 6+)] **************
failed: [localhost] (item=127.0.0.1) => {"failed": true, "item": "127.0.0.1", "msg": "unable to connect to database, check login_user and login_password are correct or //.my.cnf has the credentials. Exception message: (1045, "Access denied for user ''@'localhost' (using password: NO)")"}
failed: [localhost] (item=localhost) => {"failed": true, "item": "localhost", "msg": "unable to connect to database, check login_user and login_password are correct or //.my.cnf has the credentials. Exception message: (1045, "Access denied for user ''@'localhost' (using password: NO)")"}

iptable and selinux disabled, can you give help?

Ansible fatal error

fatal: [localhost] => {'msg': "One or more undefined variables: 'ansible_distribution_major_version' is undefined", 'failed': True}
fatal: [localhost] => {'msg': "One or more undefined variables: 'ansible_distribution_major_version' is undefined", 'failed': True}

FATAL: all hosts have already failed -- aborting.
Please what do i do?
Thanks

Wrong version of ExtJS being used

Well, I successfully modified the script and managed to let it install MySQL + Apache + FreeRadius without any error messages and thought that's it when I suddenly realized that the installed RadiusDesk application (http://localhost/rd) would not open and just hang at the RadiusDesk logo. After much debugging it turns out that the issue was due to the fact that the script installs the latest version of RadiusDesk from the trunk but uses ExtJS version 4.2.1. For the last few versions, RadiusDesk has been using ExtJS 6.0, and the old release which used ExtJS 4.2.1 was renamed as rd_legacy (see SVN branch http://svn.code.sf.net/p/radiusdesk/code/trunk/). Both ExtJS releases are also available on the RadiusDesk SVN for download (http://svn.code.sf.net/p/radiusdesk/code/extjs/). I fixed the issue by manually downloading the correct versions of ExtJS and put in /var/www/html after the install is completed.

CentOS 6.8 freeradius won't start

Hi Muffy,

Freeradius refuses to start "radiusd -X" gives this error and exits:

rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
rlm_sql (sql): Attempting to connect to rd@localhost:/rd
rlm_sql (sql): starting 0
rlm_sql (sql): Attempting to connect rlm_sql_mysql #0
rlm_sql_mysql: Starting connect to MySQL server for #0
rlm_sql (sql): Connected new DB handle, #0
rlm_sql (sql): starting 1
rlm_sql (sql): Attempting to connect rlm_sql_mysql #1
rlm_sql_mysql: Starting connect to MySQL server for #1
rlm_sql (sql): Connected new DB handle, #1
rlm_sql (sql): starting 2
rlm_sql (sql): Attempting to connect rlm_sql_mysql #2
rlm_sql_mysql: Starting connect to MySQL server for #2
rlm_sql (sql): Connected new DB handle, #2
rlm_sql (sql): starting 3
rlm_sql (sql): Attempting to connect rlm_sql_mysql #3
rlm_sql_mysql: Starting connect to MySQL server for #3
rlm_sql (sql): Connected new DB handle, #3
rlm_sql (sql): starting 4
rlm_sql (sql): Attempting to connect rlm_sql_mysql #4
rlm_sql_mysql: Starting connect to MySQL server for #4
rlm_sql (sql): Connected new DB handle, #4
rlm_sql (sql): Processing generate_sql_clients
rlm_sql (sql) in generate_sql_clients: query is SELECT id, nasname, shortname, type, secret, server FROM nas
rlm_sql (sql): Reserving sql socket id: 4
rlm_sql (sql): Read entry nasname=127.0.0.1,shortname=localhost,secret=greatsecret
rlm_sql (sql): Adding client 127.0.0.1 (localhost, server=) to clients list
Failed to add duplicate client localhost
rlm_sql (sql): Released sql socket id: 4
rlm_sql (sql): Failed to add client 127.0.0.1 (localhost) to clients list. Maybe there's a duplicate?
Failed to load clients from SQL.
rlm_sql (sql): Closing sqlsocket 4
rlm_sql (sql): Closing sqlsocket 3
rlm_sql (sql): Closing sqlsocket 2
rlm_sql (sql): Closing sqlsocket 1
rlm_sql (sql): Closing sqlsocket 0
/etc/raddb/sql.conf[22]: Instantiation failed for module "sql"
/etc/raddb/policy.conf[321]: Failed to find "sql" in the "modules" section.
/etc/raddb/policy.conf[321]: Failed to parse "sql" entry.
/etc/raddb/policy.conf[68]: Failed to parse "RADIUSdesk_user_check" entry.
/etc/raddb/policy.conf[389]: Failed to parse "RADIUSdesk_device_check" entry.
/etc/raddb/policy.conf[388]: Failed to parse "if" subsection.
/etc/raddb/sites-enabled/default[166]: Failed to parse "RADIUSdesk_main" entry.
/etc/raddb/sites-enabled/default[69]: Errors parsing authorize section.

Mysql is running fine, I can connect the "rd" database and view all tables too. Package "freeradius-mysql" is installed.

It looks like something to do with the freeradius config files.

Script fails to work due to wrong filename passed to unzip

The script is no longer working, possibly after the changes on 22 Sep with notes 'Removed cake version specific commands'. What this does is to remove specific version-references from functions.sh when unzipping file, e.g. in install_cakephp(), changed from cakephp-2.2.9.zip to cakephp.zip. However, the downloaded filename in rhel_centos_core.sh (and possibly the Ubuntu ones) was not changed - it still has the version number appended. This causes the unzip to fail and thus prevent the rest of the script from working.

Mac not registered

Hi Muffy,

Why would I get this error message when a user connects?

Sending Access-Reject of id 11 to 192.168.60.30 port 3799
Reply-Message = "User 74-DE-2B-FD-0C-9F not registered"

I get this message upon connecting to the SSID. After which the user cannot login.

error starting apache

After running the installer on a fresh minimal centos 6.5 system
permision denied on the httpd.conf when starting httpd

Possible broken against Ubuntu 14.04

Hi

Thanks for the effort making this, appreciate it!

I am a newbie, but i think your script may be broken towards ubuntu.

Tried an install, and got lots of errors. This was on a new machine.

What i have found is:

Freeradius filename is wrong. You download version 3, but try to untar version 2.
Libtalloc-dev was missing on my machine, so compile of Freeradius failed.
Cakephp dir is actually cakephp-master after unzip - this seems to break cakephp install.

I have tried to fix these things, and things seemed to go better. It is compiling FR now, but it is also giving some error messages on previous steps, but these looks related to already existing dirs, as i have run the script over and over again. (Maybe it should have a "clean" option for reinstall purposes?)

Anyway, i may not have pointed out all (or any) faults, but you might get an idea of what to check.

Regards

Kim

UAM_Secret

There seams to be a problem with the uam secret.
if you set the uam secret to "uam_s3cr3t" it wont work.
The Captive Portal wont accept your login.
if you change it in /etc/chilli/config to "greatsecret" it works.
I think that you have to change the uam secret also in other files not only in /etc/chilli/config.

I Hope you can fix it.

I'm using ubuntu server 13.10 32bit

no statistic for user

Hello

I use redhat and external mysql server (aws) after migrating to external mysql, no showing user statistics. Can someone advice what to edit ?

Install ubuntu 16 mysql bug

I make this clear us bug because I try 3 times in ubuntu 16 and install finish but mysql setup password is incorrect.
Installing in ubuntu 14 have not issues

error accessing hotspot login page after installation

problem: build(/var/ww/html/rd_login_pages/desktop/coovachilli/build ) folder not found.

i found out that there is a build.d.tar.gz file on that same directory, extracting the archive make the thing works like magic. my bet is its a piece of pie for you to put this in your installer.

radiusdesk-installer on ubuntu 18 lts - problems solved

I installed radiusdesk successful on a fresh installed ubuntu 18 lts running as an virtual machine. while the installation I ran into some problems. here are the problems I ran into and how i solved them. perhaps someone finds this helpful.

Troubleshooting

  • add php7.1 source to ubuntu

      sudo apt-get install python-software-properties
      sudo add-apt-repository ppa:ondrej/php
      sudo apt-get update
    
  • to install freeradius ppa, add followind dependency to Debian.yml

      vi roles/radiusdesk/vars/Debian.yml
      	#Freeradius Packages (Ubuntu 14+)
      	freeradius_pkgs:
      	 - "libfreeradius3=3.0.16-ppa1*"
    
    • or install manually

      apt install libfreeradius3=3.0.16-ppa1*

    • run ubuntu upgrade will install none ppa version of freeradius

      • my solution: mark freeradius as hold to be ingored when doing an upgrade of ubuntu

        apt-mark hold libfreeradius3 freeradius freeradius-utils freeradius-mysql freeradius-ldap freeradius-krb5 freeradius-common
        apt-mark showhold
        apt upgrade
        apt list --upgradable

  • depends on nmp and needs to be installed

      apt install nmp
    
  • to run ansible automation for freeradius including chilli you need to install dynamic login page first

Cheers

Cannot Access Captive Portal

Hi Muffy,

I ran the installer on a proxmox container running Ubuntu 14.04. The installation was hazzle free. I could even log in to RadiusDesk. But the problem comes when I try to access the captive portal from another vm.

For Coova chilli WAN I used eth0 bridged to proxmox host vmbr0 and LAN to wlan0 bridged to host vmbr1. LAN IP provided was 192.168.2.1 . I could ping 192.168.2.1 from another VM but when I tried to connect to captive portal it doesn't connect and time out.

ifconfig shows eth0, wlan0 and tun0 up and running. I even tried disabling the firewall but no luck. What may be causing this issue.

Thanx

URL not found

Hello Muffy,

I'm using an openwrt router for coova-chilli (as mentioned here http://www.radiusdesk.com/docuwiki/user_guide/chilli/coovaap but not using the same firmware). Everything seems to be working fine except when I try to browse after connect I get "Not found http://10.2.0.1/cake2/rd_cake/dynamic_details/chilli_browser_detect/?res=notyet&uamip=10.2.0.1&uamport=3990&challenge=352969b4b6e091f11604c45170608943&called=F4-F2-6D-46-1D-D0&mac=74-DE-2B-FD-0C-9F&ip=10.2.0.10&ssid=GreenEarth&nasid=CHLV&sessionid=57ce7bbc00000003&userurl=http%3a%2f%2frediff.com%2f&md=0A335098F8CA664399BACDCBFFA4D45B on this server"

I have another instance of coova-chilli running on a separate lan interface on the same radiusdesk installed system and it's working fine.

What would cause that error?

Thanks.

getting key error

hey man hope you can maybe help...im getting this error???
TASK [radiusdesk : Adding RadiusDesk MAO Apt Repository Key (Ubuntu 14+)] *******************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to download key at http://maomuffy.com/apt/ubuntu/apt_keys/rd_installer_mao.asc: Request failed: <urlopen error [Errno -3] Temporary failure in name resolution>"}
to retry, use: --limit @/root/radiusdesk-installer/rd-installer-ansible.retry

PLAY RECAP **********************************************************************************************************************************************************
localhost : ok=37 changed=16 unreachable=0 failed=1

seems like you website may be down???

Install Works, but I can't log in.

It looks like the installed did everything it needed to, but I wasn't able to log into afterwards with the default login and password. I click "OK" and I see the HTTP POST come in, but then nothing happens.

What am I missing?

install vixie-cron will be failed in CentOS 7

TASK [radiusdesk : Installing RadiusDesk packages (RHEL/CentOS 6.x/7.x)] *******
ok: [192.168.1.101] => (item=[u'php-fpm', u'php-pear', u'php-gd', u'php-common', u'php-cli', u'php-mysql', u'php-xcache', u'mysql-server', u'mysql', u'subversion', u'git', u'vixie-cron', u'mailx', u'python', u'MySQL-python', u'perl', u'unixODBC', u'postgresql', u'openldap', u'libtool-ltdl', u'gcc-c++', u'gcc', u'make', u'unzip', u'tar'])
to retry, use: --limit @/root/radiusdesk-installer/rd-installer-ansible.retry

PLAY RECAP *********************************************************************
192.168.1.101 : ok=6 changed=1 unreachable=0 failed=1

remove vixie-cron in vars will fix it.

Doesnt load login screen

Hallo i have now tried loading on ubuntu 13 and 14 but it doesnt seem to install correctly. i doesnt load the login screen??? it shows the icon at the right bottom but nothing else...

error certificate for apt.maomuffy.com

Hello
Im RADIUSDesk Installer – Ansible but not found the certificate. That´s the error.

The SO it´s Ubuntu 14.04.3 LTS

TASK [radiusdesk : Adding RadiusDesk MAO Apt Repository Key (Ubuntu)] **********
fatal: [x.x.x.x]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to validate the SSL certificate for apt.maomuffy.com:443. Make sure your managed systems have a valid CA certificate installed. If the website serving the url uses SNI you need python >= 2.7.9 on your managed machine or you can install the urllib3, pyopenssl, ndg-httpsclient, and pyasn1 python modules to perform SNI verification in python >= 2.6. You can use validate_certs=False if you do not need to confirm the servers identity but this is unsafe and not recommended. Paths checked for this platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, /usr/share/ca-certificates/cacert.org, /etc/ansible"}
to retry, use: --limit @/home/radiusdesk-installer/rd-installer-ansible.retry

Best regards

Issue with SSH

GATHERING FACTS ***************************************************************
fatal: [192.168.137.2] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue

TASK: [radiusdesk | Adding RadiusDesk Variables (Ubuntu)] *********************
FATAL: no hosts matched or all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
to retry, use: --limit @/home/akuchu/rd-installer-ansible.retry

192.168.137.2 : ok=0 changed=0 unreachable=1 failed=0

I get this error when i launch the installer..( 192.168.137.2 is the static IP address i have on my ubuntu server). But i added the IP to ssh as( ssh [email protected]) What might be the problem here?
Thanks

Failed to Install Freeradius during installation

==== RADIUSDesk Installer 1.2.1 ====

  1. [I]nstall RADIUSDesk
  2. Install RADIUSDesk + [C]oovaChilli
    Select an Option or [q] to Quit: 2
    Installing RADIUSDesk + CoovaChilli

CoovaChilli LAN Interface (default: eth0):
CoovaChilli WAN Interface (default: eth1):
CoovaChilli UAM Secret (default: greatsecret):
eth0 - eth1 - greatsecret

PLAY [default] ************************************************************************************************

TASK [Gathering Facts] ****************************************************************************************
ok: [localhost]

TASK [radiusdesk : Checking for Supported Ubuntu Release] *****************************************************
skipping: [localhost]

TASK [radiusdesk : Checking for Supported RHEL/CentOS Release] ************************************************
skipping: [localhost]

TASK [radiusdesk : Adding RadiusDesk Variables (Ubuntu 14+)] **************************************************
skipping: [localhost]

TASK [radiusdesk : Adding RadiusDesk Variables (RHEL/CentOS 6+)] **********************************************
ok: [localhost]

TASK [radiusdesk : Ensuring AppArmor is disabled (Ubuntu 14+)] ************************************************
skipping: [localhost]

TASK [radiusdesk : Bootstraping Download Directory for RADIUSDesk Sources (Ubuntu 14+)] ***********************
skipping: [localhost]

TASK [radiusdesk : Ensuring Apache is not installed (Ubuntu 14+)] *********************************************
skipping: [localhost]

TASK [radiusdesk : Installing Nginx (Ubuntu 14+)] *************************************************************
skipping: [localhost]

TASK [radiusdesk : Installing PHP5 packages (Ubuntu 14+)] *****************************************************
skipping: [localhost] => (item=[])

TASK [radiusdesk : Installing PHP7 packages (Ubuntu 14+)] *****************************************************
skipping: [localhost] => (item=None)

TASK [radiusdesk : Installing RadiusDesk packages (Ubuntu 14+)] ***********************************************
skipping: [localhost] => (item=[])

TASK [radiusdesk : Installing RadiusDesk packages (Ubuntu 16+)] ***********************************************
skipping: [localhost] => (item=[])

TASK [radiusdesk : Configuring PHP5-FPM to use UNIX sockets (Ubuntu 14+)] *************************************
skipping: [localhost]

TASK [radiusdesk : Configuring PHP7-FPM to use UNIX sockets (Ubuntu 14+)] *************************************
skipping: [localhost]

TASK [radiusdesk : Configuring Nginx to use UNIX sockets (Ubuntu 14+)] ****************************************
skipping: [localhost]

TASK [radiusdesk : Configuring Nginx for RadiusDesk Web Compression (Ubuntu 14+)] *****************************
skipping: [localhost]

TASK [radiusdesk : Restarting RadiusDesk services for PHP5 (Ubuntu 14+)] **************************************
skipping: [localhost] => (item=nginx)
skipping: [localhost] => (item=php-fpm)

TASK [radiusdesk : Restarting RadiusDesk services for PHP7 (Ubuntu 14+)] **************************************
skipping: [localhost] => (item=nginx)
skipping: [localhost] => (item=None)

TASK [radiusdesk : Downloading CakePHP Source from Github (Ubuntu 14+)] ***************************************
skipping: [localhost]

TASK [radiusdesk : Copying CakePHP Source to Webroot (Ubuntu 14+)] ********************************************
skipping: [localhost]

TASK [radiusdesk : Downloading RadiusDesk CakePHP Source from Subversion (Ubuntu 14+)] ************************
skipping: [localhost]

TASK [radiusdesk : Copying RadiusDesk CakePHP App Source to Webroot (Ubuntu 14+)] *****************************
skipping: [localhost]

TASK [radiusdesk : Downloading RadiusDesk CakePHP 3 Source from Subversion (Ubuntu 14+)] **********************
skipping: [localhost]

TASK [radiusdesk : Copying RadiusDesk CakePHP 3 Source to Webroot (Ubuntu 14+)] *******************************
skipping: [localhost]

TASK [radiusdesk : Downloading RadiusDesk Viewer Source from Subversion (Ubuntu 14+)] *************************
skipping: [localhost]

TASK [radiusdesk : Copying RadiusDesk Viewer Source to Webroot (Ubuntu 14+)] **********************************
skipping: [localhost]

TASK [radiusdesk : Downloading RadiusDesk Login Source from Subversion (Ubuntu 14+)] **************************
skipping: [localhost]

TASK [radiusdesk : Copying RadiusDesk Login Source webroot (Ubuntu 14+)] **************************************
skipping: [localhost]

TASK [radiusdesk : Configuring UAM Service for RadiusDesk Login (Ubuntu 14+)] *********************************
skipping: [localhost]

TASK [radiusdesk : Checking if we already downloaded ExtJS 6.2 sources (Ubuntu 14+)] **************************
skipping: [localhost]

TASK [radiusdesk : Downloading ExtJS 6.2 sources from Subversion (Ubuntu 14+)] ********************************
skipping: [localhost]

TASK [radiusdesk : Extracting ExtJS 6.2 archive for RadiusDesk Viewer (Ubuntu 14+)] ***************************
skipping: [localhost]

TASK [radiusdesk : Correcting Webroot ownership and permissions (Ubuntu 14+)] *********************************
skipping: [localhost]

TASK [radiusdesk : Fix PHP5 Default Timezone] *****************************************************************
skipping: [localhost]

TASK [radiusdesk : Fix PHP7 Default Timezone] *****************************************************************
skipping: [localhost]

TASK [radiusdesk : Ensuring Nginx is Started (Ubuntu 14+)] ****************************************************
skipping: [localhost]

TASK [radiusdesk : Ensuring PHP5-FPM is Started (Ubuntu 14+)] *************************************************
skipping: [localhost]

TASK [radiusdesk : Ensuring PHP7-FPM is Started (Ubuntu 14+)] *************************************************
skipping: [localhost]

TASK [radiusdesk : Configuring RadiusDesk Cron Jobs (Ubuntu 14+)] *********************************************
skipping: [localhost]

TASK [radiusdesk : Disabling MySQL 5.7 Strict Mode (Ubuntu 16+)] **********************************************
skipping: [localhost]

TASK [radiusdesk : Ensuring MySQL is Started (Ubuntu 14+)] ****************************************************
skipping: [localhost]

TASK [radiusdesk : Ensuring MySQL Root password has been set (Ubuntu 14+)] ************************************
skipping: [localhost]

TASK [radiusdesk : Changing MySQL Root password (Ubuntu 14+)] *************************************************
skipping: [localhost] => (item=127.0.0.1)
skipping: [localhost] => (item=localhost)

TASK [radiusdesk : Adding .my.cnf for MySQL root Password Idempotency (Ubuntu 14+)] ***************************
skipping: [localhost]

TASK [radiusdesk : Remove Anonymous MySQL Users (Ubuntu 14+)] *************************************************
skipping: [localhost] => (item=127.0.0.1)
skipping: [localhost] => (item=localhost)

TASK [radiusdesk : Creating RadiusDesk Database (Ubuntu 14+)] *************************************************
skipping: [localhost]

TASK [radiusdesk : Creating RadiusDesk Database User (Ubuntu 14+)] ********************************************
skipping: [localhost] => (item=127.0.0.1)
skipping: [localhost] => (item=localhost)

TASK [radiusdesk : Importing RadiusDesk Database (Ubuntu 14+)] ************************************************
skipping: [localhost]

TASK [radiusdesk : Installing System Packages (RHEL/CentOS 6+)] ***********************************************
ok: [localhost]

TASK [radiusdesk : Disabling SELinux (RHEL/CentOS 6+)] ********************************************************
ok: [localhost]

TASK [radiusdesk : Bootstraping Download Directory for RADIUSDesk Sources (Ubuntu 14+)] ***********************
ok: [localhost]

TASK [radiusdesk : Ensuring Apache is not installed (RHEL/CentOS 6+)] *****************************************
changed: [localhost]

TASK [radiusdesk : Installing EPEL Repo for RadiusDesk (RHEL/CentOS 6+)] **************************************
ok: [localhost]

TASK [radiusdesk : Installing REMI Repo for RadiusDesk (RHEL/CentOS 6+)] **************************************
ok: [localhost]

TASK [radiusdesk : Installing MySQL Community Repo for RadiusDesk (RHEL/CentOS 6+)] ***************************
ok: [localhost]

TASK [radiusdesk : Installing Nginx (RHEL/CentOS 6+)] *********************************************************
ok: [localhost]

TASK [radiusdesk : Installing PHP packages (RHEL/CentOS 6+)] **************************************************
ok: [localhost] => (item=[u'php-fpm', u'php-pear', u'php-gd', u'php-common', u'php-cli', u'php-mysql', u'php-xcache', u'php-intl', u'php-xml', u'php-mbstring'])

TASK [radiusdesk : Installing RadiusDesk packages (RHEL/CentOS 6+)] *******************************************
ok: [localhost] => (item=[u'mysql-server', u'mysql', u'subversion', u'git', u'cronie', u'mailx', u'python', u'MySQL-python', u'perl', u'unixODBC', u'postgresql', u'openldap', u'libtool-ltdl', u'gcc-c++', u'gcc', u'make', u'unzip', u'tar'])

TASK [radiusdesk : Configuring PHP-FPM to use UNIX sockets (RHEL/CentOS 6+)] **********************************
ok: [localhost]

TASK [radiusdesk : Configuring Nginx to use UNIX sockets (RHEL/CentOS 6+)] ************************************
ok: [localhost]

TASK [radiusdesk : Configuring Nginx for RadiusDesk Web Compression (RHEL/CentOS 6+)] *************************
ok: [localhost]

TASK [radiusdesk : Downloading CakePHP Source from Github (RHEL/CentOS 6+)] ***********************************
ok: [localhost]

TASK [radiusdesk : Copying CakePHP Source to Webroot (RHEL/CentOS 6+)] ****************************************
changed: [localhost]

TASK [radiusdesk : Downloading RadiusDesk CakePHP Source from Subversion (RHEL/CentOS 6+)] ********************
[WARNING]: Consider using subversion module rather than running svn

changed: [localhost]

TASK [radiusdesk : Copying RadiusDesk CakePHP App Source to Webroot (RHEL/CentOS 6+)] *************************
changed: [localhost]

TASK [radiusdesk : Downloading RadiusDesk CakePHP 3 Source from Subversion (Ubuntu 14+)] **********************
changed: [localhost]

TASK [radiusdesk : Copying RadiusDesk CakePHP 3 Source to Webroot (Ubuntu 14+)] *******************************
changed: [localhost]

TASK [radiusdesk : Downloading RadiusDesk Viewer Source from Subversion (RHEL/CentOS 6+)] *********************
changed: [localhost]

TASK [radiusdesk : Copying RadiusDesk Viewer Source to Webroot (RHEL/CentOS 6+)] ******************************
changed: [localhost]

TASK [radiusdesk : Downloading RadiusDesk Login Source from Subversion (RHEL/CentOS 6+)] **********************
changed: [localhost]

TASK [radiusdesk : Copying RadiusDesk Login Source webroot (RHEL/CentOS 6+)] **********************************
changed: [localhost]

TASK [radiusdesk : Configuring UAM Service for RadiusDesk Login (RHEL/CentOS 6+)] *****************************
changed: [localhost]

TASK [radiusdesk : Checking if we already downloaded ExtJS 6.2 sources (Ubuntu 14+)] **************************
ok: [localhost]

TASK [radiusdesk : Downloading ExtJS 6.2 sources from Subversion (Ubuntu 14+)] ********************************
[WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found:
extjs_src.stat.exists == False or extjs_src.stat.md5 != '{{ extjs_62_src_md5_sum }}'

skipping: [localhost]

TASK [radiusdesk : Extracting ExtJS 6.2 archive for RadiusDesk Viewer (Ubuntu 14+)] ***************************
changed: [localhost]

TASK [radiusdesk : Correcting Webroot ownership and permissions (RHEL/CentOS 6+)] *****************************
changed: [localhost]

TASK [radiusdesk : Fix PHP Default Timezone] ******************************************************************
changed: [localhost]

TASK [radiusdesk : Ensuring Nginx is Started (RHEL/CentOS 6+)] ************************************************
changed: [localhost]

TASK [radiusdesk : Ensuring PHP-FPM is Started (RHEL/CentOS 6+)] **********************************************
changed: [localhost]

TASK [radiusdesk : Configuring RadiusDesk Cron Jobs (RHEL/CentOS 6+)] *****************************************
ok: [localhost]

TASK [radiusdesk : Disabling MySQL 5.6+ Strict Mode (RHEL/CentOS 6+)] *****************************************
ok: [localhost]

TASK [radiusdesk : Ensuring MySQL is Started (RHEL/CentOS 6+)] ************************************************
ok: [localhost]

TASK [radiusdesk : Ensuring MySQL Root password has been set (RHEL/CentOS 6+)] ********************************
ok: [localhost]

TASK [radiusdesk : Changing MySQL Root password (RHEL/CentOS 6+)] *********************************************
skipping: [localhost] => (item=127.0.0.1)
skipping: [localhost] => (item=localhost)

TASK [radiusdesk : Adding .my.cnf for MySQL root Password Idempotency (RHEL/CentOS 6+)] ***********************
skipping: [localhost]

TASK [radiusdesk : Remove Anonymous MySQL Users (RHEL/CentOS 6+)] *********************************************
ok: [localhost] => (item=127.0.0.1)
ok: [localhost] => (item=localhost)

TASK [radiusdesk : Creating RadiusDesk Database (RHEL/CentOS 6+)] *********************************************
ok: [localhost]

TASK [radiusdesk : Creating RadiusDesk Database User (RHEL/CentOS 6+)] ****************************************
ok: [localhost] => (item=127.0.0.1)
ok: [localhost] => (item=localhost)

TASK [radiusdesk : Importing RadiusDesk Database (RHEL/CentOS 6+)] ********************************************
changed: [localhost]

TASK [radiusdesk : Adding RadiusDesk MAO Apt Repository Key (Ubuntu 14+)] *************************************
skipping: [localhost]

TASK [radiusdesk : Adding RadiusDesk MAO Apt Main Repository (Ubuntu 14+)] ************************************
skipping: [localhost]

TASK [radiusdesk : Installing Freeradius for RadiusDesk (Ubuntu 14+)] *****************************************
skipping: [localhost] => (item=[])

TASK [radiusdesk : Checking if we already have Freeradius Configuration Directory Backup (Ubuntu 14+)] ********
skipping: [localhost]

TASK [radiusdesk : Renaming Freeradius Configuration Directory (Ubuntu 14+)] **********************************
skipping: [localhost]

TASK [radiusdesk : Removing Old Freeradius Configuration Directory (Ubuntu 14+)] ******************************
skipping: [localhost]

TASK [radiusdesk : Extracting RadiusDesk Freeradius Configuration (Ubuntu 14+)] *******************************
skipping: [localhost]

TASK [radiusdesk : Configuring Freeradius Configuration Directory (Ubuntu 14+)] *******************************
skipping: [localhost]

TASK [radiusdesk : Configuring RadiusDesk Freeradius radiusd.conf (Ubuntu 14+)] *******************************
skipping: [localhost]

TASK [radiusdesk : Configuring RadiusDesk Freeradius Dictionary (Ubuntu 14+)] *********************************
skipping: [localhost]

TASK [radiusdesk : Configuring RadiusDesk Freeradius Checkrad Script (Ubuntu 14+)] ****************************
skipping: [localhost]

TASK [radiusdesk : Configuring RadiusDesk Freeradius Dynamic Clients (Ubuntu 14+)] ****************************
skipping: [localhost]

TASK [radiusdesk : Correcting radclient paths for radscenario.pl Script (Ubuntu 14+)] *************************
skipping: [localhost]

TASK [radiusdesk : Correcting RadiusDesk paths for Freeradius (Ubuntu 14+)] ***********************************
skipping: [localhost]

TASK [radiusdesk : Correcting MESHDesk paths for Freeradius (Ubuntu 14+)] *************************************
skipping: [localhost]

TASK [radiusdesk : Correcting APProfiles paths for Freeradius (Ubuntu 14+)] ***********************************
skipping: [localhost]

TASK [radiusdesk : Configuring radmin_wrapper.pl Script for RadiusDesk (Ubuntu 14+)] **************************
skipping: [localhost]

TASK [radiusdesk : Disabling sudoers Requiretty Option (Ubuntu 14+)] ******************************************
skipping: [localhost]

TASK [radiusdesk : Adding Webroot User to sudoers (Ubuntu 14+)] ***********************************************
skipping: [localhost]

TASK [radiusdesk : Ensuring Freeradius is ready for use (Ubuntu 14+)] *****************************************
skipping: [localhost]

TASK [radiusdesk : Adding RadiusDesk MAO Yum Repository (RHEL/CentOS 6+)] *************************************
changed: [localhost]

TASK [radiusdesk : Installing Freeradius for RadiusDesk (RHEL/CentOS 6+)] *************************************
failed: [localhost] (item=[u'freeradius-3.0.11*', u'freeradius-mysql-3.0.11*', u'freeradius-perl-3.0.11*', u'freeradius-python-3.0.11*', u'freeradius-ldap-3.0.11*', u'freeradius-utils-3.0.11*', u'freeradius-krb5-3.0.11*']) => {"failed": true, "item": ["freeradius-3.0.11*", "freeradius-mysql-3.0.11*", "freeradius-perl-3.0.11*", "freeradius-python-3.0.11*", "freeradius-ldap-3.0.11*", "freeradius-utils-3.0.11*", "freeradius-krb5-3.0.11*"], "msg": "Failure talking to yum: Cannot retrieve repository metadata (repomd.xml) for repository: maomuffy. Please verify its path and try again"}
to retry, use: --limit @/root/radiusdesk-installer/rd-installer-ansible.retry

PLAY RECAP ****************************************************************************************************
localhost : ok=41 changed=18 unreachable=0 failed=1

[root@localhost radiusdesk-installer]#

Please help. I have tried it over and over. I am using CentOS 6.9. Tried it on CentOS 7 too but failed

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.