Comments (4)
Yes, encountered similar things and timeout was an option internally, but not yet exposed as a flag. I added that in v0.2.32; maybe you could try it with something like:
$ metha-sync -T 5m https://xyz.ch
from metha.
Hi @miku,
Great, thanks a lot for the quick reaction and releasing this so fast! :-)
I updated to 0.2.32 and am retrying with the new flags T
and r
. I'll keep you posted!
from metha.
I did not get a timeout anymore. However, I got this
FATA[36306] read tcp xyz->abc: read: connection reset by peer
I think since the collection is very large and the harvesting takes very long the server is under some stress.
Are there best practices to automatically check whether the metha-sync
harvesting process is still running and restart it if necessary?
from metha.
We had similar experiences, where e.g. the result set got too large for server and it bailed out (timeout on server side).
One workaround may be to shrink the time window for the harvest, e.g. from monthly (which is the default and seem to work for 99.5% of the cases) to daily (resulting in hopefully smaller result sets):
$ metha-sync -daily -T 5m https://abc.de
Note that this will harvest into the same directory and metha-cat
just picks up any file in the harvesting directory (there is currently no -daily
flag on metha-cat
). Maybe best would be to stash the existing directory somewhere (if you do not want to lose the previous harvest):
$ mv $(metha-sync -dir https://abc.de) /tmp
[...] and then to start anew with -daily
slices.
For automatic restart, I may try a shell wrapper first, something like:
$ until metha-sync -T 5m https://abc.de; do echo "retrying..."; sleep 3; done
I believe metha returns non-zero on failure ("FATA"), so that should work (also, no half-harvested files should remain).
from metha.
Related Issues (20)
- Bad page state in metha-sync (arm)
- authorization // character limit HOT 5
- Support for basic auth HOT 2
- two different resumptionTokens? HOT 1
- metha-cat - can not open the "dir" extablished in .cache/metha HOT 3
- Urlencode resuptionToken HOT 2
- Migration from Goodtables to Frictionless Repository
- Question: Can metha auto harvest all formats/metadataPrefixes? HOT 2
- Metha-Cat: Support for Paging? HOT 3
- Dependency Issue with Version 0.2.37 HOT 2
- metha-sync should catch SIGINT HOT 3
- Extend metha-cat to extract metadata records HOT 3
- Selective Harvesting and metha-cat HOT 2
- decode failed due to XML header HOT 1
- conflicting namespace prefixes during ListRecords HOT 2
- `-format` not respected? HOT 2
- Date Parsing Issue HOT 2
- Failed With Unprocessable Entity HOT 8
- arxiv files download by topic? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metha.