← Back to team overview

dhis2-devs team mailing list archive

Re: DHIS-Live not working with Linux

 

I tried both sh and bash startup.sh and tried to run through jetty. It
starts to run and all startup routines executed successfully but i am
getting outofmemory error.

*Below is the HEAP configuration in the computer*

Heap Configuration:
   MinHeapFreeRatio = 40
   MaxHeapFreeRatio = 70
   MaxHeapSize      = 1029701632 (982.0MB)
   NewSize          = 1310720 (1.25MB)
   MaxNewSize       = 17592186044415 MB
   OldSize          = 5439488 (5.1875MB)
   NewRatio         = 2
   SurvivorRatio    = 8
   PermSize         = 21757952 (20.75MB)
   MaxPermSize      = 85983232 (82.0MB)
   G1HeapRegionSize = 0 (0.0MB)

Heap Usage:
PS Young Generation
Eden Space:
   capacity = 294912000 (281.25MB)
   used     = 951720 (0.9076309204101562MB)
   free     = 293960280 (280.34236907958984MB)
   0.3227132161458333% used
>From Space:
   capacity = 65536 (0.0625MB)
   used     = 0 (0.0MB)
   free     = 65536 (0.0625MB)
   0.0% used
To Space:
   capacity = 6291456 (6.0MB)
   used     = 0 (0.0MB)
   free     = 6291456 (6.0MB)
   0.0% used
PS Old Generation
   capacity = 686489600 (654.6875MB)
   used     = 155520152 (148.3155746459961MB)
   free     = 530969448 (506.3719253540039MB)
   22.65440758315931% used
PS Perm Generation
   capacity = 85983232 (82.0MB)
   used     = 85983216 (81.99998474121094MB)
   free     = 16 (1.52587890625E-5MB)
   99.99998139172065% used

32964 interned Strings occupying 3779232 bytes.*
* *
**And using following variables*

export JAVA_HOME=/usr/lib/jvm/jdk1.7.0
export PATH=$PATH:/usr/lib/jvm/jdk1.7.0/bin
export JAVA_OPTS="-Xms512m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=356m
-XX:PermSize=256m -XX:MaxPermSize=356m"

*
*
*And below is the error message*

root@hisp-Vostro-220s-Series:/home/hisp/dhis-live1111# java -jar
dhis2-live.jar
* INFO  17:14:02,864 Environment variable DHIS2_HOME: /home/hisp/dhis
(TrayApp.java [main])
* INFO  17:14:02,921 Initialising DHIS 2 Live... (TrayApp.java [main])
* INFO  17:14:03,071 Loading DHIS 2 on port: 8082 (WebAppServer.java [main])
2013-02-01 17:14:03.086:INFO::Logging to STDERR via
org.mortbay.log.StdErrLog
* INFO  17:14:03,124 Setting DHIS 2 web app context to:
/home/hisp/dhis-live1111/webapps/dhis (WebAppServer.java [main])
* INFO  17:14:03,125 Lifecycle: server starting (TrayApp.java [Thread-2])
2013-02-01 17:14:03.178:INFO::jetty-6.1.x
2013-02-01 17:14:03.587:INFO::NO JSP Support for /, did not find
org.apache.jasper.servlet.JspServlet
2013-02-01 17:14:04.247:INFO:/:Initializing Spring root
WebApplicationContext
* INFO  17:14:12,505 System property dhis2.home points to
/home/hisp/dhis-live1111/conf (DefaultLocationManager.java [Thread-2])
* WARN  17:14:14,305 HHH000223: Recognized obsolete hibernate namespace
http://hibernate.sourceforge.net/. Use namespace
http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration
Guide! (DTDEntityResolver.java [Thread-2])
* WARN  17:14:17,923 HHH000223: Recognized obsolete hibernate namespace
http://hibernate.sourceforge.net/. Use namespace
http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration
Guide! (DTDEntityResolver.java [Thread-2])
* WARN  17:14:18,587 HHH000039: Composite-id class does not override
hashCode(): org.hisp.dhis.detarget.DeTargetMember (RootClass.java
[Thread-2])
* WARN  17:14:18,602 HHH000038: Composite-id class does not override
equals(): org.hisp.dhis.linelisting.LineListDataElementMap (RootClass.java
[Thread-2])
* WARN  17:14:18,603 HHH000039: Composite-id class does not override
hashCode(): org.hisp.dhis.linelisting.LineListDataElementMap
(RootClass.java [Thread-2])
* WARN  17:14:18,606 HHH000038: Composite-id class does not override
equals(): org.hisp.dhis.target.DeTargetMapping (RootClass.java [Thread-2])
* WARN  17:14:18,607 HHH000039: Composite-id class does not override
hashCode(): org.hisp.dhis.target.DeTargetMapping (RootClass.java [Thread-2])
* WARN  17:14:23,897 HHH020003: Could not find a specific ehcache
configuration for cache named [org.hisp.dhis.smscommand.SMSCode]; using
defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:14:23,946 HHH020003: Could not find a specific ehcache
configuration for cache named
[org.hisp.dhis.interpretation.Interpretation]; using defaults.
(AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:14:24,022 HHH020003: Could not find a specific ehcache
configuration for cache named [org.hisp.dhis.smscommand.SMSCommand]; using
defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:14:24,164 HHH020003: Could not find a specific ehcache
configuration for cache named [org.hisp.dhis.period.RelativePeriods]; using
defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:14:24,246 HHH020003: Could not find a specific ehcache
configuration for cache named [org.hisp.dhis.program.ProgramExpression];
using defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:14:24,252 HHH020003: Could not find a specific ehcache
configuration for cache named
[org.hisp.dhis.interpretation.InterpretationComment]; using defaults.
(AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:14:24,529 HHH020003: Could not find a specific ehcache
configuration for cache named
[org.hisp.dhis.user.UserGroup.attributeValues]; using defaults.
(AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:14:24,543 HHH020003: Could not find a specific ehcache
configuration for cache named
[org.hisp.dhis.dataelement.DataElementGroup.attributeValues]; using
defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:14:24,571 HHH020003: Could not find a specific ehcache
configuration for cache named
[org.hisp.dhis.patientreport.PatientTabularReport.organisationUnits]; using
defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:14:24,575 HHH020003: Could not find a specific ehcache
configuration for cache named [org.hisp.dhis.user.User.groups]; using
defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:14:24,583 HHH020003: Could not find a specific ehcache
configuration for cache named
[org.hisp.dhis.organisationunit.OrganisationUnitGroup.attributeValues];
using defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:14:24,585 HHH020003: Could not find a specific ehcache
configuration for cache named [org.hisp.dhis.smscommand.SMSCommand.codes];
using defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:14:24,588 HHH020003: Could not find a specific ehcache
configuration for cache named
[org.hisp.dhis.indicator.IndicatorGroup.attributeValues]; using defaults.
(AbstractEhcacheRegionFactory.java [Thread-2])
* ERROR 17:14:27,489 HHH000388: Unsuccessful: alter table report add column
relativeperiodsid integer unique (SchemaUpdate.java [Thread-2])
* ERROR 17:14:27,490 Syntax error in SQL statement "ALTER TABLE REPORT ADD
COLUMN RELATIVEPERIODSID INTEGER UNIQUE[*] "; SQL statement:
alter table report add column relativeperiodsid integer unique [42000-166]
(SchemaUpdate.java [Thread-2])
* ERROR 17:14:27,493 HHH000388: Unsuccessful: alter table
dataelementcategoryoption add constraint fk_dataelementcategory_conceptid
foreign key (conceptid) references concept (SchemaUpdate.java [Thread-2])
* ERROR 17:14:27,494 Constraint "FK_DATAELEMENTCATEGORY_CONCEPTID" already
exists; SQL statement:
alter table dataelementcategoryoption add constraint
fk_dataelementcategory_conceptid foreign key (conceptid) references concept
[90045-166] (SchemaUpdate.java [Thread-2])
* ERROR 17:14:27,497 HHH000388: Unsuccessful: alter table
interpretationcomment add constraint fk_interpretation_userid foreign key
(userid) references userinfo (SchemaUpdate.java [Thread-2])
* ERROR 17:14:27,498 Constraint "FK_INTERPRETATION_USERID" already exists;
SQL statement:
alter table interpretationcomment add constraint fk_interpretation_userid
foreign key (userid) references userinfo [90045-166] (SchemaUpdate.java
[Thread-2])
* ERROR 17:14:27,501 HHH000388: Unsuccessful: alter table report add
constraint fk_report_relativeperiodsid foreign key (relativeperiodsid)
references relativeperiods (SchemaUpdate.java [Thread-2])
* ERROR 17:14:27,502 Column "RELATIVEPERIODSID" not found; SQL statement:
alter table report add constraint fk_report_relativeperiodsid foreign key
(relativeperiodsid) references relativeperiods [42122-166]
(SchemaUpdate.java [Thread-2])
* INFO  17:14:40,343 Found the following message senders:
[org.hisp.dhis.message.EmailMessageSender@3bd6c2c6]
(DefaultMessageService.java [Thread-2])
* INFO  17:14:56,823 Camel context started (DHIS2LifecycleStrategy.java
[Thread-2])
* INFO  17:14:57,994 Executing startup routine [1 of 9, runlevel 1]:
TableAlteror (DefaultStartupRoutineExecutor.java [Thread-2])
* INFO  17:14:58,616 Tables updated (TableAlteror.java [Thread-2])
* INFO  17:14:58,617 Executing startup routine [2 of 9, runlevel 1]:
MapViewUpgrader (DefaultStartupRoutineExecutor.java [Thread-2])
* INFO  17:14:58,640 Executing startup routine [3 of 9, runlevel 2]:
IdentityPopulator (DefaultStartupRoutineExecutor.java [Thread-2])
* INFO  17:14:58,702 Executing startup routine [4 of 9, runlevel 2]:
PeriodTypePopulator (DefaultStartupRoutineExecutor.java [Thread-2])
* INFO  17:14:58,732 Executing startup routine [5 of 9, runlevel 3]:
TableCreator (DefaultStartupRoutineExecutor.java [Thread-2])
* INFO  17:14:58,808 Executing startup routine [6 of 9, runlevel 3]:
DataElementDefaultDimensionPopulator (DefaultStartupRoutineExecutor.java
[Thread-2])
* INFO  17:14:58,866 Linked default category with default concept
(DataElementDefaultDimensionPopulator.java [Thread-2])
* INFO  17:14:58,929 Executing startup routine [7 of 9, runlevel 4]:
PatientTableAlteror (DefaultStartupRoutineExecutor.java [Thread-2])
* INFO  17:14:58,980 Executing startup routine [8 of 9, runlevel 5]:
OrganisationUnitGroupSetPopulator (DefaultStartupRoutineExecutor.java
[Thread-2])
* INFO  17:14:59,001 Executing startup routine [9 of 9, runlevel 5]:
DataEntryFormUpgrader (DefaultStartupRoutineExecutor.java [Thread-2])
* INFO  17:14:59,004 Upgraded custom case entry form identifiers: 0
(DataEntryFormUpgrader.java [Thread-2])
* INFO  17:14:59,009 All startup routines done
(DefaultStartupRoutineExecutor.java [Thread-2])
* INFO: EMAIL IMPORT SERVICE STARTED FOR STORE [imaps://
hispdatabank@xxxxxxxxxxxxxx] AT Fri Feb 01 17:14:59 IST 2013
* INFO: EMAIL OPERATION FINISHED WITH TOTAL [ 0 ] ATTACHMENT IMPORTS.

2013-02-01 17:15:01.607:INFO:/:Initializing Spring FrameworkServlet
'mobileServlet'
2013-02-01 17:15:01.772:INFO:/:Initializing Spring FrameworkServlet
'webapiServlet'
2013-02-01 17:15:19.363:WARN::failed webapiServlet:
java.lang.OutOfMemoryError: PermGen space
2013-02-01 17:15:19.364:WARN::failed
org.mortbay.jetty.webapp.WebAppContext@d5bf22f{/,/home/hisp/dhis-live1111/webapps/dhis}:
java.lang.OutOfMemoryError: PermGen space
2013-02-01 17:15:19.364:WARN::Error starting handlers
java.lang.OutOfMemoryError: PermGen space
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
    at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    at org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:154)
    at org.apache.log4j.Category.forcedLog(Category.java:388)
    at org.apache.log4j.Category.log(Category.java:853)
    at
org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:251)
    at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:501)
    at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:474)
    at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:442)
    at
