Skip to content

Crash in ingest_earthquakes from module models.py #4

Description

@narnaud1974

@mcoughlin & @Nikhil-Mukund
First crash at EGO:

Traceback (most recent call last):
  File "models.py", line 536, in <module>
    run_seismon(purge=args.purge, init_db=args.init_db)
  File "models.py", line 474, in run_seismon
    ingest_earthquakes(config, args.lookback, repeat=True)
  File "models.py", line 433, in ingest_earthquakes
    f = open(os.path.join(timeFolder,"eqxml.txt"),"w")
FileNotFoundError: [Errno 2] No such file or directory: '/data/seismon/ProductClient/data/receiver_storage/origin/ci39924776/ci/1622977719760/eqxml.txt'

The actual line is

f = open(os.path.join(timeFolder,"eqxml.txt"),"w")
.

I don't know what caused the problem -- disappearance of the timeFolderdirectory or glitch in the file system or ??? --, nor how you would like to protect that command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions