question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failure when attempting to upgrade from dj-stripe 2.6.1 to 2.6.2

See original GitHub issue

Software versions

  • Upgrading from dj-stripe version: 2.6.1
  • Upgrading to dj-stripe version: 2.6.2
  • Python version: 3.9
  • Django version: 4.0.6
  • Stripe API version: Last
  • Database type and version: PostgreSQL 13.7
  • Failing migration id: 0011_alter_invoiceitem_tax_rates_and_more

Can you reproduce the issue with the latest version of master? Yes

Describe the issue Upgraded djstripe from 2.6.1 to 2.6.2. I succeeded to migrate on local development environment, but once deployed on Heroku it doesn’t find the last migration file from djstripe 0011_alter_invoiceitem_tax_rates_and_more:

Traceback (most recent call last):

  File "/app/manage.py", line 22, in <module>
    main()
  File "/app/manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/app/.heroku/python/lib/python3.9/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
    utility.execute()
  File "/app/.heroku/python/lib/python3.9/site-packages/django/core/management/__init__.py", line 440, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/app/.heroku/python/lib/python3.9/site-packages/django/core/management/base.py", line 414, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/app/.heroku/python/lib/python3.9/site-packages/django/core/management/base.py", line 460, in execute
    output = self.handle(*args, **options)
  File "/app/.heroku/python/lib/python3.9/site-packages/django/core/management/base.py", line 98, in wrapped
    res = handle_func(*args, **kwargs)
  File "/app/.heroku/python/lib/python3.9/site-packages/django/core/management/commands/migrate.py", line 108, in handle
    executor = MigrationExecutor(connection, self.migration_progress_callback)
  File "/app/.heroku/python/lib/python3.9/site-packages/django/db/migrations/executor.py", line 18, in __init__
    self.loader = MigrationLoader(self.connection)
  File "/app/.heroku/python/lib/python3.9/site-packages/django/db/migrations/loader.py", line 58, in __init__
    self.build_graph()
  File "/app/.heroku/python/lib/python3.9/site-packages/django/db/migrations/loader.py", line 276, in build_graph
    self.graph.validate_consistency()
  File "/app/.heroku/python/lib/python3.9/site-packages/django/db/migrations/graph.py", line 198, in validate_consistency
    [n.raise_error() for n in self.node_map.values() if isinstance(n, DummyNode)]
  File "/app/.heroku/python/lib/python3.9/site-packages/django/db/migrations/graph.py", line 198, in <listcomp>
    [n.raise_error() for n in self.node_map.values() if isinstance(n, DummyNode)]
  File "/app/.heroku/python/lib/python3.9/site-packages/django/db/migrations/graph.py", line 60, in raise_error
    raise NodeNotFoundError(self.error_message, self.key, origin=self.origin)
django.db.migrations.exceptions.NodeNotFoundError: Migration cryptorganiz.0002_user_customer_user_subscription dependencies reference nonexistent parent node ('djstripe', '0011_alter_invoiceitem_tax_rates_and_more')

Seems similar to #1649

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
jleclanchecommented, Aug 22, 2022

@hbradlow Im hoping to have dj-stripe 2.7.0 out this week which will include the fix.

2reactions
jleclanchecommented, Sep 11, 2022

@hbradlow dj-stripe 2.7.0rc2 has been out for a little while, please test it and report back. We’ve gotten very little feedback on the release candidate which makes me feel uncomfortable releasing final stable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dj-stripe 2.6 release notes
It is not possible to upgrade to dj-stripe 2.6.0 from versions older than 2.3.0. To upgrade from an older version, first upgrade to...
Read more >
dj-stripe - PyPI
dj-stripe implements all of the Stripe models, for Django. Set up your webhook endpoint and start receiving model updates. You will then have...
Read more >
dj-stripe Documentation - Read the Docs
When upgrading version Stripe only allows you to upgrade to ... email to a customer when his payment has failed or trial period...
Read more >
pfSense upgrade from 2.5.1 to 2.6.0 hanging at "Fetching ...
While attempting to run an upgrade from pfSense 2.5.1 to 2.60 I keep having failures. I attempted to run this from the shell, ......
Read more >
How to use multiple Stripe API keys in Djstripe webhook, is it ...
Since there are only two sets of API keys, I can try to use one key in try block, then use another if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found