-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with Mariadb and chilli service #193
Comments
|
Before rebooting? |
no before starting chilli in debug mode |
did "service freeradius stop" |
Sure but it stops freeradius, not chilli |
same error on chilli --debug --fg Running freeradius -X I get this
|
user radius does not have access rights set. Did you get any error message while installing ? |
Yes I got
After Creating freeradius database |
Try the grant |
Hi, same issue here, here is the end of the install script :
Here is my script parameters :
Captive portal seems stuck on a blank page, and i can't access the admin page, i've tried using different methods, all of them are returning different errors :
|
First errors seem to be a paste of text in the command line |
I'm running the script in my RPi3b
The aim is to stream wlan0 internet (default) with wlan1 (Ralink 5370)
Actual behavior
I can see successfully the network, access the captive, but I have troubles with login and registration
Expected behavior
Normal interaction with database
Configuration parameters (if changed in the script)
{MYSQL_PASSWORD="pihotspot"
HOTSPOT_NAME="SIGMA_Free"
HOTSPOT_IP="192.168.10.1"
WIFI_COUNTRY_CODE="IT"
HOTSPOT_HTTPS="Y"
HOTSPOT_NETWORK="192.168.10.0"
FREERADIUS_SECRETKEY=
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
WAN_INTERFACE="wlan0"
LAN_INTERFACE="wlan1"
LAN_WIFI_DRIVER="nl80211"
HASERL_INSTALL="N"
INSTALL_KUPIKI_ADMIN=N
Logs
This is what happens when I run debug on chilli
root@SIGMAFree:/home/pi# chilli --debug --fg
chilli[1903]: (Re)processing options [/var/run/chilli.1903.cfg.bin]
chilli[1904]: running chilli_opt on /var/run/chilli.1903.cfg.bin
chilli[1903]: PID 1903 rereading binary file /var/run/chilli.1903.cfg.bin
chilli[1903]: Loading modules
chilli[1903]: PID 1903 reloaded binary options file
chilli[1903]: CoovaChilli 1.4. Copyright 2002-2005 Mondru AB. Licensed under GPL. Copyright 2006-2012 David Bird (Coova Technologies). Licensed under GPL. See http://coova.github.io/ for details.
chilli[1903]: chilli_main(7416): clock realtime sec 1576606034 nsec 502108578
chilli[1903]: chilli_main(7423): clock monotonic sec 2251 nsec 298294238
chilli[1903]: TX queue length set to 100
chilli[1903]: Running /etc/chilli/up.sh
chilli[1903]: Hashlog 8 253 256
chilli[1903]: Net SNDBUF 163840
chilli[1903]: Net RCVBUF 163840
chilli[1903]: device wlan1 ifindex 4
chilli[1903]: lo address family: 17 (AF_PACKET)
chilli[1903]: eth0 address family: 17 (AF_PACKET)
chilli[1903]: wlan0 address family: 17 (AF_PACKET)
chilli[1903]: wlan1 address family: 17 (AF_PACKET)
chilli[1903]: docker0 address family: 17 (AF_PACKET)
chilli[1903]: lo address family: 2 (AF_INET)
chilli[1903]: wlan0 address family: 2 (AF_INET)
chilli[1903]: tun0 address family: 2 (AF_INET)
chilli[1903]: docker0 address family: 2 (AF_INET)
chilli[1903]: tun1 address family: 2 (AF_INET)
chilli[1903]: dhcp_hashinit(490): hash table size 64 (56)
chilli[1903]: dhcp_sendGARP(338): GARP: Replying to broadcast
chilli[1903]: dhcp_new(1191): dhcpif (wlan1) IPv6 address ::
chilli[1903]: RADIUS client 0.0.0.0:3799
chilli[1903]: Address already in use: bind() failed!
chilli[1903]: Failed to create radius
And this is what happens when I run mariadb check
root@SIGMAFree:/home/pi# service mariadb status
● mariadb.service - MariaDB 10.3.17 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-12-17 17:29:48 GMT; 38min ago
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Process: 523 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
Process: 536 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 540 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=
/usr/bin/galera_recovery
; [ $? -eq 0 ] && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (codeProcess: 804 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)
Process: 806 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Main PID: 660 (mysqld)
Status: "Taking your SQL requests now..."
Tasks: 32 (limit: 2200)
Memory: 80.4M
CGroup: /system.slice/mariadb.service
└─660 /usr/sbin/mysqld
Dec 17 17:29:43 SIGMAFree systemd[1]: Starting MariaDB 10.3.17 database server...
Dec 17 17:29:46 SIGMAFree mysqld[660]: 2019-12-17 17:29:46 0 [Note] /usr/sbin/mysqld (mysqld 10.3.17-MariaDB-0+deb10u1) starting as process 660 ...
Dec 17 17:29:48 SIGMAFree systemd[1]: Started MariaDB 10.3.17 database server.
Dec 17 17:29:48 SIGMAFree /etc/mysql/debian-start[811]: /usr/bin/mysql_upgrade: the '--basedir' option is always ignored
Dec 17 17:29:48 SIGMAFree /etc/mysql/debian-start[811]: Looking for 'mysql' as: /usr/bin/mysql
Dec 17 17:29:48 SIGMAFree /etc/mysql/debian-start[811]: Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
Dec 17 17:29:48 SIGMAFree /etc/mysql/debian-start[811]: Version check failed. Got the following error when calling the 'mysql' command line client
Dec 17 17:29:48 SIGMAFree /etc/mysql/debian-start[811]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Dec 17 17:29:48 SIGMAFree /etc/mysql/debian-start[811]: FATAL ERROR: Upgrade failed
Dec 17 17:29:48 SIGMAFree /etc/mysql/debian-start[1074]: Checking for insecure root accounts.
Your environment
Additional comments
I have already fixed networking problems such as dhcpcd conflicts and so on
Thanks for the hard work, is a wonderful project
The text was updated successfully, but these errors were encountered: