Nothing saving to database

Allo. It looks like nothing is saving again - my scraper ran a few hours ago with nothing saved :frowning:

Scraping looks more reliable recently, but today I am having the nothing saving to database issue again. Sorry!

Hey @lowndsy thanks for reporting this :slight_smile: Iā€™ve just run the tests scrapers and itā€™s not having trouble. Can you confirm this is still an issue?

I had this one happen again today with https://morph.io/everypolitician-scrapers/azerbaijan-constituencies

Iā€™m pretty sure itā€™s also happening with https://morph.io/everypolitician-scrapers/uk-house-of-commons-wikidata, as itā€™s been providing us data that is known to be stale, whilst reporting ā€œnothing changedā€

Iā€™ve also noticed a few of mine doing this sporadically, but there doesnā€™t seem to be a pattern to it.

Thanks for letting us know @tmtmtmtm and @chris48s . Iā€™ve restarted the service and confirmed that records are saving with the test scraper. https://github.com/openaustralia/morph/issues/1064

Let us know if this is still occurring :thumbsup:

This has been happening again a lot over the last couple of days. https://morph.io/tmtmtmtm/south-african-national-assembly-members-wikidata is one current example.

@tmtmtmtm this seems to be ok again. The test scraper is working.

If you see this happening, the current fix is to run the test scraper (you could fork it to run if you like), and if itā€™s not saving anything to the db, restart the morph service with the deploy user on the server.

sudo service morph restart

@equivalentideas nope - still happening with some scrapers, e.g. https://morph.io/everypolitician-scrapers/uk-house-of-commons-wikidata. Lots of others are working though, so I donā€™t think itā€™s enough to check a single test scraper to see if itā€™s working. The problem is more subtle than thatā€¦

@tmtmtmtm hmmmm. Thatā€™s looks to be running fine on itā€™s latest run. Any thoughts or more data you have would be great on the issue https://github.com/openaustralia/morph/issues/1064

I think Iā€™ve seen this problem only affect one Sidekiq process (there are two in our current setup) so that might have been what was happening here.

1 Like

Same things again https://morph.io/achasik/Test2

@achasik Iā€™ve just restarted the service so hopefully itā€™s fixed.

This is happening a lot again today

Yeah Iā€™ve been seeing it a fair bit over the last few days, but Iā€™d say most of my jobs have failed to write any data today

Thanks for letting us know @tmtmtmtm and @chris48s Iā€™ve restarted the service and it should be working again. Let me know if it needs another kick.

Cheers. All the ones Iā€™ve checked today have saved data :+1:

This is failing fairly consistently again now.

Looks like itā€™s working after yesterdayā€™s reset. Let me know if it needs attention :slight_smile: