Skip to content
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

pony.orm.dbapiprovider.OperationalError: no such column: ChannelNode.num_entries #7808

Closed
sentry-for-tribler bot opened this issue Jan 10, 2024 · 3 comments · Fixed by #7874
Closed
Assignees

Comments

@sentry-for-tribler
Copy link

Sentry Issue: TRIBLER-1HH

CoreCrashedError: The Tribler core has unexpectedly finished with exit code 1 and status: 0.

Error message: Application error
pony.orm.dbapiprovider.OperationalError: no such column: ChannelNode.num_entries[<relief>-core PID:9796] 2024-01-10 17:00:01,239 - ERROR <exception_handler:138> CoreExceptionHandler.unhandled_error_observer(): Call report callback
@xoriole xoriole changed the title pony.orm.dbapiprovider.OperationalError: no such column: ChannelNode.num_entries[<relief>-core PID:9796] 2024-01-10 17:00:01,239 - ERROR <... pony.orm.dbapiprovider.OperationalError: no such column: ChannelNode.num_entries Jan 10, 2024
@xoriole xoriole added this to the 7.14.0 milestone Jan 10, 2024
@qstokkink
Copy link
Contributor

Failing line from Sentry (7.13.1):

self.db.generate_mapping(
create_tables=create_db, check_tables=check_tables
) # Must be run out of session scope

Failing line on current main branch (after move refactoring):

self.db.generate_mapping(
create_tables=create_db, check_tables=check_tables
) # Must be run out of session scope

@kozlovsky
Copy link
Contributor

kozlovsky commented Jan 11, 2024

The error is from the application tester. If I understand correctly, the error happened the following way: first, tables in the database were created using the main branch (without the num_entries column), and then the repo was switched to the release branch, which expects the num_entries column in the database. In that case, it is not an error; it is just necessary to re-create the database with the correct columns.

But, the num_entries column, while removed from the main branch, is still mentioned in the json2pony_columns dict; it looks like it should be removed.

Copy link
Author

Sentry issue: TRIBLER-1HR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

4 participants