Hi Folks,
I am facing issue while i try to download the Metadata for Visualisations and get 500.
When I try to search for logs, none of the logs show any relevant information for the failure. I have checked below logs
dhis.log
localhost_access_log.text - Has info but just the api details and status code
localhost.log
catalina.out
This is happening only with the Visualisation Metadata Export and none other Exports.
Version for which this is happening is 2.37.8.1-SNAPSHOT
API Call: GET /api/metadata.json?skipSharing=true&visualizations=true&dashboards=true&eventCharts=true&eventReports=true&download=true
@Gassim @DHIS2-Community @dhis2-backend
Gassim
(AL-Gassim Sharaf Addin)
24 February 2025 12:55
2
Hi @Vishwanideep_Kumar
Vishwanideep Kumar:
2.37.8.1-SNAPSHOT
Is this a production instance? If so, it’s not recommended to use the “SNAPSHOT” version.
If you login to the instance and paste the API request to the browser (while you’re logged in), do you still get an error or does the download start?
Vishwanideep Kumar:
get 500.
When you get this error, there’s probably an issue connecting to the instance itself. Please double check the authentication.
Thanks!
Hi @Gassim
I am doing the metadata export from the Import/Export App.
Steps Followed:
Logged into DHIS2
Selected Import/Export App
Metadata Export
Select None
Clicked on Visualization checkbox.
Chose uncompressed and format json
Start Export
New Tab opens and i see the same error message 500.
API details given in previous chat
Gassim
(AL-Gassim Sharaf Addin)
5 March 2025 23:31
4
Hi @Vishwanideep_Kumar
I’m not able to reproduce this issue in any of the play.dhis2.org instances (latest versions). However, the fact that you are getting 500 error message seems to be a server/connection related issue. Could you check the Catalina.out log and see if there are any errors there? (if you share the log make sure to remove any sensitive/authentication info).