{"action":"closed","issue":{"url":"https://api.github.com/repos/obspy/obspy/issues/2153","repository_url":"https://api.github.com/repos/obspy/obspy","labels_url":"https://api.github.com/repos/obspy/obspy/issues/2153/labels{/name}","comments_url":"https://api.github.com/repos/obspy/obspy/issues/2153/comments","events_url":"https://api.github.com/repos/obspy/obspy/issues/2153/events","html_url":"https://github.com/obspy/obspy/issues/2153","id":323918600,"node_id":"MDU6SXNzdWUzMjM5MTg2MDA=","number":2153,"title":"Consider setting default of threads_per_client=1 in MassDownloader.download to be nice to some FDSN webservices","user":{"login":"trichter","id":2046150,"node_id":"MDQ6VXNlcjIwNDYxNTA=","avatar_url":"https://avatars2.githubusercontent.com/u/2046150?v=4","gravatar_id":"","url":"https://api.github.com/users/trichter","html_url":"https://github.com/trichter","followers_url":"https://api.github.com/users/trichter/followers","following_url":"https://api.github.com/users/trichter/following{/other_user}","gists_url":"https://api.github.com/users/trichter/gists{/gist_id}","starred_url":"https://api.github.com/users/trichter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trichter/subscriptions","organizations_url":"https://api.github.com/users/trichter/orgs","repos_url":"https://api.github.com/users/trichter/repos","events_url":"https://api.github.com/users/trichter/events{/privacy}","received_events_url":"https://api.github.com/users/trichter/received_events","type":"User","site_admin":false},"labels":[{"id":45313521,"node_id":"MDU6TGFiZWw0NTMxMzUyMQ==","url":"https://api.github.com/repos/obspy/obspy/labels/.clients.fdsn","name":".clients.fdsn","color":"5882FA","default":false}],"state":"closed","locked":false,"assignee":{"login":"krischer","id":800487,"node_id":"MDQ6VXNlcjgwMDQ4Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/800487?v=4","gravatar_id":"","url":"https://api.github.com/users/krischer","html_url":"https://github.com/krischer","followers_url":"https://api.github.com/users/krischer/followers","following_url":"https://api.github.com/users/krischer/following{/other_user}","gists_url":"https://api.github.com/users/krischer/gists{/gist_id}","starred_url":"https://api.github.com/users/krischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krischer/subscriptions","organizations_url":"https://api.github.com/users/krischer/orgs","repos_url":"https://api.github.com/users/krischer/repos","events_url":"https://api.github.com/users/krischer/events{/privacy}","received_events_url":"https://api.github.com/users/krischer/received_events","type":"User","site_admin":false},"assignees":[{"login":"krischer","id":800487,"node_id":"MDQ6VXNlcjgwMDQ4Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/800487?v=4","gravatar_id":"","url":"https://api.github.com/users/krischer","html_url":"https://github.com/krischer","followers_url":"https://api.github.com/users/krischer/followers","following_url":"https://api.github.com/users/krischer/following{/other_user}","gists_url":"https://api.github.com/users/krischer/gists{/gist_id}","starred_url":"https://api.github.com/users/krischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krischer/subscriptions","organizations_url":"https://api.github.com/users/krischer/orgs","repos_url":"https://api.github.com/users/krischer/repos","events_url":"https://api.github.com/users/krischer/events{/privacy}","received_events_url":"https://api.github.com/users/krischer/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-05-17T08:21:39Z","updated_at":"2018-10-02T08:41:45Z","closed_at":"2018-10-02T08:41:45Z","author_association":"MEMBER","body":"Here is the code snippet I use:\r\n\r\n```py\r\nfrom obspy import UTCDateTime\r\nfrom obspy.clients.fdsn.mass_downloader import Restrictions, MassDownloader, GlobalDomain\r\n\r\ndomain= GlobalDomain()\r\nrest = Restrictions(\r\n    starttime=UTCDateTime(2012, 3, 1),\r\n    endtime=UTCDateTime(2012, 3, 5),\r\n    chunklength_in_sec=86400,\r\n    network=\"CX\", station=\"PATCX\", location=\"\", channel=\"HHZ\"\r\n    )\r\n\r\nmdl = MassDownloader(providers=[\"GFZ\"])\r\nmdl.download(domain, rest, \"waveforms\", \"stations\")\r\n```\r\n\r\nThis only downloads 2 of 4 days, because the GFZ FDSN WS is not available for some calls. This behavior of the WS is new for some days/weeks (?). Setting `threads_per_client=1` in `mdl.download` or calling the script several times solves the issue.\r\n\r\nHere is the log output:\r\n\r\n```\r\n[2018-05-17 10:11:53,286] - obspy.clients.fdsn.mass_downloader - INFO: Initializing FDSN client(s) for GFZ.\r\n[2018-05-17 10:11:53,442] - obspy.clients.fdsn.mass_downloader - INFO: Successfully initialized 1 client(s): GFZ.\r\n[2018-05-17 10:11:53,442] - obspy.clients.fdsn.mass_downloader - INFO: Total acquired or preexisting stations: 0\r\n[2018-05-17 10:11:53,442] - obspy.clients.fdsn.mass_downloader - INFO: Client 'GFZ' - Requesting unreliable availability.\r\n[2018-05-17 10:11:53,512] - obspy.clients.fdsn.mass_downloader - INFO: Client 'GFZ' - Successfully requested availability (0.07 seconds)\r\n[2018-05-17 10:11:53,513] - obspy.clients.fdsn.mass_downloader - INFO: Client 'GFZ' - Found 1 stations (1 channels).\r\n[2018-05-17 10:11:53,513] - obspy.clients.fdsn.mass_downloader - INFO: Client 'GFZ' - Will attempt to download data from 1 stations.\r\n[2018-05-17 10:11:53,514] - obspy.clients.fdsn.mass_downloader - INFO: Client 'GFZ' - Status for 4 time intervals/channels before downloading: NEEDS_DOWNLOADING\r\n[2018-05-17 10:11:53,538] - obspy.clients.fdsn.mass_downloader - ERROR: Client 'GFZ' - Service temporarily unavailable\r\nDetailed response of server:\r\n\r\n<html>\r\n<head><title>503 Service Temporarily Unavailable</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>503 Service Temporarily Unavailable</h1></center>\r\n<hr><center>nginx/1.12.2</center>\r\n</body>\r\n</html>\r\n[2018-05-17 10:11:53,561] - obspy.clients.fdsn.mass_downloader - ERROR: Client 'GFZ' - Service temporarily unavailable\r\nDetailed response of server:\r\n\r\n<html>\r\n<head><title>503 Service Temporarily Unavailable</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>503 Service Temporarily Unavailable</h1></center>\r\n<hr><center>nginx/1.12.2</center>\r\n</body>\r\n</html>\r\n[2018-05-17 10:11:58,497] - obspy.clients.fdsn.mass_downloader - INFO: Client 'GFZ' - Successfully downloaded 1 channels (of 1)\r\n[2018-05-17 10:11:58,553] - obspy.clients.fdsn.mass_downloader - INFO: Client 'GFZ' - Successfully downloaded 1 channels (of 1)\r\n[2018-05-17 10:11:58,553] - obspy.clients.fdsn.mass_downloader - INFO: Client 'GFZ' - Launching basic QC checks...\r\n[2018-05-17 10:11:58,637] - obspy.clients.fdsn.mass_downloader - INFO: Client 'GFZ' - Downloaded 13.9 MB [2826.76 KB/sec] of data, 0.0 MB of which were discarded afterwards.\r\n[2018-05-17 10:11:58,637] - obspy.clients.fdsn.mass_downloader - INFO: Client 'GFZ' - Status for 2 time intervals/channels after downloading: DOWNLOAD_FAILED\r\n[2018-05-17 10:11:58,638] - obspy.clients.fdsn.mass_downloader - INFO: Client 'GFZ' - Status for 2 time intervals/channels after downloading: DOWNLOADED\r\n[2018-05-17 10:11:59,502] - obspy.clients.fdsn.mass_downloader - INFO: Client 'GFZ' - Successfully downloaded 'stations/CX.PATCX.xml'.\r\n[2018-05-17 10:11:59,503] - obspy.clients.fdsn.mass_downloader - INFO: Client 'GFZ' - Downloaded 1 station files [0.0 MB] in 0.9 seconds [8.16 KB/sec].\r\n[2018-05-17 10:11:59,504] - obspy.clients.fdsn.mass_downloader - INFO: ============================== Final report\r\n[2018-05-17 10:11:59,504] - obspy.clients.fdsn.mass_downloader - INFO: 0 MiniSEED files [0.0 MB] already existed.\r\n[2018-05-17 10:11:59,504] - obspy.clients.fdsn.mass_downloader - INFO: 0 StationXML files [0.0 MB] already existed.\r\n[2018-05-17 10:11:59,504] - obspy.clients.fdsn.mass_downloader - INFO: Client 'GFZ' - Acquired 2 MiniSEED files [13.9 MB].\r\n[2018-05-17 10:11:59,505] - obspy.clients.fdsn.mass_downloader - INFO: Client 'GFZ' - Acquired 1 StationXML files [0.0 MB].\r\n[2018-05-17 10:11:59,505] - obspy.clients.fdsn.mass_downloader - INFO: Downloaded 13.9 MB in total.\r\n\r\n```\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"trichter"}}