The error report is shown in the figure
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 49) 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.
STDERR: initdb: error: invalid locale settings; check LANG and LC_* environment variables
---- 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
Default character set issues
Ensure that there is more than 4G in the
Solution process:
vim /etc/profile
# Add the following to the end of the configuration file
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# reread the environment variables
[root@localhost src]# source /etc/profile
# Reload
[root@localhost src]# gitlab-ctl reconfigure
It is best to change the password the first time you enter
Details: > https://blog.csdn.net/weixin_46115601/article/details/120721246
Read More:
- [Solved] sys.stderr.write(f“ERROR: {exc}“) SyntaxError: invalid syntax
- [Solved] ubuntu Run jupyter Error: print(‘Error in generated code:‘, file=sys.stderr) SyntaxError: invalid syntax
- [Realtek sdk-4.4.1] RTL8198D How to Fix pptp/l2tp HW checksum error issue
- ERROR: Invalid subnet : invalid CIDR address: [How to Fix]
- How to Check Password Modification Complexity
- VMware: vmw_ ioctl_ Command error invalid parameter [How to Solve]
- Using JWT of distributed deployment services Error: JWT check failure:
- CentOS Yum error: cannot retrieve repository metadata (repomd.xml) for repository:
- [Solved] Fluent error: invalid command [initialize-flow
- Problem solving / etc/ rc.local The boot entry of the file configuration is invalid
- [Solved] CentOS Start Neo4j Database Error: Error: A JNI error has occurred, please check your installation and try again
- Nginx error: nginx: [error] invalid PID number ““ in “/run/nginx.pid“
- [Solved] Except CvBridgeError,e:SyntaxError:invalid syntax
- [Solved] check_urdf demo05_test.urdf Error: Error document empty. at line 71 in /build/urdfdom-YM
- [Solved] Yum Install Software Error: Invalid configuration value: failovermethod=priority…
- Solution to gzip: stdin: invalid compressed data — format violated error in decompressing. Tgz file under Linux
- [Solved] sed -i error: sed: -e expression #1, char 44: invalid reference \1 on `s’ command’s RHS
- [Solved] Environment: failed conda all InvalidVersionSpecError: Invalid version spec: =2.7
- [Solved] Invalid signature error for ROS repository while trying to do sudo apt-get update