#2265 closed defect (fixed)

52nSOS not starting

Reported by: kalxas Owned by: osgeolive@…
Priority: critical Milestone: OSGeoLive14.0
Component: OSGeoLive Keywords: 52n SOS
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 (4)

comment:1 Changed 10 months ago by kalxas

===============================================================
Starting "install_52nSOS.sh" ...
===============================================================
[42:38]: 52nSOS 4.4.3 install started
TMP: /tmp/build_52nSOS
USER_NAME: user
USER_HOME: /home/user
TOMCAT_USER_NAME: tomcat
TOMCAT_SCRIPT_NAME: tomcat9
SOS_WAR_INSTALL_FOLDER: /var/lib/tomcat9/webapps
SOS_INSTALL_FOLDER: /usr/local/52nSOS
SOS_TAR_NAME: 52n-sos-osgeo-live-4.4.3.tar.gz
SOS_TAR_URL: https://52north.org/files/sensorweb/osgeo-live/
SOS_WEB_APP_NAME: 52nSOS
SOS_ICON_NAME: 52nSOS.png
SOS_URL: http://localhost:8080/52nSOS
SOS_QUICKSTART_URL: http://localhost/osgeolive/en/quickstart/52nSOS_quickstart.html
SOS_OVERVIEW_URL: http://localhost/osgeolive/en/overview/52nSOS_overview.html
SOS_VERSION: 4.4.3
PG_OPTIONS: --client-min-messages=warning
PG_USER: postgres
PG_SCRIPT_NAME: postgresql
PG_DB_NAME: 52nSOS
JAVA_PKG: default-jre
[42:38]: 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 3 not upgraded.
[42:38]: postgresql service script found in /etc/init.d/.
rm: cannot remove '/tmp/build_52nSOS/*': No such file or directory
--2020-12-12 23:42:38--  https://52north.org/files/sensorweb/osgeo-live/52n-sos-osgeo-live-4.4.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: 130203628 (124M) [application/x-gzip]
Saving to: '52n-sos-osgeo-live-4.4.3.tar.gz'

     0K ........ ........ ........ ........ ........ ........  2% 3.70M 33s
  3072K ........ ........ ........ ........ ........ ........  4% 4.52M 29s
  6144K ........ ........ ........ ........ ........ ........  7% 4.41M 28s
  9216K ........ ........ ........ ........ ........ ........  9% 4.50M 26s
 12288K ........ ........ ........ ........ ........ ........ 12% 4.51M 25s
 15360K ........ ........ ........ ........ ........ ........ 14% 4.53M 24s
 18432K ........ ........ ........ ........ ........ ........ 16% 4.51M 24s
 21504K ........ ........ ........ ........ ........ ........ 19% 4.53M 23s
 24576K ........ ........ ........ ........ ........ ........ 21% 4.53M 22s
 27648K ........ ........ ........ ........ ........ ........ 24% 4.52M 21s
 30720K ........ ........ ........ ........ ........ ........ 26% 4.47M 21s
 33792K ........ ........ ........ ........ ........ ........ 28% 4.53M 20s
 36864K ........ ........ ........ ........ ........ ........ 31% 4.53M 19s
 39936K ........ ........ ........ ........ ........ ........ 33% 4.53M 19s
 43008K ........ ........ ........ ........ ........ ........ 36% 4.53M 18s
 46080K ........ ........ ........ ........ ........ ........ 38% 4.29M 17s
 49152K ........ ........ ........ ........ ........ ........ 41% 4.72M 16s
 52224K ........ ........ ........ ........ ........ ........ 43% 4.53M 16s
 55296K ........ ........ ........ ........ ........ ........ 45% 4.53M 15s
 58368K ........ ........ ........ ........ ........ ........ 48% 4.53M 14s
 61440K ........ ........ ........ ........ ........ ........ 50% 4.53M 14s
 64512K ........ ........ ........ ........ ........ ........ 53% 4.53M 13s
 67584K ........ ........ ........ ........ ........ ........ 55% 4.54M 12s
 70656K ........ ........ ........ ........ ........ ........ 57% 4.53M 12s
 73728K ........ ........ ........ ........ ........ ........ 60% 4.52M 11s
 76800K ........ ........ ........ ........ ........ ........ 62% 4.46M 10s
 79872K ........ ........ ........ ........ ........ ........ 65% 4.52M 10s
 82944K ........ ........ ........ ........ ........ ........ 67% 4.53M 9s
 86016K ........ ........ ........ ........ ........ ........ 70% 4.53M 8s
 89088K ........ ........ ........ ........ ........ ........ 72% 4.53M 8s
 92160K ........ ........ ........ ........ ........ ........ 74% 4.53M 7s
 95232K ........ ........ ........ ........ ........ ........ 77% 4.43M 6s
 98304K ........ ........ ........ ........ ........ ........ 79% 4.47M 6s
101376K ........ ........ ........ ........ ........ ........ 82% 4.53M 5s
104448K ........ ........ ........ ........ ........ ........ 84% 4.53M 4s
107520K ........ ........ ........ ........ ........ ........ 86% 4.51M 4s
110592K ........ ........ ........ ........ ........ ........ 89% 4.53M 3s
113664K ........ ........ ........ ........ ........ ........ 91% 4.53M 2s
116736K ........ ........ ........ ........ ........ ........ 94% 4.53M 2s
119808K ........ ........ ........ ........ ........ ........ 96% 4.52M 1s
122880K ........ ........ ........ ........ ........ ........ 99% 4.53M 0s
125952K ........ ........ ..                                 100% 4.53M=28s

2020-12-12 23:43:06 (4.49 MB/s) - '52n-sos-osgeo-live-4.4.3.tar.gz' saved [130203628/130203628]

[43:07]: 52n-sos-osgeo-live-4.4.3.tar.gz extracted
renamed '52nSOS.png' -> '/usr/local/share/icons/52nSOS.png'
Running in chroot, ignoring request: status
[43:07]: tomcat9 already stopped
Running in chroot, ignoring request: status
Running in chroot, ignoring request: start
[43:07]: postgresql started
[43:07]: Create SOS db
CREATE EXTENSION
[43:10]: DB 52nSOS created
 set_config 
------------
 
(1 row)

 setval 
--------
      2
(1 row)

......

[43:31]: 52nSOS -> SOS database filled
renamed '/tmp/build_52nSOS/52nSOS.war' -> '/var/lib/tomcat9/webapps/52nSOS.war'
changed ownership of '/var/lib/tomcat9/webapps/52nSOS.war' from user:user to tomcat:tomcat
[43:32]: 52nSOS 4.4.3 installed in tomcat webapps folder
'/usr/local/share/applications/52nSOS-start.desktop' -> '/home/user/Desktop/52nSOS-start.desktop'
changed ownership of '/home/user/Desktop/52nSOS-start.desktop' from root:root to user:user
'/usr/local/share/applications/52nSOS-stop.desktop' -> '/home/user/Desktop/52nSOS-stop.desktop'
changed ownership of '/home/user/Desktop/52nSOS-stop.desktop' from root:root to user:user
===============================================================
Finished "install_52nSOS.sh"
Disk Usage1: install_52nSOS.sh,Filesystem,1K-blocks,Used,Available,Use%,Mounted_on,date
Disk Usage2: install_52nSOS.sh,-,60215,24068,33060,43%,/,2020-12-12 23:43:32+00:00
Temp Usage: install_52nSOS.sh,1099	/tmp
===============================================================

comment:2 Changed 10 months ago by kalxas

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:3 Changed 10 months ago by kalxas

Fixed in build 181

comment:4 Changed 10 months ago by kalxas

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.