Open clayrisser opened 4 years ago
I am following these instructions.
https://platform.swampinabox.org/siab-latest-release/administrator_manual.pdf
First, I install everything. It completes successfully.
./repos/install-all.bash
### Installing MariaDB, PHP, and Other Dependencies
Checking for cp ... /usr/bin/cp
Checking for rpm ... /usr/bin/rpm
Checking for yum ... /usr/bin/yum
Checking OS support ... CentOS Linux 7
Running 'yum makecache' ...
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
* base: centos.mirror.lstn.net
* extras: centos.mirror.lstn.net
* updates: centos.mirror.lstn.net
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/10): extras/7/x86_64/filelists_db | 207 kB 00:00:00
(2/10): base/7/x86_64/group_gz | 165 kB 00:00:00
(3/10): extras/7/x86_64/primary_db | 153 kB 00:00:00
(4/10): updates/7/x86_64/filelists_db | 2.1 MB 00:00:00
(5/10): updates/7/x86_64/primary_db | 2.8 MB 00:00:00
(6/10): extras/7/x86_64/other_db | 100 kB 00:00:00
(7/10): updates/7/x86_64/other_db | 243 kB 00:00:00
(8/10): base/7/x86_64/filelists_db | 7.3 MB 00:00:01
(9/10): base/7/x86_64/other_db | 2.6 MB 00:00:01
(10/10): base/7/x86_64/primary_db
etc . . .
Checking for libguestfs-tools-c ... libguestfs-tools-c-1.40.2-5.el7_7.2.x86_64
Checking for libvirt ... libvirt-4.5.0-23.el7_7.1.x86_64
Checking for mod_ssl ... mod_ssl-2.4.6-90.el7.centos.x86_64
Checking for ncompress ... ncompress-4.2.4.4-3.el7.x86_64
Checking for patch ... patch-2.7.1-12.el7_7.x86_64
Checking for perl ... perl-5.16.3-294.el7_6.x86_64
Checking for perl-parent ... perl-parent-0.225-244.el7.noarch
Checking for python34 ... python34-3.4.10-4.el7.x86_64
Checking for rubygems ... rubygems-2.0.14.1-36.el7.noarch
Checking for unzip ... unzip-6.0-20.el7.x86_64
Checking for zip ... zip-3.0-11.el7.x86_64
Finished installing other dependencies
Finished installing MariaDB, PHP, and other dependencies
Then, I run the installer and the get following error.
./bin/install_swampinabox.bash
### Starting the Main SWAMP-in-a-Box Install/Upgrade Script
Started: 2019-11-07 08:19:49 +0000
Version: 1.34.5 (build 456.sib)
Mode: -install -distribution
User/group: 0/0 (root/root)
Umask: 0022
$HOSTNAME: b6ff045fad77
RPMs directory: /swamp/swampinabox-1.34.5-installer/bin/../RPMS
Working directory: /swamp/swampinabox-1.34.5-installer
Checking for perl ... /usr/bin/perl
### Checking the Prerequisites for SWAMP-in-a-Box
Looking for system manufacturer ... /dev/mem: No such file or directory
Looking for system product name ... /dev/mem: No such file or directory
Checking for CPU virtualization extensions ... found vmx
Checking for the kvm kernel module ... loaded
Checking for the kvm_amd and kvm_intel kernel modules ... kvm_intel loaded
Looking for 4 cores ... found 8
Looking for 13312 MB physical RAM ... found 32061 MB
Looking for 3252 MB space free on '/' ... found 831633 MB
Looking for 22524 MB space free on '/swamp' ... found 831633 MB
Checking for basename ... /usr/bin/basename
Checking for cat ... /usr/bin/cat
Checking for cp ... /usr/bin/cp
Checking for dirname ... /usr/bin/dirname
Checking for head ... /usr/bin/head
Checking for ln ... /usr/bin/ln
Checking for lsmod ... /usr/sbin/lsmod
Checking for mktemp ... /usr/bin/mktemp
Checking for rm ... /usr/bin/rm
Checking for df ... /usr/bin/df
Checking for stty ... /usr/bin/stty
Checking for tail ... /usr/bin/tail
Checking for chgrp ... /usr/bin/chgrp
Checking for chmod ... /usr/bin/chmod
Checking for chown ... /usr/bin/chown
Checking for chsh ... /usr/bin/chsh
Checking for groupadd ... /usr/sbin/groupadd
Checking for groupmems ... /usr/sbin/groupmems
Checking for awk ... /usr/bin/awk
Checking for diff ... /usr/bin/diff
Checking for install ... /usr/bin/install
Checking for sed ... /usr/bin/sed
Checking for patch ... /usr/bin/patch
Checking for chkconfig ... /usr/sbin/chkconfig
Checking for service ... /usr/sbin/service
Checking for compress ... /usr/bin/compress
Checking for gunzip ... /usr/bin/gunzip
Checking for jar ... /usr/bin/jar
Checking for rpm ... /usr/bin/rpm
Checking for sha512sum ... /usr/bin/sha512sum
Checking for tar ... /usr/bin/tar
Checking for unzip ... /usr/bin/unzip
Checking for yum ... /usr/bin/yum
Checking for zip ... /usr/bin/zip
Checking for guestfish ... /usr/bin/guestfish
Checking for qemu-img ... /usr/bin/qemu-img
Checking for virsh ... /usr/bin/virsh
Checking for virt-copy-out ... /usr/bin/virt-copy-out
Checking for virt-make-fs ... /usr/bin/virt-make-fs
Checking for curl ... /usr/bin/curl
Checking for mysql ... /usr/bin/mysql
Checking for openssl ... /usr/bin/openssl
Checking for perl ... /usr/bin/perl
Checking for php ... /usr/bin/php
#####################################################################
SWAMP-in-a-Box version 1.34.5-456.sib appears to be installed.
Installing version 1.34.5 will *erase* existing data and configuration.
Are you sure you want to install version 1.34.5? [N/y] y
Finished checking the prerequisites for SWAMP-in-a-Box
#####################################################################
We are currently using the following for this host's DNS name:
b6ff045fad77
This name must be accessible to users and have a properly configured
SSL certificate.
Use 'b6ff045fad77' as this host's DNS name? [N/y] y
#####################################################################
Enter the password to use for the database's 'root' user:
Retype password:
Enter the password to use for the database's web application user:
Enter the password to use for the database's SWAMP services user:
Enter the password to use for the SWAMP's administrator account:
#####################################################################
### Stopping Services
Error (unexpected): "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"/../sbin/swamp_manage_service "$@"
Error (unexpected): "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"/../sbin/swamp_manage_service "$@"
Error (unexpected): "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"/../sbin/swamp_manage_service "$@"
Error (unexpected): "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"/../sbin/swamp_manage_service "$@"
### Setting Up This Host for SWAMP-in-a-Box
Found /etc/systemd/system/mysql.service
Enabling the mariadb system service
Enabling the httpd system service
Enabling the libvirtd system service
The mysql user's shell is /bin/bash
Found the swa-daemon user
Finished setting up this host for SWAMP-in-a-Box
### Installing SWAMP RPMs
Erasing: swamp-rt-java swamp-rt-perl swamp-web-server swampinabox-backend swamponabox-backend
Loaded plugins: fastestmirror, ovl
No Match for argument: swamp-rt-java
No Match for argument: swamponabox-backend
Resolving Dependencies
--> Running transaction check
---> Package swamp-rt-perl.noarch 0:1.34.5-456.sib will be erased
---> Package swamp-web-server.noarch 0:1.34.5-456.sib will be erased
---> Package swampinabox-backend.noarch 0:1.34.5-456.sib will be erased
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
swamp-rt-perl noarch 1.34.5-456.sib installed 119 M
swamp-web-server noarch 1.34.5-456.sib installed 86 M
swampinabox-backend noarch 1.34.5-456.sib installed 2.0 G
Transaction Summary
================================================================================
Remove 3 Packages
Installed size: 2.2 G
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Running RPM pre-uninstall script for swampinabox-backend (mode: uninstall)
Finished running pre-uninstall script
Erasing : swampinabox-backend-1.34.5-456.sib.noarch 1/3
warning: /opt/swamp/etc/swamp.conf saved as /opt/swamp/etc/swamp.conf.rpmsave
Erasing : swamp-rt-perl-1.34.5-456.sib.noarch 2/3
Erasing : swamp-web-server-1.34.5-456.sib.noarch 3/3
warning: /var/www/swamp-web-server/.env saved as /var/www/swamp-web-server/.env.rpmsave
warning: /var/www/html/config/config.json saved as /var/www/html/config/config.json.rpmsave
Verifying : swampinabox-backend-1.34.5-456.sib.noarch 1/3
Verifying : swamp-web-server-1.34.5-456.sib.noarch 2/3
Verifying : swamp-rt-perl-1.34.5-456.sib.noarch 3/3
Removed:
swamp-rt-perl.noarch 0:1.34.5-456.sib
swamp-web-server.noarch 0:1.34.5-456.sib
swampinabox-backend.noarch 0:1.34.5-456.sib
Complete!
Renaming /opt/swamp/etc/swamp.conf.rpmsave to /opt/swamp/etc/swamp.conf.rpmsave.20191107_082009
Renaming /var/www/html/swamp-web-server/.env.rpmsave to /var/www/html/swamp-web-server/.env.rpmsave.20191107_082009
Renaming /var/www/html/config/config.json.rpmsave to /var/www/html/config/config.json.rpmsave.20191107_082009
Installing: /swamp/swampinabox-1.34.5-installer/bin/../RPMS/swamp-rt-perl-1.34.5-456.sib.noarch.rpm /swamp/swampinabox-1.34.5-installer/bin/../RPMS/swampinabox-backend-1.34.5-456.sib.noarch.rpm /swamp/swampinabox-1.34.5-installer/bin/../RPMS/swamp-web-server-1.34.5-456.sib.noarch.rpm
Loaded plugins: fastestmirror, ovl
Examining /swamp/swampinabox-1.34.5-installer/bin/../RPMS/swamp-rt-perl-1.34.5-456.sib.noarch.rpm: swamp-rt-perl-1.34.5-456.sib.noarch
Marking /swamp/swampinabox-1.34.5-installer/bin/../RPMS/swamp-rt-perl-1.34.5-456.sib.noarch.rpm to be installed
Examining /swamp/swampinabox-1.34.5-installer/bin/../RPMS/swampinabox-backend-1.34.5-456.sib.noarch.rpm: swampinabox-backend-1.34.5-456.sib.noarch
Marking /swamp/swampinabox-1.34.5-installer/bin/../RPMS/swampinabox-backend-1.34.5-456.sib.noarch.rpm to be installed
Examining /swamp/swampinabox-1.34.5-installer/bin/../RPMS/swamp-web-server-1.34.5-456.sib.noarch.rpm: swamp-web-server-1.34.5-456.sib.noarch
Marking /swamp/swampinabox-1.34.5-installer/bin/../RPMS/swamp-web-server-1.34.5-456.sib.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package swamp-rt-perl.noarch 0:1.34.5-456.sib will be installed
---> Package swamp-web-server.noarch 0:1.34.5-456.sib will be installed
---> Package swampinabox-backend.noarch 0:1.34.5-456.sib will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
swamp-rt-perl
noarch 1.34.5-456.sib /swamp-rt-perl-1.34.5-456.sib.noarch 119 M
swamp-web-server
noarch 1.34.5-456.sib /swamp-web-server-1.34.5-456.sib.noarch 86 M
swampinabox-backend
noarch 1.34.5-456.sib /swampinabox-backend-1.34.5-456.sib.noarch 2.0 G
Transaction Summary
================================================================================
Install 3 Packages
Total size: 2.2 G
Installed size: 2.2 G
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Running RPM pre script for swamp-rt-perl (mode: install)
Finished running pre script
Installing the files for swamp-rt-perl (this will take some time)
Installing : swamp-rt-perl-1.34.5-456.sib.noarch 1/3
Running RPM pre script for swampinabox-backend (mode: install)
Finished running pre script
Installing the files for swampinabox-backend (this will take some time)
Installing : swampinabox-backend-1.34.5-456.sib.noarch 2/3
Running RPM post script for swampinabox-backend (mode: install)
post data
data install
post submit
submit install
post exec
exec install
Finished running post script
Running RPM pre script for swamp-web-server (mode: install)
Finished running pre script
Installing the files for swamp-web-server (this will take some time)
Installing : swamp-web-server-1.34.5-456.sib.noarch 3/3
Running RPM post script for swamp-web-server (mode: install)
Finished running post script
Verifying : swampinabox-backend-1.34.5-456.sib.noarch 1/3
Verifying : swamp-web-server-1.34.5-456.sib.noarch 2/3
Verifying : swamp-rt-perl-1.34.5-456.sib.noarch 3/3
Installed:
swamp-rt-perl.noarch 0:1.34.5-456.sib
swamp-web-server.noarch 0:1.34.5-456.sib
swampinabox-backend.noarch 0:1.34.5-456.sib
Complete!
Creating /var/www/html/config/config.json
Setting viewer platform in /opt/swamp/etc/swamp.conf
Setting permissions on /opt/swamp/etc/swamp.conf
Setting permissions on /var/www/html/swamp-web-server/.env
Setting permissions on /var/www/html/config/config.json
Updating /var/www/html/swamp-web-server/.env for Laravel 5.5
Setting Laravel APP_ENV in /var/www/html/swamp-web-server/.env
Setting Laravel APP_KEY in /var/www/html/swamp-web-server/.env
Setting permissions on Laravel's working directories
Finished installing the RPMs
### Initializing the SQL database
Error: Failed to tell the mysql system service to stop
Error (unexpected): "$RUNTIME"/sbin/swamp_init_empty_db --force
Hi Jam, Thanks for contacting the SWAMP and including details about the error you received. We replied to your support ticket, so let us know if you did not receive our response via email.
I got it, thanks
I get the following error when trying to install swamp in a box.