在db配置上db有密码,一切正常但是当我运行命令backup时执行-t db_backup --config-file /data/Backup/config.rb 备份只显示:
有人知道为什么备份gem有DB密码问题吗?
database PostgreSQL do |db|
# To dump all databases, set `db.name = :all` (or leave blank)
db.name = "app_production"
db.username = "ubuntu"
db.password = "343xxx"
db.host = "127.0.0.1"
db.port = 5432
# db.socket = "/tmp/pg.sock"
# When dumping all databases, `skip_tables` and `only_tables` are ignored.
db.skip_tables = ["skip", "these", "tables"]
db.only_tables = ["only", "these", "tables"]
db.additional_options = ["-xc", "-E=utf8"]
end
[2017/05/12 19:30:50][error] Model::Error: Backup for Description for db_backup (db_backup) Failed!
[2017/05/12 19:30:50][error] --- Wrapped Exception ---
[2017/05/12 19:30:50][error] Database::PostgreSQL::Error: Dump Failed!
[2017/05/12 19:30:50][error] Pipeline STDERR Messages:
[2017/05/12 19:30:50][error] (Note: may be interleaved if multiple commands returned error messages)
[2017/05/12 19:30:50][error]
[2017/05/12 19:30:50][error] pg_dump: [archiver (db)] connection to database "app_production" failed: FATAL: password authentication failed for user "ubuntu"
[2017/05/12 19:30:50][error] FATAL: password authentication failed for user "ubuntu"
[2017/05/12 19:30:50][error] The following system errors were returned:
[2017/05/12 19:30:50][error] Errno::EPERM: Operation not permitted - 'pg_dump' returned exit code: 1