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

Investigar erro em update_table_file #490

Open
turicas opened this issue Nov 3, 2020 · 0 comments
Open

Investigar erro em update_table_file #490

turicas opened this issue Nov 3, 2020 · 0 comments
Assignees

Comments

@turicas
Copy link
Owner

turicas commented Nov 3, 2020

erro no sentry

django@f77f379adc6a:/app$ time python manage.py update_table_file --update-list --collect-date=2020-10-29 govbr auxilio_emergencial https://data.brasil.io/dataset/[0/99700]
ilio_emergencial.csv.gz                                                  
Downloading https://data.brasil.io/dataset/govbr/auxilio_emergencial.csv.gz chunks...: 100%|████████████████████| 599/599 [07:45<00:00,  1.29it/s]
Using /dataset/govbr/auxilio_emergencial.csv.gz as the dataset file.                  
New TableFile entry: https://brasil.io/admin/core/tablefile/492/change/
File hash: 1202a9b55b77fcc7a83a23c1cd62e2418fa6ecdf2147dff90ecde7aaf566744b1903ae752f15e5930172462d2695f5dcab5aa9c5d050873a2d86a60dc32e2340                                 
File size: 4.67GB                          
Starting to update govbr dataset list files...                                        
Uploading SHA512SUMS...      
                                    
Uploading list HTML...                                                                                                                            
Exception in thread Thread-2:
Traceback (most recent call last):                                                                                                                
  File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner                                                                                               
    self.run()                                                                                                                                    
  File "/usr/local/lib/python3.8/site-packages/sentry_sdk/integrations/threading.py", line 69, in run                                                                       
    reraise(*_capture_exception())                                                                                                                
  File "/usr/local/lib/python3.8/site-packages/sentry_sdk/_compat.py", line 57, in reraise                                                                                  
    raise value                                                          
  File "/usr/local/lib/python3.8/site-packages/sentry_sdk/integrations/threading.py", line 67, in run                                                                       
    return old_run_func(self, *a, **kw)                
  File "/app/utils/minio.py", line 106, in run                                                                                                    
    self.print_status(                                                   
  File "/app/utils/minio.py", line 133, in print_status
    formatted_str = prefix + format_string(current_size, total_length, displayed_time)                                                                                      
  File "/app/utils/minio.py", line 164, in format_string                                                                                          
    frac = float(current_size) / total_length                        
ZeroDivisionError: float division by zero            
govbr/_meta/list.html: |####################| 0.00 MB/0.00 MB 100% [elapsed: 00:00 left: 00:00,  0.00 MB/sec]                                                               
New list html in https://data.brasil.io/dataset/govbr/_meta/list.html                 
Sentry is attempting to send 0 pending error messages                                 
Waiting up to 2 seconds
Press Ctrl-C to quit
                                    
real    7m49.926s         
user    1m49.169s                          
sys     0m52.695s

Provavelmente aconteceu porque essa Table tinha hidden=True.

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

2 participants