-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
django db "duplicate column name" #345
Comments
Odd. You can probably just drop the column and restart the container to fix this though. Something like: ALTER TABLE sync_source DROP COLUMN embed_metadata; and then immediately restart the container. Note this will reset all your sources to If more people report this I'll investigate the issue further. |
sync_media does not seem to have a column for embed_metadata; however, sync_source does. Dropping embed_metadata fixes that issue, but it then gives the same error regarding embed_thumbnail. Dropping that then causes an error with enable_sponsorblock. Once I drop all three of the aforementioned columns, I get the following: 2023-02-20 02:16:27.559061+00:00File "/usr/local/lib/python3.9/dist-packages/MySQLdb/connections.py", line 254, in query |
Ah right you are, sorry I pasted the wrong table name. I've edited the comment. As for the other issue I'll push a fix shortly. |
Thanks very much, I appreciate the quick response! |
This should be fixed in |
Pulled latest, now we have: 2023-02-20 03:40:18.000707+00:00File "/usr/local/lib/python3.9/dist-packages/MySQLdb/connections.py", line 254, in query |
I'm seeing the same issue using a mysql container and haven't touch the database schema: |
Thanks for the confirmation @davidkylenz . @davidancalagon Just pushed another tweak, try |
Regarding the "duplicate column name" - did you guys use |
I'm using :latest. |
It appears the latest push fixed the issue. I thank you for all your hard work. |
@kuhnchris I'm guessing this only impacted people who use MySQL as a backend and also updated to the interim @davidancalagon @davidkylenz you OK for this to be closed? |
Yes, issue fully resolved on this end. |
Yep, all good. |
Getting this issue when upgrading to the latest docker image:
2023-02-20 01:39:43.486762+00:00File "/usr/local/lib/python3.9/dist-packages/MySQLdb/connections.py", line 254, in query
2023-02-20 01:39:43.486780+00:00_mysql.connection.query(self, query)
2023-02-20 01:39:43.486796+00:00django.db.utils.OperationalError: (1060, "Duplicate column name 'embed_metadata'")
2023-02-20 01:39:43.654574+00:00s6-rc: warning: unable to start service tubesync-init: command exited 1
Seems to be doing a migration, and fails here every time at connections.py.
Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered: