-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Today we discovered the writer had been erroneously running as root lately, thus creating raw datastore hdf5 files chown root.root. A few days ago frome was physically moved to a new location and the server was restarted. The writer was restarted as user www (as specified in the docs).
The writer running as user www could not write to the raw data store. All data was dropped:
/var/log/hisparc/hisparc-log.writer
2018-09-24 00:00:05,473 writer.store_events[4758].store_event_list.ERROR: Cannot process event, discarding event (station: 8006)
2018-09-24 00:00:05,473 writer.store_events[4758].store_event_list.ERROR: Cannot process event, discarding event (station: 8006)
The code that generates this error:
https://github.com/HiSPARC/datastore/blob/master/writer/store_events.py#L127L148
When store_events.store_event_list is unsuccesful, we still remove the incoming pickled data from the partial folder!
Solution: Only remove the pickle if process_data is succesful: https://github.com/HiSPARC/datastore/blob/master/writer/writer_app.py#L73
Metadata
Metadata
Assignees
Labels
No labels