Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue installing Release 19.0 #22

Open
christianhuth opened this issue Jul 26, 2021 · 3 comments
Open

Issue installing Release 19.0 #22

christianhuth opened this issue Jul 26, 2021 · 3 comments

Comments

@christianhuth
Copy link

When installing transmart from the artifacts of the release 19.0 i receive the following error when installing groovy:

make: Entering directory '/home/transmart/transmart/transmart-data/env'
unzip -q groovy-binary-2.4.3.zip
[groovy-binary-2.4.3.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of groovy-binary-2.4.3.zip or
        groovy-binary-2.4.3.zip.zip, and cannot find groovy-binary-2.4.3.zip.ZIP, period.
make: *** [Makefile:75: groovy-2.4.3/bin/groovy] Error 9

Minimum Steps to reproduce:

curl http://library.transmartfoundation.org/release/release19_0_0_artifacts/Scripts-release-19.0.zip -o Scripts-release-19.0.zip
unzip Scripts-release-19.0.zip
./Scripts/install-ubuntu18/InstallTransmart.sh 2>&1 | tee ~/install.log

Reason:
Download-Path for groovy-binary as defined in transmart-data/env/Makefile (Line 21)

GROOVY_URL=http://dl.bintray.com/groovy/maven/$(GROOVY_ZIP)

which gives http://dl.bintray.com/groovy/maven/groovy-binary-2.4.3.zip is forbidden.

@christianhuth
Copy link
Author

christianhuth commented Jul 26, 2021

Solution:

  1. Use new GROOVY_URL as given in https://github.com/tranSMART-Foundation/transmart/blob/master/transmart-data/env/Makefile#L32
GROOVY_URL=https://groovy.jfrog.io/artifactory/dist-release-local/groovy-zips/$(GROOVY_ZIP)

or the Central Maven Repository under https://repo1.maven.org/maven2/org/codehaus/groovy/groovy-binary/

GROOVY_URL=https://repo1.maven.org/maven2/org/codehaus/groovy/groovy-binary/2.4.3/$(GROOVY_ZIP)
  1. delete corrupted groovy-binary
rm transmart-data/env/groovy-binary-2.4.3.zip
  1. Rerun install-script:
./Scripts/install-ubuntu18/InstallTransmart.sh 2>&1 | tee ~/install.log

@christianhuth
Copy link
Author

A new issue appeared during the execution of the install script:

Check on loading and setup of postgres
---------------------------------------
|  Checking for PostgreSQL basics:
|    are PostgreSQL and psql installed;
|    is PostgreSQL running.
---------------------------------------
checking to see if PostgreSQL has been installed
psql ok
PostgreSQL appears to be installed
checking to see if PostgreSQL is running
PostgreSQL does not appear to be running; start it
  with the command: sudo /etc/init.d/postgresql restart

But the PostgreSQL service is up and running:

sudo service postgresql status
● postgresql.service - PostgreSQL RDBMS
     Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
     Active: active (exited) since Mon 2021-07-26 17:48:45 CEST; 6min ago
    Process: 181372 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
   Main PID: 181372 (code=exited, status=0/SUCCESS)

Jul 26 17:48:45 svm-ap-dizc41p systemd[1]: Starting PostgreSQL RDBMS...
Jul 26 17:48:45 svm-ap-dizc41p systemd[1]: Finished PostgreSQL RDBMS.

@christianhuth
Copy link
Author

I did some deep-dive into the scripts and found the issue. The root of the problem lies in the way the following two scripts try to detect if postgres is up and running.

The two scripts when installing on ubuntu 18.04 - you might need other scripts if installing on other platforms:

  • transmart/Scripts/install-ubuntu18/checks/checkPsqlDataLoad.sh
  • transmart/Scripts/install-ubuntu18/checks/checkPsqlInstall.sh

The way they detect if PostgreSQL is up and running:

postgresRunning=$(ps aux | grep postgres | grep -v "grep" | grep "stats collector process")

Correct for my version of PostgreSQL (12.7) is:

postgresRunning=$(ps aux | grep postgres | grep -v "grep" | grep "stats collector")

After changing the line in both files the installation script passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant