Fix Django migration issue
- or -
Post a project like this1224
€40/hr(approx. $43/hr)
- Posted:
- Proposals: 7
- Remote
- #3072475
- Completed
Web / Software development, Mobile development, UI / UX Design, Internet Marketing, 24/7 technical support, Hosting
Toronto
Graphic Designer |Experienced Web Designer | Video/Audio Editor | PowerPoint/Keynote | Content Writer |
San Jose
1355656509990323785772717640343141646877095065908
Description
Experience Level: Expert
We are searching for a Django expert who can help us solve this blocking migration issue:
```bash
root@e525b816e0b0:~# syncwerk-server-manage.py migrate
Operations to perform:
Apply all migrations: admin_log, api2, api3, auth, avatar, base, captcha, contacts, contenttypes, database, group, invitations, notifications, options, post_office, profile, revision_tag, role_permissions, sessions, share, sites, syncwerk_server_models, tags, tenants, trusted_ip, two_factor, wiki
Running migrations:
Applying api2.0002_auto_20201017_1312... OK
[...]
Applying api3.0029_add_multi_file_to_meeting_room... OK
Applying api3.0030_auto_20201022_1120...Traceback (most recent call last):
File "./manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 204, in handle
fake_initial=fake_initial,
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/migrations/executor.py", line 115, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/migrations/executor.py", line 145, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/migrations/executor.py", line 244, in apply_migration
state = migration.apply(state, schema_editor)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/migrations/migration.py", line 129, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/migrations/operations/models.py", line 97, in database_forwards
schema_editor.create_model(model)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 319, in create_model
self.execute(sql, params or None)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 136, in execute
cursor.execute(sql, params)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/backends/utils.py", line 79, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/backends/utils.py", line 62, in execute
return self.cursor.execute(sql)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 101, in execute
return self.cursor.execute(query, args)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/MySQLdb/cursors.py", line 250, in execute
self.errorhandler(self, exc, value)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/MySQLdb/connections.py", line 50, in defaulterrorhandler
raise errorvalue
django.db.utils.OperationalError: (1050, "Table 'EmailChangingRequest' already exists")
```
```bash
root@e525b816e0b0:~# syncwerk-server-manage.py migrate
Operations to perform:
Apply all migrations: admin_log, api2, api3, auth, avatar, base, captcha, contacts, contenttypes, database, group, invitations, notifications, options, post_office, profile, revision_tag, role_permissions, sessions, share, sites, syncwerk_server_models, tags, tenants, trusted_ip, two_factor, wiki
Running migrations:
Applying api2.0002_auto_20201017_1312... OK
[...]
Applying api3.0029_add_multi_file_to_meeting_room... OK
Applying api3.0030_auto_20201022_1120...Traceback (most recent call last):
File "./manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 204, in handle
fake_initial=fake_initial,
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/migrations/executor.py", line 115, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/migrations/executor.py", line 145, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/migrations/executor.py", line 244, in apply_migration
state = migration.apply(state, schema_editor)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/migrations/migration.py", line 129, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/migrations/operations/models.py", line 97, in database_forwards
schema_editor.create_model(model)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 319, in create_model
self.execute(sql, params or None)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 136, in execute
cursor.execute(sql, params)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/backends/utils.py", line 79, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/backends/utils.py", line 62, in execute
return self.cursor.execute(sql)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 101, in execute
return self.cursor.execute(query, args)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/MySQLdb/cursors.py", line 250, in execute
self.errorhandler(self, exc, value)
File "/usr/share/python/syncwerk/restapi/lib/python2.7/site-packages/MySQLdb/connections.py", line 50, in defaulterrorhandler
raise errorvalue
django.db.utils.OperationalError: (1050, "Table 'EmailChangingRequest' already exists")
```
Syncwerk GmbH
100% (22)Projects Completed
14
Freelancers worked with
15
Projects awarded
31%
Last project
8 Jun 2022
Germany
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies