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

Access denied when downloading leaderboard CSV #3074

Closed
iabufarha opened this issue Jan 13, 2022 · 28 comments
Closed

Access denied when downloading leaderboard CSV #3074

iabufarha opened this issue Jan 13, 2022 · 28 comments
Labels

Comments

@iabufarha
Copy link

Hi,

I keep getting an access denied message when trying to download the leaderboard CSV file. Is it related to the issues with submission queues?
Screenshot 2022-01-13 at 2 41 34 pm
.

@Didayolo
Copy link
Member

Hi,

Indeed we have a general problem right now, I think it is linked. Thank you for your useful input. We are currently working on it.

@Didayolo Didayolo added the Bug label Jan 13, 2022
@dtuantran
Copy link
Collaborator

Hi,
Could you provide your competition URL, please ?
Thanks

@iabufarha
Copy link
Author

Hi, it is still private and this one is just for testing that everything is working fine. I will be deleting it later, but here is the link:
https://codalab.lisn.upsaclay.fr/competitions/1023?secret_key=e3d05954-48f5-4063-8c89-d84e762dd911

@Didayolo
Copy link
Member

Can you please retry?

We have solved the recent problems. Maybe this one is gone too.

@iabufarha
Copy link
Author

Hi,
Now it takes me to a blank page and nothing is being downloaded.

@Didayolo
Copy link
Member

Can you please add me as an admin of the competition so I can try?
I won't change any setting.

My CodaLab ID is pavao

@iabufarha
Copy link
Author

I just added you

@Didayolo
Copy link
Member

You are trying to use the Download CSV button in the Results page, right?

For me it's working, I can download the CSV. However, it doesn't contain any value, only the text "Not allowed, phase is blind".
I think you need to edit the setting to put the leaderboard in public mode before downloading. But the downloading seems to work.

@iabufarha
Copy link
Author

For me, it is a blank page when using safari and an 'Access denied' page when using chrome.
There are 2-3 submissions for one of the phases (subtasks) and that's the one I am using for testing.
I tried setting the leaderboard for that specific 'phase' to default, but the issue is still there.

@Didayolo
Copy link
Member

I'm using Firefox and I can download the CSV leaderboard for all phases (even if the CSV is empty because the phases are blinds).

@iabufarha
Copy link
Author

Considering that you are admin now, shouldn't this make the leaderboards visible to you?
I just tested firefox and the same issue is still there, nothing is being downloaded when clicking 'Download CSV '.
If you check 'Task A - English', the leaderboard is not empty.
Also, I just noticed that there is an issue with the 'Teams' tab too. It says 'The CodaLab site is currently unavailable'.

@Didayolo
Copy link
Member

Yes, the leaderboard is visible to me. However, it seems that the option of having a blind leaderboard prevents the CSV to be filled up.

However I still can download the CSV. I don't know what's wrong on your side.

Also, I just noticed that there is an issue with the 'Teams' tab too. It says 'The CodaLab site is currently unavailable'.

Good catch, it's indeed not working. I'll investigate that.

@Didayolo
Copy link
Member

Didayolo commented Jan 17, 2022

For record, this seems to be the error message linked to the "Teams" signet:

django            | 2022-01-17 14:44:12,335 apps.web.models [INFO] Calculating sub size for submission: 35350
django            | 2022-01-17 14:44:12,335 INFO Calculating sub size for submission: 35350
django            | 2022-01-17 14:44:12,636 apps.web.models [INFO] Calculating sub size for submission: 35354
django            | 2022-01-17 14:44:12,636 INFO Calculating sub size for submission: 35354
django            | 2022-01-17 14:44:33,131 ERROR Internal Server Error: /teams/15/
django            | Traceback (most recent call last):
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 1038, in find_library
django            |     return parser.libraries[name]
django            | KeyError: 'future'
django            | 
django            | During handling of the above exception, another exception occurred:
django            | 
django            | Traceback (most recent call last):
django            |   File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 41, in inner
django            |     response = get_response(request)
django            |   File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 217, in _get_response
django            |     response = self.process_exception_by_middleware(e, request)
django            |   File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 215, in _get_response
django            |     response = response.render()
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 107, in render
django            | 2022-01-17 14:44:33,131 django.request [ERROR] Internal Server Error: /teams/15/
django            | Traceback (most recent call last):
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 1038, in find_library
django            |     return parser.libraries[name]
django            | KeyError: 'future'
django            | 
django            | During handling of the above exception, another exception occurred:
django            | 
django            | Traceback (most recent call last):
django            |   File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 41, in inner
django            |     response = get_response(request)
django            |   File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 217, in _get_response
django            |     response = self.process_exception_by_middleware(e, request)
django            |   File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 215, in _get_response
django            |     response = response.render()
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 107, in render
django            |     self.content = self.rendered_content
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 82, in rendered_content
django            |     template = self.resolve_template(self.template_name)
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 64, in resolve_template
django            |     return select_template(template, using=self.using)
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/loader.py", line 48, in select_template
django            |     self.content = self.rendered_content
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 82, in rendered_content
django            |     template = self.resolve_template(self.template_name)
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/response.py", line 64, in resolve_template
django            |     return select_template(template, using=self.using)
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/loader.py", line 48, in select_template
django            |     return engine.get_template(template_name)
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/backends/django.py", line 39, in get_template
django            |     return Template(self.engine.get_template(template_name), self)
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/engine.py", line 162, in get_template
django            |     template, origin = self.find_template(template_name)
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/engine.py", line 135, in find_template
django            |     template = loader.get_template(
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/loaders/cached.py", line 59, in get_template
django            |     template = super(Loader, self).get_template(
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/loaders/base.py", line 43, in get_template
django            |     return Template(
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 191, in __init__
django            |     self.nodelist = self.compile_nodelist()
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 230, in compile_nodelist
django            |     return parser.parse()
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 515, in parse
django            |     raise self.error(token, e)
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 513, in parse
django            |     compiled_result = compile_func(self, token)
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 312, in do_extends
django            |     nodelist = parser.parse()
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 515, in parse
django            |     raise self.error(token, e)
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 513, in parse
django            |     compiled_result = compile_func(self, token)
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 1089, in load
django            |     lib = find_library(parser, name)
django            |   File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 1040, in find_library
django            |     raise TemplateSyntaxError(
django            | django.template.exceptions.TemplateSyntaxError: 'future' is not a registered tag library. Must be one of:
django            | account
django            | admin_list
django            | admin_modify
django            | admin_static

@iabufarha
Copy link
Author

I tested downloading the leaderboard using Safari, Brave,FireFox, Chrome. All of them of give a blank page except chrome, which gives the 'access denied' message. I tried with another copy of the competition and I still have the same issue.

@Didayolo
Copy link
Member

I'm sorry I can't reproduce your bug.

@iabufarha
Copy link
Author

Hi, I started my official competition. The same issue is still persistent there. Also, the participants are getting the 'access denied message' when trying to download the scoring program error log.

@Didayolo
Copy link
Member

I've just requested to participate in the competition (ID: pavao) in order to try by myself.

@iabufarha
Copy link
Author

I just added you. Personally, I didn't have this issue while testing, but one of the participants was complaining about it. For me, the persistent issue is the downloading the leaderboard as CSV😅.

@Didayolo
Copy link
Member

For me, the persistent issue is the downloading the leaderboard as CSVsweat_smile.

Strange! Did you try (at least on the test competition) to make the leaderboard public (instead of hidden) and then re-try to download?

@iabufarha
Copy link
Author

I tried that and I am still getting the same message.

@Didayolo
Copy link
Member

Didayolo commented Jan 21, 2022

In issue #2490, a new comment said:

When we tried to open any of the links "View scoring output log, Download output from scoring step, Download private output from scoring step", we got "Access to codalab.lisn.upsaclay.fr was denied".

It seems to be the same issue. I'll dig into it. I'm not sure but it may even be your competition, "taskA - English of SemEval Task 6" was mentioned.

@iabufarha
Copy link
Author

Hi,
Yes, I checked with the participants. It seems that they thought it is an issue because they didn't get any results (we have the leaderboard and results set to private)
I was wondering if there are any updates regarding this issue?

@Didayolo
Copy link
Member

For record: @hyejwon got the same error.

I was wondering if there are any updates regarding this issue?

No big news for now, we are trying to make progress on this.

@DeepLearningRobustnessStudies
Copy link

DeepLearningRobustnessStudies commented Jun 18, 2022

I keep seeing a white screen when I try and download csv. When inspecting the network traffic, it also shows a 403 forbidden error

@juliojj
Copy link
Collaborator

juliojj commented Jul 4, 2022

Hi,
same problem here when trying to download the .csv file from the leaderboard (as organizer) -> resulting in a white page (using Firefox) or "Access to codalab.lisn.upsaclay.fr was denied" using Chrome.
Best

@Didayolo
Copy link
Member

Didayolo commented Jul 7, 2022

I also noted that I can't wget to download the leaderboard as CSV from command line. However, it works on the old server.

@fchuffar
Copy link

Dears,

First of all thank you for your work around the codalab platform. It is a wonderful tool that I use for teaching and research.

On the old server I can dowload the leaderbord to:
https://competitions.codalab.org/competitions/28931?secret_key=156ec53c-3ae2-4788-ac69-1eb11c467910

On the new server I have the same issue as described:
https://codalab.lisn.upsaclay.fr/competitions/8696?secret_key=3f32bbfc-9942-4e60-b241-bd10300d1bce

I am interested about a solution.

Best regards,

@Didayolo Didayolo added the P1 label Jan 15, 2023
@dtuantran
Copy link
Collaborator

Dear all,

This issue is due to our access control. You aren't added as Admin of your competition automatically event you created it. Once you add your account into Admins field of your competition Edit page, you can download your leaderboard CSV.
For example:
image

Please tell us if you still have some issue.
Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants