Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upError running tutorial migration #798
Comments
This comment has been minimized.
|
Can you run with `env RUST_BACKTRACE=full` in front of the command?
What version of postgres are using? On which platform?
… Am 13.03.2017 um 21:00 schrieb packapotatoes ***@***.***>:
I'm working on the getting started guide, but when i run diesel migration run I get the following cryptic error:
Running migration 20170313193655
thread 'main' panicked at 'internal error: entered unreachable code: Per PGs documentation, all errors should have a message', .cargo/registry/src/github.com-1ecc6299db9ec823/diesel-0.11.4/src/pg/connection/result.rs:91
note: Run with `RUST_BACKTRACE=1` for a backtrace.
I believe I have done everything correctly preceding this.
I am using
• rustc 1.17.0-nightly
• diesel 0.11.0
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This comment has been minimized.
packapotatoes
commented
Mar 13, 2017
|
I am running Linux Mint 18.1 (Ubuntu 16.04) Here is the additional output:
|
This comment has been minimized.
|
|
This comment has been minimized.
|
Thanks!
`postgres —version` should work. Otherwise, `apt-cache show postgresql` (or whatever that package is called).
… Am 13.03.2017 um 21:10 schrieb packapotatoes ***@***.***>:
I am running Linux Mint 18.1 (Ubuntu 16.04)
I believe I am using postgres 9.6, how can I check for sure?
Here is the additional output:
Running migration 20170313193655
thread 'main' panicked at 'internal error: entered unreachable code: Per PGs documentation, all errors should have a message', .cargo/registry/src/github.com-1ecc6299db9ec823/diesel-0.11.4/src/pg/connection/result.rs:91
stack backtrace:
0: 0x55c054dba043 - std::sys:
|
This comment has been minimized.
|
The last time I had an error like that it's because I was trying to run an empty migration. I fixed that in 2c4db01 There were other status that diesel treats as an error and do not have error messages. |
This comment has been minimized.
packapotatoes
commented
Mar 13, 2017
|
@Eijebong up.sql is identical to what is on the getting started page |
This comment has been minimized.
|
Are you able to run the migrations from the examples directory in our source tree? (e.g. |
This comment has been minimized.
packapotatoes
commented
Mar 14, 2017
|
well....I'm an idiot. Instead of editing the created up.sql and down.sql I accidentally made my own new files in the wrong directory. Problem solved, thanks all. |
packapotatoes commentedMar 13, 2017
I'm working on the getting started guide, but when i run
diesel migration runI get the following cryptic error:I believe I have done everything correctly preceding this.
I am using