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

Creation of Sqlite database fails #5390

Open
kadaan opened this issue Dec 31, 2024 · 0 comments
Open

Creation of Sqlite database fails #5390

kadaan opened this issue Dec 31, 2024 · 0 comments
Labels

Comments

@kadaan
Copy link

kadaan commented Dec 31, 2024

What went wrong?

What happened:
Initial creation of sqlite database fails during migrations run:

/usr/local/lib/python3.12/site-packages/telegram/utils/request.py:49: UserWarning: python-telegram-bot is using upstream urllib3. This is allowed but not supported by python-telegram-bot maintainers.                                                                                 
   warnings.warn(                                                                                                                                                                                                                                                                       
 Operations to perform:                                                                                                                                                                                                                                                                 
   Apply all migrations: admin, alerts, auth, auth_token, base, contenttypes, email, exotel, fcm_django, google, heartbeat, labels, mobile_app, oss_installation, phone_notifications, schedules, sessions, slack, social_django, telegram, twilioapp, user_management, webhooks, zvonok
 Running migrations:                                                                                                                                                                                                                                                                    
   Applying contenttypes.0001_initial... OK                                                                                                                                                                                                                                             
   Applying auth.0001_initial... OK                                                                                                                                                                                                                                                     
   Applying admin.0001_initial... OK                                                                                                                                                                                                                                                    
   Applying admin.0002_logentry_remove_auto_add... OK                                                                                                                                                                                                                                   
   Applying admin.0003_logentry_add_action_flag_choices... OK                                                                                                                                                                                                                           
   Applying alerts.0001_squashed_initial... OK                                                                                                                                                                                                                                          
   Applying slack.0001_squashed_initial... OK                                                                                                                                                                                                                                           
   Applying user_management.0001_squashed_initial... OK                                                                                                                                                                                                                                 
   Applying user_management.0002_auto_20220705_1214... OK                                                                                                                                                                                                                               
   Applying user_management.0003_user_hide_phone_number... OK                                                                                                                                                                                                                           
   Applying user_management.0004_auto_20221025_0316... OK                                                                                                                                                                                                                               
   Applying user_management.0005_rbac_permissions... OK                                                                                                                                                                                                                                 
   Applying user_management.0006_organization_uuid... OK                                                                                                                                                                                                                                
   Applying user_management.0007_organization_deleted_at... OK                                                                                                                                                                                                                          
   Applying user_management.0008_organization_is_grafana_incident_enabled... OK                                                                                                                                                                                                         
   Applying user_management.0009_organization_cluster_slug... OK                                                                                                                                                                                                                        
   Applying webhooks.0001_initial... OK                                                                                                                                                                                                                                                 
   Applying telegram.0001_squashed_initial... OK                                                                                                                                                                                                                                        
   Applying slack.0002_squashed_initial... OK                                                                                                                                                                                                                                           
   Applying schedules.0001_squashed_initial... OK                                                                                                                                                                                                                                       
 Traceback (most recent call last):                                                                                                                                                                                                                                                     
   File "/usr/local/lib/python3.12/site-packages/django/db/backends/utils.py", line 89, in _execute                                                                                                                                                                                     
     return self.cursor.execute(sql, params)                                                                                                                                                                                                                                            
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                                            
   File "/usr/local/lib/python3.12/site-packages/django/db/backends/sqlite3/base.py", line 328, in execute                                                                                                                                                                              
     return super().execute(query, params)                                                                                                                                                                                                                                              
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                                              
 sqlite3.OperationalError: disk I/O error                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                                                        
 The above exception was the direct cause of the following exception:                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                        
 Traceback (most recent call last):                                                                                                                                                                                                                                                     
   File "/etc/app/manage.py", line 34, in <module>                                                                                                                                                                                                                                      
     execute_from_command_line(sys.argv)                                                                                                                                                                                                                                                
   File "/usr/local/lib/python3.12/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line                                                                                                                                                            
     utility.execute()                                                                                                               
... 

What did you expect to happen:
Creation of sqlite database to work.

How do we reproduce it?

With no sqlite database file, run migrations.

Grafana OnCall Version

1.13.11

Product Area

Other

Grafana OnCall Platform?

None

User's Browser?

No response

Anything else to add?

No response

@kadaan kadaan added the bug Something isn't working label Dec 31, 2024
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

1 participant