Problem with debian uipgrade
Hi!
Today I tried a mailman3 upgrade of the debian packages and I got this error:
django.db.migrations.exceptions.NodeNotFoundError: Migration hyperkitty.0007_allauth_20160808_1604 dependencies reference nonexistent parent node ('socialaccount', '0003_extra_data_default_dict')
Anyone has a idea howto fix those?
thank you.
MfG, Lars Schimmer
TU Graz, Institut für ComputerGraphik & WissensVisualisierung Tel: +43 316 873-5405 E-Mail: l.schimmer@cgv.tugraz.at Fax: +43 316 873-5402 PGP-Key-ID: 0x4A9B1723
On 3/8/22 10:10, Lars Schimmer wrote:
Hi!
Today I tried a mailman3 upgrade of the debian packages and I got this error:
django.db.migrations.exceptions.NodeNotFoundError: Migration hyperkitty.0007_allauth_20160808_1604 dependencies reference nonexistent parent node ('socialaccount', '0003_extra_data_default_dict')
Anyone has a idea howto fix those?
This is a reference to a migration in django-allauth. is django-allauth installed. If so, what version?
What does the database query
SELECT app, name FROM django_migrations WHERE app = 'socialaccount';
show. It should be
app | name
---------------+------------------------------
socialaccount | 0001_initial
socialaccount | 0002_token_max_lengths
socialaccount | 0003_extra_data_default_dict
(3 rows)
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 3/8/22 11:40, Mark Sapiro wrote:
On 3/8/22 10:10, Lars Schimmer wrote:
Hi!
Today I tried a mailman3 upgrade of the debian packages and I got this error:
django.db.migrations.exceptions.NodeNotFoundError: Migration hyperkitty.0007_allauth_20160808_1604 dependencies reference nonexistent parent node ('socialaccount', '0003_extra_data_default_dict')
Anyone has a idea howto fix those?
This is a reference to a migration in django-allauth. is django-allauth installed. If so, what version?
What does the database query
SELECT app, name FROM django_migrations WHERE app = 'socialaccount';
show. It should be
app | name ---------------+------------------------------ socialaccount | 0001_initial socialaccount | 0002_token_max_lengths socialaccount | 0003_extra_data_default_dict (3 rows)
Possibly one way to fix this is to run
django-abmin migrate socialaccount
where django-admin is the name of your django management command.
Then running django-abmin migrate
should succeed. The issue appears to
be due to the face that django-admin migrate
runs the migrations in
alphabetical order by app. This is fine if migrations were run during
the period after socialaccount.0003_extra_data_default_dict was created
and before hyperkitty.0007_allauth_20160808_1604 was created, but it's
an issue in an installation that wants to migrate
hyperkitty.0007_allauth_20160808_1604 without having previously migrated
socialaccount.0003_extra_data_default_dict.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Am 08.03.2022 um 21:08 schrieb Mark Sapiro:
Possibly one way to fix this is to run
django-abmin migrate socialaccount
where django-admin is the name of your django management command.
Then running
django-abmin migrate
should succeed. The issue appears to be due to the face thatdjango-admin migrate
runs the migrations in alphabetical order by app. This is fine if migrations were run during the period after socialaccount.0003_extra_data_default_dict was created and before hyperkitty.0007_allauth_20160808_1604 was created, but it's an issue in an installation that wants to migrate hyperkitty.0007_allauth_20160808_1604 without having previously migrated socialaccount.0003_extra_data_default_dict.
Thx for your always competent answers. In this case I just needed to uncomment the not needed socialaccount lines in mailman3.cfg. As we do not use them.
And now I hope for a debian package upgradem or I need to replace them with virtuelenv install as soon as I need to upgrade.
MfG, Lars Schimmer
TU Graz, Institut für ComputerGraphik & WissensVisualisierung Tel: +43 316 873-5405 E-Mail: l.schimmer@cgv.tugraz.at Fax: +43 316 873-5402 PGP-Key-ID: 0x4A9B1723
Am 08.03.2022 um 19:10 schrieb Lars Schimmer:
Hi!
Today I tried a mailman3 upgrade of the debian packages and I got this error:
django.db.migrations.exceptions.NodeNotFoundError: Migration hyperkitty.0007_allauth_20160808_1604 dependencies reference nonexistent parent node ('socialaccount', '0003_extra_data_default_dict')
Anyone has a idea howto fix those?
I needed to enable the socialauth section in INSTALLEDAPPS and it worked.
thank you.
MfG, Lars Schimmer
MfG, Lars Schimmer
TU Graz, Institut für ComputerGraphik & WissensVisualisierung Tel: +43 316 873-5405 E-Mail: l.schimmer@cgv.tugraz.at Fax: +43 316 873-5402 PGP-Key-ID: 0x4A9B1723
participants (2)
-
Lars Schimmer
-
Mark Sapiro