org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1066)
    at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472)
    at
org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)
    at
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)
    at
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)
    at
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)
    at
org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)
    at
org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
    at javax.servlet.GenericServlet.init(GenericServlet.java:241)
    at
org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
    at
org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
2013-02-01 17:15:20.728:WARN::failed
org.mortbay.jetty.nio.SelectChannelConnector$1@21f757ee:
java.lang.OutOfMemoryError: PermGen space
2013-02-01 17:15:20.728:WARN::failed SelectChannelConnector@0.0.0.0:8082:
java.lang.OutOfMemoryError: PermGen space
2013-02-01 17:15:20.728:WARN::failed Server@75addbad:
java.lang.OutOfMemoryError: PermGen space
* WARN  17:15:25,409 Lifecycle: server failed (TrayApp.java [Thread-2])
Exception in thread "Thread-2"
Exception: java.lang.OutOfMemoryError thrown from the
UncaughtExceptionHandler in thread "Thread-2"
Exception in thread
"org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-2"
Exception: java.lang.OutOfMemoryError thrown from the
UncaughtExceptionHandler in thread
"org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-2"
^C^C^C^C^C^C


Java HotSpot(TM) 64-Bit Server VM warning: Exception
java.lang.OutOfMemoryError occurred dispatching signal SIGINT to handler-
the VM may need to be forcibly terminated
Killed
root@hisp-Vostro-220s-Series:/home/hisp/dhis-live1111#
root@hisp-Vostro-220s-Series:/home/hisp/dhis-live1111#
root@hisp-Vostro-220s-Series:/home/hisp/dhis-live1111#
root@hisp-Vostro-220s-Series:/home/hisp/dhis-live1111# java -jar
dhis2-live.jar
* INFO  17:17:46,320 Environment variable DHIS2_HOME: /home/hisp/dhis
(TrayApp.java [main])
* INFO  17:17:46,387 Initialising DHIS 2 Live... (TrayApp.java [main])
* INFO  17:17:46,542 Loading DHIS 2 on port: 8082 (WebAppServer.java [main])
2013-02-01 17:17:46.556:INFO::Logging to STDERR via
org.mortbay.log.StdErrLog
* INFO  17:17:46,592 Setting DHIS 2 web app context to:
/home/hisp/dhis-live1111/webapps/dhis (WebAppServer.java [main])
* INFO  17:17:46,593 Lifecycle: server starting (TrayApp.java [Thread-2])
2013-02-01 17:17:46.648:INFO::jetty-6.1.x
2013-02-01 17:17:47.065:INFO::NO JSP Support for /, did not find
org.apache.jasper.servlet.JspServlet
2013-02-01 17:17:47.752:INFO:/:Initializing Spring root
WebApplicationContext
* INFO  17:17:55,887 System property dhis2.home points to
/home/hisp/dhis-live1111/conf (DefaultLocationManager.java [Thread-2])
* WARN  17:17:57,588 HHH000223: Recognized obsolete hibernate namespace
http://hibernate.sourceforge.net/. Use namespace
http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration
Guide! (DTDEntityResolver.java [Thread-2])
* WARN  17:18:01,665 HHH000223: Recognized obsolete hibernate namespace
http://hibernate.sourceforge.net/. Use namespace
http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration
Guide! (DTDEntityResolver.java [Thread-2])
* WARN  17:18:02,241 HHH000039: Composite-id class does not override
hashCode(): org.hisp.dhis.detarget.DeTargetMember (RootClass.java
[Thread-2])
* WARN  17:18:02,256 HHH000038: Composite-id class does not override
equals(): org.hisp.dhis.linelisting.LineListDataElementMap (RootClass.java
[Thread-2])
* WARN  17:18:02,256 HHH000039: Composite-id class does not override
hashCode(): org.hisp.dhis.linelisting.LineListDataElementMap
(RootClass.java [Thread-2])
* WARN  17:18:02,259 HHH000038: Composite-id class does not override
equals(): org.hisp.dhis.target.DeTargetMapping (RootClass.java [Thread-2])
* WARN  17:18:02,260 HHH000039: Composite-id class does not override
hashCode(): org.hisp.dhis.target.DeTargetMapping (RootClass.java [Thread-2])
* WARN  17:18:07,563 HHH020003: Could not find a specific ehcache
configuration for cache named [org.hisp.dhis.smscommand.SMSCode]; using
defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:18:07,615 HHH020003: Could not find a specific ehcache
configuration for cache named
[org.hisp.dhis.interpretation.Interpretation]; using defaults.
(AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:18:07,689 HHH020003: Could not find a specific ehcache
configuration for cache named [org.hisp.dhis.smscommand.SMSCommand]; using
defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:18:07,839 HHH020003: Could not find a specific ehcache
configuration for cache named [org.hisp.dhis.period.RelativePeriods]; using
defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:18:07,925 HHH020003: Could not find a specific ehcache
configuration for cache named [org.hisp.dhis.program.ProgramExpression];
using defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:18:07,931 HHH020003: Could not find a specific ehcache
configuration for cache named
[org.hisp.dhis.interpretation.InterpretationComment]; using defaults.
(AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:18:08,177 HHH020003: Could not find a specific ehcache
configuration for cache named
[org.hisp.dhis.user.UserGroup.attributeValues]; using defaults.
(AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:18:08,179 HHH020003: Could not find a specific ehcache
configuration for cache named
[org.hisp.dhis.dataelement.DataElementGroup.attributeValues]; using
defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:18:08,193 HHH020003: Could not find a specific ehcache
configuration for cache named
[org.hisp.dhis.patientreport.PatientTabularReport.organisationUnits]; using
defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:18:08,197 HHH020003: Could not find a specific ehcache
configuration for cache named [org.hisp.dhis.user.User.groups]; using
defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:18:08,199 HHH020003: Could not find a specific ehcache
configuration for cache named
[org.hisp.dhis.organisationunit.OrganisationUnitGroup.attributeValues];
using defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:18:08,201 HHH020003: Could not find a specific ehcache
configuration for cache named [org.hisp.dhis.smscommand.SMSCommand.codes];
using defaults. (AbstractEhcacheRegionFactory.java [Thread-2])
* WARN  17:18:08,203 HHH020003: Could not find a specific ehcache
configuration for cache named
[org.hisp.dhis.indicator.IndicatorGroup.attributeValues]; using defaults.
(AbstractEhcacheRegionFactory.java [Thread-2])
* ERROR 17:18:10,851 HHH000388: Unsuccessful: alter table report add column
relativeperiodsid integer unique (SchemaUpdate.java [Thread-2])
* ERROR 17:18:10,854 Syntax error in SQL statement "ALTER TABLE REPORT ADD
COLUMN RELATIVEPERIODSID INTEGER UNIQUE[*] "; SQL statement:
alter table report add column relativeperiodsid integer unique [42000-166]
(SchemaUpdate.java [Thread-2])
* ERROR 17:18:10,866 HHH000388: Unsuccessful: alter table
dataelementcategoryoption add constraint fk_dataelementcategory_conceptid
foreign key (conceptid) references concept (SchemaUpdate.java [Thread-2])
* ERROR 17:18:10,867 Constraint "FK_DATAELEMENTCATEGORY_CONCEPTID" already
exists; SQL statement:
alter table dataelementcategoryoption add constraint
fk_dataelementcategory_conceptid foreign key (conceptid) references concept
[90045-166] (SchemaUpdate.java [Thread-2])
* ERROR 17:18:10,873 HHH000388: Unsuccessful: alter table
interpretationcomment add constraint fk_interpretation_userid foreign key
(userid) references userinfo (SchemaUpdate.java [Thread-2])
* ERROR 17:18:10,895 Constraint "FK_INTERPRETATION_USERID" already exists;
SQL statement:
alter table interpretationcomment add constraint fk_interpretation_userid
foreign key (userid) references userinfo [90045-166] (SchemaUpdate.java
[Thread-2])
* ERROR 17:18:10,901 HHH000388: Unsuccessful: alter table report add
constraint fk_report_relativeperiodsid foreign key (relativeperiodsid)
references relativeperiods (SchemaUpdate.java [Thread-2])
* ERROR 17:18:10,903 Column "RELATIVEPERIODSID" not found; SQL statement:
alter table report add constraint fk_report_relativeperiodsid foreign key
(relativeperiodsid) references relativeperiods [42122-166]
(SchemaUpdate.java [Thread-2])
* INFO  17:18:24,479 Found the following message senders:
[org.hisp.dhis.message.EmailMessageSender@c1a9c72]
(DefaultMessageService.java [Thread-2])
* INFO  17:18:39,840 Camel context started (DHIS2LifecycleStrategy.java
[Thread-2])
* INFO  17:18:42,273 Executing startup routine [1 of 9, runlevel 1]:
TableAlteror (DefaultStartupRoutineExecutor.java [Thread-2])
* INFO  17:18:42,783 Tables updated (TableAlteror.java [Thread-2])
* INFO  17:18:42,784 Executing startup routine [2 of 9, runlevel 1]:
MapViewUpgrader (DefaultStartupRoutineExecutor.java [Thread-2])
* INFO  17:18:42,802 Executing startup routine [3 of 9, runlevel 2]:
IdentityPopulator (DefaultStartupRoutineExecutor.java [Thread-2])
* INFO  17:18:42,863 Executing startup routine [4 of 9, runlevel 2]:
PeriodTypePopulator (DefaultStartupRoutineExecutor.java [Thread-2])
* INFO  17:18:42,920 Executing startup routine [5 of 9, runlevel 3]:
TableCreator (DefaultStartupRoutineExecutor.java [Thread-2])
* INFO  17:18:42,996 Executing startup routine [6 of 9, runlevel 3]:
DataElementDefaultDimensionPopulator (DefaultStartupRoutineExecutor.java
[Thread-2])
* INFO  17:18:43,032 Linked default category with default concept
(DataElementDefaultDimensionPopulator.java [Thread-2])
* INFO  17:18:43,091 Executing startup routine [7 of 9, runlevel 4]:
PatientTableAlteror (DefaultStartupRoutineExecutor.java [Thread-2])
* INFO  17:18:43,134 Executing startup routine [8 of 9, runlevel 5]:
OrganisationUnitGroupSetPopulator (DefaultStartupRoutineExecutor.java
[Thread-2])
* INFO  17:18:43,141 Executing startup routine [9 of 9, runlevel 5]:
DataEntryFormUpgrader (DefaultStartupRoutineExecutor.java [Thread-2])
* INFO  17:18:43,143 Upgraded custom case entry form identifiers: 0
(DataEntryFormUpgrader.java [Thread-2])
* INFO  17:18:43,144 All startup routines done
(DefaultStartupRoutineExecutor.java [Thread-2])
* INFO: EMAIL IMPORT SERVICE STARTED FOR STORE [imaps://
hispdatabank@xxxxxxxxxxxxxx] AT Fri Feb 01 17:18:45 IST 2013
* INFO: EMAIL OPERATION FINISHED WITH TOTAL [ 0 ] ATTACHMENT IMPORTS.

2013-02-01 17:18:45.925:INFO:/:Initializing Spring FrameworkServlet
'mobileServlet'
2013-02-01 17:18:46.056:INFO:/:Initializing Spring FrameworkServlet
'webapiServlet'
2013-02-01 17:19:01.981:WARN::failed webapiServlet:
java.lang.OutOfMemoryError: PermGen space
2013-02-01 17:19:01.981:WARN::failed
org.mortbay.jetty.webapp.WebAppContext@f76cd45{/,/home/hisp/dhis-live1111/webapps/dhis}:
java.lang.OutOfMemoryError: PermGen space
2013-02-01 17:19:01.981:WARN::Error starting handlers
java.lang.OutOfMemoryError: PermGen space
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
    at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    at org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:154)
    at org.apache.log4j.Category.forcedLog(Category.java:388)
    at org.apache.log4j.Category.log(Category.java:853)
    at
org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:251)
    at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:501)
    at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:474)
    at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:442)
    at
org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1066)
    at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472)
    at
org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)
    at
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)
    at
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)
    at
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)
    at
org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)
    at
org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
    at javax.servlet.GenericServlet.init(GenericServlet.java:241)
    at
org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
    at
org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
2013-02-01 17:19:03.396:WARN::failed
org.mortbay.jetty.nio.SelectChannelConnector$1@35d5501d:
java.lang.OutOfMemoryError: PermGen space
2013-02-01 17:19:03.396:WARN::failed SelectChannelConnector@0.0.0.0:8082:
java.lang.OutOfMemoryError: PermGen space
2013-02-01 17:19:03.396:WARN::failed Server@477ebb87:
java.lang.OutOfMemoryError: PermGen space
* WARN  17:19:03,396 Lifecycle: server failed (TrayApp.java [Thread-2])
Exception in thread "Thread-2"
Exception: java.lang.OutOfMemoryError thrown from the
UncaughtExceptionHandler in thread "Thread-2"
Exception in thread
"org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-2"
Exception: java.lang.OutOfMemoryError thrown from the
UncaughtExceptionHandler in thread
"org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-2"
Exception in thread "AWT-XAWT"
Exception: java.lang.OutOfMemoryError thrown from the
UncaughtExceptionHandler in thread "AWT-XAWT"
Exception in thread
"org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-3"
Exception: java.lang.OutOfMemoryError thrown from the
UncaughtExceptionHandler in thread
"org.springframework.scheduling.quartz.SchedulerFactoryBean#1_Worker-3"







