Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

gittip models __init__.py self._check_balances fails #2118

Closed
tomwaits opened this issue Mar 5, 2014 · 5 comments
Closed

gittip models __init__.py self._check_balances fails #2118

tomwaits opened this issue Mar 5, 2014 · 5 comments

Comments

@tomwaits
Copy link

tomwaits commented Mar 5, 2014

When ever models gittipdb is initialized self._check_balances fails

pid-10686 thread-4429590528 (Thread-1) updating homepage queries
pid-10686 thread-4429590528 (Thread-1) updated homepage queries in 0.04 seconds
pid-10686 thread-4429590528 (Thread-1) Traceback (most recent call last):
pid-10686 thread-4429590528 (Thread-1)   File "/Users/ilan/workspace/www.gittip.com/configure-aspen.py", line 57, in update_homepage_queries
pid-10686 thread-4429590528 (Thread-1)     website.db.self_check()
pid-10686 thread-4429590528 (Thread-1)   File "/Users/ilan/workspace/www.gittip.com/gittip/models/__init__.py", line 18, in self_check
pid-10686 thread-4429590528 (Thread-1)     self._check_balances()
pid-10686 thread-4429590528 (Thread-1)   File "/Users/ilan/workspace/www.gittip.com/gittip/models/__init__.py", line 91, in _check_balances
pid-10686 thread-4429590528 (Thread-1)     assert b == 0, "conflicting balances: {}".format(b)
pid-10686 thread-4429590528 (Thread-1) AssertionError: conflicting balances: 100

This seems related to issue #1118
I'll be poking around trying to fix this…

@tomwaits
Copy link
Author

tomwaits commented Mar 5, 2014

Seems this might be really trivial… there is no fake data for exchanges, the table is empty. Not sure yet how exchanges and transfer are related… will have to investigate a little further.

@zbynekwinkler
Copy link
Contributor

Have you run make data? See #1844.

@tomwaits
Copy link
Author

tomwaits commented Mar 6, 2014

I have. But didn't set the homepage update to 0, which is workaround but not a solution. Spending today reading docs to understand logic.

@chadwhitacre
Copy link
Contributor

I'm unclear on the steps to reproduce this problem. How can I repro this, @tomwaits?

@Changaco
Copy link
Contributor

Closing in favor of #2600.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants