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
Concerning the Quota units, the unit in the Django Admin Interface is in bits (or bytes not sure), making it hard to know how much quota is actually assigned at a quick glance
@ObadaS I read somewhere that minio files meta-data can expire and file_size is a metadata that may be affected if there is an expiry role. If this is true then this maybe the cause of NAN size
Edit:
This was not the problem. The problem is explained in the comments below
Interesting, I will check that tomorrow.
However, there is no NaN size problem on the codabench-test website, which is connected to another MinIO that might have a different configuration.
Codalab.lisn.upsaclay.fr also shows dataset size and does not seem to be impacted by the bug, even though they are both connected to the same MinIO, which could point to either a bucket problem on MinIO or a problem in the code of the plateform
The only problem right now is reproducibility. If we can reproduce the bug locally then solving it will not be a problem.
I am pretty much convinced that there is no problem in the code because we see sizes for some files but I will investigate the code a bit more to be sure
I confirmed using this code that accessing file size from minio takes longer than accessing the file_size from DB. We can run it on codabench-test to be sure.
# Measure all files with unset sizefordatasetinData.objects.filter(Q(file_size__isnull=True) |Q(file_size__lt=0)):
try:
dataset.file_size=Decimal(
dataset.data_file.size/1024
) # file_size is in KiBexceptException:
dataset.file_size=Decimal(-1)
finally:
dataset.save()
Activity
ObadaS commentedon Feb 11, 2025
Concerning the Quota units, the unit in the Django Admin Interface is in bits (or bytes not sure), making it hard to know how much quota is actually assigned at a quick glance
Didayolo commentedon Feb 11, 2025
NaN values for size on production server for old files (older than ~30 days)
ihsaan-ullah commentedon Feb 11, 2025
check
format_file_sizefunction insrc/static/riot/submissions/resource_submissions.tagEdit:
No need to check this for NA size. The problem is explained below in comments
ihsaan-ullah commentedon Feb 12, 2025
@ObadaS I read somewhere that minio files meta-data can expire and file_size is a metadata that may be affected if there is an expiry role. If this is true then this maybe the cause of NAN size
Edit:
This was not the problem. The problem is explained in the comments below
ObadaS commentedon Feb 12, 2025
Interesting, I will check that tomorrow.
However, there is no NaN size problem on the codabench-test website, which is connected to another MinIO that might have a different configuration.
Codalab.lisn.upsaclay.fr also shows dataset size and does not seem to be impacted by the bug, even though they are both connected to the same MinIO, which could point to either a bucket problem on MinIO or a problem in the code of the plateform
ihsaan-ullah commentedon Feb 12, 2025
The only problem right now is reproducibility. If we can reproduce the bug locally then solving it will not be a problem.
I am pretty much convinced that there is no problem in the code because we see sizes for some files but I will investigate the code a bit more to be sure
ihsaan-ullah commentedon Feb 14, 2025
We found that the file sizes are emptied by
reset_computed_storage_analyticsfunction. Rerunning storage analytics should fix the NA sizesDidayolo commentedon Feb 14, 2025
I started the storage analytics on production.
What starts the
reset_computed_storage_analyticsin the first place?ihsaan-ullah commentedon Feb 18, 2025
I confirmed using this code that accessing file size from minio takes longer than accessing the file_size from DB. We can run it on codabench-test to be sure.
Accessing from DB
Accessing from Minio
Didayolo commentedon Feb 18, 2025
We need to separate the computing of the file sizes from the analytics task:
codabench/src/apps/analytics/tasks.py
Line 37 in 44c7d7f
Didayolo commentedon Feb 18, 2025
New version of the script to compute file sizes:
Didayolo commentedon Feb 19, 2025
The file sizes are back on production.
ihsaan-ullah commentedon Feb 20, 2025
Some more files with code to fix sizes
submission_detail.txt
submission_prediction_result.txt
submission_scoring_result.txt
submission_detailed_result.txt
Didayolo commentedon Feb 20, 2025
List of data files that failed:
Errors.txt
Didayolo commentedon Apr 15, 2025
@ihsaan-ullah Can we close this issue?
Didayolo commentedon Apr 24, 2025
I close this issue to keep track only on #1833