tanuki_12138 2021-08-20 13:37 采纳率: 0%
浏览 30
已结题

gitlab修改配置文件后报错

There was an error running gitlab-ctl reconfigure:

execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] (postgresql::enable line 75) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8 ----
STDOUT: The files belonging to this database system will be owned by user "gitlab-psql".
This user must also own the server process.

The database cluster will be initialized with locale "zh_CN.GB18030".
STDERR: initdb: encoding mismatch
The encoding you selected (UTF8) and the encoding that the
selected locale uses (GB18030) do not match. This would lead to
misbehavior in various character string processing functions.
Rerun initdb and either do not specify an encoding explicitly,
or choose a matching combination.
---- End output of /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8 ----
Ran /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8 returned 1

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 8月28日
    • 创建了问题 8月20日

    悬赏问题

    • ¥15 Fluent udf 编写问题
    • ¥15 求合并两个字节流VB6代码
    • ¥15 Pyqt 如何正确的关掉Qthread,并且释放其中的锁?
    • ¥30 网站服务器通过node.js部署了一个项目!前端访问失败
    • ¥15 WPS访问权限不足怎么解决
    • ¥15 java幂等控制问题
    • ¥15 海湾GST-DJ-N500
    • ¥15 氧化掩蔽层与注入条件关系
    • ¥15 Django DRF 如何反序列化得到Python对象类型数据
    • ¥15 多数据源与Hystrix的冲突