Re: [Dhis2-devs] DHIS2 2.30 IMPORT/EXPORT ISSUE

2018-11-01 Thread Dan Cocos
Is it encoded as UTF-8? I noticed as few “special” charters and that might 
cause problems. 

Dan Cocos
BAO Systems
> On Nov 1, 2018, at 5:33 PM, Georgi Chakarov  
> wrote:
> 
> Hi Blake,
>  
> Thanks for your response!
>  
> I am a colleague of Kristiyan. We use csv format as we have always used for 
> DHIS2 versions 2.28 and below.
> So it seems that DHIS2 changed standards for csv for some reason. The exact 
> same csv that Kris sent you was used to import org units in 2.28 instance and 
> now is not recognized. We compared the template layout in 2.30 and it matches 
> a 100% our file. I have also tried a csv export software with different 
> options of csv files with no luck.
>  
> Maybe you could advice on how you generate csv files?
>  
> Regards,
> Georgi
>  
> From: Blake Hansen  
> Sent: Thursday, November 1, 2018 7:17 PM
> To: Kristiyan Panayotov 
> Cc: calle.hedb...@gmail.com; DHIS 2 Users list 
> ; Georgi Chakarov 
> ; dhis2-devs 
> Subject: Re: [Dhis2-devs] DHIS2 2.30 IMPORT/EXPORT ISSUE
>  
> Hi Kris,
>  
> I haven’t looked at your .csv file, but from your screenshot it is clear 
> DHIS2 is not recognising it as a .csv file type. If it were, you would see an 
> extra menu appear and be able to select the object type you are attempting to 
> create (see my screenshot). This is not visible in your screenshot.
>  
> 
>  
> Some things to check:
> Has your template strictly followed the csv template layout in the 
> documentation? 
> https://docs.dhis2.org/2.30/en/developer/html/webapi_csv_metadata_import.html#webapi_csv_org_units
> Is your .csv format the correct .csv format for DHIS2? (Some .csv in 
> francophone countries struggle as they use semi-colon)
>  
> Hopefully something there is helpful. If not, it may be a bug but let’s test 
> those things first. 
> It is also worth checking whether your import strategies are doing what you 
> expect. The default on the new system is different to the old. Strategies are 
> also found in the documentation - section 1.11
>  
> All best,
> Blake
>  
>  
> -- 
>  
> 
> 
> 
> Blake Hansen
> Projects Implementation Manager, BAO Systems
> +1 202-536-1541 | bhan...@baosystems.com | http://www.baosystems.com |
> Skype: blake.a.hansen | 2900 K Street, Suite 507, Washington D.C. 20007
>  
> Register for the 2019 DHIS 2 Symposium:
> 
> 
> 
> 
> 
> On 1 Nov 2018, at 17:09, Kristiyan Panayotov  
> wrote:
>  
> Hi Calle,
>  
> Thanks for looking into the .csv
> I tried your suggestions and still NO import. I added short names, codes, 
> opening date – import error hasn’t changed.
>  
> Kris
>  
> From: Calle Hedberg [mailto:calle.hedb...@gmail.com] 
> Sent: Thursday, November 1, 2018 6:07 PM
> To: Kristiyan Panayotov 
> Cc: bhan...@baosystems.com; DHIS 2 Users list 
> ; Georgi Chakarov 
> ; dhis2-devs 
> Subject: Re: [Dhis2-devs] DHIS2 2.30 IMPORT/EXPORT ISSUE
>  
> Hi,
>  
> Your csv file might not import because at least two compulsory fields are 
> blank:
> - Shortname is compulsory (missing)
> - Openingdate is compulsory (missing)
>  
> I have not tried to import orgunits with those fields missing for a looong 
> time, but while i seem to recall a missing openingdate would be replaced by 
> the default date 1970-01-01, I don't think the same happens for shortnames 
> (note; I could be wrong).
>  
> in any case, it's a bad habit to import orgunits with such key fields blank 
> (for instance, it's unlikely that opening dates from 1970 is anywhere near 
> the correct openingdates).
>  
> Regards
> Calle
>  
> On Thu, 1 Nov 2018 at 16:43, Kristiyan Panayotov 
>  wrote:
> Dear Blake,
>  
> Thank you for approaching our issue.
>  
> I am afraid that the solution to the problem is not that simple. DHIS2 still 
> doesn’t recognize the Org Unit csv file, although that is a structure that 
> has been successfully imported in previous versions. I also got the parent 
> UID from DHIS2 directly. I have attached the csv in this email, if you want 
> to take a look.
>  
> I also send you the screenshot from the failed import (below).
>  
> Thanks,
> Kris
>  
>  
> 
>  
>  
>  
>  
>  
> From: Blake Hansen [mailto:bhan...@baosystems.com] 
> Sent: Thursday, November 1, 2018 4:23 PM
> To: Kristiyan Panayotov 
> Cc: dhis2-devs@lists.launchpad.net; dhis2-us...@lists.launchpad.net; Georgi 
> Chakarov 
> Subject: Re: [Dhis2-devs] DHIS2 2.30 IMPORT/EXPORT ISSUE
>  
> Hi Kristiyan,
>  
> DHIS2 still support this in 2.30, which you will see in the documentation. 
> The only difference is that you no longer have to select the upload file 
> type. DHIS2 autom

Re: [Dhis2-devs] [Dhis2-users] Error when exporting metadata throuhg metadata export

2017-11-21 Thread Dan Cocos
Depending on the version of Tomcat it doesn’t always log everything to 
catalina.out
$DHIS_HOME by default /opt/dhis2/ then look in  /opt/dhis2/logs/dhis.log and 
you should be able to find some clues.

Good luck.

Dan Cocos
Principal, BAO Systems
dco...@baosystems.com | http://www.baosystems.com |  2900 K Street, Suite 406, 
Washington D.C. 20007


> On Nov 21, 2017, at 9:46 AM, Knut Staring <knu...@gmail.com> wrote:
> 
> Hi Vunda,
> 
> Look for a file called catalina.out, probably in your logs folder under 
> Tomcat.
> 
> Knut
> 
> On Tue, Nov 21, 2017 at 5:25 PM, vunda limbe <vunda...@gmail.com 
> <mailto:vunda...@gmail.com>> wrote:
> Hi ramon,
> 
> I only find this in my tomcat folder
> 
> On Tue, Nov 21, 2017 at 11:47 AM, Ramón José Jiménez Pomareta 
> <dh...@pomareta.ch <mailto:dh...@pomareta.ch>> wrote:
> in your logs there's only the OK saying DHIS2 started. Try to get the log at 
> the time of the error (tail -f while reproducing the error)
> 
> 2017-11-21 10:37 GMT+01:00 vunda limbe <vunda...@gmail.com 
> <mailto:vunda...@gmail.com>>:
> Hi Knut,
> 
> Attached the logs.
> 
> Thanks.
> 
> On Fri, Nov 17, 2017 at 2:37 PM, Knut Staring <knu...@gmail.com 
> <mailto:knu...@gmail.com>> wrote:
> Hello Vunda, 
> 
> Whenever you get a 500 Internal Server Error, you have too look at (and 
> probrobably share) your Tomcat server log, which should contain more 
> interesting error messages.
> 
> Regards,
> Knut
> 
> 
> On Fri, Nov 17, 2017 at 1:57 PM, vunda limbe <vunda...@gmail.com 
> <mailto:vunda...@gmail.com>> wrote:
> Hi Everybody,
> 
> When I try to export meta data in both json or xml, I'm getting this message: 
> "
> {"httpStatus":"Internal Server Error","httpStatusCode":500,"status":"ERROR"}
> Could someone tell me how to fix this? Alternativly, someone can give me a 
> script in order to export dataelement, COC, CO and Dataset using Web Api.
> 
> Your help is welcome.
> 
> Thanks.
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> Post to : dhis2-us...@lists.launchpad.net 
> <mailto:dhis2-us...@lists.launchpad.net>
> Unsubscribe : https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> More help   : https://help.launchpad.net/ListHelp 
> <https://help.launchpad.net/ListHelp>
> 
> 
> 
> 
> -- 
> Knut Staring
> Dept. of Informatics, University of Oslo
> Norway: +4791880522 <tel:+47%20918%2080%20522>
> Skype: knutstar
> http://dhis2.org <http://dhis2.org/>
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> Post to : dhis2-us...@lists.launchpad.net 
> <mailto:dhis2-us...@lists.launchpad.net>
> Unsubscribe : https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> More help   : https://help.launchpad.net/ListHelp 
> <https://help.launchpad.net/ListHelp>
> 
> 
> 
> 
> 
> 
> -- 
> Knut Staring
> 
> Department of Information, Evidence and Research
> World Health Organization, Geneva, Switzerland
> Office: +41 22 791 3683
> Mobile 1: +33 6 4434 2931
> Mobile 2: +47 9188 0522 
> Skype: knutstar
> ___
> Mailing list: https://launchpad.net/~dhis2-devs 
> <https://launchpad.net/~dhis2-devs>
> Post to : dhis2-devs@lists.launchpad.net 
> <mailto:dhis2-devs@lists.launchpad.net>
> Unsubscribe : https://launchpad.net/~dhis2-devs 
> <https://launchpad.net/~dhis2-devs>
> More help   : https://help.launchpad.net/ListHelp 
> <https://help.launchpad.net/ListHelp>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [Bug 1518380] Re: upgrade to 2.21 database error and how we solved it

2017-02-03 Thread Dan Cocos
https://www.dhis2.org/221-upgrade your Value Types must match exactly,
case included what is in the Web API / data model changes

Also, please use Jira for issues going forward.

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1518380

Title:
  upgrade to 2.21 database error and how we solved it

Status in DHIS:
  New

Bug description:
  When changing the dhis.war file from 2.20 to 2.21 we received a database 
error message related to AVG aggregation type.  We could not even go into dhis2 
anymore.
   We solved it by going back to 2.20 restoring the database and doing an 
update sql statement on table  dataelement and setting  aggregationtype  to 
'SUM' after that we did the upgrade again to 2.21 and now it went fine.

  relevant part of the error message was:
  * ERROR 2015-11-20 16:42:02,919 java.lang.IllegalArgumentException: Unknown 
name value [AVG] for enum class [org.hisp.dhis.analytics.AggregationType]
at 
org.hibernate.type.EnumType$NamedEnumValueMapper.fromName(EnumType.java:467)
at 
org.hibernate.type.EnumType$NamedEnumValueMapper.getValue(EnumType.java:452)
at org.hibernate.type.EnumType.nullSafeGet(EnumType.java:107)
 .

  
  Hope this is any usefull

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1518380/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] LDAP configuration

2016-07-13 Thread dan
Hi All,

I can confirm that I have it working with ldap v3 (turned on for Active 
Directory) on a test and production instance for a client. One thing that 
you’ll have to do is make sure the users don’t have a valid encrypted password, 
because it will try this first so I used the query

UPDATE users SET password = 'ldapuser' WHERE ldapid IS NOT null;

Dan Cocos
Principal, BAO Systems
 dco...@baosystems.com | http://www.baosystems.com |  2900 K Street, Suite 404, 
Washington D.C. 20007




> On Jul 13, 2016, at 12:07 PM, Bob Jolliffe <bobjolli...@gmail.com> wrote:
> 
> Hi Lars
> 
> I just tried this but also don't see anything in the log file on startup.  
> Using configuration from 
> https://dhis2.github.io/dhis2-docs/2.23/en/implementer/html/ch08s05.html.
> 
> Do you know does anyone have this working who can confirm for Chameera.
> 
> Bob
> 
> On 10 June 2016 at 12:26, Lars Helge Øverland <l...@dhis2.org> wrote:
> Hi Chameera,
> 
> can you tell us the output of the tomcat log which is produced while you 
> attempt to log in?
> 
> Also, during startup, the system will output "LDAP configuration enabled" or 
> something like that to the Tomcat log if in fact detected.
> 
> regards,
> 
> Lars
> 
> 
> 
> 
> On Fri, Jun 10, 2016 at 1:05 PM, Chameera Mirihella <chameera9...@gmail.com> 
> wrote:
> Hi Team,
> 
> I'm trying to configure a dhis instance against a LDAP server for 
> authentication.
> 
> attached is my dhis.conf file with ldap parameters.
> 
> after ldap configuration when I access the login page it is just the usual 
> login interface (I expected something different like when we configured 
> openid) and I have no clue whether it is connected to the ldap server.
> 
> but one thing I noticed, it use local db for authentication.
> 
> I checked the ldap parameters using a ldap client browser and I am 99% sure 
> about the parameters I have provided in dhis.conf
> 
> Is there anything i am missing, can someone please help..?
> 
> 
> 
> Thanks,
> Chameera.
> 
> On Wed, Jun 8, 2016 at 6:09 PM Chameera Mirihella <chameera9...@gmail.com> 
> wrote:
> Thanks Bob, I understand, I will look into that.
> 
> Thanks again
> Chameera.
> 
> 
> On Wed, Jun 8, 2016 at 1:48 PM Bob Jolliffe <bobjolli...@gmail.com> wrote:
> That ldap.url looks like the http url of your php ldap frontend web 
> application.  You need to point it at the running ldap service not the php 
> web interface.
> 
> On 8 June 2016 at 07:00, Chameera Mirihella <chameera9...@gmail.com> wrote:
> Hi Team,
> 
> I am trying to configure a dhis instance against a LDAP server for 
> authentication.
> 
> I followed this doc.
> http://dhis2.github.io/dhis2-docs/2.23/en/implementer/html/dhis2_implementation_guide_en_full.html#d4040e1283
> 
> LDAP server is installed in another ubuntu machine in the same network.
> 
> https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-a-basic-ldap-server-on-an-ubuntu-12-04-vps
> 
> after configure dhis.conf file when restart tomcat it gives an error.
> 
> here I attached the dhis.conf and tomcat command prompt.
> 
> dhis instance :- 2.23
> 
> please let me know anything I am missing here.
> 
> 
> 
> 
> 
> Thanks,
> Chameera.
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
> 
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
> 
> 
> 
> 
> -- 
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org
> http://www.dhis2.org
> 
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Upgrading from DHIS2.old version like 2.18 to 2.24

2016-07-12 Thread dan
Hi Adolphe,

I highly recommend doing it in steps from version to version. If you follow the 
URL pattern you can find the older upgrade notes.
https://www.dhis2.org/218-upgrade
https://www.dhis2.org/219-upgrade

The same should work for the war files.
https://www.dhis2.org/download/releases/2.18/dhis.war
https://www.dhis2.org/download/releases/2.19/dhis.war

Good luck.

Dan Cocos
Principal, BAO Systems
+1 202-569-8751 | dco...@baosystems.com | http://www.baosystems.com |  2900 K 
Street, Suite 404, Washington D.C. 20007


> On Jul 12, 2016, at 10:02 AM, Kamugunga Adolphe <kaa...@gmail.com> wrote:
> 
> Dear community,
> 
> Where can some one get old dhis2 war files  and upgrades notes especially the 
> .sql files released for updgrade  in case i want to upgrade step by step from 
> version to another till i reach the current to avoid jumping to recent 
> version.
> Is direct jump to recent eg from 2.18 to 2.4  a best practices? if not what 
> should the best practices?
> 
> 
> Adolphe Kamugunga
> MIS Technical Advisor
> Mobile: +250 788 740 578
> Email:kaa...@gmail.com
> Skype: ka.adolphe
> 
> 
> 
> On 11 July 2016 at 18:43, Morina Matasi <morena.motsi...@gmail.com> wrote:
> Thanks Knut. I tried steps in that link with no joy. I was using standard 
> reports in DHIS2.19. These reports are .jrxml files done in Jasper Reports. 
> My JRXML report runs well in DHIS2.19 but stops running in DHIS2.20 or later. 
> Am I the only one who faced this problem? Wasn't there an upgrade plan for 
> JRXML reports.
> 
> 
> 
> On Mon, Jul 11, 2016 at 3:02 PM, Knut Staring <knu...@gmail.com> wrote:
> Hello, 
> 
> I have no experience with running Jasper reports on JDK 8, but a quick 
> googling showed up this:
> 
> https://community.jaspersoft.com/questions/844403/how-run-jasperreports-java-8
> 
> On Mon, Jul 11, 2016 at 2:20 PM, Morina Matasi <morena.motsi...@gmail.com> 
> wrote:
> I need to upgrade my system from 2.19 to 2.24. I have first upgraded to 2.20 
> with Tomcat 8 and JDK 8. The system runs by the Jasper Reports won't. I get 
> error:
> 
> net.sf.jasperreports.engine.JRException: Errors were encountered when 
> compiling report expressions class file:
> 1. The type java.lang.CharSequence cannot be resolved. It is indirectly 
> referenced from required .class files
> value = 
> ((java.lang.String)field_organisationunitname.getValue()).equals(((java.lang.String)field_param_organisationunit_name.getValue()))?
>  //$JR_EXPR_ID=27$
> 
> <>
> 
> 
> Did anyone had any issues with Jasper Reports running on JDK 8?
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
> 
> 
> 
> 
> -- 
> Knut Staring
> Dept. of Informatics, University of Oslo
> Norway: +4791880522
> Skype: knutstar
> http://dhis2.org
> 
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
> 
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Log in Password

2016-02-12 Thread Dan Cocos
This thread shows you how to reset a password
https://lists.launchpad.net/dhis2-devs/msg39293.html 
<https://lists.launchpad.net/dhis2-devs/msg39293.html>



Dan Cocos
Principal, BAO Systems
+1 202-352-2671 | dco...@baosystems.com <mailto:nho...@baosystems.com> | 
http://www.baosystems.com <http://www.baosystems.com/> 2900 K Street, Suite 
404, Washington D.C. 20007


> On Feb 12, 2016, at 2:16 AM, Joseph Thobias <jthobi...@gmail.com> wrote:
> 
> Hi, I have forgotten the login password in DHIS2. how can I restore?
> 
> -- 
> Joseph Thobias, Msc.Health Informatics ( University of Dar-es-salaam), Bsc. 
> ICT Management (Mzumbe University)
> School of Informatics,
> College of Informatics and Virtual Education
> University of Dodoma,Tanzania.
>   
>  <http://www.udom.ac.tz/>___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Upgrades to 2.21

2015-12-02 Thread Dan Cocos
Hi All,

On a few upgrades to 2.21 I've run into a problem that only seems to show up 
occasionally.
I'll receive and error along the lines of 

java.lang.IllegalArgumentException: Unknown name value [Date] for enum class 
[org.hisp.dhis.common.ValueType]

Once you know what to look for it becomes pretty clear that if you run 
something like this 
SELECT DISTINCT  valuetype FROM dataelement;
You'll find "Date" instead of "DATE" a similar thing happens with the feature 
type on the organisationunit table. 

I haven't been able to pin down exactly why it doesn't _always_ work but often 
on startup DHIS 2 will fix the problem on it's own and I think change the names 
to the proper types other times I get the error above. My guess is that might 
be related to older versions of Postgres but that is just a hunch.

Can someone share some insight into what happens on startup and if there is a 
way I can help to write some integrity checks to run beforehand? Right now it's 
pretty basic with queries like this: 
 
SELECT uid, featuretype, name FROM organisationunit 
WHERE featuretype NOT IN ('NONE', 'MULTI_POLYGON', 'POLYGON', 'POINT', 
'SYMBOL');

I figured I'd try to get the whole picture before sending the user's list.

Thanks,
Dan


Dan Cocos
Principal, BAO Systems
+1 202-352-2671 | dco...@baosystems.com <mailto:nho...@baosystems.com> | 
http://www.baosystems.com <http://www.baosystems.com/> | Skype: dancocos | 2900 
K Street, Suite 404, Washington D.C. 20007


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] why I can't get the update of dhis2 trunk now?

2015-10-13 Thread Dan Cocos
This likely related to following and you may have to change your openssh 
options. 
http://www.openssh.com/legacy.html <http://www.openssh.com/legacy.html>
 The server offered only a single method diffie-hellman-group1-sha1. OpenSSH 
supports this method, but does not enable it by default because is weak and 
within theoretical range of the so-called Logjam attack.


Dan Cocos
Principal, BAO Systems
+1 202-352-2671 | dco...@baosystems.com <mailto:nho...@baosystems.com> | 
http://www.baosystems.com <http://www.baosystems.com/> | Skype: dancocos | 2900 
K Street, Suite 404, Washington D.C. 20007



> On Oct 13, 2015, at 5:42 AM, 林晓东 <lin...@126.com> wrote:
> 
> I can got by bzr pull or bzr update,but now:
> 
> Unable to negotiate with 91.189.95.84: no matching key exchange method found. 
> Their offer: diffie-hellman-group1-sha1
> ConnectionReset reading response for 'BzrDir.open_2.1', retrying
> Unable to negotiate with 91.189.95.84: no matching key exchange method found. 
> Their offer: diffie-hellman-group1-sha1
> bzr: ERROR: Connection closed: Unexpected end of message. Please check 
> connectivity and permissions, and report a bug if problems persist.
> 
> I have run the pageant with key.
> 
> 
> --
> 此致
> 
>林晓东
> 
> 莫愁前路无知己,天下谁人不识君。
> 
> 
>  
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] Amazon EC2 memory configuration

2015-09-02 Thread Dan Cocos
At BAO we've found we could only reliably support DHIS 2 with a minimum of 2GB. 


Dan Cocos
BAO Systems
www.baosystems.com <http://www.baosystems.com/>
T: +1 202-569-8751 | gchat: dco...@baosystems.com

> On Sep 2, 2015, at 7:33 AM, Jason Pickering <jason.p.picker...@gmail.com> 
> wrote:
> 
> 
> Are you sure that Tomcat actually shut down ?
> 
> Be sure Tomcat is dead by invoking ps -ef | grep tomcat and killing any 
> processes(es) which may be running, and then start it again. If you get that 
> memory leak error again, then something else is not right. 
> 
> Having said that, I agree with Knut. 1GB will really be pushing it, but you 
> might be able to get it to work. 
> 
> Regards,
> Jason
> 
> 
> 
> 
> On Wed, Sep 2, 2015 at 12:56 PM, Knut Staring <knu...@gmail.com 
> <mailto:knu...@gmail.com>> wrote:
> Hi David,
> 
> 1 GB is probably pushing it a bit, AFAIK. Possible, but not too easy2 GB 
> should be fine.
> 
> Knut
> 
> On Wed, Sep 2, 2015 at 12:11 PM, David Huser <david.hu...@swisstph.org 
> <mailto:david.hu...@swisstph.org>> wrote:
> Hi
> 
> I registered for a free tier EC2 instance (t2.micro) on Amazon with Ubuntu 
> 14.04 AMD64 http://aws.amazon.com/ec2/instance-types/ 
> <http://aws.amazon.com/ec2/instance-types/>
> I have set it up according to the DHIS2 implementation manual.
> I'm aware that this low hardware specifications are not ready for national 
> use, I'd like to use it as prototyping resource. However, the server responds 
> to pings but is not accessible through the browser. I suspect the memory 
> configuration. Please find the relevant configurations / error messages in 
> red below.
> 
> Hardware:
> RAM: 1GB memory
> CPU: 1 CPU, spike balancing (t2.micro tier from amazon)
> Disk: 20GB
> 
> Basically, I just divided the RAM specs from the implementation manual (2x 
> 8GB) for each attribute by 16 (I have 1GB).
> 
> 
> $ cat /etc/postgresql/9.3/main/postgresql.conf
> shared_buffers = 128MB
> work_mem = 1MB
> maintenance_work_mem = 32MB
> effective_cache_size = 128MB
> 
> $ java -version
> java version "1.7.0_79"
> OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1)
> OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
> 
> 
> 
> $ cat /tomcat-dhis/bin/setenv.sh
> #!/bin/sh
> #
> 
> CATALINA_HOME=/usr/share/tomcat7
> 
> # The first existing directory is used for JAVA_HOME (if JAVA_HOME is not
> # defined in $DEFAULT)
> JDK_DIRS="/usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-sun 
> /usr/lib/jvm/java-1.5.0-sun /usr/lib/j2sdk1.5-sun /usr/lib/j2sdk1.5-ibm"
> 
> # Look for the right JVM to use
> for jdir in $JDK_DIRS; do
> if [ -r "$jdir/bin/java" -a -z "${JAVA_HOME}" ]; then
> JAVA_HOME_TMP="$jdir"
> # checks for a real JDK like environment, needed to check if
> # really the java-gcj-compat-dev package is installed
> if [ -r "$jdir/bin/jdb" ]; then
> JAVA_HOME="$JAVA_HOME_TMP"
> fi
> fi
> done
> 
> # Default Java options
> if [ -z "$JAVA_OPTS" ]; then
> JAVA_OPTS="-Djava.awt.headless=true -Xmx128M"
> fi
> 
> export JAVA_HOME='/usr/lib/jvm/java-7-openjdk-amd64'
> export JAVA_OPTS='-Xmx768m -Xms256m -XX:MaxPermSize=128m -XX:PermSize=32m'
> export DHIS2_HOME='/home/dhis/config'
> 
> 
> 
> 
> after restarting tomcat:
> $ cat catalina.out 
> 
> Sep 02, 2015 11:59:08 AM org.apache.catalina.startup.ClassLoaderFactory 
> validateFile
> WARNING: Problem with directory [/usr/share/tomcat7/common/classes], exists: 
> [false], isDirectory: [false], canRead: [false]
> Sep 02, 2015 11:59:08 AM org.apache.catalina.startup.ClassLoaderFactory 
> validateFile
> WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false], 
> isDirectory: [false], canRead: [false]
> Sep 02, 2015 11:59:08 AM org.apache.catalina.startup.ClassLoaderFactory 
> validateFile
> WARNING: Problem with directory [/usr/share/tomcat7/server/classes], exists: 
> [false], isDirectory: [false], canRead: [false]
> Sep 02, 2015 11:59:08 AM org.apache.catalina.startup.ClassLoaderFactory 
> validateFile
> WARNING: Problem with directory [/usr/share/tomcat7/server], exists: [false], 
> isDirectory: [false], canRead: [false]
> Sep 02, 2015 11:59:08 AM org.apache.catalina.startup.ClassLoaderFactory 
> validateFile
> WARNING: Problem with directory [/usr/share/tomcat7/shared/classes], exists: 
> [false], isDirectory: [false], canRead: [false]
> Sep 02, 2015 11:59:08 AM org.apache.catalina.startup.ClassLoaderFactory 
> validateFil

Re: [Dhis2-devs] DHIS 2 Revision from Deployed App

2015-08-21 Thread Dan Cocos
Working with our sysadmin we discovered this will work 

unzip -q -p 
/usr/share/tomcat7/webapps/ROOT/WEB-INF/lib/dhis-service-core-2.*.jar 
build.properties

Producing: 
build.version = 2.20
build.time = 2015-08-21 14:51:22
build.revision = 19785

 On Aug 17, 2015, at 3:30 PM, Dan Cocos d...@dancocos.com wrote:
 
 Hi All, 
 
 I thought this would be a straightforward task but it appears to require 
 arcane knowledge. 
 I’m working with a few instances where I don’t have a DHIS 2 User account on 
 the server I’m hosting so I cannot look at the About page but I would like to 
 know the revision of the build.
 
 Checking out a specific revision
 
 ocelot|code:bzr branch -r 19119 lp:dhis2 b19119
 ocelot|code:ls
 2.17   2.18   b19119 dhis2  
 ocelot|code:cd b19119/
 ocelot|b19119:ls
 dhis-2 local
 ocelot|b19119:cd dhis-2/
 ocelot|dhis-2:./build.sh
 --mvn builds the project--
 
 ocelot|dhis-2: zgrep -R 19119 *
 dhis-services/dhis-service-core/target/antrun/build-main.xml:  mkdir 
 dir=/Users/dan/dhis2/code/b19119/dhis-2/dhis-services/dhis-service-core/target/classes/
 dhis-services/dhis-service-core/target/antrun/build-main.xml:  echo 
 file=/Users/dan/dhis2/code/b19119/dhis-2/dhis-services/dhis-service-core/target/classes/build.properties
  message=build.version = 2.20-SNAPSHOT#10;build.time = 
 ${now}#10;build.revision = ${revision}#10;/
 dhis-services/dhis-service-core/target/classes/build.properties:build.revision
  = 19119
 11:58:44|ocelot|dhis-2:
 
 It looks like the only place I can find the build revision number gets 
 packaged in a jar and compressed. Is there anyway to find it by searching the 
 exploded war file? 
 
 Thanks,
 Dan


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] DHIS 2 Revision from Deployed App

2015-08-17 Thread Dan Cocos
Hi All, 

I thought this would be a straightforward task but it appears to require arcane 
knowledge. 
I’m working with a few instances where I don’t have a DHIS 2 User account on 
the server I’m hosting so I cannot look at the About page but I would like to 
know the revision of the build.

Checking out a specific revision

ocelot|code:bzr branch -r 19119 lp:dhis2 b19119
ocelot|code:ls
2.17   2.18   b19119 dhis2  
ocelot|code:cd b19119/
ocelot|b19119:ls
dhis-2 local
ocelot|b19119:cd dhis-2/
ocelot|dhis-2:./build.sh
--mvn builds the project--

ocelot|dhis-2: zgrep -R 19119 *
dhis-services/dhis-service-core/target/antrun/build-main.xml:  mkdir 
dir=/Users/dan/dhis2/code/b19119/dhis-2/dhis-services/dhis-service-core/target/classes/
dhis-services/dhis-service-core/target/antrun/build-main.xml:  echo 
file=/Users/dan/dhis2/code/b19119/dhis-2/dhis-services/dhis-service-core/target/classes/build.properties
 message=build.version = 2.20-SNAPSHOT#10;build.time = 
${now}#10;build.revision = ${revision}#10;/
dhis-services/dhis-service-core/target/classes/build.properties:build.revision 
= 19119
11:58:44|ocelot|dhis-2:

It looks like the only place I can find the build revision number gets packaged 
in a jar and compressed. Is there anyway to find it by searching the exploded 
war file? 

Thanks,
Dan
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [Bug 1482632] [NEW] Meta-Data Detailed Export Throws 500 Error

2015-08-07 Thread Dan Cocos
Public bug reported:

When trying to use Apps -- Import-Export -- Meta-Data Detailed Export
the server will throw a 500 Error with the following message

HTTP Status 500 - Unable to instantiate Action,
org.hisp.dhis.importexport.action.dxf2.FilterListAction, defined for
'dxf2FilteredMetaDataExport' in namespace '/dhis-web-importexport'Error
creating bean with name
'org.hisp.dhis.importexport.action.dxf2.FilterListAction' defined in URL
[jar:file:/llocal/dhis/instances/dev/tomcat/webapps/dev/WEB-INF/lib
/dhis-web-importexport-2.21-SNAPSHOT.jar!/META-INF/dhis/beans.xml]:
Cannot resolve reference to bean
'org.hisp.dhis.filter.MetaDataFilterService' while setting bean property
'metaDataFilterService'; nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'org.hisp.dhis.filter.MetaDataFilterService' is defined

It looks like some classes may have been moved around and change didn't
make it to the bean files.


This can be reproduced on both demo servers 
https://apps.dhis2.org/demo/dhis-web-importexport/dxf2FilteredMetaDataExport.action
https://apps.dhis2.org/dev/dhis-web-importexport/dxf2FilteredMetaDataExport.action

** Affects: dhis2
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1482632

Title:
  Meta-Data Detailed Export Throws 500 Error

Status in DHIS:
  New

Bug description:
  When trying to use Apps -- Import-Export -- Meta-Data Detailed
  Export the server will throw a 500 Error with the following message

  HTTP Status 500 - Unable to instantiate Action,
  org.hisp.dhis.importexport.action.dxf2.FilterListAction, defined for
  'dxf2FilteredMetaDataExport' in namespace '/dhis-web-
  importexport'Error creating bean with name
  'org.hisp.dhis.importexport.action.dxf2.FilterListAction' defined in
  URL [jar:file:/llocal/dhis/instances/dev/tomcat/webapps/dev/WEB-
  INF/lib/dhis-web-importexport-2.21-SNAPSHOT.jar!/META-
  INF/dhis/beans.xml]: Cannot resolve reference to bean
  'org.hisp.dhis.filter.MetaDataFilterService' while setting bean
  property 'metaDataFilterService'; nested exception is
  org.springframework.beans.factory.NoSuchBeanDefinitionException: No
  bean named 'org.hisp.dhis.filter.MetaDataFilterService' is defined

  It looks like some classes may have been moved around and change
  didn't make it to the bean files.

  
  This can be reproduced on both demo servers 
  
https://apps.dhis2.org/demo/dhis-web-importexport/dxf2FilteredMetaDataExport.action
  
https://apps.dhis2.org/dev/dhis-web-importexport/dxf2FilteredMetaDataExport.action

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1482632/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Executing startup routine [1 of 14, runlevel 1]: InitTableAlteror (DefaultStartupRoutineExecutor.java [localhost-startStop-1])

2015-07-21 Thread Dan Cocos
Hi All, 

I’ve noticed since since some of the updates to 2.20 and trunk this step has 
been taking a several minutes to complete upwards of 10 minutes, is this 
expected? 

Thanks,
Dan
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Problem Posting to XML to Web API

2015-06-30 Thread Dan Cocos
Thank you!
I’ve also found that trying to delete OUs via the API causes a 504 Request 
method 'DELETE' not supported
Are we not able to delete OUs via the API? 


 On Jun 30, 2015, at 1:15 PM, Halvdan Grelland halvda...@gmail.com wrote:
 
 Hi Dan,
 
 I was able to reproduce the issue on our demo server. It seems to be due to 
 the empty attributevalues-element. Removing it caused the import to work as 
 expected. Why this is, however, I do not know. We are currently looking into 
 a separate AttributeValue-related issue with the importer, which could be 
 related. 
 
 ---
 
 Att: Morten:
 
 The interesting part of the stack trace:
 
 /pre/ppbroot cause/b prejava.lang.NullPointerException
   
 org.hisp.dhis.dxf2.metadata.importers.DefaultIdentifiableObjectImporter$NonIdentifiableObjects.extractAttributeValues(DefaultIdentifiableObjectImporter.java:1121)
   
 org.hisp.dhis.dxf2.metadata.importers.DefaultIdentifiableObjectImporter$NonIdentifiableObjects.extract(DefaultIdentifiableObjectImporter.java:944)
   
 org.hisp.dhis.dxf2.metadata.importers.DefaultIdentifiableObjectImporter.newObject(DefaultIdentifiableObjectImporter.java:305)
   
 org.hisp.dhis.dxf2.metadata.importers.DefaultIdentifiableObjectImporter.startImport(DefaultIdentifiableObjectImporter.java:525)
   
 org.hisp.dhis.dxf2.metadata.importers.DefaultIdentifiableObjectImporter.importObjectLocal(DefaultIdentifiableObjectImporter.java:511)
   
 org.hisp.dhis.dxf2.metadata.importers.DefaultIdentifiableObjectImporter.importObject(DefaultIdentifiableObjectImporter.java:210)
   
 org.hisp.dhis.dxf2.metadata.importers.DefaultIdentifiableObjectImporter.importObject(DefaultIdentifiableObjectImporter.java:102)
   
 org.hisp.dhis.dxf2.metadata.DefaultImportService.doImport(DefaultImportService.java:281)
   
 org.hisp.dhis.dxf2.metadata.DefaultImportService.importObject(DefaultImportService.java:115)
 
 Regards,
 Halvdan
 
 2015-06-30 19:05 GMT+02:00 Dan Cocos d...@dancocos.com 
 mailto:d...@dancocos.com:
 Hi All,
 
 I’m trying to post a simple XML file to create an OU the following is curl 
 call and the contents of the file (ou.xml)
 
 curl -d @ou.xml https://example.com/api/organistaionUnits 
 https://example.com/api/organistaionUnits -X POST -H Content-Type: 
 application/xml  -u admin:district
 
 organisationUnit id=IheTV7ihHgI level=6 name=Test shortName=TEST 
 xmlns=http://dhis2.org/schema/dxf/2.0 http://dhis2.org/schema/dxf/2.0
 externalAccessfalse/externalAccess
 openingDate2015-05-20T23:00:00.000+/openingDate
 displayNameTest/displayName
 parent id=OqNfa8dQ546 /
 users/
 organisationUnitGroups/
 children/
 dataSets/
 attributeValues/
 userGroupAccesses/
 /organisationUnit
 
 The server response is:
 org.springframework.web.util.NestedServletException: Request processing 
 failed; nested exception is java.lang.NullPointerException
 
 
 Does anyone have a working example of posting OUs to the web API?
 
 Thank you,
 Dan
 
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net 
 mailto:dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp 
 https://help.launchpad.net/ListHelp
 

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Problem Posting to XML to Web API

2015-06-30 Thread Dan Cocos
Hi All,

I’m trying to post a simple XML file to create an OU the following is curl call 
and the contents of the file (ou.xml)

curl -d @ou.xml https://example.com/api/organistaionUnits; -X POST -H 
Content-Type: application/xml  -u admin:district

organisationUnit id=IheTV7ihHgI level=6 name=Test shortName=TEST 
xmlns=http://dhis2.org/schema/dxf/2.0;
externalAccessfalse/externalAccess
openingDate2015-05-20T23:00:00.000+/openingDate
displayNameTest/displayName
parent id=OqNfa8dQ546 /
users/
organisationUnitGroups/
children/
dataSets/
attributeValues/
userGroupAccesses/
/organisationUnit

The server response is:
org.springframework.web.util.NestedServletException: Request processing failed; 
nested exception is java.lang.NullPointerException


Does anyone have a working example of posting OUs to the web API?

Thank you,
Dan


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Problem Posting to XML to Web API

2015-06-30 Thread Dan Cocos
To follow up I just discovered why it wasn’t working I had a typo in the URL, 
though the error was a bit misleading.


 On Jun 30, 2015, at 1:44 PM, Dan Cocos d...@dancocos.com wrote:
 
 
 I still get an error when I try with the following, I’ve attached a copy of 
 the complete stack trace.
 
 organisationUnit id=IheTV7ihHgI level=6 name=Test2 shortName=TEST2 
 xmlns=http://dhis2.org/schema/dxf/2.0 http://dhis2.org/schema/dxf/2.0
   externalAccessfalse/externalAccess
   openingDate2015-05-20T23:00:00.000+/openingDate
   displayNameBAO Test/displayName
   parent id=Iu06qlak3ZY /
 /organisationUnit
 
 or this 
 
 organisationUnit id=IheTV7ihHgI level=6 name=Test shortName=TEST 
 xmlns=http://dhis2.org/schema/dxf/2.0 http://dhis2.org/schema/dxf/2.0
   externalAccessfalse/externalAccess
   openingDate2015-05-20T23:00:00.000+/openingDate
   displayNameBAO Test/displayName
   parent id=OqNfa8dQ546 /
   users/
   organisationUnitGroups/
   children/
   dataSets/
   userGroupAccesses/
 /organisationUnit
 
 error.html
 
 On Jun 30, 2015, at 1:24 PM, Dan Cocos d...@dancocos.com 
 mailto:d...@dancocos.com wrote:
 
 Thank you!
 I’ve also found that trying to delete OUs via the API causes a 504 Request 
 method 'DELETE' not supported
 Are we not able to delete OUs via the API? 
 
 
 On Jun 30, 2015, at 1:15 PM, Halvdan Grelland halvda...@gmail.com 
 mailto:halvda...@gmail.com wrote:
 
 Hi Dan,
 
 I was able to reproduce the issue on our demo server. It seems to be due to 
 the empty attributevalues-element. Removing it caused the import to work as 
 expected. Why this is, however, I do not know. We are currently looking 
 into a separate AttributeValue-related issue with the importer, which could 
 be related. 
 
 ---
 
 Att: Morten:
 
 The interesting part of the stack trace:
 
 /pre/ppbroot cause/b prejava.lang.NullPointerException
 
 org.hisp.dhis.dxf2.metadata.importers.DefaultIdentifiableObjectImporter$NonIdentifiableObjects.extractAttributeValues(DefaultIdentifiableObjectImporter.java:1121)
 
 org.hisp.dhis.dxf2.metadata.importers.DefaultIdentifiableObjectImporter$NonIdentifiableObjects.extract(DefaultIdentifiableObjectImporter.java:944)
 
 org.hisp.dhis.dxf2.metadata.importers.DefaultIdentifiableObjectImporter.newObject(DefaultIdentifiableObjectImporter.java:305)
 
 org.hisp.dhis.dxf2.metadata.importers.DefaultIdentifiableObjectImporter.startImport(DefaultIdentifiableObjectImporter.java:525)
 
 org.hisp.dhis.dxf2.metadata.importers.DefaultIdentifiableObjectImporter.importObjectLocal(DefaultIdentifiableObjectImporter.java:511)
 
 org.hisp.dhis.dxf2.metadata.importers.DefaultIdentifiableObjectImporter.importObject(DefaultIdentifiableObjectImporter.java:210)
 
 org.hisp.dhis.dxf2.metadata.importers.DefaultIdentifiableObjectImporter.importObject(DefaultIdentifiableObjectImporter.java:102)
 
 org.hisp.dhis.dxf2.metadata.DefaultImportService.doImport(DefaultImportService.java:281)
 
 org.hisp.dhis.dxf2.metadata.DefaultImportService.importObject(DefaultImportService.java:115)
 
 Regards,
 Halvdan
 
 2015-06-30 19:05 GMT+02:00 Dan Cocos d...@dancocos.com 
 mailto:d...@dancocos.com:
 Hi All,
 
 I’m trying to post a simple XML file to create an OU the following is curl 
 call and the contents of the file (ou.xml)
 
 curl -d @ou.xml https://example.com/api/organistaionUnits 
 https://example.com/api/organistaionUnits -X POST -H Content-Type: 
 application/xml  -u admin:district
 
 organisationUnit id=IheTV7ihHgI level=6 name=Test shortName=TEST 
 xmlns=http://dhis2.org/schema/dxf/2.0 http://dhis2.org/schema/dxf/2.0
 externalAccessfalse/externalAccess
 openingDate2015-05-20T23:00:00.000+/openingDate
 displayNameTest/displayName
 parent id=OqNfa8dQ546 /
 users/
 organisationUnitGroups/
 children/
 dataSets/
 attributeValues/
 userGroupAccesses/
 /organisationUnit
 
 The server response is:
 org.springframework.web.util.NestedServletException: Request processing 
 failed; nested exception is java.lang.NullPointerException
 
 
 Does anyone have a working example of posting OUs to the web API?
 
 Thank you,
 Dan
 
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net 
 mailto:dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp 
 https://help.launchpad.net/ListHelp
 
 
 

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19296: WIP proper error reporting on failed GML parsing during import

2015-06-26 Thread Dan Cocos
I’ve seen this error in the past on import of GML the cause was an Org Unit  
had a lot of coordinates (as in greater than 200 it was every turn of Lake 
Victoria) and this caused the importer to hang. 

 On Jun 26, 2015, at 5:17 AM, Calle Hedberg calle.hedb...@gmail.com wrote:
 
 Hi,
 
 I ran it again (revision 19247) and pulled out the first part of the log 
 error:
 
 * INFO  2015-06-26 11:04:18,338 User 'Calle_Hedberg' started import at Fri 
 Jun 26 11:04:18 CAT 2015 (DefaultImportService.java [taskScheduler-1])
 * INFO  2015-06-26 11:04:18,348 [Level: INFO, category: METADATA_IMPORT, 
 time: Fri Jun 26 11:04:18 CAT 2015, message: Importing meta-data] 
 (InMemoryNotifier.java [taskScheduler-1])
 * INFO  2015-06-26 11:04:18,348 Building object-bridge maps (preheatCache: 
 true). (DefaultObjectBridge.java [taskScheduler-1])
 * INFO  2015-06-26 11:04:21,141 Building object-bridge maps took 2.79 
 seconds. (DefaultObjectBridge.java [taskScheduler-1])
 * INFO  2015-06-26 11:04:21,141 [Level: INFO, category: METADATA_IMPORT, 
 time: Fri Jun 26 11:04:21 CAT 2015, message: Importing 1 OrganisationUnits] 
 (InMemoryNotifier.java [taskScheduler-1])
 * INFO  2015-06-26 11:04:21,151 Deleted objects associated with object of 
 type AttributeValue (DefaultDeletionManager.java [taskScheduler-1])
 * INFO  2015-06-26 11:04:21,151 Deleted objects associated with object of 
 type AttributeValue (DefaultDeletionManager.java [taskScheduler-1])
 * INFO  2015-06-26 11:04:21,151 Deleted objects associated with object of 
 type AttributeValue (DefaultDeletionManager.java [taskScheduler-1])
 * ERROR 2015-06-26 11:04:21,432 Unexpected error occurred in scheduled task. 
 (TaskUtils.java [taskScheduler-1])
 java.lang.StackOverflowError
   at java.util.regex.Pattern$BmpCharProperty.init(Unknown Source)
   at java.util.regex.Pattern$BmpCharProperty.init(Unknown Source)
   at java.util.regex.Pattern$BitClass.init(Unknown Source)
   at java.util.regex.Pattern.clazz(Unknown Source)
   at java.util.regex.Pattern.sequence(Unknown Source)
   at java.util.regex.Pattern.expr(Unknown Source)
   at java.util.regex.Pattern.compile(Unknown Source)
   at java.util.regex.Pattern.init(Unknown Source)
   at java.util.regex.Pattern.compile(Unknown Source)
   at java.lang.String.replaceAll(Unknown Source)
   at com.google.common.base.MoreObjects.simpleName(MoreObjects.java:134)
   at 
 com.google.common.base.MoreObjects.toStringHelper(MoreObjects.java:95)
   at org.hisp.dhis.attribute.Attribute.toString(Attribute.java:396)
   at sun.reflect.GeneratedMethodAccessor626.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at 
 org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:196)
   at 
 org.hisp.dhis.attribute.Attribute_$$_jvst804_10.toString(Attribute_$$_jvst804_10.java)
   at java.lang.String.valueOf(Unknown Source)
   at java.lang.StringBuilder.append(Unknown Source)
   at 
 org.hisp.dhis.attribute.AttributeValue.toString(AttributeValue.java:122)
   at java.lang.String.valueOf(Unknown Source)
   at java.lang.StringBuilder.append(Unknown Source)
   at java.util.AbstractCollection.toString(Unknown Source)
   at 
 org.hibernate.collection.internal.PersistentSet.toString(PersistentSet.java:327)
   at java.lang.String.valueOf(Unknown Source)
   at java.lang.StringBuilder.append(Unknown Source)
   at 
 com.google.common.base.MoreObjects$ToStringHelper.toString(MoreObjects.java:359)
 
 Any ideas?
 
 Regards 
 Calle
 
 On 26 June 2015 at 10:12, Calle Hedberg calle.hedb...@gmail.com 
 mailto:calle.hedb...@gmail.com wrote:
 Hi,
 
 Firstly, yes we are using a custom revision - although it is SUPPOSED to be 
 based on a 2.19 version from a few days ago. I will check that.
 
 BUT I have tried the import using revision 19247 too, and the 
 problem/behaviour is exactly the same - it hangs. Whereas if I import into an 
 older version of the same provincial instance that still runs on 2.18, it 
 imports fine.
 
 The fact that the same GML file imports in the Sierra Leone demo - I cannot 
 explain that, and the tomcat log only shows that Attribute.toString() 
 looping... 
 
 Can I create a stripped down version of the instance and upload it for you to 
 test?
 
 Regards
 Calle
 
 
 
 On 26 June 2015 at 04:09, Morten Olav Hansen morte...@gmail.com 
 mailto:morte...@gmail.com wrote:
 It seems to be looping in Attribute.toString(), I remember this was an issue 
 at some point.. but that was a long long time ago.. so maybe you need a 
 revision bump
 
 --
 Morten
 
 On Fri, Jun 26, 2015 at 6:52 AM, Halvdan Grelland halvda...@gmail.com 
 mailto:halvda...@gmail.com wrote:
 I tried your example GML on both our demo servers (dev on 2.20 and demo on 
 2.19, same rev as your server) and it works just fine. 
 
 If you're 

Re: [Dhis2-devs] How to unistall dhis2 instance

2015-06-15 Thread Dan Cocos
You can simply remove the war file and the directory from your servlet 
container and drop the database.





 On Jun 15, 2015, at 8:08 PM, gerald thomas gerald17...@gmail.com wrote:
 
 Dear All,
 Please can anyone help give me the steps  how to uninstall an instance
 in dhis2.
 
 -- 
 Regards,
 
 Gerald
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] DHIS2 404 error

2015-05-18 Thread Dan Cocos
Hi Gerald, 

I looks like it is unable to connect to the database. Is your database started 
and your connection info properly set in hibernate.properties? 


Dan Cocos
BAO Systems
www.baosystems.com http://www.baosystems.com/
T: +1 202-352-2671 | skype: dancocos

 On May 18, 2015, at 12:46 PM, gerald thomas gerald17...@gmail.com wrote:
 
 Dear All,
 Why i am getting Error 404 most of the time? What am I doing wrong
 that is creating this error?
 Please help me.
 Attached are my log files.
 
 -- 
 Regards,
 
 Gerald
 catalina.2015-05-18.loglocalhost.2015-05-18.log___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Error When Running 2.19 SQL Update Script

2015-05-13 Thread Dan Cocos
Hi All,

When updating servers to run 2.19 running the update SQL 
(https://github.com/dhis2/dhis2-utils/blob/master/resources/sql/upgrade-219.sql 
https://github.com/dhis2/dhis2-utils/blob/master/resources/sql/upgrade-219.sql)
 

I get the following error.

psql:update219.sql:8: ERROR:  column pi.organisationunitid does not exist
LINE 5: where pi.organisationunitid is null;


Is this expected?

Thanks,
Dan





Dan Cocos
BAO Systems
www.baosystems.com http://www.baosystems.com/
T: +1 202-352-2671 | skype: dancocos

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] stackexchange last phase - commitment needed

2015-04-08 Thread Dan Cocos
Calle,

StackExchange also has a handful of other advantages. 

It allows to you tag for version.
It is optimized for search engine indexing.
You see multiple solutions in one place.
It has clear formatting.
Threaded discussions.
Most developers already have an account where as this isn’t the case for 
Launchpad.
There is a concept of related questions and linked questions.
A good summary can be found here http://stackoverflow.com/tour 
http://stackoverflow.com/tour

Thanks,
Dan

 On Apr 8, 2015, at 9:50 AM, Jason Pickering jason.p.picker...@gmail.com 
 wrote:
 
 Hi Calle,
 
 I would agree with you and have acknowledged this as you say. However, since 
 a large part of the documentation has been developed purely as a volunteer 
 effort, it is what it is.  As I also epxlained in the workshop last summer 
 (and several times on this list) the documents are open source, you are free 
 (as are all) to contribute to improving them.The core team will be improving 
 the documents gradually, as there is now central support ffor this, and 
 issues on GtitHub are most welcome.  But like I said, if you do not like what 
 is there, feel free to get involved. 
 
 Also, if you do not want to participate in the Stack Exchange, there is no 
 need to. We are trying this as a bit of experiment, and if it works, great, 
 if it does not, then we can consider other route. However, StackExchange is a 
 great resource for many technical communities, and it does not necessarily 
 need to be limited to techie discussion. It is quite a difficult process to 
 even get accepted into the site, but if we do, then it could potentially be a 
 great resource for the community .
 
 Best regards,
 Jason
 
 
 On Wed, Apr 8, 2015 at 3:41 PM, Calle Hedberg calle.hedb...@gmail.com 
 mailto:calle.hedb...@gmail.com wrote:
 Jason,
 
 Again maybe - I'm concerned about too many avenues/sites for technical info 
 that tend to change frequently, with the core team being unable to maintain 
 them and increasingly not responding at all or responding with the usual RTFM 
 (as you pointed out in your documentation presentation in Oslo last year, the 
 documentation is poor and fragmented - it's next to impossible to find 
 solutions to significant problems using that route because so many things are 
 NOT documented or it's buried under a lot of techie lingo with limited or 
 non-existent links to real-world issues as they are viewed by people in the 
 field).
 
 I'm increasingly convinced that we need fewer documents/sites for technical 
 info - and rather one major source that digs really deep into every single 
 aspect of the UI and processes, outlining both what is there and what isn't. 
 Too much of that is currently only in the heads of the core team, which are 
 overwhelmed and not able to respond to the more complicated issues.
 
 Regards
 Calle
 
 
 
 On 8 April 2015 at 14:01, Jason Pickering jason.p.picker...@gmail.com 
 mailto:jason.p.picker...@gmail.com wrote:
 Hi Calle,
 The thinking here is that you will not need to ask the core team for a lot of 
 stuff, so they can focus on other stuff.  This lists gets a lot of repeat 
 questions and a lot of questions which could be answered if people bothered 
 to read the documentation. Stack Exchange offers a means to keep answers in 
 questions in a more FAQ type of format. It is not really meant to be a 
 replacement for this list, but a more searchable site than the current 
 mailing list (which admittedly is not always easy to dig through to find a 
 specific answer to a given problem)
 
 Regards,
 Jason
 
 
 On Wed, Apr 8, 2015 at 1:48 PM, Calle Hedberg calle.hedb...@gmail.com 
 mailto:calle.hedb...@gmail.com wrote:
 Hi
 
 OK, but getting answers (or even confirmation that the query has been 
 received) via direct questions to the core team or via the dev list is 
 generally difficult except for the simple/obvious stuff. Will adding another 
 community forum change that?
 
 Regards
 Calle
 
 On 8 April 2015 at 13:27, Lars Helge Øverland larshe...@gmail.com 
 mailto:larshe...@gmail.com wrote:
 Hi all,
 
 thanks to your help we made it to the last stage of the stackexchange 
 evaluation. We now need you to commit to using the site - your help is 
 appreciated!
 
 http://area51.stackexchange.com/proposals/77757/dhis2 
 http://area51.stackexchange.com/proposals/77757/dhis2
 
 It only takes a second - please go to the link above, create an account if 
 you didn't already, and click the commit link. 
 
 We believe that having an online question-and-answers community will be very 
 helpful for giving people access to DHIS-related knowledge.
 
 
 stack-commit.png
 
 best regards,
 
 Lars
 
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net 
 mailto:dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 More help

[Dhis2-devs] [Bug 1429294] [NEW] Cannot Delete Users via Web API

2015-03-06 Thread Dan Cocos
Public bug reported:

I created a User, I then took that user's uid and tried to delete with
the following.

curl -X DELETE -u admin:district
https://apps.dhis2.org/demo/api/users/Ix1ihxTPq4E

I get an error back 
org.postgresql.util.PSQLException: ERROR: update or delete on table userinfo 
violates foreign key constraint fk6a68e08f19893da on table users
  Detail: Key (userinfoid)=(240277) is still referenced from table users.

** Affects: dhis2
 Importance: Undecided
 Status: New


** Tags: api web

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1429294

Title:
  Cannot Delete Users via Web API

Status in DHIS 2:
  New

Bug description:
  I created a User, I then took that user's uid and tried to delete with
  the following.

  curl -X DELETE -u admin:district
  https://apps.dhis2.org/demo/api/users/Ix1ihxTPq4E

  I get an error back 
  org.postgresql.util.PSQLException: ERROR: update or delete on table 
userinfo violates foreign key constraint fk6a68e08f19893da on table users
Detail: Key (userinfoid)=(240277) is still referenced from table users.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1429294/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [Bug 1428665] Re: Bugs in interface language (French/English)

2015-03-05 Thread Dan Cocos
You can submit translations here http://translate.dhis2.net

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1428665

Title:
  Bugs in interface language (French/English)

Status in DHIS 2:
  Invalid

Bug description:
  All text in web browser (Chrome or Firefox or Internet Explorer) are
  mixed translated with French and English Language. Switching
  appearance settings in English, it's give the same results as shown in
  attached file.

  DHIS2 version: 2.18 installed in local Server Linux Debian 7.4

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1428665/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Issue creating SQLviews

2015-02-28 Thread Dan Cocos
If you have Java, Maven and Bazaar installed you can install it by checking out 
this version and compiling  
bzr branch -r 18215  lp:~dhis2-devs-core/dhis2/2.18

I’ve built the war file which you can find here for the next couple of days
https://www.dropbox.com/s/lvkocbt90dfxxk4/dhis.war?dl=0


Dan Cocos
BAO Systems
www.baosystems.com http://www.baosystems.com/
T: +1 202-352-2671 | skype: dancocos

 On Feb 28, 2015, at 2:54 PM, Alex Tumwesigye atumwesi...@gmail.com wrote:
 
 Dear Jason,
 
 It is bug. I have used the 28 Feb,2015 builds on our test server which was 
 running an old build and it also failed with the same error [SQL views].
 
 The old build on the test server was functional.
 
 Lars, how can obtain an old build lets #52 from the jerkins?
 I tried this 
 https://apps.dhis2.org/ci/job/dhis-2.18/52/artifact/dhis-2/dhis-web/dhis-web-portal/target/dhis.war
  
 https://apps.dhis2.org/ci/job/dhis-2.18/52/artifact/dhis-2/dhis-web/dhis-web-portal/target/dhis.war
  and it failed
 
 
 Please help us fix the issue as it affects the resource generation.
 Thanks.
 
 Alex
 
 On Sat, Feb 28, 2015 at 10:44 PM, Jason Pickering 
 jason.p.picker...@gmail.com mailto:jason.p.picker...@gmail.com wrote:
 I see the same thing as well, so likely a bug. In my case, it is 
 
 Version:
 2.18
 Build revision:
 18194
 
 On Sat, Feb 28, 2015 at 7:49 PM, Alex Tumwesigye atumwesi...@gmail.com 
 mailto:atumwesi...@gmail.com wrote:
 Dear DHIS2 Dev team,
 
 When I try to generate the resource tables (build date:2015-02-28 02:06, ver 
 2.18), I get this error attached.
 I checking to see if it is a bug.
 
 -- 
 Alex Tumwesigye
 
 Technical Advisor - DHIS2 (Consultant),
 Ministry of Health/AFENET
 Kampala
 Uganda
 
 IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya
 
 IT Specialist (Servers, Networks and Security, Health Information Systems - 
 DHIS2 )  Solar Consultant
 
 +256 774149 775 , + 256 759 800161 
 
 I don't want to be anything other than what I have been - one tree hill 
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net 
 mailto:dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp 
 https://help.launchpad.net/ListHelp
 
 
 
 
 -- 
 Jason P. Pickering
 email: jason.p.picker...@gmail.com mailto:jason.p.picker...@gmail.com
 tel:+46764147049 tel:%2B46764147049
 
 
 -- 
 Alex Tumwesigye
 
 Technical Advisor - DHIS2 (Consultant),
 Ministry of Health/AFENET
 Kampala
 Uganda
 
 IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya
 
 IT Specialist (Servers, Networks and Security, Health Information Systems - 
 DHIS2 )  Solar Consultant
 
 +256 774149 775 , + 256 759 800161 
 
 I don't want to be anything other than what I have been - one tree hill 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net 
 mailto:dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp 
 https://help.launchpad.net/ListHelp
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Error on DHIS startup

2015-02-10 Thread Dan Cocos
Could it be that in hibernate.properties
hibernate.hbm2ddl.auto = update
is set to something else? 

 On Feb 10, 2015, at 10:54 AM, Lars Helge Øverland larshe...@gmail.com wrote:
 
 Hi Sandesh,
 
 I have never seen this error and cannot reproduce locally with latest trunk. 
 Anyone seen this? Could it be an accident on your side?
 
 Try to add the uid column manually with
 
 ALTER TABLE dashboard ADD COLUMN uid character varying(11);
 
 then restart dhis - should populate the uids.
 
 Lars
 
 
 On Tue, Feb 10, 2015 at 8:13 AM, Sandesh Sukumar Doolipeta 
 sande...@thoughtworks.com mailto:sande...@thoughtworks.com wrote:
 Hi,
 
 There is an error when DHIS (rev 18213) starts up. uid column is missing 
 from dashboard table. 
 
 Below is postgres screenshot.
 
 image.png
 
 Here's the stack trace.
 
  ERROR 2015-02-10 12:27:59,062 Problem updating: dashboard, id column: 
 dashboardid (IdentityPopulator.java [main])
 org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL 
 grammar [SELECT * from dashboard WHERE uid IS NULL]; nested exception is 
 org.postgresql.util.PSQLException: ERROR: column uid does not exist
   Position: 31
 at 
 org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:99)
 at 
 org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
 at 
 org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
 at 
 org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
 at 
 org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:416)
 at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:471)
 at 
 org.springframework.jdbc.core.JdbcTemplate.queryForRowSet(JdbcTemplate.java:526)
 at 
 org.hisp.dhis.common.IdentityPopulator.execute(IdentityPopulator.java:86)
 at 
 org.hisp.dhis.system.startup.DefaultStartupRoutineExecutor.execute(DefaultStartupRoutineExecutor.java:119)
 at 
 org.hisp.dhis.system.startup.DefaultStartupRoutineExecutor.execute(DefaultStartupRoutineExecutor.java:88)
 at 
 org.hisp.dhis.system.startup.StartupListener.contextInitialized(StartupListener.java:68)
 at 
 org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:800)
 at 
 org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:444)
 at 
 org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:791)
 at 
 org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:294)
 at 
 org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
 at 
 org.eclipse.jetty.maven.plugin.JettyWebAppContext.startWebapp(JettyWebAppContext.java:296)
 at 
 org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
 at 
 org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
 at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
 at 
 org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:365)
 at 
 org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
 at 
 org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
 at 
 org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
 at 
 org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
 at 
 org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163)
 at 
 org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
 at 
 org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
 at 
 org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
 at 
 org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
 at 
 org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
 at 
 org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
 at org.eclipse.jetty.server.Server.start(Server.java:387)
 at 
 org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
 at 
 org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
 at org.eclipse.jetty.server.Server.doStart(Server.java:354)
 at org.eclipse.jetty.maven.plugin.JettyServer.doStart(JettyServer.java:73)
 at 
 org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
 at 
 org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:534)
  

Re: [Dhis2-devs] Rounding of numbers in tracker

2015-01-20 Thread Dan Cocos
Wouldn’t it make sense to follow the Java convention so at least there is a 
clear way to understand what “number” means?
http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html 
http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html

 On Jan 20, 2015, at 12:57 PM, Jason Pickering jason.p.picker...@gmail.com 
 wrote:
 
 Dunno. Floating point sounds much geekier than real number, although it is 
 of course technically more correct. Maybe Decimal number? 
 
 I think the more problematic issue is the API and how decimals appear to be 
 int, which led to this bug, which of course is misleading. 
 
 Regards,
 Jason
 
 
 On Tue, Jan 20, 2015 at 4:12 PM, Bob Jolliffe bobjolli...@gmail.com 
 mailto:bobjolli...@gmail.com wrote:
 I think Jason's suggestion makes good sense.  It doesn't make intuitive sense 
 that people should interpret Number to mean real number as distinct to 
 integer.  Though maybe real number is slightly too mathematical a term for 
 some users.  I wonder is floating point less technical or moreso?  Either 
 way lets try and agree on an alternative to just Number.
 
 On 20 January 2015 at 13:17, Abyot Gizaw aby...@gmail.com 
 mailto:aby...@gmail.com wrote:
 Yes kind of confusing ... that is why I ended up with the bug. Since I was 
 getting int through the web-api, I simply used parseInt ... hence the 
 rounding.
 
 
 ---
 Thank you,
 Abyot.
 
 On Tue, Jan 20, 2015 at 1:58 PM, Jason Pickering jason.p.picker...@gmail.com 
 mailto:jason.p.picker...@gmail.com wrote:
 Hi Abyot,
 Thanks for the quick fix. 
 
 It is a bit confusing from the API I must admit. In the UI, these data 
 elements are defined as Value type = Number and Number type = Number, but 
 in the API JSON response, it comes out as int for the type.  
 
 It might be work considering to change the Number type to Real instead of 
 Number. It is fairly obvious it is a number. :)
 
 Regards,
 Jason
 
 
 On Tue, Jan 20, 2015 at 12:47 PM, Abyot Gizaw aby...@gmail.com 
 mailto:aby...@gmail.com wrote:
 Hi Jason,
 
 Yes, they were converted to Integer. This is fixed now in trunk.
 
 ---
 Thank you,
 Abyot.
 
 On Tue, Jan 20, 2015 at 12:03 PM, Jason Pickering 
 jason.p.picker...@gmail.com mailto:jason.p.picker...@gmail.com wrote:
 Hi Devs,
 We have some data values which are numerically precise to two decimal places. 
 In the trackedentitydatavalue table, the numbers are correct as they should 
 be, but in the UI, they appear to be truncated or possibly rounded to the 
 nearest integer. Could someone confirm this is the case? If so, I think it is 
 a bug, as the data elements have been defined to be numeric, and not integers.
 
 Best regards,
 Jason
 
  
 -- 
 Jason P. Pickering
 email: jason.p.picker...@gmail.com mailto:jason.p.picker...@gmail.com
 tel:+46764147049 tel:%2B46764147049
 ___
 Mailing list: https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net 
 mailto:dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp 
 https://help.launchpad.net/ListHelp
 
 
 
 
 
 -- 
 Jason P. Pickering
 email: jason.p.picker...@gmail.com mailto:jason.p.picker...@gmail.com
 tel:+46764147049 tel:%2B46764147049
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net 
 mailto:dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp 
 https://help.launchpad.net/ListHelp
 
 
 
 
 
 -- 
 Jason P. Pickering
 email: jason.p.picker...@gmail.com mailto:jason.p.picker...@gmail.com
 tel:+46764147049
 ___
 Mailing list: https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net 
 mailto:dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp 
 https://help.launchpad.net/ListHelp
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] DHIS2 logo edit

2014-12-31 Thread Dan Cocos
Hi Anne,

I would suggesting using Apps — Settings — Appearance Settings
You’ll have to create an external-static/ directory on your web server and put 
the new images there (the dimensions are on the settings page)

If you simply swap out the logo image file in web apps directory it won’t 
persist if you deploy a new version of DHIS 2.

If  you’d like to make additional changes I suggest using the web API 
documented here: 
https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s41.html

Here is a brief example:
---
If you want customize the look of DHIS 2 via CSS, here is an example of a clean 
way to use your own CSS.
In this example we'll hide the flag and the footer on the DHIS 2 login page.

Following the documentation here 
https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s41.html

This is how to hide the flag and the footer on the home page.

I created a file mystyle.css (the name doesn’t matter) and it contained
#flagArea
{
  visibility: hidden;
  position: absolute;
  top: 22px;
  left: 52px;
  border: 1px solid #d5d5d5;
  border-radius: 2px;
  max-width: 105px;
  margin-bottom: 5%;
}

#footerArea
 {
  visibility: hidden; 
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 10px 0 9px 0;
  font-size: 13px;
  border-top: 1px solid #416f9d;
  color: #6b90b8;
  width: 100%;
}

Then make the following curl call which posts the file to the server.
curl -d @mystyle.css https://example.com/api/files/style; -H 
Content-Type:text/css -u username:password

If you view the source of the home page you’ll notice a call to 
link type=text/css rel=stylesheet href=../../api/files/style/external /

If you look here you’ll be able to see the CSS that I just added.
https://example.com/api/files/style/external

Please note that when you post a new file to 
https://example.com/api/files/style it will overwrite the current version, so 
you have to include all of your previous changes.
—




Dan Cocos
BAO Systems
www.baosystems.com http://www.baosystems.com/
T: +1 202-352-2671 | skype: dancocos


 On Dec 30, 2014, at 10:38 AM, Calle Hedberg calle.hedb...@gmail.com wrote:
 
 Anne,
 
 I don't know if you are running a local instance or a server instance, but 
 the dashboard banner file can be found in the folder
 
 Tomcat 7.0\webapps\dhis\dhis-web-commons\css\green\logo_banner.png
 
 I picked this from a local instance on my machine - the initial path might be 
 slightly different on a server.
 
 So what you need to do is to modify that logo_banner.png file - keep the size 
 etc but insert your logo (what is it - a big chain-saw or two axes?? ;-) ) 
 instead of the DHIS2 text.
 
 Regards
 Calle
 
 
 
 On 30 December 2014 at 17:08, Calle Hedberg calle.hedb...@gmail.com 
 mailto:calle.hedb...@gmail.com wrote:
 Anne,
 
 Hold on - I'm checking something out here...
 
 Regards
 Calle
 
 On 30 December 2014 at 16:59, Anne Grace missannegr...@gmail.com 
 mailto:missannegr...@gmail.com wrote:
 just the DHIS2Logo on the left side.
 On 30 Dec 2014, at 16:53, Calle Hedberg calle.hedb...@gmail.com 
 mailto:calle.hedb...@gmail.com wrote:
 
 Anne,
 
 So you want to replace the whole green banner on top? Or do you want to 
 replace only the dhis2 on the left side of it with a logo?
 
 Regards
 calle
 
 On 30 December 2014 at 16:34, Anne Grace missannegr...@gmail.com 
 mailto:missannegr...@gmail.com wrote:
 Dear calle,
 
 attached is the home page and the DHIS logo i would like to edit.Screen 
 Shot 2014-12-30 at 16.33.34.png
 
 On 30 Dec 2014, at 16:28, Calle Hedberg calle.hedb...@gmail.com 
 mailto:calle.hedb...@gmail.com wrote:
 
 Anne,
 
 Sorry, forgot to mention: You can also design a complete custom start up 
 form, if you want. The only thing I believe you cannot completely remove is 
 the small icon in the lower left corner: Powered by DHIS2.
 
 Best regards
 Calle
 
 On 30 December 2014 at 16:22, Calle Hedberg calle.hedb...@gmail.com 
 mailto:calle.hedb...@gmail.com wrote:
 Anne,
 
 Open the Settings app, then select Appearance
 
 Here you can specify things like flags etc, OR you can enter text, OR you 
 can use HTML to insert your own logos/picture.
 
 For instance, in the Namibia instance I'm working on right now, we have a 
 Namibian flag in the upper left corner and the Ministry of Health and 
 social Services logo under the loginpassword section. To get the latter, 
 we pasted the following into the Application Notification box:
 
 img id=health_logo width=240 vspace=0 hspace=0 height=204 
 border=0 align=centre alt= 
 src=http://www.hisp.org/logos/nam_moh_logo.png 
 http://www.hisp.org/logos/nam_moh_logo.png/img
 
 Regards
 Calle
 Cape Town
 
 On 30 December 2014 at 15:21, Anne Grace missannegr...@gmail.com 
 mailto:missannegr...@gmail.com wrote:
 Dear Devs,
 
 I would like to remove the DHIS2 logo on my system home page and replace it 
 with our system name.
 How can i do that?
 
 Thanks,
 
 Anne
 
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs 
 https

Re: [Dhis2-devs] Creating Sync between Linode(External Server) and Local Server

2014-12-18 Thread Dan Cocos
Hi All,

I think there are two concerns being discussed here.

1) Making sure there is a reliable backup in case something goes wrong.

The first problem is pretty straight forward, one can create another instance 
in another region, another provider or locally. Then schedule a regular backup 
to that server. Though I don’t recommend that the local actively run DHIS 2 
because any changes made to that server will be lost on the next update from 
the cloud instance. Merging DBs is a difficult problem and causes more headache 
than it is worth.

Depending on how far back you’d like your backups to go this will start to 
consume a lot of disk space.

If the cloud server goes down you can be assured that your data is safe because 
you’ll have a copy of the database either on another cloud server or locally.

Incremental backups can be good for low bandwidth but my concerns are restore 
time and if one of the increments is corrupted it can cause a lot of problems.

Some cloud providers also offer storage/backup solutions that can address this 
concern. 

2) Failover in the event the cloud server goes down.

This is a more complex problem and can be addressed by having stand by servers 
in different regions, this will allow for failover in the event of an outage 
but has to be carefully planned and starts to get expensive as you’ve 
essentially doubled or tripled the number of instances/servers you’d need 
available. It also requires careful planning to make sure there is clear 
failover plan in addition to a clear plan to restore to the initial setup. 

—
Executive summary 
1) Reliable backups are pretty straight forward and can be cost effective. 
2) Failure over can be addressed but it is complex problem and starts to get 
expensive.

Lastly and more importantly is to test on regular basis to make sure that you 
are able to restore from backups in the event of a failure.

Thanks,
Dan



Dan Cocos
BAO Systems
www.baosystems.com http://www.baosystems.com/
T: +1 202-352-2671 | skype: dancocos

 On Dec 18, 2014, at 7:53 AM, Steffen Tengesdal stef...@tengesdal.com wrote:
 
 Hi Gerald,
 
 As Bob pointed out, filezilla is a GUI tool and it does not support 
 scheduling of downloads.  Your local server should not have a GUI on it if it 
 is a production system.  If your local host a Linux system? If so, you can 
 create a simple bash script on the localhost system that uses sftp or scp 
 command line to connect and download a backup.  A script for that would not 
 be very complicated.  
 
 Steffen
 
 On Dec 18, 2014, at 7:47 AM, gerald thomas gerald17...@gmail.com 
 mailto:gerald17...@gmail.com wrote:
 
 Bob,
 My Suggestion:
 All local servers must be on 2.15 war file then we create a SFTP
 account on cloud server then we can use filezilla from the local
 server to download the backup from the cloud server.
 I know it is crude but that help for now.
 What is your take Bob.
 
 On 12/18/14, Bob Jolliffe bobjolli...@gmail.com 
 mailto:bobjolli...@gmail.com wrote:
 Hi Gerald
 
 We tested this when I was in Sierra Leone and we were finding serious
 problems with bandwidth getting the data back to Sierra Leone.
 
 So you are going to have to think carefully about when and how often to
 synch.  Currently your database files are very small as you don't have much
 data on your cloud server, but it will soon grow.  I suspect at least
 twice a day sounds unrealistic.
 
 The way I typically do it is to first create an account on the backup
 server.  Make sure that the account running your dhis instance can login to
 the backup server without a password by creating an ssh key pair and
 installing the public key on the backup server account.  Then you can
 simply the rsync the backups directory (eg /var/lib/dhis2/dhis/backups) to
 a directory on the backup server using cron.   In fact if you look in
 /usr/bin/dhis2-backup you will see that the commands are already there to
 do this, just commented out.  This would synch with the backup server after
 taking the nightly backup.
 
 This simple (and slightly lazy) setup has worked fine, and continues to
 work, in a number of places.  But there are a number of reasons you might
 want to do something different.
 
 (i)  you might want to pull from the backup server rather than push to it.
 Particularly as the backup server might not be as reliably always online as
 the production server.  This would require a slightly different variation
 on the above, but using the same principle of creating an ssh keypair and
 letting rsync do the work.
 
 (ii) rsync is a really great and simple tool, but it is sadly quite slow.
 If you are bandwidth stressed and your database is growing it might not be
 the best solution.  Works fine when bandwidth is not a critical issue.  The
 trouble is it doesn't really take into account the incremental nature of
 the data ie. you backup everything every time (besides the ephemeral tables
 like analytics, aggregated etc).  In which case you need to start thinking

Re: [Dhis2-devs] download excel file in dataset report

2014-12-10 Thread Dan Cocos
Hi Channara,

I’ve filed a bug report here
https://bugs.launchpad.net/dhis2/+bug/1401162 
https://bugs.launchpad.net/dhis2/+bug/1401162

Thanks,
Dan

Dan Cocos
BAO Systems
www.baosystems.com http://www.baosystems.com/
T: +1 202-352-2671 | skype: dancocos

 On Dec 10, 2014, at 10:53 AM, rin.chann...@gmail.com wrote:
 
 Dear all DHIS2 dev and users
 I  used demo on dhis2.org http://dhis2.org/. I tried download excel file in 
 dataset report like “ART monthly summary” dataset, the excel file seem much 
 different from view dataset report on web.
 
 Do you know what is the problem?
 
 thanks
 channara
 ___
 Mailing list: https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net 
 mailto:dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs 
 https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp 
 https://help.launchpad.net/ListHelp
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [Bug 1401162] [NEW] Data Set Report Exports Are Not Working

2014-12-10 Thread Dan Cocos
Public bug reported:

When one runs a Data Set Report from 
Reports -- Data Set Report  
And then choses Download as Excel or Download as PDF
The files download but the contents are corrupted.

This can be recreated on the demo server
https://apps.dhis2.org/demo/dhis-web-reporting/showDataSetReportForm.action

Data set: ART monthly summary
Report period: Monthly, November 2014
Org Unit Bo

Click Get report

Then click Download as Excel or Download as PDF

Attached is the Excel example.

** Affects: dhis2
 Importance: Undecided
 Status: New

** Attachment added: Gridxls.xls
   
https://bugs.launchpad.net/bugs/1401162/+attachment/4277684/+files/Gridxls.xls

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1401162

Title:
  Data Set Report Exports Are Not Working

Status in DHIS 2:
  New

Bug description:
  When one runs a Data Set Report from 
  Reports -- Data Set Report  
  And then choses Download as Excel or Download as PDF
  The files download but the contents are corrupted.

  This can be recreated on the demo server
  https://apps.dhis2.org/demo/dhis-web-reporting/showDataSetReportForm.action

  Data set: ART monthly summary
  Report period: Monthly, November 2014
  Org Unit Bo

  Click Get report

  Then click Download as Excel or Download as PDF

  Attached is the Excel example.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1401162/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [Bug 1401162] Re: Data Set Report Exports Are Not Working

2014-12-10 Thread Dan Cocos
Here is the PDF version

** Attachment added: Grid.pdf
   
https://bugs.launchpad.net/dhis2/+bug/1401162/+attachment/4277685/+files/Grid.pdf

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1401162

Title:
  Data Set Report Exports Are Not Working

Status in DHIS 2:
  New

Bug description:
  When one runs a Data Set Report from 
  Reports -- Data Set Report  
  And then choses Download as Excel or Download as PDF
  The files download but the contents are corrupted.

  This can be recreated on the demo server
  https://apps.dhis2.org/demo/dhis-web-reporting/showDataSetReportForm.action

  Data set: ART monthly summary
  Report period: Monthly, November 2014
  Org Unit Bo

  Click Get report

  Then click Download as Excel or Download as PDF

  Attached is the Excel example.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1401162/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Error: Editing Aggregate Query

2014-11-25 Thread Dan Cocos
I’ve found the bug the that is causing this, here is a diff against the current 
trunk, but the bug exists in 2.17 as well.
 
09:35:23|dhis-2:dan$bzr diff
=== modified file 
'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateCaseAggregation.vm'
--- 
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateCaseAggregation.vm
 2014-11-03 13:35:42 +
+++ 
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateCaseAggregation.vm
 2014-11-25 14:18:04 +
@@ -24,7 +24,7 @@

 tr
 tdlabel for=name$i18n.getString( name ) em 
title=$i18n.getString( required ) class=required*/em/label/td
-tdinput type=text id=name name=name 
value=$encoder.htmlEncode(caseAggregation.name)/td
+tdinput type=text id=name name=name 
value=$encoder.htmlEncode($caseAggregation.name)/td
 /tr
 
 tr

Dan Cocos
BAO Systems
www.baosystems.com http://www.baosystems.com/
T: +1 202-352-2671 | skype: dancocos

 On Nov 25, 2014, at 3:35 AM, Adebusoye Anifalaje bus...@hisp.org wrote:
 
 Hi devs,
 
 After creating a number of aggregate queries, I get an error in my log when I 
 try to edit. 
 
 
 Error details below:
 
 
 * ERROR 2014-11-25 09:29:23,015 #parse(): syntax error in #parse()-ed 
 template '/dhis-web-maintenance-program/updateCaseAggregation.vm', called at 
 /ma
 in.vm[line 153, column 9] (Log4JLogChute.java [http-apr-8080-exec-2])
 * ERROR 2014-11-25 09:29:23,015 Unable to render Velocity Template, 
 '/main.vm' (CommonsLogger.java [http-apr-8080-exec-2])
 org.apache.velocity.exception.ParseErrorException: Encountered )\/td\r\n 
/tr\r\n\r\ntr\r\n\t\ttdlabel for=\dataSets\ at /dh
 is-web-maintenance-program/updateCaseAggregation.vm[line 27, column 101]
 Was expecting one of:
 [ ...
 , ...
 ) ...
 WHITESPACE ...
 
 
 Any ideas what might be causing this?
 
 Thanks.
 
 Busoye
 
 Version:
 2.17
 Build revision:
 17561
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Error: Editing Aggregate Query

2014-11-25 Thread Dan Cocos
There is a bug in the template
Here is the diff against 2.18-SNAPSHOT, but it also exists in the 2.17 builds.

09:35:23|dhis-2:dan$bzr diff
=== modified file 
'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateCaseAggregation.vm'
--- 
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateCaseAggregation.vm
 2014-11-03 13:35:42 +
+++ 
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateCaseAggregation.vm
 2014-11-25 14:18:04 +
@@ -24,7 +24,7 @@

 tr
 tdlabel for=name$i18n.getString( name ) em 
title=$i18n.getString( required ) class=required*/em/label/td
-tdinput type=text id=name name=name 
value=$encoder.htmlEncode(caseAggregation.name)/td
+tdinput type=text id=name name=name 
value=$encoder.htmlEncode($caseAggregation.name)/td
 /tr
 
 tr

 
Dan Cocos
BAO Systems
www.baosystems.com http://www.baosystems.com/
T: +1 202-352-2671 | skype: dancocos

 On Nov 25, 2014, at 3:35 AM, Adebusoye Anifalaje bus...@hisp.org wrote:
 
 Hi devs,
 
 After creating a number of aggregate queries, I get an error in my log when I 
 try to edit. 
 
 
 Error details below:
 
 
 * ERROR 2014-11-25 09:29:23,015 #parse(): syntax error in #parse()-ed 
 template '/dhis-web-maintenance-program/updateCaseAggregation.vm', called at 
 /ma
 in.vm[line 153, column 9] (Log4JLogChute.java [http-apr-8080-exec-2])
 * ERROR 2014-11-25 09:29:23,015 Unable to render Velocity Template, 
 '/main.vm' (CommonsLogger.java [http-apr-8080-exec-2])
 org.apache.velocity.exception.ParseErrorException: Encountered )\/td\r\n 
/tr\r\n\r\ntr\r\n\t\ttdlabel for=\dataSets\ at /dh
 is-web-maintenance-program/updateCaseAggregation.vm[line 27, column 101]
 Was expecting one of:
 [ ...
 , ...
 ) ...
 WHITESPACE ...
 
 
 Any ideas what might be causing this?
 
 Thanks.
 
 Busoye
 
 Version:
 2.17
 Build revision:
 17561
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs-core] Bug in Aggregate Query Editor

2014-11-25 Thread Dan Cocos
Hi I found a bug when editing aggregation queries. Here is the diff against 
2.18-SNAPSHOT, but it also exists in the 2.17 builds.

09:35:23|dhis-2:dan$bzr diff
=== modified file 
'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateCaseAggregation.vm'
--- 
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateCaseAggregation.vm
 2014-11-03 13:35:42 +
+++ 
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateCaseAggregation.vm
 2014-11-25 14:18:04 +
@@ -24,7 +24,7 @@

 tr
 tdlabel for=name$i18n.getString( name ) em 
title=$i18n.getString( required ) class=required*/em/label/td
-tdinput type=text id=name name=name 
value=$encoder.htmlEncode(caseAggregation.name)/td
+tdinput type=text id=name name=name 
value=$encoder.htmlEncode($caseAggregation.name)/td
 /tr
 
 tr

 


Dan Cocos
BAO Systems
www.baosystems.com http://www.baosystems.com/
T: +1 202-352-2671 | skype: dancocos

-- 
Mailing list: https://launchpad.net/~dhis2-devs-core
Post to : dhis2-devs-core@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs-core
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] ssl vulnerability

2014-10-15 Thread Dan
If you’re running apache
The fix is to update the following line in your  SSL config usually in 
/etc/httpd/conf.d/ssl.conf

SSLProtocol all -SSLv2 -SSLv3



Dan Cocos
BAO Systems
www.baosystems.com
T: +1 202-352-2671 | skype: dancocos

On Oct 15, 2014, at 1:03 PM, Lars Helge Øverland larshe...@gmail.com wrote:

 Hi server admins,
 
 Google today published a vulnerability in SSL which could allow an attacker 
 to decrypt secure connections:
 
 http://googleonlinesecurity.blogspot.se/2014/10/this-poodle-bites-exploiting-ssl-30.html
 
 For a dhis system the most practical solution is to simply disable SSL and 
 rely on TLS, as it's mostly Internet Explorer 6 that does not support TLS, 
 and DHIS 2 does not support IE 6 anyway.
 
 I have upgraded the nginx installation docs here. To disable SSL and add 
 support for all TLS version you can change this line:
 ssl_protocols  SSLv3 TLSv1.1 TLSv1.2;
 
 to this:
 ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
 
 regards,
 
 Lars
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Hazelcast Status Info Messages

2014-10-09 Thread Dan
Hi Everyone,

Any chance the default setting for Hazelcast status updates in the log can be 
less frequent or disabled by default? 
Every 30 seconds causes a lot of log pollution. 

Thanks,
Dan


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] JS Call to Determine User Info

2014-10-09 Thread Dan
Hi All,

I’m writing a DHIS 2 app (a la the App Store) and I’d like to know if there is 
a JS call I can make to get information about the user I’m logged in as. 
Something similar to dhis2.de.currentDataSetId or 
dhis2.de.currentOrganisationUnitId but would look like dhis2.currentUser and at 
least give me the UID of the user if not their username/email.

Thanks,
Dan

Dan Cocos
BAO Systems
www.baosystems.com
T: +1 202-352-2671 | skype: dancocos___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] dhis upgrade from 2.0.5 to 2.15

2014-08-19 Thread Dan Cocos
Hello Moemedi,

The upgrades should happen automatically except for 2.13-2.14 and 2.14-2.15 
Those scripts can be found here 
https://www.dhis2.org/downloads 
2.13-2.14 
http://www.dhis2.org/download/resources/sql/convert-fixed-attributes-to-dynamic.sql
2.14-2.15 
http://www.dhis2.org/download/resources/sql/rename-patient-to-trackedentity.sql

Thanks,
Dan

Dan Cocos
BAO Systems
www.baosystems.com
T: +1 202-352-2671 | skype: dancocos

On Aug 19, 2014, at 6:40 AM, Moemedi Ntunyane moemedi.ntuny...@hotmail.com 
wrote:

 Hi Developers, where can I get the upgrade scripts from the very lowest dhis 
 2.0.6 so that i do incremental
 
 Moemedi Ntunyane
 Co-founder KeyInConsulting
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp




___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Attemping to post JSON through the web API

2014-08-14 Thread Dan Cocos
I don’t think you can post multiple, here’s some PHP code I wrote to add
them one by one they all had the same parent so my code is somewhat less
complex, you’ll have to have more arrays containing the correct parent and
other details for your OUs.


?php//You need to make sure to add a ROOT unit and then make this set to
the root user$parentId = JFSc3tndTlI;$instanceURL = 
http://localhost:8080/api/organisationUnits;$username = admin;$password =
district; $countryNames = array(Angola, Antigua and Barbuda, Asia
Regional Program, Bahamas, The, Barbadas, Belize - Carribean, Belize
- Central America, Botswana, Burma, Burundi, Cambodia,
Cameroon, Caribbean
Region, Central America Region, Central Asia Region, China, Democratic
Republic of the Congo, Costa Rica, Cote d'Ivoire, Dominica, Dominican
Republic, El Salvador, Ethiopia, Ghana, Grenada, Guatemala,
Guyana, Haiti, Honduras, India, Indonesia, Jamaica, Kazakhstan
, Kenya, Kyrgyz Republic, Laos, Lesotho, Malawi, Mozambique,
Namibia, Nicaragua, Nigeria, Panama, Papua New Guinea, Russia,
Rwanda, Saint Kitts and Nevis, Saint Lucia, Saint Vincent and the
Grenadines, South Africa, South Sudan, Suriname, Swaziland,
Tajikistan, Tanzania, Thailand, Trinidad and Tobago, Turkmenistan,
Uganda, Ukraine, Uzbekistan, Vietnam, Zambia, Zimbabwe); //I
couldn't get DHIS2 to ingest with one call with several children so instead
I just make a bunch of calls.foreach($countryNames as $ouname){ $data =
array(name = $ouname, shortName = $ouname, parent = array(id =
$parentId)); $data_string = json_encode($data);   $ch = curl_init(
$instanceURL); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, POST); curl_setopt(
$ch, CURLOPT_POSTFIELDS, $data_string); curl_setopt($ch,
CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, $username:
$password); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type:
application/json', 'Content-Length: ' . strlen($data_string), 'Accept:
application/json', ) );  $result = curl_exec($ch); print $result . \n;} ?



On Thu, Aug 14, 2014 at 10:29 PM, Mark Polak mar...@ifi.uio.no wrote:

 Jason,

 I tried to look up if it was possible to post a list and from what i can
 tell you can’t post a list of objects currently.

 But Morten would have to clarify that as i am not 100% sure if that is
 correct.

 Kind regards,

 Mark Polak
 m...@thedutchies.com
 mar...@ifi.uio.no
 +31 6 38 600 925

 On 14 Aug 2014, at 21:03, Jason Pickering jason.p.picker...@gmail.com
 wrote:

 Unfortunately, I cannot post it a public list, but I think I may be
 missing some brackets etc.

 Basically, I need to sync some orgunits between instances with JSON (after
 a bit of processing).

 Will the below work (in theory)? I could not really find an example of
 POSTing multiple orgunits with JSON through the API in the docs.

 Regards,
 Jason

 {
 orgunits: [
 {
 code: X,
 name: X,
 created: 2013-03-14T06:17:28.334+,
 lastUpdated: 2014-05-27T09:45:58.804+,
 shortName: ,
 parent: {
 name: ,
 created: 2012-07-14T18:57:55.059+,
 lastUpdated: 2013-09-02T08:04:08.693+,
 href: XXX,
 id: XX
 },
 openingDate: 1900-01-01,
 active: true,
 contactPerson: ,
 address: XX,
 email: XX,
 phoneNumber: XX,
 level: 5,
 href: XX,
 id: 
 } ]}


 On Thu, Aug 14, 2014 at 7:22 PM, Mark Polak mar...@ifi.uio.no wrote:

 Hey Jason,

 Perhaps it could also be useful if you provide the JSON you’re sending?
 That might make it easier to figure out why it happened :)

 Kind regards,

 Mark Polak
 m...@thedutchies.com
 mar...@ifi.uio.no

 On 14 Aug 2014, at 17:25, Jason Pickering jason.p.picker...@gmail.com
 wrote:

 Hi Morten,

 I am trying to post some JSON to the /api/organisationUnit end point. I
 think it looks OK (???) but am something does not seem to be right. I see
 this exception. Could you translate for me? :)

 Regards,
 Jason



 SEVERE: Servlet.service() for servlet [webapi] in context with path
 [/dhis] threw exception
 com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize
 instance of org.hisp.dhis.organisationunit.OrganisationUnit out of
 START_ARRAY token
  at [Source: org.apache.catalina.connector.CoyoteInputStream@1d72f464;
 line: 1, column: 1]
 at
 com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:164)
 at
 com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:691)
 at
 com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:685)
 at
 com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromArray(BeanDeserializerBase.java:1215)
 at
 

[Dhis2-devs] [Bug 1259766] Re: In the web api resources page the link for categories points to dimensions

2014-05-23 Thread Dan Cocos
I've found what I think the source is of this problem

Note it also relates to

https://bugs.launchpad.net/dhis2/+bug/1220160 and
https://bugs.launchpad.net/dhis2/+bug/1216825

I've created a patch that addresses the issue, my only question is
around the comment  // special case, I haven't found the special case
that this applies to and instead removing this if statement seems to
make everything else work.


** Patch added: DHIS2-Bug1259766.diff
   
https://bugs.launchpad.net/dhis2/+bug/1259766/+attachment/4118581/+files/DHIS2-Bug1259766.diff

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1259766

Title:
  In the web api resources page the link for categories points to
  dimensions

Status in DHIS 2:
  New

Bug description:
  In the web api resources web page the links that should point to
  Categories point to Dimensions.

  To confirm see http://apps.dhis2.org/demo/api/resources and clic on
  any of the links of the Categories row.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1259766/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [Bug 1259766] Re: In the web api resources page the link for categories points to dimensions

2014-05-23 Thread Dan Cocos
I just realized the diff I attached is against an old revision. I've
attached a patch file against 2.16-snapshot (trunk) some file locations
have moved around.



** Patch added: DHIS2-Bug1259766.diff
   
https://bugs.launchpad.net/dhis2/+bug/1259766/+attachment/4118596/+files/DHIS2-Bug1259766.diff

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1259766

Title:
  In the web api resources page the link for categories points to
  dimensions

Status in DHIS 2:
  New

Bug description:
  In the web api resources web page the links that should point to
  Categories point to Dimensions.

  To confirm see http://apps.dhis2.org/demo/api/resources and clic on
  any of the links of the Categories row.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1259766/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] USERS-Password

2014-04-23 Thread Dan Cocos
Hi Riddy,

The password uses the username as a salt for the password so even if two users 
have the same password the encrypted password will not be the same 
org.hisp.dhis.security.spring.SpringSecurityPasswordManager is the class that 
contains the algorithm. 

I don’t think that users can be created via the Web API yet, some correct me if 
that isn’t true.

I suggest you use the dhis-adhoc tool to create users, there isn’t much 
documentation on it that I know of, but there is a working example here
If you look at the changes here 
https://code.launchpad.net/~dhis2-devs-core/dhis2/pii-encrypt (note the 
encryption here isn’t related to password encryption so look at it as more of a 
template) 

You’ll likely have to update the first section of the pom.xml to reflect what 
version of DHIS 2 you are using.
parent
groupIdorg.hisp.dhis/groupId
artifactIddhis-services/artifactId
version2.15-SNAPSHOT/version
  /parent



Dan Cocos
BAO Systems
www.baosystems.com
T: +1 202-352-2671 | skype: dancocos

On Apr 23, 2014, at 7:49 AM, riddy ndoma riddynd...@gmail.com wrote:

 Hi all,
 I have 500 users that I try to create in the database. I prefer to ca 
 directly in the backend. I created a Java class to tackle the PostgreSQL 
 database. For the password I took the encrypted password district 
 48e8f1207baef1ef7fe478a57d19f2e5 but when I try to connect with the 
 front-end, it does not work! What is the algorithm used to encrypt the 
 password? Or who can give me a trick to bypass the password?
 -- 
 Riddy NDOMA
 Software Developer
 Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma
 Twitter: riddyndoma, LinkedIn: riddy ndoma
 Blog: http://riddyndoma.blogspot.com/
 
 Vous servir est mon désire (Serving you is my desire)
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp





smime.p7s
Description: S/MIME cryptographic signature
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] organunit Error

2014-03-16 Thread Dan Cocos
Riddy,

Can you send along the log file which will give us more insight into what is 
happening?

Thank you,
Dan


Dan Cocos
BAO Systems
www.baosystems.com
T: +1 202-352-2671 | skype: dancocos

On Mar 16, 2014, at 10:32 AM, riddy ndoma riddynd...@gmail.com wrote:

 Hello, 
 I have a problem with the units of organizations. When I try to add a unit of 
 organization, I have an error message shows as image attachment. 
 I changed version of the system. 2.13 A 2.14, nothing works. I did the 
 maintenance operations, nothing works.
 
 -- 
 Riddy NDOMA
 Software Developer
 Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma
 Twitter: riddyndoma, LinkedIn: riddy ndoma
 Blog: http://riddyndoma.blogspot.com/
 
 Vous servir est mon désire (Serving you is my desire)
 2014-03-16 15_28_02-.png___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp




smime.p7s
Description: S/MIME cryptographic signature
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Web pivot cell limit

2014-01-23 Thread Dan
Hi Dapo,

I know this is a lot more involved than most people are willing to take on but 
if you’re able build your own dhis.war file you can modify the file 
/dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/DataQueryParams.java
 and change the number near line 100 to increase it to  5.
public static final int MAX_DIM_OPT_PERM = 5;


Dan

On Jan 23, 2014, at 1:36 PM, Lars Helge Øverland larshe...@gmail.com wrote:

 Hi Dapo,
 
 sorry not through the UI. Is it enough to download the table as excel/csv, or 
 do you want to it in the browser?
 
 Lars
 
 
 
 
 On Thu, Jan 23, 2014 at 8:30 PM, Dapo Adejumo dapo_adej...@yahoo.com wrote:
 Hi Devs,
 
 The cell limit for the web pivot has been set to 50,000 understandably to 
 protect the server. But is there a way to override this temporarily?
 
 Any ideas?
 
  
 
 
 
  
 
 Regards,
 
  
 
 Dapo Adejumo
 
 +2348033683677
 
 skype : dapojorge
 
  
 
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp
 
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

Dan Cocos
BAO Systems
www.baosystems.com
T: +1 202-352-2671 | skype: dancocos



smime.p7s
Description: S/MIME cryptographic signature
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Can't see data after upgrade to 2.13

2014-01-15 Thread Dan Cocos
Hi Gerald,

If you want to completely remove postgres did you try 
apt-get --purge remove postgresql
This should remove it and everything related to it.

Dan


On Wed, Jan 15, 2014 at 2:26 PM, Gerald Thomas gerald...@hotmail.com wrote:
Dear Jason,
This is currently one of my worst day using the dhis. I tried everything I 
could be nothing works. I already backup the postregsql database but the size 
of the file is too small, approximately 161MB. Secondly, I am trying to 
uninstall the postregsql on the ubnutu and then install another postregsql and 
finally import the database that I had exported.
But my biggest problem is to uninstall the postregsql???
when I running this command “sudo apt-get remove postregsql*” the process run 
but it does not completely uninstall the postregsql and I don’t know what to do 
now.
Please to the forum:
How can I completely uninstall postregsql
Since this is a regional server is it possible, that the size of the database 
is ok???
Will my steps finally solve this issue???

Sent from Windows Mail

From: jason.p.picker...@gmail.com
Sent: ‎Wednesday‎, ‎January‎ ‎15‎, ‎2014 ‎3‎:‎28‎ ‎PM
To: Gerald Thomas
Cc: Morten Olav Hansen, Olav Poppe, dhis2-devs@lists.launchpad.net

Hi Gerald,
In general, a downgrade is tricky. You would need to really restore to 2.12 
from a backup copy. In this case, I do not think it would really be necessary, 
since 2.13 should work. Are you certain this is not a browser caching issue? 
Did you try and confirm that no data is appearing in incognito mode of your 
browser or by completely clearing the browser cache? Are the analytics tables 
present in the database?

Regards,
Jason



On Wed, Jan 15, 2014 at 3:41 PM, Gerald Thomas gerald...@hotmail.com wrote:
Please any help??? I just want to finish with this issue. Please can anyone 
help me.

Sent from Windows Mail

From: Gerald Thomas
Sent: Tuesday, January 14, 2014 9:36 PM
To: Morten Olav Hansen, Olav Poppe
Cc: dhis2-devs@lists.launchpad.net

Hi all,
I remotely access the sever and I found that the analytics table update was 
completed successfully. But there is still no data and I can’t access the “data 
entry”.
Please can I take it back to version 2.12 and see if work on that version 
rather than 2.13
If that process didn’t work; can I backup the database and uninstall and 
install postregsql again??
Finally, sorry about it but if I extract the database from the command line on 
Ubuntu where can I find the database???

Sent from Windows Mail

From: Morten Olav Hansen
Sent: Tuesday, January 14, 2014 9:13 PM
To: Olav Poppe
Cc: Gerald Thomas, dhis2-devs@lists.launchpad.net

Hi,

As Olav says, you might need to run the analytics table update. You can do this 
in:
server/dhis-web-reporting/displayDataMartForm.action

This will move all the required datavalues over to the analytics table (which 
is used for reporting). This usually happens late at night automatically, but 
if you server is down, it will not be run.

--
Morten


On Tue, Jan 14, 2014 at 5:54 PM, Olav Poppe olav.po...@me.com wrote:
Hi, have you run the analytics update?

Den 14. jan. 2014 kl. 17:27 skrev Gerald Thomas gerald...@hotmail.com:

Dear All,
One of my regional server which was running on version 2.10 keeps saying 
“waiting for localhost” forever on the firefox browser. As a means of 
maintenance, uninstall and install apache tomcat again without touching the 
postregsql but I opted for version 2.13 war file. After the installation, I 
login with the previous admin password but I can’t find any data when running 
report.
Please can someone help me because I know those information are within the 
database because my previous users profiles was still there.
Please it is urgent!

Sent from Windows Mail

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp




smime.p7s
Description: S/MIME cryptographic signature
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https

Re: [Dhis2-devs] [Bug 1267561] Re: dataset reports, pivot tables, and data visualizer does not work after upgrade from 2.4 to 2.13

2014-01-14 Thread Dan
Hi Cenk

You need to make sure the hibernate.properties file is being loaded. One way to 
do this is to create the /opt/dhis2/hibernate.properties and ensure that your 
the permissions for the account running has permission to read it. The file 
should look something like this 

hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
hibernate.connection.driver_class = org.postgresql.Driver
hibernate.connection.url = jdbc:postgresql:databaseName
hibernate.connection.username = databaseUser
hibernate.connection.password = databasePassword
hibernate.hbm2ddl.auto = update 

In the log file you should see the following:
* INFO  2014-01-14 13:30:13,718 System property dhis2.home not set 
(DefaultLocationManager.java [localhost-startStop-1])
* INFO  2014-01-14 13:30:13,720 Environment variable DHIS2_HOME not set 
(DefaultLocationManager.java [localhost-startStop-1])
* INFO  2014-01-14 13:30:13,721 Home directory set to /opt/dhis2 
(DefaultLocationManager.java [localhost-startStop-1])
* INFO  2014-01-14 13:30:14,992 Hibernate configuration loaded, using dialect: 
org.hibernate.dialect.PostgreSQLDialect 
(DefaultHibernateConfigurationProvider.java [localhost-startStop-1])



Another alternative is to set the DHIS2_HOME environment variable for the 
account for this example DHIS2_HOME = /opt/dhis2 
* INFO  2014-01-14 13:30:13,718 System property dhis2.home not set 
(DefaultLocationManager.java [localhost-startStop-1])
* INFO  2014-01-14 13:30:13,720 Environment variable DHIS2_HOME not set 
(DefaultLocationManager.java [localhost-startStop-1])
* INFO  2014-01-14 13:30:13,721 Home directory set to /opt/dhis2 
(DefaultLocationManager.java [localhost-startStop-1])
* INFO  2014-01-14 13:30:14,992 Hibernate configuration loaded, using dialect: 
org.hibernate.dialect.PostgreSQLDialect 
(DefaultHibernateConfigurationProvider.java [localhost-startStop-1])

The important part is to see the line 
Hibernate configuration loaded, using dialect: 
org.hibernate.dialect.PostgreSQLDialect 

Dan


Dan Cocos
BAO Systems
www.baosystems.com
T: +1 202-352-2671 | skype: dancocos

On Jan 14, 2014, at 12:28 PM, D. Cenk Erdil dcer...@gmail.com wrote:

 Hi Paulo, 
 
 Thanks for the feedback. It is becoming one of our nightmares to support DHIS 
 Live (even worse, plan on deliverables that use a DHIS Live instance). 
 
 I think we'll eventually need to pull the plug from using Live, but we are 
 not there yet (need to upgrade quite a number of instances to DHIS 2.13/14). 
 
 Any ideas on how I can make a DHIS Live instance to use the local postgres 
 instead of the embedded H2? 
 
 I've changed the hibernate.properties file in conf directory, but that does 
 not seem to help. 
 
 I've inspected the jar file (of DHIS Live) and couldn't find the reference to 
 the database. 
 
 Any feedback is appreciated. 
 
 
 --
 -Cenk.
 
 
 On Mon, Jan 13, 2014 at 7:09 PM, Paulo Grácio pgra...@criticalsoftware.com 
 wrote:
 Hi Cenk,
 
  
 
 It looks like you are facing the same problem we are in Mozambique. Please 
 see https://bugs.launchpad.net/dhis2/+bug/1268787
 
  
 
 If it’s just for demo propose you can always use postgresql instead of h2 
 default database. You will need to install postgresql on demonstration 
 computers, and all you need is a restore from central server database;
 
 If these are final installations to use in production environment be aware 
 that you may need bidirectional data transmission, and on that case you can’t 
 simply replace live databases with a dump from central server.
 
  
 
 Regards,
 
 Paulo Grácio
 
  
 
 From: Dhis2-devs 
 [mailto:dhis2-devs-bounces+pgracio=criticalsoftware@lists.launchpad.net] 
 On Behalf Of D. Cenk Erdil
 Sent: segunda-feira, 13 de Janeiro de 2014 20:09
 To: Knut Staring
 Cc: DHIS 2 developers
 Subject: Re: [Dhis2-devs] [Bug 1267561] Re: dataset reports, pivot tables, 
 and data visualizer does not work after upgrade from 2.4 to 2.13
 
  
 
 Hi Knut, 
 
  
 
 (I work with Sharada)
 
  
 
 We host server instances for in-country teams, but we need several off-line 
 copies for demonstration and training. 
 
  
 
 Also, the possibility to enter data while offline, and sync it with the 
 server would be nice, as most our facilities do not have internet. 
 
  
 
 Thus, the need to move data between server and live editions. 
 
  
 
 In response to your recommendation, we might try dumping data from postgres 
 and putting it in h2 (unless you've meant something else). 
 
  
 
 I've done some googling and it looks like there are several methods to do 
 that. 
 
  
 
 Since we are time-constrained this week (our ME staff are traveling 
 in-country for demo/training of a shiny instance of brand new DHIS 2.13 with 
 all its bells and whistles), I wanted to get your feedback on what would be 
 the easiest way to move data from 2.13 server to live edition. 
 
  
 
 Any feedback is greatly appreciated. 
 
  
 
 Thanks. 
 
  
 
  
 
  
 
  
 
 
 
 
 --
 -Cenk.
 
  
 
 On Sat, Jan 11, 2014 at 4:31 AM

[Dhis2-devs] [Bug 1255418] Re: Populating analytics tables failing

2013-11-27 Thread Dan Cocos
I've attached a snippet that contains the stack trace near the error.


** Attachment added: bug-1255418-log.txt
   
https://bugs.launchpad.net/dhis2/+bug/1255418/+attachment/3918350/+files/bug-1255418-log.txt

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1255418

Title:
  Populating analytics tables failing

Status in DHIS 2:
  New

Bug description:
  Hi,
   
  I noticed that ‘populating anaytics tables’ are failing.
  We are using Version 2.13 Build revision 12878.
  I think same thing is happening on DHIS Dev and Demo.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1255418/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [Bug 1255418] Re: Populating analytics tables failing

2013-11-27 Thread Dan Cocos
I'll look deeper into it, my initial instinct is that Postgres is lower-
casing the column names, which it does unless they are wrapped in
quotes.

Did something change recently in the analytics code that may not take
this into account?

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1255418

Title:
  Populating analytics tables failing

Status in DHIS 2:
  New

Bug description:
  Hi,
   
  I noticed that ‘populating anaytics tables’ are failing.
  We are using Version 2.13 Build revision 12878.
  I think same thing is happening on DHIS Dev and Demo.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1255418/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Fwd: Please approve me to work on dhis2-devs-core or dhis2-devs-ind

2013-11-14 Thread Dan Cocos
Brajesh,

It looks like you may not properly have an account setup did you follow the 
first steps outlined here 
https://wiki.ubuntu.com/LaunchpadStepByStepInstructions

CREATING AN ACCOUNT

First of all you'll need a launchpad account. You can create one over at 
https://launchpad.net/+login .

SSH KEYS

To upload code you will require an SSH key. This is so you can prove to 
launchpad/bazaar that you are who you say you are. If you don't already have 
one, here's how to make one.

Logged in under your own user account type the following into a console.

   ssh-keygen -t dsa

You will now be asked for a secret password. Choose one and press enter. Your 
key has now been generated. You can see it by typing.

   nano  ~/.ssh/id_dsa.pub

Note that in Linux, ~ is a shortcut for your homedir, given the example above, 
it's like typing

 nano /home/yourusername/.ssh/id_dsa.pub 

Go to your launchpad profile now, and copy/paste the text from the file you 
opened in the section above, into the section marked Update SSH Keys. That's 
that bit done.

SAYING HELLO

Now you need to introduce yourself to bazaar.

   bzr whoami 'Your Name em...@example.com'

Note: don't forget email@domain the  make a difference!




On Nov 14, 2013, at 11:06 AM, Brajesh Murari brajesh.mur...@yahoo.com wrote:

 Hi Ola,
 
 I have tried with both 
 
 bzr branch lp:dhis2 
 bzr checkout lp:dhis2
 
 But in both way verbos comes with 
 
 1.
 
 Brajesh@Dell /cygdrive/f/java/src/dhis2
 $ bzr branch lp:dhis2
 Enter passphrase for key '/home/Brajesh/.ssh/id_dsa':
 Write failed: Connection reset by peer
 bzr: ERROR: Connection closed: Unexpected end of message. Please check 
 connectivity and permissions, and report a bug if problems persist.
 
 Brajesh@Dell /cygdrive/f/java/src/dhis2
 
 2. 
 
 Brajesh@Dell /cygdrive/f/java/src/dhis2
 $ bzr checkout lp:dhis2
 Enter passphrase for key '/home/Brajesh/.ssh/id_dsa':
 Write failed: Connection reset by peer
 bzr: ERROR: Connection closed: Unexpected end of message. Please check 
 connectivity and permissions, and report a bug if problems persist.
 
 Regards,
 Brajesh
 
 
 
 On Thursday, 14 November 2013 6:33 PM, Ola Hodne Titlestad ol...@ifi.uio.no 
 wrote:
 bzr branch lp:dhis2
 
 --
 Ola Hodne Titlestad (Mr)
 HISP
 Department of Informatics
 University of Oslo
 
 Mobile: +47 48069736
 Home address: Eftasåsen 68, 0687 Oslo, Norway. Googlemaps link
 
 
 On 14 November 2013 13:34, Knut Staring knu...@gmail.com wrote:
 Can someone please provide some guidance here?
 
 -- Forwarded message --
 From: Brajesh Murari brajesh.mur...@yahoo.com
 Date: Thu, Nov 14, 2013 at 1:27 PM
 Subject: Re: Please approve me to work on dhis2-devs-core or dhis2-devs-ind
 To: Knut Staring knu...@gmail.com
 
 
 Hi Knut
 
 I have tried so many times but getting this problem given below
 
 Brajesh@Dell /cygdrive/f/java/src/dhis2
 $ bzr checkout lp:dhis2
 Enter passphrase for key '/home/Brajesh/.ssh/id_dsa':
 Write failed: Connection reset by peer
 bzr: ERROR: Connection closed: Unexpected end of message. Please check 
 connectivity and permissions, and report a bug if problems persist.
 
 Not been able to understand because network issue is not here since on my 3G 
 data card download speed is more 
 thank 2 Mbps.
 
 Can you let me know what causes this problem !
 
 Regards
 Brajesh
 
 
 
 
 On Thursday, 14 November 2013 12:14 AM, Knut Staring knu...@gmail.com wrote:
 Hi Brajesh,
 Anyone can check out the code. You don't need any approval!
 13. nov. 2013 18:02 skrev Brajesh Murari brajesh.mur...@yahoo.com 
 følgende:
 
 Hi Lars,
 
 Can you put me in DHIS2 trunk development !
 I have send request on launchpad for joining to DHIS2 core development.
 I am not been able to checkout code on my system.
 
 Can you approve me from your end ! please.
 
 Regards,
 Brajesh
 --
 This message was sent from Launchpad by
 Brajesh Murari (https://launchpad.net/~brajesh-murari)
 using the Contact this team's admins link on the DHIS 2 core developers
 team page (https://launchpad.net/~dhis2-devs-core).
 For more information see
 https://help.launchpad.net/YourAccount/ContactingPeople
 
 
 
 
 
 -- 
 Knut Staring
 Dept. of Informatics, University of Oslo
 +4791880522
 http://dhis2.org
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp
 
 
 
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp



smime.p7s
Description: S/MIME cryptographic signature
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : 

[Dhis2-devs] [Bug 1247792] Re: Catalina.out log file extreme size

2013-11-04 Thread Dan Cocos
Ferdie
You may want to look at article 
http://java.dzone.com/articles/how-rotate-tomcat-catalinaout So that you can 
rotate your your catalina.out log file.

Additionally if you don't need any of the current info in the log file
you should be able to delete catalina.out (when tomcat is stopped)

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1247792

Title:
  Catalina.out log file extreme size

Status in DHIS 2:
  Invalid

Bug description:
  Jason Phillips reported that he logged onto the DHIS2 system and found
  the catalina.out file to be 2.8Gb in size. For a text file this is
  extreme. (DHIS2 - 2.13)

  Kind Regards
  Ferdie

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1247792/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [Bug 1244389] [NEW] Patient Attributes Do Not Appear on Form

2013-10-24 Thread Dan Cocos
Public bug reported:

When using Patient Attribute Groups they do not appear on the Edit
Patient Profile Page.

** Affects: dhis2
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1244389

Title:
  Patient Attributes Do Not Appear on Form

Status in DHIS 2:
  New

Bug description:
  When using Patient Attribute Groups they do not appear on the Edit
  Patient Profile Page.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1244389/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [Bug 1244389] Re: Patient Attributes Do Not Appear on Form

2013-10-24 Thread Dan Cocos
I've created a patch that address this issue.

** Patch added: Bug1244389.patch
   
https://bugs.launchpad.net/dhis2/+bug/1244389/+attachment/3890219/+files/Bug1244389.patch

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1244389

Title:
  Patient Attributes Do Not Appear on Form

Status in DHIS 2:
  New

Bug description:
  When using Patient Attribute Groups they do not appear on the Edit
  Patient Profile Page.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1244389/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [Merge] lp:~dhis2-devs-core/dhis2/dcocos into lp:dhis2

2013-10-22 Thread Dan Cocos
The proposal to merge lp:~dhis2-devs-core/dhis2/dcocos into lp:dhis2 has been 
updated.

Description changed to:

When OUs have a single quote in the name they are not properly escaped in JS
This should probably be merged into 2.13 as well.

For more details, see:
https://code.launchpad.net/~dhis2-devs-core/dhis2/dcocos/+merge/192164
-- 
https://code.launchpad.net/~dhis2-devs-core/dhis2/dcocos/+merge/192164
Your team DHIS 2 developers is subscribed to branch lp:dhis2.

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [Merge] lp:~dhis2-devs-core/dhis2/dcocos into lp:dhis2

2013-10-22 Thread Dan Cocos
Dan Cocos has proposed merging lp:~dhis2-devs-core/dhis2/dcocos into lp:dhis2.

Requested reviews:
  Lars Helge Øverland (larshelge)

For more details, see:
https://code.launchpad.net/~dhis2-devs-core/dhis2/dcocos/+merge/192164

When OUs have a single quote in the name they are not properly escaped in JS
This should probably be merged into 2.13 as well.
-- 
https://code.launchpad.net/~dhis2-devs-core/dhis2/dcocos/+merge/192164
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/selectPatient.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/selectPatient.vm	2013-10-15 10:10:06 +
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/selectPatient.vm	2013-10-22 14:46:59 +
@@ -127,10 +127,10 @@
 	#if( $status == 1 )
 		setFieldValue('selectedOrgunitText', i18n_please_select_village );
 	#elseif( $status == 2 )
-		setFieldValue('selectedOrgunitText', '$organisationUnit.name' );
+		setFieldValue('selectedOrgunitText', '$esc($organisationUnit.name)' );
 		enable('listPatientBtn');
 	#else
-		setFieldValue('selectedOrgunitText', '$organisationUnit.name' );
+		setFieldValue('selectedOrgunitText', '$esc($organisationUnit.name)' );
 		enable('listPatientBtn');
 		showById('searchDiv');
 	#end

=== modified file 'dhis-2/dhis-web/dhis-web-sms/src/main/webapp/dhis-web-sms/sendBeneficiarySMSPage.vm'
--- dhis-2/dhis-web/dhis-web-sms/src/main/webapp/dhis-web-sms/sendBeneficiarySMSPage.vm	2013-09-04 10:01:16 +
+++ dhis-2/dhis-web/dhis-web-sms/src/main/webapp/dhis-web-sms/sendBeneficiarySMSPage.vm	2013-10-22 14:46:59 +
@@ -165,9 +165,11 @@
 	#if( $status == 1 )
 		setFieldValue('selectedOrgunitText', i18n_please_select_village );
 	#elseif( $status == 2 )
-		setFieldValue('selectedOrgunitText', '$organisationUnit.name' );
+		setFieldValue('selectedOrgunitText', '$esc($organisationUnit.name)' );
+		enable('listPatientBtn');
 	#else
-		setFieldValue('selectedOrgunitText', '$organisationUnit.name' );
+		setFieldValue('selectedOrgunitText', '$esc($organisationUnit.name)' );
+		enable('listPatientBtn');
 		showById('searchDiv');
 	#end	
 /script
\ No newline at end of file

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Bug 1216617] [NEW] HTTP Status 500 - org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (84161792) exceeds th

2013-08-25 Thread Dan Cocos
Are you trying to deploy it via the Tomcat manager? The war file is rather 
large and this may be the problem.
If you are able to please try copying the war file to the tomcat/webapps 
directory directly. Tomcat should auto deploy the war.


Dan Cocos
BAO Systems
dco...@baosystems.com
T: +1 202-352-2671 | Skype: dancocos

On Aug 25, 2013, at 1:26 PM, Mathayo Mihayo princeh...@gmail.com wrote:

 Public bug reported:
 
 Am using window 7 ultimate,tomcat7..if i try to deploy small size file
 it works out...but dhis2 doesnt work..am totally confused..what is the
 way from this ERROR below.
 
 HTTP Status 500 -
 org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:
 the request was rejected because its size (84161792) exceeds the
 configured maximum (52428800)
 
 type Exception report
 
 message
 org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:
 the request was rejected because its size (84161792) exceeds the
 configured maximum (52428800)
 
 description The server encountered an internal error that prevented it
 from fulfilling this request.
 
 exception
 
 java.lang.IllegalStateException: 
 org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:
  the request was rejected because its size (84161792) exceeds the configured 
 maximum (52428800)
   org.apache.catalina.connector.Request.parseParts(Request.java:2688)
   org.apache.catalina.connector.Request.parseParameters(Request.java:2932)
   org.apache.catalina.connector.Request.getParameter(Request.java:1096)
   
 org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:383)
   
 org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:184)
   org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:91)
   
 org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
 
 root cause
 
 org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:
  the request was rejected because its size (84161792) exceeds the configured 
 maximum (52428800)
   
 org.apache.tomcat.util.http.fileupload.FileUploadBase$FileItemIteratorImpl.init(FileUploadBase.java:813)
   
 org.apache.tomcat.util.http.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:258)
   
 org.apache.tomcat.util.http.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:282)
   org.apache.catalina.connector.Request.parseParts(Request.java:2621)
   org.apache.catalina.connector.Request.parseParameters(Request.java:2932)
   org.apache.catalina.connector.Request.getParameter(Request.java:1096)
   
 org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:383)
   
 org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:184)
   org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:91)
   
 org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
 
 note The full stack trace of the root cause is available in the Apache
 Tomcat/8.0.0-RC1 logs.
 
 ** Affects: dhis2
 Importance: Undecided
 Status: New
 
 -- 
 You received this bug notification because you are a member of DHIS 2
 developers, which is subscribed to DHIS.
 https://bugs.launchpad.net/bugs/1216617
 
 Title:
  HTTP Status 500 -
  
 org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:
  the request was rejected because its size (84161792) exceeds the
  configured maximum (52428800)..i have spent almost a day trying to
  deploy DHIS2 to tomcat7,and i have changed the web.xml values to 90MB
  but still giving the same error,any help am stuck.
 
 Status in DHIS 2:
  New
 
 Bug description:
  Am using window 7 ultimate,tomcat7..if i try to deploy small size file
  it works out...but dhis2 doesnt work..am totally confused..what is the
  way from this ERROR below.
 
  HTTP Status 500 -
  
 org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:
  the request was rejected because its size (84161792) exceeds the
  configured maximum (52428800)
 
  type Exception report
 
  message
  
 org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:
  the request was rejected because its size (84161792) exceeds the
  configured maximum (52428800)
 
  description The server encountered an internal error that prevented it
  from fulfilling this request.
 
  exception
 
  java.lang.IllegalStateException: 
 org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:
  the request was rejected because its size (84161792) exceeds the configured 
 maximum (52428800)
   org.apache.catalina.connector.Request.parseParts(Request.java:2688)
   org.apache.catalina.connector.Request.parseParameters(Request.java:2932)
   org.apache.catalina.connector.Request.getParameter

Re: [Dhis2-devs] DHIS 2 GUI in French

2013-08-21 Thread Dan Cocos
Hi John,

If you go to /dhis-web-commons-about/userSettings.action or Profile - Settings
There is dropbox where you may chose the Interface Language. 


Dan Cocos
BAO Systems
dco...@baosystems.com
T: +1 202-352-2671 | Skype: dancocos

On Aug 21, 2013, at 11:48 AM, John Ojo jn...@yahoo.com wrote:

 Dear All,
 
 Please, how do I select French as the DHIS 2 GUI language? I am currently 
 using version 2.12.
 
 Thank you,
 John
  
 John Ojo MD, FMCPH
 Accra, Ghana.
 Mobile: +233 234691626
 Skype:  Johnojo
 Email: jn...@yahoo.com
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp





___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] JDK 1.6

2013-07-09 Thread Dan Cocos
Thank you rev 11373 compiles and works great. 

I'm also not sure where the appropriate place to share this but I with the 
latest builds I've run into a problem with running out of perm gen space with 
the maven build. I've worked around it by adding the following to my 
environment variables. 

MAVEN_OPTS=-Xmx1024m -XX:MaxPermSize=512m

Thanks,
Dan

On Jul 9, 2013, at 4:59 AM, Morten Olav Hansen morte...@gmail.com wrote:

 This should be fixed in rev 11373, please test it out
 
 --
 Morten
 
 
 On Tue, Jul 9, 2013 at 3:23 PM, Lars Helge Øverland larshe...@gmail.com 
 wrote:
 Hi Dan,
 
 Ops okay that was added by me recently. It is not required to use that 
 syntax, will fix it soon.
 
 Lars
 
 On Jul 8, 2013 8:34 PM, Dan Cocos d...@dancocos.com wrote:
 Hi All,
 
 I discovered that the latest builds of DHIS2 don't work with JDK 1.6 because 
 of a call to Locale.Builder that wasn't added until 1.7
 http://docs.oracle.com/javase/7/docs/api/java/util/Locale.Builder.html
 
 Thanks,
 Dan
 
 
 Dan Cocos
 BAO Systems
 dco...@baosystems.com
 T: +1 202-352-2671 | Skype: dancocos
 
 
 
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp
 
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp
 
 

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] JDK 1.6

2013-07-08 Thread Dan Cocos
Hi All,

I discovered that the latest builds of DHIS2 don't work with JDK 1.6 because of 
a call to Locale.Builder that wasn't added until 1.7
http://docs.oracle.com/javase/7/docs/api/java/util/Locale.Builder.html

Thanks,
Dan


Dan Cocos
BAO Systems
dco...@baosystems.com
T: +1 202-352-2671 | Skype: dancocos



___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] dhis to submit anonymous data

2013-06-28 Thread Dan Cocos
Perhaps it could be modeled after the Drupal Update Stats module. This module 
generates simple stats that can be seen here.  
https://drupal.org/project/usage/drupal you can read more about it here. 
https://drupal.org/node/329620

I'd also support a slightly more detailed optional submission as well that does 
send OS, Java version, Web Server and database server, though rather than it 
being a service that runs in the background there would be a submit button on 
the About DHIS2 page. So it would be very clear what information was being 
submitted and when that information was being submitted. This information would 
be very help for the development team to have a clear idea of the target DHIS2 
environments and make sure they are properly supported.

Dan

On Jun 28, 2013, at 11:54 AM, Lars Helge Øverland larshe...@gmail.com wrote:

 Okay thanks for feedback.
 
 To clarify, for the calling home part we will only collect the DHIS 2 
 version (no IP, no Java version etc). In other words we will only register 
 that there exists a DHIS version out there with a given version. It will not 
 be possible to track it back to the IP.
 
 Then, what confuses me is; how could the fact that a government uses DHIS 2 
 as their health system possibly be sensitive information or violate country 
 laws? It will already be a public Internet facing system, which could be 
 revealed through a google search; and with likely thousands of users, knowing 
 of its existence.
 
 
 
 
 
 
 
 
 On Fri, Jun 28, 2013 at 5:24 PM, Bob Jolliffe bobjolli...@gmail.com wrote:
 I agree with Jason on all counts so won't repeat them.
 
 A mandatory ET call home feature would not and should not be generally 
 acceptable.  Besides which its not too clear how, or more pertinently, when, 
 this exchange will happen.  On first boot?  Every boot.  Periodically?
 
 Anyway I don't like it and also worry that these things have a nasty habit of 
 leading to scope creep.
 
 I think the idea of periodically scanning for releases and updates is good.  
 Also planning to integrate such behaviour in dhis2-tools.
 
 Bob
 
 
 
 On 28 June 2013 15:01, Jason Pickering jason.p.picker...@gmail.com wrote:
 Hi Lars,
 
 I think it is important to get it right from the beginning. following the 
 lead of other big open source projects. It is critical to remember that many 
 of the organisations using DHIS2 are governments, and there could be some 
 possible sensitivies about the DHIS core team collecting any sort of 
 information.
 
 Before you go too far with this, I would think it would be good to identify 
 what the purpose (which you mention)  of collecting any data would be, and 
 spell it out very clearly, and why opting out would not be an option.  I 
 would also be clear about all of the legal technicalities, including what 
 county's law would regulate the collection of such information. 
 
 Even if you were not to collect the IP's, there is of course always the 
 possibility that they could be collected upstream. This might not be directly 
 the core team's worry, but it might be. 
 
 Regards,
 Jason
 
 
 
 
 On Fri, Jun 28, 2013 at 2:35 PM, Lars Helge Øverland larshe...@gmail.com 
 wrote:
 Hi,
 
 thanks for the good questions and comments.
 
 This information will be stored in some central system. The system will be 
 managed by the DHIS core team. That system will be made open source so that 
 anyone who feels like it could investigate it.
  
 Who would have access to the sensitive data like IP addresses of the 
 servers, i.e. the data which would not be publicly disclosed? Given recent 
 revelations in the news, how would possible data requests from third parties 
 be handled (such as a list of IP addresses for where DHIS2 is used)?
 
 
 We will simply not store IP addresses. We are not interested in them anyway, 
 and to avoid any thinkable doubt of misuse or NSA inquiries we will not store 
 them.
 
 I am thinking that for this function to have a purpose, it should not be 
 possible to opt out of the very basic, anonymous data, like DHIS version and 
 random system identifier. If optional then the statistics wouldn't be very 
 useful. If that is not acceptable we would rather drop the feature. Of 
 course, the activation feature with contact person etc would be completely 
 optional and require that you actively enable it.
 
 One way to approach IP address security is to not record them anywhere (and 
 make sure the central server to which the data is sent does not keep any log 
 of them.) If the central server doesn't know the IP addresses, they can't be 
 divulged to any third party.
 
  
 Agreed.
  
 A very different approach to openness and security is taken by the optional 
 OpenMRS Atlas module. This opt-in module allows an OpenMRS installation to 
 provide information that is available in a public OpenMRS atlas of 
 implementations. The atlas can facilitate interactions between OpenMRS 
 community members, including prospective members

Re: [Dhis2-devs] Fwd: Help

2013-06-12 Thread Dan Cocos
Would it be possible to check the JavaScript console for errors and send them 
along? 
Before you load the page right click, choose Inspect Element then click on 
Console then load the page recreate the problem and check to see if there is an 
error. 

Thank you,
Dan Cocos
BAO Systems


On Jun 12, 2013, at 9:11 AM, Knut Staring knu...@gmail.com wrote:

 Does anyone know why this happens?
 
 -- Forwarded message --
 From: Freddie Amponsah amfreel...@yahoo.com
 Date: Wed, Jun 12, 2013 at 2:06 PM
 Subject: Re: [Dhis2-devs] Help
 To: Knut Staring knu...@gmail.com
 
 
 
 Hi Knut,
 
 Attached is the screenshot. The data element is not showing for you to select 
 them on to the data set.
 
 thanks.
 From: Knut Staring knu...@gmail.com
 To: Freddie Amponsah amfreel...@yahoo.com; Olav Poppe 
 olav.po...@gmail.com 
 Sent: Wednesday, June 12, 2013 1:53 PM
 Subject: Re: [Dhis2-devs] Help
 
 Hi Freddie,
 
 Sorry, but I did not immediately recognize your name, and you were asking a 
 quite specific question, so basically, my response was meant to elicit some 
 more info in order to be able to help out. Maybe you could share a screenshot 
 with the list? 
 
 You could also try and do something similar on the online demo, 
 http//apps.dhis2.org/demo so we can see if it's a general issue or just 
 related to your db.
 
 Knut
 
 
 On Wed, Jun 12, 2013 at 12:37 PM, Freddie Amponsah amfreel...@yahoo.com 
 wrote:
 Hi Knut,
  I'm working from Ghana and the organization is Ghana Health Service
 
 Thanks
 
 From: Knut Staring knu...@gmail.com
 To: Freddie Amponsah amfreel...@yahoo.com 
 Cc: dhis2-devs@lists.launchpad.net dhis2-devs@lists.launchpad.net 
 Sent: Tuesday, June 11, 2013 4:40 PM
 Subject: Re: [Dhis2-devs] Help
 
 Hi Freddie,
 
 Which country are you working in? For what organization?
 
 Regards,
 Knut
 
 
 On Tue, Jun 11, 2013 at 4:34 PM, Freddie Amponsah amfreel...@yahoo.com 
 wrote:
 Please i was designing the Quarterly Report On Occupational Health 
 Survellience.but the data elements are not loading up in the dialog box.i 
 tried Several options but all turned down.can u please help me out?
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp
 
 
 
 
 -- 
 Knut Staring
 Dept. of Informatics, University of Oslo
 +4791880522
 http://dhis2.org
 
 
 
 
 
 -- 
 Knut Staring
 Dept. of Informatics, University of Oslo
 +4791880522
 http://dhis2.org
 
 
 
 
 
 -- 
 Knut Staring
 Dept. of Informatics, University of Oslo
 +4791880522
 http://dhis2.org
 help.docx___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Bug 1188646] [NEW] web api has invlalid URLS

2013-06-07 Thread Dan Cocos
We saw the same behavior, the solution was to make sure the hostname for the 
server was set properly. 
The instructions for how to do this vary by OS and distribution. 

Dan Cocos
BAO Systems 

On Jun 7, 2013, at 12:28 PM, Jason Pickering jason.p.picker...@gmail.com 
wrote:

 Seems more like a container issue to me. Are you using Tomcat or Jetty? 
 
 
 On Fri, Jun 7, 2013 at 4:53 PM, Carl Leitner cleit...@intrahealth.org wrote:
 Public bug reported:
 
 I am running version 2.10 build 9124.
 
 The URLs for the web api are incorrect.  They all are of the form:
http://localhost:8080/api/BLAH
 instead of using the base URL for the DHIS2 install.
 
 ** Affects: dhis2
  Importance: Undecided
  Status: New
 
 --
 You received this bug notification because you are a member of DHIS 2
 developers, which is subscribed to DHIS.
 https://bugs.launchpad.net/bugs/1188646
 
 Title:
   web api has invlalid URLS
 
 Status in DHIS 2 - District Health Information Software:
   New
 
 Bug description:
   I am running version 2.10 build 9124.
 
   The URLs for the web api are incorrect.  They all are of the form:
  http://localhost:8080/api/BLAH
   instead of using the base URL for the DHIS2 install.
 
 To manage notifications about this bug go to:
 https://bugs.launchpad.net/dhis2/+bug/1188646/+subscriptions
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Bug 1187623] Re: data entry under Individual Records is not working with dhis 2.12

2013-06-05 Thread Dan Cocos
I verified it at 
http://apps.dhis2.org/demo/dhis-web-caseentry/caseAggregationForm.action

On Jun 5, 2013, at 3:09 PM, Ola Hodne Titlestad ol...@ifi.uio.no wrote:

 Hi,
 
 Is this on the live demo on apps.dhis2.org/demo
 
 or your own system?
 
 Ola
 ---
 
 --
 Ola Hodne Titlestad (Mr)
 HISP
 Department of Informatics
 University of Oslo
 
 Mobile: +47 48069736
 Home address: Eftasåsen 68, 0687 Oslo, Norway. Googlemaps link
 
 
 On 5 June 2013 09:40, Gagan Chamria gagan.cham...@elixirct.com wrote:
 ** Description changed:
 
 - In Single Event Without Registration module program list is not loaded and 
 in find/add person a new person is enroll with exception after that not able 
 to edit and not able go person dashboard.
 + In Single Event Without Registration module program list is not loaded and 
 in find/add person a new person is enroll with exception after that not able 
 to edit and not able to see person dashboard.
  data mart is also not working
 
 ** Tags added: 2.12 dhis
 
 --
 You received this bug notification because you are a member of DHIS 2
 developers, which is subscribed to DHIS.
 https://bugs.launchpad.net/bugs/1187623
 
 Title:
  data entry under Individual Records is not working with dhis 2.12
 
 Status in DHIS 2 - District Health Information Software:
  New
 
 Bug description:
  In Single Event Without Registration module program list is not loaded and 
 in find/add person a new person is enroll with exception after that not able 
 to edit and not able to see person dashboard.
  data mart is also not working
 
 To manage notifications about this bug go to:
 https://bugs.launchpad.net/dhis2/+bug/1187623/+subscriptions
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Bug 1187623] Re: data entry under Individual Records is not working with dhis 2.12

2013-06-05 Thread Dan Cocos
Oops I replied to the wrong thread.

On Jun 5, 2013, at 3:11 PM, Dan Cocos d...@dancocos.com wrote:

 I verified it at 
 http://apps.dhis2.org/demo/dhis-web-caseentry/caseAggregationForm.action
 
 On Jun 5, 2013, at 3:09 PM, Ola Hodne Titlestad ol...@ifi.uio.no wrote:
 
 Hi,
 
 Is this on the live demo on apps.dhis2.org/demo
 
 or your own system?
 
 Ola
 ---
 
 --
 Ola Hodne Titlestad (Mr)
 HISP
 Department of Informatics
 University of Oslo
 
 Mobile: +47 48069736
 Home address: Eftasåsen 68, 0687 Oslo, Norway. Googlemaps link
 
 
 On 5 June 2013 09:40, Gagan Chamria gagan.cham...@elixirct.com wrote:
 ** Description changed:
 
 - In Single Event Without Registration module program list is not loaded 
 and in find/add person a new person is enroll with exception after that not 
 able to edit and not able go person dashboard.
 + In Single Event Without Registration module program list is not loaded 
 and in find/add person a new person is enroll with exception after that not 
 able to edit and not able to see person dashboard.
 data mart is also not working
 
 ** Tags added: 2.12 dhis
 
 --
 You received this bug notification because you are a member of DHIS 2
 developers, which is subscribed to DHIS.
 https://bugs.launchpad.net/bugs/1187623
 
 Title:
 data entry under Individual Records is not working with dhis 2.12
 
 Status in DHIS 2 - District Health Information Software:
 New
 
 Bug description:
 In Single Event Without Registration module program list is not loaded and 
 in find/add person a new person is enroll with exception after that not 
 able to edit and not able to see person dashboard.
 data mart is also not working
 
 To manage notifications about this bug go to:
 https://bugs.launchpad.net/dhis2/+bug/1187623/+subscriptions
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1187623

Title:
  data entry under Individual Records is not working with dhis 2.12

Status in DHIS 2 - District Health Information Software:
  New

Bug description:
  In Single Event Without Registration module program list is not loaded and in 
find/add person a new person is enroll with exception after that not able to 
edit and not able to see person dashboard.
  data mart is also not working

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1187623/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [Bug 1187931] Re: Manual Person Aggregation Contains Duplicates

2013-06-05 Thread Dan Cocos
I've attached a patch.

** Patch added: 1187931.patch
   
https://bugs.launchpad.net/dhis2/+bug/1187931/+attachment/3695696/+files/1187931.patch

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1187931

Title:
  Manual Person Aggregation Contains Duplicates

Status in DHIS 2 - District Health Information Software:
  New

Bug description:
  Manual person aggregation at /dhis-web-
  caseentry/caseAggregationForm.action contains the same Data set list
  multiple times.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1187931/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [Bug 1187931] [NEW] Manual Person Aggregation Contains Duplicates

2013-06-05 Thread Dan Cocos
Public bug reported:

Manual person aggregation at /dhis-web-
caseentry/caseAggregationForm.action contains the same Data set list
multiple times.

** Affects: dhis2
 Importance: Undecided
 Assignee: Dan Cocos (dcocos)
 Status: New

** Changed in: dhis2
 Assignee: (unassigned) = Dan Cocos (dcocos)

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1187931

Title:
  Manual Person Aggregation Contains Duplicates

Status in DHIS 2 - District Health Information Software:
  New

Bug description:
  Manual person aggregation at /dhis-web-
  caseentry/caseAggregationForm.action contains the same Data set list
  multiple times.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1187931/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] new web site

2013-06-03 Thread Dan Cocos
On the bottom left
http://dhis2.org/development

On Jun 3, 2013, at 6:48 PM, Marko David Garcia markodavi...@gmail.com wrote:

 Hi friends.
 
 Where is the development button?, the information about maven, spring, etc?.
 
 This information is necessary for the dhis2 enthusiasts.
 
 Thank you very much.
  
 
 2013/6/1 Uddin Fatema fatema...@gmail.com
 New Look. I like it.
 
 
 On Fri, May 31, 2013 at 4:52 PM, Bharath chbhara...@gmail.com wrote:
 looking nice
 
 
 On Fri, May 31, 2013 at 2:27 PM, Lars Helge Øverland larshe...@gmail.com 
 wrote:
 Hi all,
 
 we have a new web site today. We have tried to present DHIS 2 and the 
 community in a more comprehensive way, give the site a modern look and have 
 it scale well on mobile devices.
 
 The site is built on a zen-based drupal theme and runs on nginx/php.
 
 http://dhis2.org
 
 
 
 regards,
 
 Lars
 
 
 
 PS use http://178.79.191.67 if you are still seeing the old site.
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp
 
 
 
 
 -- 
 
 Regards,
 Bharath Kumar. Ch
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp
 
 
 
 
 -- 
 Fatema Uddin
 
 Junior Advisor HIS
 Priority Area Health
 Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) GmbH
 House10/A, Road 90, Gulshan 2, Dhaka 1212, Bangladesh
 Office location:
 Monitoring  Evaluation Unit
 Ministry of Health and Family Welfare
 Janashankha Bhaban (2nd Floor), Azimpur
 Dhaka 1205, Bangladesh
 
 Phone: +880 2 966 53 13
 Fax:   +880 2 966 53 14
 
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp
 
 
 
 
 -- 
 Cordialmente,
 
 
 Ing. Marko David Garcia M.
 Área de Sistemas integrados de Información
 Secretaría de Salud Departamental del Cauca
 
 
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Build Problem web dhis-web-light

2013-05-07 Thread Dan Cocos
Hi All,

I noticed a problem when building from trunk. In dhis-web-light the class 
SaveBeneficiaryAction.java has an import 
org.hisp.dhis.light.utils.PatientIdentifierGenerator which doesn't exist in the 
org.hisp.dhis.light.util package.

The last revision on SaveBeneficiaryAction.java (10770) is pretty recent. 

Was the file missed on check in? 

Thanks,
Dan
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Building tools/dhis-adhoc/

2013-05-06 Thread Dan Cocos
Hi All,

Can someone point me in the right direction to build the dhis-adhoc tools? I 
get a dependency error when trying to build. 
[ERROR] 'dependencies.dependency.version' for 
org.hisp.dhis:dhis-service-analytics:jar is missing. @ line 32, column 17

Are there some env vars I need to configure? 

Thanks,
Dan


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Code Style

2013-05-02 Thread Dan Cocos
Hi Paulo,

You can find the file here 
http://dhis2.org/download/resources/dhis-code-style-eclipse.xml and more 
conventions here http://dhis2.org/development

Dan



On May 2, 2013, at 10:56 AM, Paulo Grácio pgra...@criticalsoftware.com wrote:

 Hi all,
  
 I was following this 
 presentationhttp://www.uio.no/studier/emner/matnat/ifi/INF5750/h07/undervisningsmateriale/dhis_2.pdf
  but link to code style seems to be broken
 http://heim.ifi.uio.no/joakibj/inf5750/dhis-code-style-eclipse.xml
  
 Any other reference for code conventions/standards?
  
 Regards,
 Paulo
 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [Bug 885371] Re: dynamic-attributes-do-not-appear-after-creation

2011-11-29 Thread Dan Cocos
** Changed in: dhis2
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/885371

Title:
  dynamic-attributes-do-not-appear-after-creation

Status in DHIS 2 - District Health Information Software:
  Fix Released

Bug description:
  After creating a dynamic attribtue, it fails to appear in the
  appropriate object.Version is the latest download from dhis2.org
  (2.5).

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/885371/+subscriptions

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp