← Back to team overview

dhis2-users team mailing list archive

Re: Help Required

 

And another recommendation is protect tomcat with Apache (configure it to
work like reverse proxy). Somewhere on the tomcat docs they do recommend
that too.

Caveman




On Fri, Oct 28, 2011 at 9:49 AM, Jason Pickering <
jason.p.pickering@xxxxxxxxx> wrote:

> Hi Stephen,
> Just one more important point, and that is to be sure NOT to run Tomcat as
> "root'.  If you are using a manual install of Tomcat, as opposed to
> installing it through the package manager of Linux, it is best practice to
> create a seperate user for tomcat, and run the process as a non-privileged
> user. There are numerous examples on the net to show you how to achieve
> this. We should probably highlight this in the implementation guide a bit
> better, but it it documented there from the standpoint of using the package
> manager to install Tomcat, as opposed to a manual install.
>
> Regards,
> Jason
>
>
>
> On Fri, Oct 28, 2011 at 8:18 AM, Ocaya Stephen <stephocay@xxxxxxxxx>wrote:
>
>> Hullo,
>>
>> This is a subsection of the log file catalina.out
>>
>> It seems the hibernate.properties could not be read
>>
>> Deploying web application archive dhis.war
>> * INFO  21:50:29,457 System property dhis2.home not set
>> (DefaultLocationManager.java [Thread-2])
>> * INFO  21:50:29,459 Environment variable DHIS2_HOME points to
>> /home/root/dhis2/DHIS2_HOME/ (DefaultLocationManager.java [Thread-2])
>> * INFO  21:50:30,999 Could not read external configuration from file
>> system (DefaultHibernateConfigurationProvider.java [Thread-2])
>> * INFO  21:50:48,557 Sceduled task of type:
>> org.hisp.dhis.scheduling.Runnables (SpringScheduler.java [Thread-2])
>> * INFO  21:50:50,196 Executing startup routine [1 of 11, runlevel 1]:
>> TableAlteror (DefaultStartupRoutineExecutor.java [Thread-2])
>> * INFO  21:50:50,948 Tables updated (TableAlteror.java [Thread-2])
>>
>> I have SOLVED the Problem.
>>
>> Thanks TO ALL
>>
>>
>> On Thu, Oct 27, 2011 at 9:13 PM, <stephocay@xxxxxxxxx> wrote:
>>
>>> ** Thank you all. Let me checkout on the configuration and have alook at
>>> the log file.
>>>
>>> As regards the root, so far the computer has that account and it is the
>>> one that is used to start dhis. May be to confirm, is this the dhis database
>>> user or the computer user? I hope it is the computer user.
>>>
>>> Will let you. Thanks again
>>>
>>> Sent from my BlackBerry® smartphone provided by Airtel Uganda.
>>> ------------------------------
>>> *From: * Jason Pickering <jason.p.pickering@xxxxxxxxx>
>>> *Date: *Fri, 28 Oct 2011 05:57:08 +0200
>>> *To: *Ola Hodne Titlestad<olati@xxxxxxxxxx>
>>> *Cc: *<dhis2-users@xxxxxxxxxxxxxxxxxxx>; Ocaya Stephen<
>>> stephocay@xxxxxxxxx>
>>> *Subject: *Re: [Dhis2-users] Help Required
>>>
>>> Have you properly configured postgres to enable tcp/ip connections from
>>> localhost?
>>>
>>> You should not run tomcat with root. If you are using another user to
>>> start tomcat, this user may not be able to read anything from /home/root.
>>>
>>> As knut and ola say however, the log will provide you with the answer.
>>>
>>> Regards,
>>> Jason
>>> On Oct 28, 2011 12:00 AM, "Ola Hodne Titlestad" <olati@xxxxxxxxxx>
>>> wrote:
>>>
>>>>
>>>>  /usr/local/apache-tomcat-7.0.22/logs/catalina.out will tell you whether
>>>> dhis found your hibernate.properties file or not, and tell you if the
>>>> DHIS2_HOME was recognised or not.
>>>>
>>>> Ola
>>>> ------
>>>>
>>>> ----------------------------------
>>>> Ola Hodne Titlestad (Mr)
>>>> HISP
>>>> Department of Informatics
>>>> University of Oslo
>>>>
>>>> Mobile: +47 48069736
>>>> Home address: Vetlandsvn. 95B, 0685 Oslo, Norway. Googlemaps link<http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Vetlandsvn.+95B,+0685+Oslo,+Norway>
>>>>
>>>>
>>>> On 27 October 2011 20:58, Ocaya Stephen <stephocay@xxxxxxxxx> wrote:
>>>>
>>>>> Hullo All,
>>>>>
>>>>> I have set up DHIS 2.5 on Ubuntu Server Using the Installation Steps
>>>>> Outlined on the website (dhis2.org) and the application seems not to
>>>>> be picking the database connection setting in hibernate.properties.
>>>>>
>>>>> On Logging, I See the following Message:
>>>>> "The database is currently running in-memory. This is useful for
>>>>> testing purposes but might happen because your database configuration was
>>>>> not picked up. Please make sure this is intentional. Your data will be
>>>>> destroyed when the application shuts down."
>>>>>
>>>>> My Hibernate File is in
>>>>> /home/root/dhis2/DHIS2_HOME/hibernate.properties
>>>>>
>>>>> MY Environment Variable is Here.
>>>>> /usr/local/apache-tomcat-7.0.22/bin/setenv.sh and the content of the
>>>>> setenv.sh is below
>>>>>
>>>>> export JAVA_HOME=/usr/lib/jvm/java-6-sun
>>>>> export JAVA_OPTS="-Xmx600m -XX:MaxPermSize=1000m"
>>>>> export DHIS2_HOME=/home/root/dhis2/DHIS2_HOME/
>>>>>
>>>>>
>>>>> Thanks for any Help
>>>>> Stephen Ocaya
>>>>>
>>>>> --
>>>>>
>>>>> *You can do anything, but not everything.*
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>
>>
>> --
>>
>> *You can do anything, but not everything.*
>>
>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References