-
Notifications
You must be signed in to change notification settings - Fork 260
[Nikhil ad-hoc] [2] (4) Trying to access db_version when starting up kelp with db before the table even exists? #514
Comments
This is a bug report from the community. They are running kelp with the postgres feature enabled from the config file. They are unable to start kelp because it tries to access the db_version table although the db_version table does not exist in their db. IIRC all versions of kelp build the db_version as part of the schema from version 1 of the db onwards. The task in this issue is to repro the above and confirm whether this is a bug or not and if it's a bug to find the solution and fix it. |
Describe the bug Expected behavior Frequency Steps To Reproduce On Ubuntu 18 and watch crash 😢 and in a second run try the error is Possible Solution I think this error can be solved if the correct order of the creation of the database is verified, since I guess, kelp try to access the DB version before inserting these records. Environment Context It should be clarified that I use the demo configuration files for this test, but the same thing happens to me if I configure the files for other strategies, I have tried with buysell and mirror. im using postgres on windows |
@debnil Hello again, for anything you need to know about this error or do a related test, please let me know! |
@theclabs will do! On my docket for the next couple days, so expect a message soon if I need anything else :) |
@theclabs: Unfortunately, I was unable to reproduce this from the tarfile. (Note that I used Have you confirmed the correctness of your Postgres username and password, separately and before using it on Kelp? I did that and had no issues creating a new database called
Past that, I'm not too certain why this bug would surface in Linux but not OS X. Tagging in @nikhilsaraf for any thoughts on other ways to debug. |
Looking into this. I got a SQL error when running under linux with postgres 9.3.24, maybe it's with the SQL version. @theclabs can you try running with SQL 12.1+? our circle ci instance runs on Linux and uses 12.1 |
@nikhilsaraf Hello, I just verified, the current version I had is PostgreSQL 11.5 in windows. |
@theclabs added to README, thanks for filing the issue and let me know if you run into any more issues with Kelp :) |
Reported by someone in the community. Need to look into this.
// see a sample bug report here: #1
Describe the bug
// A succinct description of the buggy behavior.
// This section includes what the bot is doing and why you think it is incorrect.
The bot ...
Expected behavior
// A succinct description of what you expected to happen.
I think the correct behavior in this situation is for the bot to ...
Frequency
// How often does this happen?
// Unpredictable = it's hard to predict when it will happen
// Sometimes = it happens every now and then but there's no pattern to it
// Always = it always happens consistently at the same point
The frequency is: ...
Steps To Reproduce
// A concise description of the steps to reproduce the buggy behavior along with screenshots wherever applicable:
Here are the steps to reproduce the issue (see attachments in section below):
...
Possible Solution
// Optional, suggest a fix.
This bug can be fixed by ...
Your Environment
// Run
kelp version
to get the version and build information and paste it here// cli version: v1.0.0-rc1
// gui version: v0.0.1
// git hash: 1bcc4e9
// build date: 20180813T013016Z
// GOOS: linux
// GOARCH: amd64
...
Context
// A succinct description of how has this bug has affected you or prevented you from accomplishing what you wanted.
I am unable to ... because of this bug.
Attachments
// Attach any relevant configuration files, logs, tx hashes, etc. here.
The text was updated successfully, but these errors were encountered: