Closed petrrr closed 6 years ago
@petrrr can you please check if the fix does solve your problem? @andres-h thanks for fixing it.
@andres-h and @gempa-jabe many thanks for your help and the fix.
@vlauciani has tested the patch this morning and it seems to have solved the problem. Here the relevant part of the log:
[...]
2018/04/05 10:15:26 [debug/log] request (93.63.207.206): /fdsnws/dataselect/1/query?net=IV&sta=NOVE&cha=EHE&start=2014-08-03T22:47:07&end=2014-08-03T22:51:07&nodata=404
2018/04/05 10:15:26 [debug/log] adding stream: IV.NOVE..EHE 2014-08-03T22:47:07.0000Z - 2014-08-03T22:51:07.0000Z
2018/04/05 10:15:26 [debug/RecordStream] trying to open stream sdsarchive:///mnt/archive_aufs
2018/04/05 10:15:26 [debug/SDSARCHIVE] SDS request: 2014,08,03,22,47,07 2014,08,03,22,51,07 IV NOVE EHE
2018/04/05 10:15:26 [debug/SDSARCHIVE] + /mnt/archive_aufs/2014/IV/NOVE/EHE.D/IV.NOVE..EHE.D.2014.215 (init:1)
2018/04/05 10:15:26 [warning/SDSARCHIVE] sdsarchive: [/mnt/archive_aufs/2014/IV/NOVE/EHE.D/IV.NOVE..EHE.D.2014.215@7206912] Couldn't read mseed header!
2018/04/05 10:15:26 [warning/log] responding with error: 404 (Not Found)
2018/04/05 10:15:26 [info/log] [reactor] 93.63.207.206 - - [05/Apr/2018:10:15:25 +0000] "GET /fdsnws/dataselect/1/query?net=IV&sta=NOVE&cha=EHE&start=2014-08-03T22:47:07&end=2014-08-03T22:51:07&nodata=404 HTTP/1.0" 404 - "-" "curl/7.26.0"
[...]
May I propose that also some enhancement of the log system is considered? I am thinking of a way to to avoid the problem observed along with this issue, where that relevant information is flushed out of the preserved log files. Maybe limiting the no. of equal messages would be helpful. Should we open a new issue on this?
May I propose that also some enhancement of the log system is considered? I am thinking of a way to to avoid the problem observed along with this issue, where that relevant information is flushed out of the preserved log files. Maybe limiting the no. of equal messages would be helpful. Should we open a new issue on this?
You can use syslog as logging backend instead of the logfiles. And syslog can be configured in that regard I think. Is that an option?
This problem was first discussed in issue https://github.com/SeisComP3/seiscomp3/issues/163#issuecomment-375210220.
However, the available logs were not useful to understand which request or which file caused the problem. Thanks to some scripting magic by my colleague @vlauciani, we were now able to safe and recover the relevant part of the log:
The problem is due to a corrupt file in the data archive. Apparently, the SDS request handler ends up in some infinite loop, never returns and therefore the service itself does stop replying.
The corrupted file is the following:
qmerge
confirms that there is a problem with the header at some point.Before the latest update the service seemed to have been resilient on such corrupted files in the archive.