You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The log of running the image is as follow ( tried it with automatic and manual(5555) ports):
[#######:~]$ docker run -P --rm -it informagi/rel:2019 2020-08-25 03:18:22,260 https://s3.eu-central-1.amazonaws.com/alan-nlp/resources/models-v0.4/NER-conll03--h256-l1-b32-p3-0.5-%2Bglove%2Bnews-forward-fast%2Bnews-backward-fast-normal-locked0.5-word0.05--release_4/en-ner-fast-conll03-v0.4.pt not found in cache, downloading to /tmp/tmphlgzrwlk 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 256774339/256774339 [00:12<00:00, 20665722.77B/s] 2020-08-25 03:18:35,239 copying /tmp/tmphlgzrwlk to cache at /root/.flair/models/en-ner-fast-conll03-v0.4.pt 2020-08-25 03:18:35,458 removing temp file /tmp/tmphlgzrwlk 2020-08-25 03:18:35,493 loading file /root/.flair/models/en-ner-fast-conll03-v0.4.pt 2020-08-25 03:18:37,523 http://gem.cs.ru.nl/ed-wiki-2019.tar.gz not found in cache, downloading to /tmp/tmpeqim6x5s 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1019959/1019959 [00:00<00:00, 1610233.38B/s] 2020-08-25 03:18:38,400 copying /tmp/tmpeqim6x5s to cache at /root/.rel_cache/ed-wiki-2019.tar.gz 2020-08-25 03:18:38,403 removing temp file /tmp/tmpeqim6x5s Traceback (most recent call last): File "/opt/conda/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/opt/conda/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/workspace/REL/REL/server.py", line 163, in <module> args.base_url, args.wiki_version, {"mode": "eval", "model_path": args.ed_model} File "/workspace/REL/REL/entity_disambiguation.py", line 47, in __init__ "entity_word_embedding", "{}/{}/generated/".format(base_url, wiki_version), File "/workspace/REL/REL/db/generic.py", line 35, in __init__ self.db = self.initialize_db(path_db, table_name, columns) File "/workspace/REL/REL/db/base.py", line 41, in initialize_db db = sqlite3.connect(fname, isolation_level=None) sqlite3.OperationalError: unable to open database file
The text was updated successfully, but these errors were encountered:
It looks like the tar archive containing the wiki 2019 files got corrupted somehow. I'm currently rebuilding it, I will update you once it's working again!
Could it be that the files download but do not fit in the space allocated to the container?
Maybe you can use a mount point for the flair download - useful when the user has multiple images to play with, those can share the data in this mountpoint. Since you run with --rm here, you'd download it again and again.
Because some of the errors relate to data in /tmp, you could also consider using a tmpfs mount (but is linux only).
This is fixed for now, the instructions on using Docker have been updated accordingly. I'm closing this issue, if you run into further issues please let us know!
The log of running the image is as follow ( tried it with automatic and manual(5555) ports):
[#######:~]$ docker run -P --rm -it informagi/rel:2019 2020-08-25 03:18:22,260 https://s3.eu-central-1.amazonaws.com/alan-nlp/resources/models-v0.4/NER-conll03--h256-l1-b32-p3-0.5-%2Bglove%2Bnews-forward-fast%2Bnews-backward-fast-normal-locked0.5-word0.05--release_4/en-ner-fast-conll03-v0.4.pt not found in cache, downloading to /tmp/tmphlgzrwlk 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 256774339/256774339 [00:12<00:00, 20665722.77B/s] 2020-08-25 03:18:35,239 copying /tmp/tmphlgzrwlk to cache at /root/.flair/models/en-ner-fast-conll03-v0.4.pt 2020-08-25 03:18:35,458 removing temp file /tmp/tmphlgzrwlk 2020-08-25 03:18:35,493 loading file /root/.flair/models/en-ner-fast-conll03-v0.4.pt 2020-08-25 03:18:37,523 http://gem.cs.ru.nl/ed-wiki-2019.tar.gz not found in cache, downloading to /tmp/tmpeqim6x5s 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1019959/1019959 [00:00<00:00, 1610233.38B/s] 2020-08-25 03:18:38,400 copying /tmp/tmpeqim6x5s to cache at /root/.rel_cache/ed-wiki-2019.tar.gz 2020-08-25 03:18:38,403 removing temp file /tmp/tmpeqim6x5s Traceback (most recent call last): File "/opt/conda/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/opt/conda/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/workspace/REL/REL/server.py", line 163, in <module> args.base_url, args.wiki_version, {"mode": "eval", "model_path": args.ed_model} File "/workspace/REL/REL/entity_disambiguation.py", line 47, in __init__ "entity_word_embedding", "{}/{}/generated/".format(base_url, wiki_version), File "/workspace/REL/REL/db/generic.py", line 35, in __init__ self.db = self.initialize_db(path_db, table_name, columns) File "/workspace/REL/REL/db/base.py", line 41, in initialize_db db = sqlite3.connect(fname, isolation_level=None) sqlite3.OperationalError: unable to open database file
The text was updated successfully, but these errors were encountered: