404 response from the API when using Event Capture

Hi Folks,

I’ve deployed 2.29 build e1c949f (full About details below) on an aws ec2 instance running Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-1070-aws x86_64).

When trying to use the Event Capture app to record a single event the page load stalls.

In response to the api call;

8080/api/28/userDataStore/gridColumns/eventCaptureGridColumns
the debugging console in chrome shows the following error;

{“httpStatus”:“Not Found”,“httpStatusCode”:404,“status”:“ERROR”,“message”:“The key ‘eventCaptureGridColumns’ was not found in the namespace ‘gridColumns’.”}

The catalina.out logs don’t show any warning or error when the issue occurs or anything referencing an obviously related issue during the ROOT.war deployment. Any suggestions on how to further troubleshoot would be greatly appreciated.

Best,
Kevin



Current user:
admin
Version:
2.29
Build revision:
e1c949f
Build date:
2018-11-02 02:21
Jasper reports version:
6.3.1
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
Server date:
2018-11-02 03:20
Last analytics table generation:
Time since last analytics table generation:
Last analytics table runtime:
Environment variable:
DHIS2_HOME
External configuration directory:
/home/dhis/config
File store provider:
filesystem
Node ID:
Cache provider:
ehcache
Database type:
DhisPostgres
Database name:
dhis2
Database user:
dhis
Read replica count:
0
Java opts:
-Xmx768m -Xms512m -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
Java version:
1.8.0_181
Java vendor:
Oracle Corporation
OS name:
Linux
OS architecture:
amd64
OS version:
4.4.0-1070-aws
Server memory:
Mem Total in JVM: 744 Free in JVM: 451 Max Limit: 744
CPU cores:
2

Hi Kevin,

be sure on your API Url, I think It’s not well

Regards

···

Carlos Nyembwe

I’m just a Computer Scientist

Skype*: carloscnk1***

Cell*: (+243)813166381***

**Find me in: | Google Plus | **Linkedin | Facebook | Twitter |

Hi Carlos,

Thanks for your response. Any idea what the correct format might be?

Thanks,

Kevin

···

On Fri, Nov 2, 2018 at 1:59 AM Carlos Nyembwe nyembwe@gmail.com wrote:

Hi Kevin,

be sure on your API Url, I think It’s not well

Regards

On Fri, Nov 2, 2018 at 4:54 AM Kevin Bolger kevin.bolger@gmail.com wrote:

Boxbe

This message is eligible for Automatic Cleanup! (kevin.bolger@gmail.com) Add cleanup rule

More info

Hi Folks,

I’ve deployed 2.29 build e1c949f (full About details below) on an aws ec2 instance running Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-1070-aws x86_64).

When trying to use the Event Capture app to record a single event the page load stalls.

In response to the api call;

8080/api/28/userDataStore/gridColumns/eventCaptureGridColumns
the debugging console in chrome shows the following error;

{“httpStatus”:“Not Found”,“httpStatusCode”:404,“status”:“ERROR”,“message”:“The key ‘eventCaptureGridColumns’ was not found in the namespace ‘gridColumns’.”}

The catalina.out logs don’t show any warning or error when the issue occurs or anything referencing an obviously related issue during the ROOT.war deployment. Any suggestions on how to further troubleshoot would be greatly appreciated.

Best,
Kevin



Current user:
admin
Version:
2.29
Build revision:
e1c949f
Build date:
2018-11-02 02:21
Jasper reports version:
6.3.1
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
Server date:
2018-11-02 03:20
Last analytics table generation:
Time since last analytics table generation:
Last analytics table runtime:
Environment variable:
DHIS2_HOME
External configuration directory:
/home/dhis/config
File store provider:
filesystem
Node ID:
Cache provider:
ehcache
Database type:
DhisPostgres
Database name:
dhis2
Database user:
dhis
Read replica count:
0
Java opts:
-Xmx768m -Xms512m -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
Java version:
1.8.0_181
Java vendor:
Oracle Corporation
OS name:
Linux
OS architecture:
amd64
OS version:
4.4.0-1070-aws
Server memory:
Mem Total in JVM: 744 Free in JVM: 451 Max Limit: 744
CPU cores:
2


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


Carlos Nyembwe

I’m just a Computer Scientist

Skype*: carloscnk1***

Cell*: (+243)813166381***

**Find me in: | Google Plus | **Linkedin | Facebook | Twitter |

Hey Carlos and Kevin,
The eventCaptureGridColumns call is likely not the problem - this error is just a bit of log noise that comes in the console for everyone that has never rearranged the columns in the event capture.

Have you tried clearing the cache with the cache cleaner app? Is there any other calls failing during the startup that seems to fail? I tried reproducing in 2.29 play but the app seems to be working there.

Markus

P.S. we are welcoming you all to join community.dhis2.org for support and discussions on DHIS2.

···
  1. nov. 2018 kl. 13:21 skrev Kevin Bolger kevin.bolger@gmail.com:

Hi Carlos,

Thanks for your response. Any idea what the correct format might be?

Thanks,

Kevin

On Fri, Nov 2, 2018 at 1:59 AM Carlos Nyembwe nyembwe@gmail.com wrote:

Hi Kevin,

be sure on your API Url, I think It’s not well

Regards

On Fri, Nov 2, 2018 at 4:54 AM Kevin Bolger kevin.bolger@gmail.com wrote:

Boxbe

This message is eligible for Automatic Cleanup! (kevin.bolger@gmail.com) Add cleanup rule

More info

Hi Folks,

I’ve deployed 2.29 build e1c949f (full About details below) on an aws ec2 instance running Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-1070-aws x86_64).

When trying to use the Event Capture app to record a single event the page load stalls.

In response to the api call;

8080/api/28/userDataStore/gridColumns/eventCaptureGridColumns
the debugging console in chrome shows the following error;

{“httpStatus”:“Not Found”,“httpStatusCode”:404,“status”:“ERROR”,“message”:“The key ‘eventCaptureGridColumns’ was not found in the namespace ‘gridColumns’.”}

The catalina.out logs don’t show any warning or error when the issue occurs or anything referencing an obviously related issue during the ROOT.war deployment. Any suggestions on how to further troubleshoot would be greatly appreciated.

Best,
Kevin



Current user:
admin
Version:
2.29
Build revision:
e1c949f
Build date:
2018-11-02 02:21
Jasper reports version:
6.3.1
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
Server date:
2018-11-02 03:20
Last analytics table generation:
Time since last analytics table generation:
Last analytics table runtime:
Environment variable:
DHIS2_HOME
External configuration directory:
/home/dhis/config
File store provider:
filesystem
Node ID:
Cache provider:
ehcache
Database type:
DhisPostgres
Database name:
dhis2
Database user:
dhis
Read replica count:
0
Java opts:
-Xmx768m -Xms512m -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
Java version:
1.8.0_181
Java vendor:
Oracle Corporation
OS name:
Linux
OS architecture:
amd64
OS version:
4.4.0-1070-aws
Server memory:
Mem Total in JVM: 744 Free in JVM: 451 Max Limit: 744
CPU cores:
2


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


Carlos Nyembwe

I’m just a Computer Scientist

Skype*: carloscnk1***

Cell*: (+243)813166381***

**Find me in: | Google Plus | **Linkedin | Facebook | Twitter |


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

Hi Markus,

Thanks for the response!

I’ve cleared the cache with the cache cleaner app a number of times, and also tried a number of versions of (2.27, 2.28, 2.29 & 2.30) and I’m seeing the same issue on each. I’ve dropped the database completely and recreated before deploying each version. Still the same issue each time (starting to think there may be a problem with either my Tomcat or postgresql builds).

There are a couple of failures I believe in catalina.out during the build, but most (or all) other features that I use seem to be working ok.

I think most are related to GIS modules but I’ll give them a more detailed second pass.

If you were willing/able to take a closer look then I could provide you with the server link and a temp login account.

Best,

Kevin

···

On Fri, Nov 2, 2018 at 9:29 AM Markus Bekken markus@dhis2.org wrote:

Hey Carlos and Kevin,
The eventCaptureGridColumns call is likely not the problem - this error is just a bit of log noise that comes in the console for everyone that has never rearranged the columns in the event capture.

Have you tried clearing the cache with the cache cleaner app? Is there any other calls failing during the startup that seems to fail? I tried reproducing in 2.29 play but the app seems to be working there.

Markus

P.S. we are welcoming you all to join community.dhis2.org for support and discussions on DHIS2.

  1. nov. 2018 kl. 13:21 skrev Kevin Bolger kevin.bolger@gmail.com:

Hi Carlos,

Thanks for your response. Any idea what the correct format might be?

Thanks,

Kevin

On Fri, Nov 2, 2018 at 1:59 AM Carlos Nyembwe nyembwe@gmail.com wrote:

Hi Kevin,

be sure on your API Url, I think It’s not well

Regards

On Fri, Nov 2, 2018 at 4:54 AM Kevin Bolger kevin.bolger@gmail.com wrote:

Boxbe

This message is eligible for Automatic Cleanup! (kevin.bolger@gmail.com) Add cleanup rule

More info

Hi Folks,

I’ve deployed 2.29 build e1c949f (full About details below) on an aws ec2 instance running Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-1070-aws x86_64).

When trying to use the Event Capture app to record a single event the page load stalls.

In response to the api call;

8080/api/28/userDataStore/gridColumns/eventCaptureGridColumns
the debugging console in chrome shows the following error;

{“httpStatus”:“Not Found”,“httpStatusCode”:404,“status”:“ERROR”,“message”:“The key ‘eventCaptureGridColumns’ was not found in the namespace ‘gridColumns’.”}

The catalina.out logs don’t show any warning or error when the issue occurs or anything referencing an obviously related issue during the ROOT.war deployment. Any suggestions on how to further troubleshoot would be greatly appreciated.

Best,
Kevin



Current user:
admin
Version:
2.29
Build revision:
e1c949f
Build date:
2018-11-02 02:21
Jasper reports version:
6.3.1
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
Server date:
2018-11-02 03:20
Last analytics table generation:
Time since last analytics table generation:
Last analytics table runtime:
Environment variable:
DHIS2_HOME
External configuration directory:
/home/dhis/config
File store provider:
filesystem
Node ID:
Cache provider:
ehcache
Database type:
DhisPostgres
Database name:
dhis2
Database user:
dhis
Read replica count:
0
Java opts:
-Xmx768m -Xms512m -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
Java version:
1.8.0_181
Java vendor:
Oracle Corporation
OS name:
Linux
OS architecture:
amd64
OS version:
4.4.0-1070-aws
Server memory:
Mem Total in JVM: 744 Free in JVM: 451 Max Limit: 744
CPU cores:
2


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


Carlos Nyembwe

I’m just a Computer Scientist

Skype*: carloscnk1***

Cell*: (+243)813166381***

**Find me in: | Google Plus | **Linkedin | Facebook | Twitter |


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