On Fri, Feb 1, 2013 at 5:07 PM, Bob Jolliffe <bobjolliffe@xxxxxxxxx> wrote:

> On 1 February 2013 11:31, Saptarshi Purkayastha <sunbiz@xxxxxxxxx> wrote:
> > oops, my bad.
> > This is a bash script with function calls. You'll need to work with it.
>
> Exactly.  Or just delete
> # get ready to catch errors
> and
> echo "Starting DHIS2 live ..."
>
> Trapping ctrl-c is only really interesting from command line anyway.
>
> >
> > You'll need to verify that the first line is indeed
> > #!/bin/bash
> > and the file has executable permissions
>
> I think he must be executing it somehow like 'sh startup.sh' which is
> maybe default on gui deskop shortcuts.  This can probably be changed
> when creating the shortcut.
>
> >
> > ---
> > Regards,
> > Saptarshi PURKAYASTHA
> >
> > My Tech Blog:  http://sunnytalkstech.blogspot.com
> > You Live by CHOICE, Not by CHANCE
> >
> >
> > On 1 February 2013 11:11, Bob Jolliffe <bobjolliffe@xxxxxxxxx> wrote:
> >>
> >> Hi Neeraj
> >>
> >> This strange error seems to indicate you don't have a bash shell which
> >> is odd, or if you do its not being used.
> >>
> >> I see the error when I type 'sh startup.sh'.
> >>
> >> But when I explicitly type 'bash startup.sh' all is fine.  Or even
> >> just './startup.sh'
> >>
> >> Can you confirm how you are starting this script?  Maybe you have a
> >> shortcut which explicitly calls 'sh'.
> >>
> >> Also I would not suggest that dhis-live is the best option for running
> >> on ubuntu server if this is meant to be for production use.  It uses a
> >> pre-canned set of JAVA_OPTS which you would more likely want to tune
> >> to your environment.
> >>
> >> Bob
> >>
> >>
> >>
> >> On 1 February 2013 10:01, Neeraj Gupta <neeraj.hisp@xxxxxxxxx> wrote:
> >> > Lars,
> >> >
> >> > Below is the content of startup.sh
> >> >
> >> > #!/bin/bash
> >> >
> >> > # get ready to catch errors
> >> > trap ctrl-c INT
> >> > trap unexpected-exit ERR
> >> >
> >> > function ctrl-c () {
> >> >     echo
> >> >     echo "============================================"
> >> >     echo "Keyboard interrupt"
> >> >     echo "DHIS2 live exited"
> >> >     echo "============================================"
> >> >     exit
> >> > }
> >> >
> >> > function unexpected-exit () {
> >> >     echo "============================================"
> >> >     echo "DHIS2 live exited with an error"
> >> >     echo "Make sure you have a java runtime in your path"
> >> >     echo "============================================"
> >> >     read -p "Press any key to exit"
> >> > }
> >> >
> >> > echo "Starting DHIS2 live ..."
> >> > # java -jar dhis2-live.jar
> >> > DHIS2LIVE=`dirname $0`
> >> > #$JAVA_HOME/bin/
> >> > java  -jar $DHIS2LIVE/dhis2-live.jar
> >> > echo "DHIS2 live exited normally"
> >> >
> >> >
> >> >
> >> > On Fri, Feb 1, 2013 at 3:14 PM, Lars Helge Øverland
> >> > <larshelge@xxxxxxxxx>
> >> > wrote:
> >> >>
> >> >> Hi Neeraj,
> >> >>
> >> >> can you post the contents of the startup.sh script?
> >> >>
> >> >> Lars
> >> >>
> >> >>
> >> >> On Fri, Feb 1, 2013 at 11:26 AM, Neeraj Gupta <neeraj.hisp@xxxxxxxxx
> >
> >> >> wrote:
> >> >>>
> >> >>> Hi Devs,
> >> >>>
> >> >>> I was trying to work with DHIS Live on Ubuntu Server 11.10 , but I
> am
> >> >>> unable to run it, when i am running startup.sh it is saying
> >> >>> trap: ERR: bad trap
> >> >>> /home/dhis-live/startup.sh: 7: Syntax error: "(" unexpected
> >> >>>
> >> >>> Downloaded it from http://www.dhis2.org/downloads
> >> >>>
> >> >>> Tried it on windows and it worked fine.
> >> >>> Does DHIS-Live work with Linux also or it works with windows only?
> >> >>>
> >> >>>
> >> >>>
> >> >>> --
> >> >>> Thanks,
> >> >>> Neeraj Gupta
> >> >>>
> >> >>> _______________________________________________
> >> >>> Mailing list: https://launchpad.net/~dhis2-devs
> >> >>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> >> >>> Unsubscribe : https://launchpad.net/~dhis2-devs
> >> >>> More help   : https://help.launchpad.net/ListHelp
> >> >>>
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Thanks,
> >> > Neeraj Gupta
> >> >
> >> > _______________________________________________
> >> > Mailing list: https://launchpad.net/~dhis2-devs
> >> > Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> >> > Unsubscribe : https://launchpad.net/~dhis2-devs
> >> > More help   : https://help.launchpad.net/ListHelp
> >> >
> >>
> >> _______________________________________________
> >> Mailing list: https://launchpad.net/~dhis2-devs
> >> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> >> Unsubscribe : https://launchpad.net/~dhis2-devs
> >> More help   : https://help.launchpad.net/ListHelp
> >
> >
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~dhis2-devs
> > Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~dhis2-devs
> > More help   : https://help.launchpad.net/ListHelp
> >
>



-- 
Thanks,
Neeraj Gupta

References