GNU/Linux >> Linux の 問題 >  >> Linux

PostgreSQLデータベースサーバーの起動に失敗しました–UNIXプロセス用の未登録の認証エージェント[解決済み]

質問:

PostgreSQLデータベースサーバーの起動に失敗しました–UNIXプロセス用の未登録の認証エージェント」というエラーが発生しました ‘CentOSマシンでPostgreSQLサーバーを起動しているとき。このエラーは、UNIXプロセスの認証エージェントが未登録であるためにサービスが失敗したことを示しており、 polkitdによって報告されます。 サービス。 polkitd はシステムデーモンであり、その認証エージェントはアクションを実行する前にユーザーのIDを確認します。コマンド「journalctl-xe」および/var / log / secure 同じことを明らかにします。

完全なエラーメッセージは次のとおりです。

# service postgresql start
 :::::::::::::::::::::::::::::::::::::
 test.in systemd[1]: Unit postgresql.service entered failed state.
 test.in systemd[1]: postgresql.service failed.
 test.in polkitd[18278]: Unregistered Authentication Agent for unix-process:22928:182581476 (system bus name :1.1038, object path
 test.in chronyd[513]: Source 45.125.255.54 replaced with 123.108.200.124
 test.in polkitd[18278]: Registered Authentication Agent for unix-process:22988:182656818 (system bus name :1.1039 [/usr/bin/pktty
 test.in systemd[1]: Starting PostgreSQL database server...

問題を解決する方法は?

解決策:

私は同様のエラーに直面しましたが、以下の手順で修正されました。

ステップ1 postgresに切り替えます ユーザー

# su - postgres

ステップ2: データベースサーバーを初期化します

$ initdb
 The files belonging to this database system will be owned by user "postgres".
 This user must also own the server process.
 :::::::::::::::::::::::::::::::::::::::::::
 WARNING: enabling "trust" authentication for local connections
 You can change this by editing pg_hba.conf or using the option -A, or
 --auth-local and --auth-host, the next time you run initdb.
 Success. You can now start the database server using:
 postgres -D /var/lib/pgsql/data
 or
 pg_ctl -D /var/lib/pgsql/data -l logfile start
を使用してデータベースサーバーを起動できます。

ステップ3:

$ exit

ステップ4: PostgreSQLサーバーを起動します

# service postgresql start
 Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled; vendor
 Active: active (running) since Wed 2016-08-31 17:43:58 IST; 10s ago
 Process: 23144 ExecStart=/usr/bin/pg_ctl start -D ${PGDATA} -s -o -p ${PGPORT
 Process: 23138 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGDATA} (code=
 Main PID: 23147 (postgres)

そして、このリンクによると、 polkitdを無視することができます エラーメッセージ。


Linux
  1. PostgreSQLデータベースサーバー

  2. OpenStack VM起動エラー–最後の例外:ポートのバインドに失敗しました[解決済み]

  3. 認識されないVMオプションMaxMetaspaceSize=256m –oxd-serverが起動に失敗しました[解決策]

  1. Thesql Community Server(5.7)の起動に失敗しましたか?

  2. Ubuntu20.04でSSHの多要素認証を設定する

  3. SQLServerのパフォーマンスを向上させるための5つのクイックヒント

  1. MySQLサーバーの5つの最高の無料代替品

  2. Systemd postgresql 起動スクリプト

  3. Postgres エラー メッセージ:FATAL:Ident authentication failed for user ...