Opened 3 years ago

Closed 3 years ago

#2264 closed defect (fixed)

52nWPS not starting

Reported by: kalxas Owned by: osgeolive@…
Priority: critical Milestone: OSGeoLive14.0
Component: OSGeoLive Keywords: 52n WPS
Cc: osgeolive@…

Description

While recent tomcat9 issue has been fixed, the project fails to start properly.

Please test recent nightly build (not alpha2 since the tomcat issue is not fixed there)

Change history (5)

comment:1 by kalxas, 3 years ago

===============================================================
Starting "install_52nWPS.sh" ...
===============================================================
[48:27]: 52nWPS install started
TMP: /tmp/build_52nWPS
USER_NAME: user
USER_HOME: /home/user
TOMCAT_USER_NAME: tomcat
WPS_WAR_INSTALL_FOLDER: /var/lib/tomcat/webapps
WPS_TAR_NAME: 52nWPS-3.6.3.tar.gz
WPS_TAR_URL: https://52north.org/delivery/geoprocessing/osgeolive/
WPS_WEB_APP_NAME: 52nWPS
WPS_TOMCAT_SCRIPT_NAME: tomcat9
WPS_ICON_NAME: 52n.png
WPS_URL: http://localhost:8080/52nWPS
WPS_QUICKSTART_URL: http://localhost/osgeolive/en/quickstart/52nWPS_quickstart.html
WPS_OVERVIEW_URL: http://localhost/osgeolive/en/overview/52nWPS_overview.html
[48:27]: tomcat9 not found. Installing it...
Reading package lists...
Building dependency tree...
Reading state information...
tomcat9 is already the newest version (9.0.31-1ubuntu0.1).
tomcat9-admin is already the newest version (9.0.31-1ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
rm: cannot remove '/tmp/build_52nWPS/*': No such file or directory
--2020-12-09 18:48:27--  https://52north.org/delivery/geoprocessing/osgeolive/52nWPS-3.6.3.tar.gz
Resolving 52north.org (52north.org)... 148.251.148.50
Connecting to 52north.org (52north.org)|148.251.148.50|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52138726 (50M) [application/x-gzip]
Saving to: '52nWPS-3.6.3.tar.gz'

     0K ........ ........ ........ ........ ........ ........  6% 3.71M 13s
  3072K ........ ........ ........ ........ ........ ........ 12% 4.46M 11s
  6144K ........ ........ ........ ........ ........ ........ 18% 4.37M 10s
  9216K ........ ........ ........ ........ ........ ........ 24% 4.46M 9s
 12288K ........ ........ ........ ........ ........ ........ 30% 4.47M 8s
 15360K ........ ........ ........ ........ ........ ........ 36% 4.46M 7s
 18432K ........ ........ ........ ........ ........ ........ 42% 4.47M 7s
 21504K ........ ........ ........ ........ ........ ........ 48% 4.48M 6s
 24576K ........ ........ ........ ........ ........ ........ 54% 4.48M 5s
 27648K ........ ........ ........ ........ ........ ........ 60% 4.48M 5s
 30720K ........ ........ ........ ........ ........ ........ 66% 4.47M 4s
 33792K ........ ........ ........ ........ ........ ........ 72% 4.38M 3s
 36864K ........ ........ ........ ........ ........ ........ 78% 4.44M 2s
 39936K ........ ........ ........ ........ ........ ........ 84% 4.48M 2s
 43008K ........ ........ ........ ........ ........ ........ 90% 4.47M 1s
 46080K ........ ........ ........ ........ ........ ........ 96% 4.47M 0s
 49152K ........ ........ ........ ...                       100% 4.47M=11s

2020-12-09 18:48:39 (4.40 MB/s) - '52nWPS-3.6.3.tar.gz' saved [52138726/52138726]

[48:39]: 52nWPS-3.6.3.tar.gz extracted
renamed '52n.png' -> '/usr/share/icons/52n.png'
mkdir: created directory '/var/lib/tomcat'
mkdir: created directory '/var/lib/tomcat/webapps'
renamed '/tmp/build_52nWPS/52nWPS.war' -> '/var/lib/tomcat/webapps/52nWPS.war'
changed ownership of '/var/lib/tomcat/webapps/52nWPS.war' from root:root to tomcat:tomcat
[48:39]: 52nWPS installed in tomcat webapps folder
'/usr/local/share/applications/52nWPS-start.desktop' -> '/home/user/Desktop/52nWPS-start.desktop'
changed ownership of '/home/user/Desktop/52nWPS-start.desktop' from root:root to user:user
'/usr/local/share/applications/52nWPS-stop.desktop' -> '/home/user/Desktop/52nWPS-stop.desktop'
changed ownership of '/home/user/Desktop/52nWPS-stop.desktop' from root:root to user:user
chmod: cannot access '/var/lib/tomcat9/webapps/52nWPS/testData/elev_srtm_30m21.tif': No such file or directory
ln: failed to create symbolic link '/usr/local/share/data/raster/elev_srtm_30m21.tif': No such file or directory
===============================================================
Finished "install_52nWPS.sh"
Disk Usage1: install_52nWPS.sh,Filesystem,1K-blocks,Used,Available,Use%,Mounted_on,date
Disk Usage2: install_52nWPS.sh,-,60215,23616,33512,42%,/,2020-12-09 18:48:39+00:00
Temp Usage: install_52nWPS.sh,892	/tmp
===============================================================

comment:2 by spross, 3 years ago

I have created a Pull Request for this: https://github.com/OSGeo/OSGeoLive/pull/293

comment:3 by kalxas, 3 years ago

Thanks, I just merged and it will be tested soon.

comment:4 by kalxas, 3 years ago

The main problem was that tomcat did not start in chroot so war files were not extracted.

Temporary fix:

https://github.com/OSGeo/OSGeoLive/commit/5009357f8f687359650c9c4a15d0b806a20cc886

comment:5 by kalxas, 3 years ago

Resolution: fixed
Status: newclosed

Fixed on build 175

Note: See TracTickets for help on using tickets.