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

Annotator users can't annotate data (django exception TemplateDoesNotExist) #2350

Open
mdumitru opened this issue May 9, 2024 · 0 comments

Comments

@mdumitru
Copy link

mdumitru commented May 9, 2024

How to reproduce the behaviour

  1. Install and run doccano through the "Docker Compose" workflow on github.
  2. Create a new user "test".
  3. Create a new "DocumentClassification" project.
  4. Import a dataset.
  5. Add user "test" as a member of the current project, with the role set to "Annotator".
  6. Login as user "test" and select the previously mentioned project.

The "admin" user can see the dataset in the "dataset" tab and can use "Start Annotation" to annotate the dataset. However, the "test" user does not see anything in the "dataset" tab; similarly, clicking on "Start Annotation

In the terminal from which doccano was launched the following output appears:

nginx-1     | 172.19.0.1 - - [09/May/2024:11:36:18 +0000] "GET /v1/projects/3/my-role HTTP/1.1" 200 69 "http://localhost/projects/3/text-classification?page=1&q=&isChecked=" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0" "-"
nginx-1     | 172.19.0.1 - - [09/May/2024:11:36:18 +0000] "GET /v1/projects/3/category-types HTTP/1.1" 200 231 "http://localhost/projects/3/text-classification?page=1&q=&isChecked=" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0" "-"
nginx-1     | 172.19.0.1 - - [09/May/2024:11:36:18 +0000] "GET /v1/projects/3/metrics/progress HTTP/1.1" 200 38 "http://localhost/projects/3/text-classification?page=1&q=&isChecked=" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0" "-"
nginx-1     | 172.19.0.1 - - [09/May/2024:11:36:18 +0000] "GET /v1/projects/3/examples?limit=1&offset=0&confirmed=&ordering=&q= HTTP/1.1" 200 52 "http://localhost/projects/3/text-classification?page=1&q=&isChecked=" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0" "-"
nginx-1     | 172.19.0.1 - - [09/May/2024:11:36:18 +0000] "GET /v1/projects/3 HTTP/1.1" 200 409 "http://localhost/projects/3/text-classification?page=1&q=&isChecked=" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0" "-"
backend-1   | [2024-05-09 11:36:18 +0000] [55] [ERROR] [django.request::log_response::241] Internal Server Error: /v1/projects/3/examples/undefined/categories
backend-1   | Traceback (most recent call last):
backend-1   |   File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 56, in inner
backend-1   |     response = get_response(request)
backend-1   |   File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 220, in _get_response
backend-1   |     response = response.render()
backend-1   |   File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 114, in render
backend-1   |     self.content = self.rendered_content
backend-1   |   File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 90, in rendered_content
backend-1   |     template = self.resolve_template(self.template_name)
backend-1   |   File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 72, in resolve_template
backend-1   |     return select_template(template, using=self.using)
backend-1   |   File "/usr/local/lib/python3.8/site-packages/django/template/loader.py", line 47, in select_template
backend-1   |     raise TemplateDoesNotExist(", ".join(template_name_list), chain=chain)
backend-1   | django.template.exceptions.TemplateDoesNotExist: index.html
backend-1   | [2024-05-09 11:36:18 +0000] [55] [ERROR] [django.request::log_response::241] Internal Server Error: /v1/projects/3/examples/undefined/categories
backend-1   | Traceback (most recent call last):
backend-1   |   File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 56, in inner
backend-1   |     response = get_response(request)
backend-1   |   File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 220, in _get_response
backend-1   |     response = response.render()
backend-1   |   File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 114, in render
backend-1   |     self.content = self.rendered_content
backend-1   |   File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 90, in rendered_content
backend-1   |     template = self.resolve_template(self.template_name)
backend-1   |   File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 72, in resolve_template
backend-1   |     return select_template(template, using=self.using)
backend-1   |   File "/usr/local/lib/python3.8/site-packages/django/template/loader.py", line 47, in select_template
backend-1   |     raise TemplateDoesNotExist(", ".join(template_name_list), chain=chain)
backend-1   | django.template.exceptions.TemplateDoesNotExist: index.html
nginx-1     | 172.19.0.1 - - [09/May/2024:11:36:18 +0000] "GET /v1/projects/3/examples/undefined/categories HTTP/1.1" 500 145 "http://localhost/projects/3/text-classification?page=1&q=&isChecked=" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0" "-"

Your Environment

  • Operating System: Ubuntu 22.04.4 LTS (with kernel 5.15.0-105-generic)
  • Python Version Used: 3.8.10
  • When you install doccano: 09.05.2024
  • How did you install doccano (Heroku button etc): docker compose method from github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant