Re: [Dhis2-users] Test Email in Email Settings is not Working.

2016-12-06 Thread Sourabh Bhardwaj
Thanks Stian & Sam,

I have followed your instructions and now it is working fine after enabling
IMAP and less securing apps.



On Tue, Dec 6, 2016 at 6:41 PM, Sam Kasozi  wrote:

> Also enabling the 'less secure apps to access your account' option in the
> Gmail account configured in the DHIS 2.
>
> If this is the case, then when you log into the same account, you will
> find a blocked sign-in attempt notification email with the option for
> allowing the access.
>
> https://www.google.com/settings/security/lesssecureapps
>
> regards,
>
> Sam Kasozi
> +256 788-993-565
> Skype: sam.kasoziug
>
> On Tue, Dec 6, 2016 at 5:16 PM, Stian Sandvold  wrote:
>
>> Hi,
>>
>> first, did you enable TLS as well?
>>
>> I followed the steps listed here: https://support.google.c
>> om/mail/answer/7126229?hl=en
>>
>> This works fine for me. Is there any way you misspelled your email or
>> password?
>>
>> Seemed to work without enabling POP/IMAP in my gmail account as well, but
>> if you can’t get it to work, you should try to enable it as well I guess.
>>
>> Let me know how it goes.
>>
>> ——
>> Stian Sandvold
>> Software developer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>>
>>
>>
>> On 6 Dec 2016, at 13:36, Sourabh Bhardwaj  wrote:
>>
>> Hi all,
>>
>> I have setup the email settings as:
>>
>> *Hostname: s...@gmail.com *
>> *Port: 587*
>> *username: @gmail.com *
>> *password: ***(gmail password)*
>> *sender: ***@gmail.com *
>>
>>
>> But test mail never receives to the user. Following error is  coming:
>>
>> *Sending email to user: admin with email address:***@gmail.com
>>  to host: smtp.gmail.com:587
>>  (EmailMessageSender.java [taskScheduler-8])*
>> *   * WARN  2016-12-06 17:51:15,540 Could not send email: Sending
>> the email to the following server failed : smtp.gmail.com:587
>> , org.apache.commons.mail.EmailException:
>> Sending the email to the following server failed : smtp.gmail.com:587
>> *
>>
>>
>> Has anyone used the Email Settings before?
>>
>> Thanks & Regards,
>> Sourabh Bhardwaj
>>
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Test Email in Email Settings is not Working.

2016-12-06 Thread Sam Kasozi
Also enabling the 'less secure apps to access your account' option in the
Gmail account configured in the DHIS 2.

If this is the case, then when you log into the same account, you will find
a blocked sign-in attempt notification email with the option for allowing
the access.

https://www.google.com/settings/security/lesssecureapps

regards,

Sam Kasozi
+256 788-993-565
Skype: sam.kasoziug

On Tue, Dec 6, 2016 at 5:16 PM, Stian Sandvold  wrote:

> Hi,
>
> first, did you enable TLS as well?
>
> I followed the steps listed here: https://support.google.
> com/mail/answer/7126229?hl=en
>
> This works fine for me. Is there any way you misspelled your email or
> password?
>
> Seemed to work without enabling POP/IMAP in my gmail account as well, but
> if you can’t get it to work, you should try to enable it as well I guess.
>
> Let me know how it goes.
>
> ——
> Stian Sandvold
> Software developer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
>
>
>
> On 6 Dec 2016, at 13:36, Sourabh Bhardwaj  wrote:
>
> Hi all,
>
> I have setup the email settings as:
>
> *Hostname: s...@gmail.com *
> *Port: 587*
> *username: @gmail.com *
> *password: ***(gmail password)*
> *sender: ***@gmail.com *
>
>
> But test mail never receives to the user. Following error is  coming:
>
> *Sending email to user: admin with email address:***@gmail.com
>  to host: smtp.gmail.com:587
>  (EmailMessageSender.java [taskScheduler-8])*
> *   * WARN  2016-12-06 17:51:15,540 Could not send email: Sending
> the email to the following server failed : smtp.gmail.com:587
> , org.apache.commons.mail.EmailException:
> Sending the email to the following server failed : smtp.gmail.com:587
> *
>
>
> Has anyone used the Email Settings before?
>
> Thanks & Regards,
> Sourabh Bhardwaj
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] couple questions about dataValueSets API

2016-12-06 Thread Vladimer Shioshvili
Thanks Lars. It was a human error issue, input i was testing with has
duplicates and i was looking at ignored, and not noticing the delete count.
Thanks!

What would be the level of effort and ability to back port to 2.24 of
supporting compressed files in API?

On Tue, Dec 6, 2016 at 6:42 AM Lars Helge Øverland  wrote:

> Hi Vlad,
>
>
>
> On Tue, Dec 6, 2016 at 12:04 PM, Vladimer Shioshvili <
> vshioshv...@gmail.com> wrote:
>
> 1) just to confirm, web api only accets uncompressed file, right? and it's
> the import/export app that is capable of handling zip file?
>
>
> Yes that is correct per now. We could consider adding that support to the
> API as well.
>
>
>
> 2) does DELETE import strategy work for dataValueSets? I have not been
> able to get it to work.
>
>
> It seems to be working - try running the two curl commands below, which
> indicates that data gets added and then removed.
>
>
> curl "https://play.dhis2.org/demo/api/24/dataValueSets; -i -X POST -H
> "Content-Type: application/json" --data
> '{"dataSet":"pBOMPrpg1QX","period":"201401","orgUnit":"DiszpKrYNg8","dataValues":[{"dataElement":"f7n9E0hX8qk","value":"1"},{"dataElement":"Ix2HsbDMLea","value":"2"}]}'
> -u admin:district -v
>
> curl "
> https://play.dhis2.org/demo/api/24/dataValueSets?importStrategy=DELETE;
> -i -X POST -H "Content-Type: application/json" --data
> '{"dataSet":"pBOMPrpg1QX","period":"201401","orgUnit":"DiszpKrYNg8","dataValues":[{"dataElement":"f7n9E0hX8qk","value":"1"},{"dataElement":"Ix2HsbDMLea","value":"2"}]}'
> -u admin:district -v
>
>
>
> regards,
>
> Lars
>
>
>
>
>
>
>
>
> I am running on 2.24, if it makes a difference.
>
> Thanks,
> Vlad
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Events not getting auto-generated

2016-12-06 Thread Abyot Asalefew Gizaw
Hi Arun,

There happens to be a bug when auto generating event. It is fixed from
master (2.26) all the way to 2.23.

Thank you for reporting.

--
Abyot A. Gizaw.
Senior Engineer, DHIS2
University of Oslo
http://www.dhis2.org

On Fri, Nov 18, 2016 at 9:07 AM, Abyot Asalefew Gizaw 
wrote:

> Is it possible to access your system so that I can take a close look? or
> share your db privately?
>
> --
> Abyot A. Gizaw.
> Senior Engineer, DHIS2
> University of Oslo
> http://www.dhis2.org
>
> On Fri, Nov 18, 2016 at 5:58 AM, Arun Paul  wrote:
>
>> Hi Abyot,
>>
>> That's not the case. Anyway I cleaned the browser cache just to be double
>> sure.
>> The issue is still not solved.
>> Any other ideas?
>>
>> ​Thanks
>> ,
>> - Arun Paul
>>
>> On Wed, Nov 16, 2016 at 11:19 AM, Abyot Asalefew Gizaw 
>> wrote:
>>
>>> May be the meta data is changed after the app has run... if this is the
>>> case, the solution is to fully clear your browser cache and run the app
>>> again.
>>>
>>> ---
>>>
>>> Thank you,
>>> Abyot.
>>> (sent from mobile)
>>>
>>> On Nov 16, 2016 03:39, "Arun Paul"  wrote:
>>>
 Hi Abyot,

 This issue is still not resolved. I am attaching the screenshots here.
 I could not find anything error-like on the browser console too. I have
 attached the both the screenshots, just after enrolling to the program and
 just after manually generating the stage1 event.


 Let me know if you find anything.
 Thanks in advance.

 - Arun Paul

 On Mon, Nov 14, 2016 at 12:25 PM, Abyot Asalefew Gizaw  wrote:

> Hi Arun,
>
> It works fine in our demo server - which is 2.25. I don't remember any
> big change in that area between 2.23 and 2.25.
>
> Can you share us some screenshots? Also, do you see anything in red
> under your browser console?
>
> --
> Abyot A. Gizaw.
> Senior Engineer, DHIS2
> University of Oslo
> http://www.dhis2.org
>
> On Mon, Nov 14, 2016 at 6:11 AM, Arun Paul 
> wrote:
>
>> Thanks Prosper.
>> Yes I set the incident date as the delivery date but it does not help.
>> Is there anything else I have to check?
>>
>> Regards,
>> Arun
>>
>> On Mon, Nov 14, 2016 at 1:09 AM, Prosper BT 
>> wrote:
>>
>>> Dear Arun,
>>>
>>> Is delivery date your incident date?
>>> You must have an incident date or use enrollment date for the auto
>>> generate events to work.
>>>
>>> Regards
>>>
>>> Prosper Behumbiize, MPH
>>> DHIS2 Implementation| HISP Uganda/University Of Oslo
>>> +256 752 751 776 | +256 776 139 139
>>> pros...@hispuganda.org  | pros...@dhis2.org | Skype:
>>> prospertb
>>>
>>> On Sat, Nov 12, 2016 at 3:22 PM, Arun Paul 
>>> wrote:
>>>
 Hi everyone,

 I am creating a program for tracking the PNC visits in the lines of

 "​
 MNCH / PNC (Adult Woman)
 ​"​ Program configured in the Sierra Leon Demo system.

 In my case I have created multiple PNC visits such as PNC 1, PNC2,
 PNC3 that would occur at 1,3,5 days after the delivery date which is 
 the
 incident date of the program.

 I would like these events to be auto-generated at scheduled days,
 so that I can generate overdue reports for the health workers to act 
 upon.
 However, I cannot get this working, despite doing all the
 configurations(Listed down below). Even after the required number of 
 days,
  I can't see the overdue events are being generated for the patients, 
 nor
 can I see them listed in the events overdue reports.

 In the program stage configuration for each stages :
 "Scheduled days from start" was given a valid value.
 "Auto-generate event" was ticked on.

 Have I missed any configuration? I am using version 2.23.

 Please help.

 Thanks,
 Arun Paul.

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


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

>>
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : 

Re: [Dhis2-users] couple questions about dataValueSets API

2016-12-06 Thread Lars Helge Øverland
Hi Vlad,



On Tue, Dec 6, 2016 at 12:04 PM, Vladimer Shioshvili 
wrote:

> 1) just to confirm, web api only accets uncompressed file, right? and it's
> the import/export app that is capable of handling zip file?
>
>
Yes that is correct per now. We could consider adding that support to the
API as well.



> 2) does DELETE import strategy work for dataValueSets? I have not been
> able to get it to work.
>
>
It seems to be working - try running the two curl commands below, which
indicates that data gets added and then removed.


curl "https://play.dhis2.org/demo/api/24/dataValueSets; -i -X POST -H
"Content-Type: application/json" --data
'{"dataSet":"pBOMPrpg1QX","period":"201401","orgUnit":"DiszpKrYNg8","dataValues":[{"dataElement":"f7n9E0hX8qk","value":"1"},{"dataElement":"Ix2HsbDMLea","value":"2"}]}'
-u admin:district -v

curl "https://play.dhis2.org/demo/api/24/dataValueSets?importStrategy=DELETE;
-i -X POST -H "Content-Type: application/json" --data
'{"dataSet":"pBOMPrpg1QX","period":"201401","orgUnit":"DiszpKrYNg8","dataValues":[{"dataElement":"f7n9E0hX8qk","value":"1"},{"dataElement":"Ix2HsbDMLea","value":"2"}]}'
-u admin:district -v



regards,

Lars








> I am running on 2.24, if it makes a difference.
>
> Thanks,
> Vlad
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


[Dhis2-users] couple questions about dataValueSets API

2016-12-06 Thread Vladimer Shioshvili
1) just to confirm, web api only accets uncompressed file, right? and it's
the import/export app that is capable of handling zip file?

2) does DELETE import strategy work for dataValueSets? I have not been able
to get it to work.

I am running on 2.24, if it makes a difference.

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