I, [2023-02-11T18:58:30.949060 #1] INFO – : \u003e sleep 5
2023-02-11 18:58:30.959 UTC [42] FATAL: /shared/postgres_data” 目录的数据目录权限无效
2023-02-11 18:58:30.959 UTC [42] DETAIL: 权限应为 u=rwx (0700) 或 u=rwx,g=rx (0750)。
I, [2023-02-11T18:58:35.952167 #1] INFO – :
I, [2023-02-11T18:58:35.952437 #1] INFO – : \u003e su postgres -c ‘createdb discourse’ || true
createdb: error: 无法连接到 template1 数据库:连接到套接字“/var/run/postgresql/.s.PGSQL.5432”上的服务器失败:不存在该文件或目录
服务器是否在本地运行并接受该套接字上的连接?
I, [2023-02-11T18:58:35.994953 #1] INFO – :
I, [2023-02-11T18:58:35.995243 #1] INFO – : \u003e su postgres -c ‘psql discourse -c "create user discourse;"’ || true
psql: error: 连接到套接字“/var/run/postgresql/.s.PGSQL.5432”上的服务器失败:不存在该文件或目录
服务器是否在本地运行并接受该套接字上的连接?
I, [2023-02-11T18:58:36.036721 #1] INFO – :
I, [2023-02-11T18:58:36.037043 #1] INFO – : \u003e su postgres -c ‘psql discourse -c "grant all privileges on database discourse to discourse;"’ || true
psql: error: 连接到套接字“/var/run/postgresql/.s.PGSQL.5432”上的服务器失败:不存在该文件或目录
服务器是否在本地运行并接受该套接字上的连接?
I, [2023-02-11T18:58:36.078384 #1] INFO – :
I, [2023-02-11T18:58:36.078703 #1] INFO – : \u003e su postgres -c ‘psql discourse -c "alter schema public owner to discourse;"’
psql: error: 连接到套接字“/var/run/postgresql/.s.PGSQL.5432”上的服务器失败:不存在该文件或目录
服务器是否在本地运行并接受该套接字上的连接?
I, [2023-02-11T18:58:36.120285 #1] INFO – :
I, [2023-02-11T18:58:36.120682 #1] INFO – : 终止异步进程
FAILED
Pups::ExecError: su postgres -c ‘psql discourse -c "alter schema public owner to discourse;"’ 失败,返回 #\u003cProcess::Status: pid 54 exit 2\u003e
失败位置:/usr/local/lib/ruby/gems/3.1.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn’
使用参数 “su postgres -c ‘psql $db_name -c \"alter schema public owner to $db_user;\"’” 执行失败
引导失败,退出代码为 2
引导失败 请向上滚动查找更早的错误消息,可能不止一个。
./discourse-doctor 可能有助于诊断问题。
4c2225e9c667f9fc2b7b4f9bd26c03f243e877b123be1d41a3c57bf90c049595