Installation script fails at "Creating SSL Certificate" if network interface has multiple addresses
thatguyinoz opened this issue · 0 comments
thatguyinoz commented
Describe the bug
When running the installer.sh
all goes well until
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! The installer was not able to run all the way to the end as !!
!! something has caused it to fail. The following few lines are !!
!! from the error log file which might help us figure out what's !!
!! wrong. Please add this information when reporting an error. !!
!! As well you might want to take a look at the full error log !!
!! in /home/xxxx/fogproject/bin/error_logs/fog_error_1.5.10.1615.log !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:State or Province Name (full name) [Some-State ]:Locality Name (eg, city) []:Organization Name (eg, company) [Internet Widgits Pty Ltd]:Organizational Unit Name (eg, section) []:Common Name (e.g. server FQDN or YOUR name) []:Email Address []:req: Error on line 7 of config file "/opt/fog /snapins/ssl//req.cnf"
40F74AB66F7E0000:error:07000065:configuration file routines:def_load_bio:missing equal sign:../crypto/conf/conf_def.c:513:HERE-->line 7
To Reproduce
Steps to reproduce the behavior:
- run the installer script
Expected behavior
Installer should complete
Screenshots
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! The installer was not able to run all the way to the end as !!
!! something has caused it to fail. The following few lines are !!
!! from the error log file which might help us figure out what's !!
!! wrong. Please add this information when reporting an error. !!
!! As well you might want to take a look at the full error log !!
!! in /home/peter/fogproject/bin/error_logs/fog_error_1.5.10.1615.log !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:State or Province Name (full name) [Some-State ]:Locality Name (eg, city) []:Organization Name (eg, company) [Internet Widgits Pty Ltd]:Organizational Unit Name (eg, section) []:Common Name (e.g. server FQDN or YOUR name) []:Email Address []:req: Error on line 7 of config file "/opt/fog /snapins/ssl//req.cnf"
40F74AB66F7E0000:error:07000065:configuration file routines:def_load_bio:missing equal sign:../crypto/conf/conf_def.c:513:HERE-->line 7
Software:
- FOG Version: 1.5.10.1615 Installer/Updater
- FOS kernel N/A
- OS: Ubuntu 22.04.4 LTS
Additional context
if multiple ip addresses are set on the primary network interface, the extra IP address causes the function
openssl req -new -sha512 -key /opt/fog/snapins/ssl//.srvprivate.key -out /opt/fog/snapins/ssl//fog.csr -config /opt/fog/snapins/ssl//req.cnf
to fail as req.cnf has extra lines in it.
User mitigation:
(temporarily) removing the additional IP address, will allow the script to complete.