简体   繁体   中英

Soda CLI show warning : Migrator: unable to dump schema: exec: "pg_dump": executable file not found in $PATH

I'm new on using gobuffalo, and every time i run migrate always show this warning. What is the meaning of that warning?

> soda migrate up
v5.3.1

[POP] 2021/05/25 14:17:12 info - > create_products
[POP] 2021/05/25 14:17:12 info - Successfully applied 1 migrations.
[POP] 2021/05/25 14:17:12 info - 0.0829 seconds
[POP] 2021/05/25 14:17:12 warn - Migrator: unable to dump schema: exec: "pg_dump": executable file not found in $PATH

Is there something wrong in my server or this warning not effect anything? any help will be appreciated.

Thank you!

When you run the soda CLI for executing the migrations, soda applies the migrations, then it tries to dump the current database schema using the database native tool.

This warning only says the pg_dump executable was not found on your server, and soda couldn't dump the current schema. Since the migrations run fine, you can safely ignore this warning.

I just added in PATH variable location to PostgreSQL/bin directory. For example how PATH variable can be change in Windows can be found: https://www.computerhope.com/issues/ch000549.htm

For me it solved the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM