2016-09-02 26 views
2

に指定されていないPostgreSQLユーザ名私はフェニックスアプリをロッキングよ、と私はmix ecto.migrateを実行しようとすると、私は次のようなエラーに遭遇:ERROR:スタートアップパケット

GenServer #PID<0.181.0> terminating 
** (Postgrex.Error) FATAL (invalid_authorization_specification): no PostgreSQL user name specified in startup packet 
    (db_connection) lib/db_connection/connection.ex:148: DBConnection.Connection.connect/2 
    (connection) lib/connection.ex:622: Connection.enter_connect/5 
    (stdlib) proc_lib.erl:240: :proc_lib.init_p_do_apply/3 
Last message: nil 
State: Postgrex.Protocol 

をいくつかのQ & Aがいることをそこありますこの特定のエラーについて触れていますが、残念ながらそれらが有用であるとは私は見当たりませんでした。だから私はここに向かう!

追加環境情報:MacのOS X、Postgres.app、PGバージョン非空のユーザー名が含まれている必要があり、クライアントからサーバーに送信された9.5

答えて

3

のStartupMessage。 as the documentationさんの言葉:

StartupMessage (F)

[...]

The protocol version number is followed by one or more pairs of parameter name and value strings. A zero byte is required as a terminator after the last name/value pair. Parameters can appear in any order. user is required, others are optional. [...]

私の推測では、空のユーザー名を指定しています。

+0

よろしくお願いします。代わりにエラーメッセージが表示されます – keruilin

関連する問題