pihomeserver / Kupiki-Hotspot-Script

Create automatically a full Wifi Hotspot on Raspberry Pi including a Captive Portal
Other
300 stars 119 forks source link

Issue during installation - Failed to restart mariadb.service #209

Open mustafaameen opened 2 years ago

mustafaameen commented 2 years ago

Actual behavior

Fresh installation of Raspberry Pi OS (32-bit) I have executed installation script with default config values (only changes the country to AU). I have got an error which stopped the installation

Failed to restart mariadb.service: Unit mariadb.service not found. Something went wrong with the last command. Please check the log file

Expected behavior

Standard Installation

Configuration parameters (if changed in the script)

Just the county code changed to AU

Logs


::: 
::: Log file created : /var/log/kupiki_hotspot.log
::: Use command 'tail -f /var/log/kupiki_hotspot.log' in a new console to get installation details
::: Updating APT config to force IPv4
Acquire::ForceIPv4 "true";
::: Configuring localepurge
::: Disable integrated Bluetooth support (After next reboot)
::: Remove old configuration of Coova Chilli
dpkg: warning: ignoring request to remove coova-chilli which isn't installed
::: Remove old configuration of haserl
dpkg: warning: ignoring request to remove haserl which isn't installed
::: Remove old configuration of hostapd
(Reading database ... 179024 files and directories currently installed.)
Removing hostapd (2:2.9.0-21) ...
Purging configuration files for hostapd (2:2.9.0-21) ...
Removed /etc/systemd/system/hostapd.service.
dpkg: warning: while removing hostapd, directory '/etc/hostapd' not empty so not removed
Processing triggers for man-db (2.9.4-2) ...
::: Checking for tun module
::: Insert tun module if existing (for Raspbian Jessie Lite)
::: Modprobe module (no check - useless if already loaded)
::: Checking for tun module
tun                    53248  0
::: Checking if LAN interface already exists
wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
::: Adding MariaDb password
::: Adding MariaDb password (confirmation)
::: Getting WAN IP of the Raspberry Pi (for daloradius access)
::: Updating the system hostname to Information Zone
::: Adding Avahi dependencies
::: Updating /etc/hosts
grep: Zone: No such file or directory
::: Correct configuration for Collectd daemon
::: Create dedicated user kupiki
::: Create Docker user group
::: Add user kupiki to docker group
::: Install pika module
::: Removing any previous sources of CoovaChilli project
::: Cloning CoovaChilli project
Cloning into 'coova-chilli'...
::: Removing any previous sources of Kupiki Admin
::: Cloning Kupiki Admin web UI project
Cloning into 'webui'...
::: Download Kupiki SQL Counters
--2022-06-14 00:06:44--  https://raw.githubusercontent.com/pihomeserver/Kupiki-Hotspot-Script/master/updates/sqlcounter
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.110.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9037 (8.8K) [text/plain]
Saving to: ‘sqlcounter’

     0K ........                                              100% 14.7M=0.001s

2022-06-14 00:06:45 (14.7 MB/s) - ‘sqlcounter’ saved [9037/9037]

::: Cloning daloradius project
Cloning into 'daloradius'...
Updating files:  81% (1379/1700)
Updating files:  82% (1394/1700)
Updating files:  83% (1411/1700)
Updating files:  84% (1428/1700)
Updating files:  85% (1445/1700)
Updating files:  86% (1462/1700)
Updating files:  87% (1479/1700)
Updating files:  88% (1496/1700)
Updating files:  89% (1513/1700)
Updating files:  90% (1530/1700)
Updating files:  91% (1547/1700)
Updating files:  92% (1564/1700)
Updating files:  93% (1581/1700)
Updating files:  94% (1598/1700)
Updating files:  95% (1615/1700)
Updating files:  96% (1632/1700)
Updating files:  97% (1649/1700)
Updating files:  98% (1666/1700)
Updating files:  99% (1683/1700)
Updating files: 100% (1700/1700)
Updating files: 100% (1700/1700), done.
::: Cloning Pi Hotspot portal project
Cloning into 'portal'...
::: Cloning Pi Hotspot portal backend project
Cloning into 'kupiki-portal-backend'...
::: Starting MySql service
Failed to restart mariadb.service: Unit mariadb.service not found.
::: 
::: Something went wrong with the last command. Please check the log file
::: 

### Your environment

- Hardware : Raspberry Pi 4B
- Operating system: 
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian

### Additional comments

{Please write here, if there is something more to tell}
pihomeserver commented 2 years ago

Please try to manually stop/start mariadb and check what goes wrong. May be the version is not correct anymore, the script is really old now