Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docker] error running the image #45

Closed
mso1830 opened this issue Aug 25, 2020 · 3 comments
Closed

[Docker] error running the image #45

mso1830 opened this issue Aug 25, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@mso1830
Copy link

mso1830 commented Aug 25, 2020

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

@KDercksen KDercksen self-assigned this Aug 25, 2020
@KDercksen KDercksen added the bug Something isn't working label Aug 25, 2020
@KDercksen
Copy link
Contributor

Hi mso1830, thanks for reporting this issue!

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!

@arjenpdevries
Copy link
Member

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).

@KDercksen
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants