GeoSuite icon indicating copy to clipboard operation
GeoSuite copied to clipboard

Installation fails on Ubuntu 22.04

Open wilwad opened this issue 1 year ago • 9 comments

sudo ./geosuite-installer.sh

Begining installation: Suite Version: GeoSuite Standalone Control Panel Modules: geoserver postgis certbot Tomcat Version: 9 Java Version: OpenJDK Installation failed at step 0. Check /tmp/install_deps.log for errors!

Checking /tmp/install_deps.log

Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease Hit:2 http://na.archive.ubuntu.com/ubuntu jammy InRelease Hit:3 http://na.archive.ubuntu.com/ubuntu jammy-updates InRelease Hit:4 http://na.archive.ubuntu.com/ubuntu jammy-backports InRelease Reading package lists... Adding component(s) 'universe' to all repositories. Reading package lists... Building dependency tree... Reading state information... bzip2 is already the newest version (1.0.8-5build1). libapache2-mod-php is already the newest version (2:8.1+92ubuntu1). php is already the newest version (2:8.1+92ubuntu1). php-pgsql is already the newest version (2:8.1+92ubuntu1). rename is already the newest version (1.30-1). apache2 is already the newest version (2.4.52-1ubuntu4.12). unzip is already the newest version (6.0-26ubuntu3.2). wget is already the newest version (1.21.2-2ubuntu1.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

wilwad avatar Oct 21 '24 21:10 wilwad

Is this 22 LTS?

DavidGhedini avatar Oct 21 '24 21:10 DavidGhedini

Is this 22 LTS?

cat /etc/os-release PRETTY_NAME="Ubuntu 22.04.5 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.5 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy

wilwad avatar Oct 21 '24 21:10 wilwad

I can't replicate this. It is installing fine for me with same OS.

  1. Is this a clean Ubuntu 22 install?
  2. I noticed you are executing ./geosuite-installer.sh. Have you tried executing below as root, as in the docs:

wget https://raw.githubusercontent.com/AcuGIS/GeoSuite/master/scripts/geosuite-installer.sh && chmod +x geosuite-installer.sh && ./geosuite-installer.sh

DavidGhedini avatar Oct 21 '24 21:10 DavidGhedini

Yes, it's a new VM. Ran sudo wget https://raw.githubusercontent.com/AcuGIS/GeoSuite/master/scripts/geosuite-installer.sh && chmod +x geosuite-installer.sh && ./geosuite-installer.sh

The first few times the stop error was Installation failed at step 12. Check /tmp/install_deps.log for errors!

wilwad avatar Oct 22 '24 08:10 wilwad

What is the content of /tmp/install_deps.log ?

kaloyan13 avatar Oct 22 '24 08:10 kaloyan13

Just noticed your command is wrong. sudo has to be used on installer, not the wget.

wget https://raw.githubusercontent.com/AcuGIS/GeoSuite/master/scripts/geosuite-installer.sh
chmod +x geosuite-installer.sh
sudo  ./geosuite-installer.sh

kaloyan13 avatar Oct 22 '24 09:10 kaloyan13

What is the content of /tmp/install_deps.log ?

Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease Hit:2 http://na.archive.ubuntu.com/ubuntu jammy InRelease Hit:3 http://na.archive.ubuntu.com/ubuntu jammy-updates InRelease Hit:4 http://na.archive.ubuntu.com/ubuntu jammy-backports InRelease Reading package lists... Adding component(s) 'universe' to all repositories. Reading package lists... Building dependency tree... Reading state information... bzip2 is already the newest version (1.0.8-5build1). libapache2-mod-php is already the newest version (2:8.1+92ubuntu1). php is already the newest version (2:8.1+92ubuntu1). php-pgsql is already the newest version (2:8.1+92ubuntu1). rename is already the newest version (1.30-1). apache2 is already the newest version (2.4.52-1ubuntu4.12). unzip is already the newest version (6.0-26ubuntu3.2). wget is already the newest version (1.21.2-2ubuntu1.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

wilwad avatar Oct 22 '24 09:10 wilwad

Just noticed your command is wrong. sudo has to be used on installer, not the wget.

wget https://raw.githubusercontent.com/AcuGIS/GeoSuite/master/scripts/geosuite-installer.sh
chmod +x geosuite-installer.sh
sudo  ./geosuite-installer.sh

This is the command from the documentation: wget https://raw.githubusercontent.com/AcuGIS/GeoSuite/master/scripts/geosuite-installer.sh && chmod +x geosuite-installer.sh && ./geosuite-installer.sh

Running the commands individually did not result in a successful installation either

chmod +x geosuite-installer.sh sudo ./geosuite-installer.sh

wilwad avatar Oct 22 '24 09:10 wilwad

There is no error in that file. What you can do is the following:

  1. rm -rf /tmp/*.log
  2. bash -xe ./geosuite-installer.sh Then check output and last .log file created in /tmp.

I understand you ran script a few times, maybe it reached a point and it failed. Script is not designed to be run mulitple times. You can try to reset your VM, and run again.

kaloyan13 avatar Oct 22 '24 10:10 kaloyan13