[SOLVED] Not able to install fwcloud on centos 7 | FWCloud Forum

[SOLVED] Not able to install fwcloud on centos 7

premkumar

New member
Hi Team,

Not able to install fwcloud on centos 7, Able to install it on Ubunutu
Can you please check and let us know why fwcloud installtion on centos 7 fails

I am trying to install fwcloud via

curl -k -s https://raw.githubusercontent.com/soltecsis/fwcloud-installer/main/fwcloud-installer.sh -o ./fwcloud-installer.sh && sudo bash ./fwcloud-installer.sh && rm -f ./fwcloud-installer.sh

Getting the error "Database schema ... Installation canceled!" As shown below

(*) TypeScript code compilation.
Compiling websrv (please wait) ... DONE
Compiling api (please wait) ... DONE
Compiling updater (please wait) ... DONE

(*) FWCloud database.
Next we are going to create the fwcloud database.
The next data will be used for it.
Host: localhost
Database: fwcloud
User: fwcdbusr
Password: 0DMLOpY6n7kvhCg3
Is it right? [Y/n]

(*) Generating .env file for fwcloud-api.
DONE

(*) Creating database schema and initial data.
Database schema ... Installation canceled!
[root@localhost ~]#
 

Carles Munyoz

Administrator
Staff member
Hi,
Please, run the installer again but with this little variation and send us the output with the error:
Bash:
curl -k -s https://raw.githubusercontent.com/soltecsis/fwcloud-installer/main/fwcloud-installer.sh -o ./fwcloud-installer.sh && sudo bash -x ./fwcloud-installer.sh && rm -f ./fwcloud-installer.sh
 

premkumar

New member
Tried with the above command, Was not able to install and access fwcoud


+ echo -e '\e[32m\e[1m--- PROCESS COMPLETED ----\e[21m\e[0m'
--- PROCESS COMPLETED ----
+ echo 'Your FWCloud system is ready!'
Your FWCloud system is ready!
+ echo

+ '[' U = I ']'
+ pkgInstalled firewalld
+ FOUND=
+ '[' CentOS = Debian -o CentOS = Ubuntu ']'
+ '[' CentOS = RedHat -o CentOS = CentOS -o CentOS = Fedora ']'
+ rpm -q firewalld
+ '[' 0 = 0 ']'
+ FOUND=1
+ '[' 1 ']'
+ return 1
+ '[' 1 = 1 ']'
+ echo -e '\e[31mWARNING:\e[0m Package firewalld is installed.'
WARNING: Package firewalld is installed.
+ echo 'You will have to allow access to TCP port 3030 in your firewalld policy.'
You will have to allow access to TCP port 3030 in your firewalld policy.
+ echo

+ echo 'If you need help please contact us:'
If you need help please contact us:
+ echo -e '\e[93minfo@fwcloud.net\e[0m'
info@fwcloud.net
+ echo -e '\e[93mhttps://fwcloud.net\e[0m'
+ echo -e '\e[32m\e[1m--------------------------\e[21m\e[0m'
--------------------------
+ echo

+ exit 0
[root@localhost ~]# firewall-cmd --zone=public --permanent --add-port=3030/tcp
success
 

premkumar

New member
Tried on fresh centos Operating system, Still facing issue, Got installation cancelled error as below

+ PASSGEN=eBUijCpB6HhSEIh6CLCOicYjX1Khm4YT5chzBsvJHlOs9dEgArVBwfbGqP0vJRq7
+ sed -i 's/CRYPT_SECRET=/CRYPT_SECRET="eBUijCpB6HhSEIh6CLCOicYjX1Khm4YT5chzBsvJHlOs9dEgArVBwfbGqP0vJRq7"/g' .env
+ sed -i 's/TYPEORM_HOST=localhost/TYPEORM_HOST="localhost"/g' .env
+ sed -i 's/TYPEORM_DATABASE=fwcloud/TYPEORM_DATABASE="fwcloud"/g' .env
+ sed -i 's/TYPEORM_USERNAME=/TYPEORM_USERNAME="fwcdbusr"/g' .env
+ sed -i 's/TYPEORM_PASSWORD=/TYPEORM_PASSWORD="yxqntWFKp7hLcfYT"/g' .env
+ echo DONE
DONE
+ echo

+ echo -e '\e[32m\e[1m(*) Creating database schema and initial data.\e[21m\e[0m'
(*) Creating database schema and initial data.
+ cd /opt/fwcloud/api
+ echo -n 'Database schema ... '
Database schema ... + su - fwcloud -c 'cd "/opt/fwcloud/api"; node fwcli migration:run'
+ '[' 1 '!=' 0 ']'
+ echo -e '\e[31mInstallation canceled!\e[39m'
Installation canceled!
+ exit 1
 

premkumar

New member
Tried to install on centos 6.5 also, Showing errors while installation

PACKAGE: OpenVPN ... ./fwcloud-installer.sh: line 190: [: too many arguments
./fwcloud-installer.sh: line 192: [: too many arguments
./fwcloud-installer.sh: line 197: [: =: unary operator expected
./fwcloud-installer.sh: line 202: [: =: unary operator expected
NOT FOUND. Installing ...
./fwcloud-installer.sh: line 226: apt: command not found
DONE

PACKAGE: osslsigncode ... ./fwcloud-installer.sh: line 190: [: too many arguments
./fwcloud-installer.sh: line 192: [: too many arguments
./fwcloud-installer.sh: line 197: [: =: unary operator expected
./fwcloud-installer.sh: line 202: [: =: unary operator expected
NOT FOUND. Installing ...
./fwcloud-installer.sh: line 226: apt: command not found
DONE

Setting up Node.js repository ...
bash: apt-get: command not found
ERROR!
[root@ansiblenode1 ~]#
 

premkumar

New member
I am started thinking the script is mostly for Ubuntu type of operating systems
Do you have relevant script for Centos 7
 

Carles Munyoz

Administrator
Staff member
The last Centos release is 8.
We have installed FWCloud in the last Centos release and it has gone fine.

Why are you using Centos 7 or Centos 6 in a fresh new virtual machine?
Have you tried the installation in Centos 8?
 
Top