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.

Build fails on Postgres DB

See original GitHub issue

Make sure these boxes are checked before submitting your issue - thank you!

  • [X ] I have checked the superset logs for python stacktraces and included it here as text if any
  • [X ] I have reproduced the issue with at least the latest released version of superset
  • [X ] I have checked the issue tracker for the same issue and I haven’t found one similar

Superset version

master (0.25

Expected results)

Build should complete with a Postgres v10 DB

Actual results

Build fails with the following error:

INFO [alembic.runtime.migration] Running upgrade 956a063c52b3 -> 1226819ee0e3, Fix wrong constraint on table columns WARNI [root] Could not find or drop constraint on columns Traceback (most recent call last): File “/usr/local/lib/python3.4/site-packages/sqlalchemy/engine/base.py”, line 1193, in _execute_context context) File “/usr/local/lib/python3.4/site-packages/sqlalchemy/engine/default.py”, line 507, in do_execute cursor.execute(statement, parameters) psycopg2.InternalError: current transaction is aborted, commands ignored until end of transaction block sqlalchemy.exc.InternalError: (psycopg2.InternalError) current transaction is aborted, commands ignored until end of transaction block [SQL: “UPDATE alembic_version SET version_num=‘1226819ee0e3’ WHERE alembic_version.version_num = ‘956a063c52b3’”] (Background on this error at: http://sqlalche.me/e/2j85)

Steps to reproduce

Follow steps in https://github.com/apache/incubator-superset/blob/master/CONTRIBUTING.md for setting up DEV environment.

Note that this build runs fine with branch 0.25.5.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (15 by maintainers)

github_iconTop GitHub Comments

3reactions
villebrocommented, Jun 2, 2018

The problem here seems to be discrepancies between requirements.txt and setup.py, in this case the most recent stable version of flask-appbuilder (1.11.1) and what is defined in requirements.txt (1.10.0). I think it would be wise to have a CI test that relies only on the deps defined in setup.py, as that’s what pip will ultimately be using.

1reaction
mistercrunchcommented, Jun 4, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Build fails on Postgres DB #5088 - apache/superset - GitHub
No, the build does fail. There is the warning that is logged when the exception is caught, but the exception invalidates the cursor,...
Read more >
Issue running make on a postgres database - Stack Overflow
After rerunning it a few more times it finished successfully. No changes were made to the files or methodology.
Read more >
Documentation: 15: Appendix A. PostgreSQL Error Codes
All messages emitted by the PostgreSQL server are assigned five-character error codes that follow the SQL standard's conventions for “SQLSTATE” codes.
Read more >
10 Common PostgreSQL Errors - Percona
1 – Is the PostgreSQL Server Running Locally and Accepting? · 2 – Initdb Cannot Be Run as Root · 3 – Initdb...
Read more >
Postgre SQL errors – common codes and messages - Paessler
For easy troubleshooting, make sure you have logged in to the correct user. If the user does not exist yet, create the user...
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