membermatters / MemberMatters

An open source membership, access and payments portal for makerspaces and community groups.
https://membermatters.org
MIT License
41 stars 23 forks source link

Migration error on fresh install #94

Closed dtbaker closed 3 years ago

dtbaker commented 3 years ago

Hey all, trying this out for our group.

I cannot get past the memberbucks.0002_auto_20181018_1949 migration, with an error Related model 'group.CauseFund' cannot be resolved.

Any ideas how I can get past this failing migration?

It's this one: https://github.com/membermatters/MemberMatters/blob/main/memberportal/memberbucks/migrations/0002_auto_20181018_1949.py#L18


PORTAL_LOG_LOCATION=errors.log PORTAL_DB_LOCATION=db.sqlite3 python3 manage.py migrate
/home/dtbaker/.local/lib/python3.8/site-packages/django/db/models/fields/__init__.py:1365: RuntimeWarning: DateTimeField Meeting.date received a naive datetime (2020-11-18 20:26:01.676372) while time zone support is active.
  warnings.warn("DateTimeField %s received a naive datetime (%s)"
Operations to perform:
  Apply all migrations: access, admin, api_general, api_meeting, auth, contenttypes, group, memberbucks, profile, sessions
Running migrations:
  Applying group.0001_initial... OK
  Applying contenttypes.0001_initial... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0001_initial... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying auth.0009_alter_user_last_name_max_length... OK
  Applying access.0001_initial... OK
  Applying profile.0001_initial... OK
  Applying access.0002_auto_20181006_1453... OK
  Applying access.0003_interlocklog_user_off... OK
  Applying access.0004_accesscontrolleddevice_locked_out... OK
  Applying access.0005_accesscontrolleddevice_play_theme... OK
  Applying access.0006_auto_20181204_0106... OK
  Applying access.0007_auto_20181204_0417... OK
  Applying access.0008_auto_20200405_1813... OK
  Applying access.0009_accesscontrolleddevice_exempt_signin... OK
  Applying access.0010_accesscontrolleddevice_hidden... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying admin.0003_logentry_add_action_flag_choices... OK
  Applying api_general.0001_initial... OK
  Applying api_general.0002_auto_20200519_2259... OK
  Applying api_general.0003_kiosk_authorised... OK
  Applying api_general.0004_sitesession... OK
  Applying api_general.0005_emailverificationtoken... OK
  Applying group.0002_auto_20181018_0313... OK
  Applying group.0003_causefund... OK
  Applying group.0004_causes_leaders... OK
  Applying group.0005_causes_hidden... OK
  Applying group.0006_auto_20200127_1112... OK
  Applying group.0007_auto_20200127_1209... OK
  Applying group.0008_auto_20200326_2011... OK
  Applying api_meeting.0001_initial... OK
  Applying api_meeting.0002_auto_20200327_0046... OK
  Applying api_meeting.0003_auto_20200329_1540... OK
  Applying api_meeting.0004_auto_20200330_0053... OK
  Applying auth.0010_alter_group_name_max_length... OK
  Applying auth.0011_update_proxy_permissions... OK
  Applying group.0009_auto_20200405_1813... OK
  Applying group.0010_auto_20200405_1819... OK
  Applying group.0011_auto_20200405_1820... OK
  Applying memberbucks.0001_initial... OK
  Applying memberbucks.0002_auto_20181018_1949...Traceback (most recent call last):

ValueError: Related model 'group.CauseFund' cannot be resolved
Sentry is attempting to send 0 pending error messages
Waiting up to 2 seconds
Press Ctrl-C to quit
jabelone commented 3 years ago

Hi @dtbaker, not sure if you're the one who emailed me about a week ago. If so, sorry! I've been pretty sick and haven't had a chance to get back to you yet.

I haven't done a full install from scratch in a little while so there may be a random migration bug that crept in there. Let me have a look for you and I'll get back to you within a few days. :)

P.s. thanks for trying this out!

jabelone commented 3 years ago

This should be fixed in the latest round of updates. Please try again and let me know if you still have any problems! (feel free to reopen this if you do)

jabelone commented 3 years ago

Just to add to this, I've spent the last few weeks focusing on the first time installation process and documentation. There's been changes which should make it much easier to setup and I've done multiple setups from scratch which have worked great for me. If you've had any other troubles, give the latest version a go.

https://github.com/membermatters/MemberMatters/releases/tag/v2.1.0

Cheers!