Closed jwbensley closed 8 months ago
Again here, somehow the parser has crashed which then caused multi-processing to shit the bed:
ESC[33mdnas_parser |ESC[0m File "/opt/pypy3.8-v7.3.7-linux64/lib/pypy3.8/multiprocessing/pool.py", line 48, in mapstar
ESC[33mdnas_parser |ESC[0m return list(map(*args))
ESC[33mdnas_parser |ESC[0m File "/opt/dnas/scripts/../dnas/mrt_parser.py", line 151, in parse_upd_dump
ESC[33mdnas_parser |ESC[0m for idx, mrt_e in enumerate(mrt_entries):
ESC[33mdnas_parser |ESC[0m File "/opt/pypy3.8-v7.3.7-linux64/lib/pypy3.8/site-packages/mrtparse/__init__.py", line 86, in __next__
ESC[33mdnas_parser |ESC[0m self.unpack_hdr(mrt)
ESC[33mdnas_parser |ESC[0m File "/opt/pypy3.8-v7.3.7-linux64/lib/pypy3.8/site-packages/mrtparse/__init__.py", line 116, in unpack_hdr
ESC[33mdnas_parser |ESC[0m mrt.unpack()
ESC[33mdnas_parser |ESC[0m File "/opt/pypy3.8-v7.3.7-linux64/lib/pypy3.8/site-packages/mrtparse/__init__.py", line 228, in unpack
ESC[33mdnas_parser |ESC[0m self.data['subtype'] = {st: MRT_ST[t][st]}
ESC[33mdnas_parser |ESC[0m KeyError: 0
ESC[33mdnas_parser |ESC[0m """
ESC[33mdnas_parser |ESC[0m
ESC[33mdnas_parser |ESC[0m The above exception was the direct cause of the following exception:
ESC[33mdnas_parser |ESC[0m
ESC[33mdnas_parser |ESC[0m Traceback (most recent call last):
ESC[33mdnas_parser |ESC[0m File "/opt/dnas/scripts/parse_mrts.py", line 599, in <module>
ESC[33mdnas_parser |ESC[0m main()
ESC[33mdnas_parser |ESC[0m File "/opt/dnas/scripts/parse_mrts.py", line 581, in main
ESC[33mdnas_parser |ESC[0m continuous(args)
ESC[33mdnas_parser |ESC[0m File "/opt/dnas/scripts/parse_mrts.py", line 99, in continuous
ESC[33mdnas_parser |ESC[0m parse_files(filelist=filelist, args=args)
ESC[33mdnas_parser |ESC[0m File "/opt/dnas/scripts/parse_mrts.py", line 330, in parse_files
ESC[33mdnas_parser |ESC[0m mrt_s = parse_file(filename=file, multi=args["multi"])
ESC[33mdnas_parser |ESC[0m File "/opt/dnas/scripts/parse_mrts.py", line 268, in parse_file
ESC[33mdnas_parser |ESC[0m mrt_chunks = Pool.map(mrt_parser.parse_upd_dump, file_chunks)
ESC[33mdnas_parser |ESC[0m File "/opt/pypy3.8-v7.3.7-linux64/lib/pypy3.8/multiprocessing/pool.py", line 364, in map
ESC[33mdnas_parser |ESC[0m return self._map_async(func, iterable, mapstar, chunksize).get()
ESC[33mdnas_parser |ESC[0m File "/opt/pypy3.8-v7.3.7-linux64/lib/pypy3.8/multiprocessing/pool.py", line 771, in get
ESC[33mdnas_parser |ESC[0m raise self._value
ESC[33mdnas_parser |ESC[0m KeyError: 0
This is related to issue #168
docker-compose should be set to restart "always"
DNAS crashed again shortly after 2023-07-26 16:09:00 but no logs are available.
Now that the out of memory issues are fixed, this hasn't occurred again so closing.