Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Server monitoring and Data download exception handling #183

Open
2 of 3 tasks
bezunakarmi opened this issue Nov 3, 2017 · 2 comments
Open
2 of 3 tasks

Server monitoring and Data download exception handling #183

bezunakarmi opened this issue Nov 3, 2017 · 2 comments
Assignees

Comments

@bezunakarmi
Copy link
Collaborator

bezunakarmi commented Nov 3, 2017

  • update existing bash script to generate new sqlite during import and then replace existing sqlite after successful import
  • setup uptimerobot for open.undg.org
  • password protected static status page listing the log from last import to see the possible errors if any

Cron job for fetching organization data is currently not working properly. This is due to API provided by IATI registry is not working properly. eg: fetching data for UNDP https://iatiregistry.org/api/3/action/package_search?fq=organization:undp&rows=1000000
responds with following empty results data
screen shot 2017-11-03 at 11 53 07 am
So, what we should do for now is

  • If an organization data is not fetched then the Cron process of re-creating database should be aborted.
  • A log should be maintained to review the process, which should be accessible by /logs url.
  • Log should clearly mention the date and organization name.
@anjesh
Copy link

anjesh commented Mar 28, 2018

@bezunakarmi any updates on the updating bash script during data fetch. I see that few agencies have 0 data when i am looking at the pages. Shall we expedite atleast the bash script issue. Thanks.

@anjesh
Copy link

anjesh commented Sep 18, 2018

As discussed, we might need to follow these steps for this. @bezunakarmi

  • setup a second instance of this app in different folder

There should be a bash which performs the followings

  • run the xml-data-import code only to different database name
  • if success, backup the first-instance-db and replace that with second-instance-db
  • restart the first-instance-app

lets discuss if there's any confusion.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants