gitlab.rb 파일 등 gitlab 관련 설정을 변경하고 gitlab-ctl reconfigure을 시도 하는데 아래와 같은
에러 메세지가 출력 되는 경우가 있다.
Running handlers: There was an error running gitlab-ctl reconfigure:
execute[semodule -i /opt/gitlab/embedded/selinux/rhel/7/gitlab-13.5.0-gitlab-shell.pp] (gitlab::selinux line 32) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' ---- Begin output of semodule -i /opt/gitlab/embedded/selinux/rhel/7/gitlab-13.5.0-gitlab-shell.pp ---- STDOUT: STDERR: libsemanage.semanage_pipe_data: Child process /usr/libexec/selinux/hll/pp failed with code: 255. (No such file or directory). gitlab-13.5.0-gitlab-shell: libsepol.policydb_read: policydb module version 19 does not match my version range 4-17 gitlab-13.5.0-gitlab-shell: libsepol.sepol_module_package_read: invalid module in module package (at section 0) gitlab-13.5.0-gitlab-shell: Failed to read policy package libsemanage.semanage_direct_commit: Failed to compile hll files into cil files. (No such file or directory). semodule: Failed! ---- End output of semodule -i /opt/gitlab/embedded/selinux/rhel/7/gitlab-13.5.0-gitlab-shell.pp ---- Ran semodule -i /opt/gitlab/embedded/selinux/rhel/7/gitlab-13.5.0-gitlab-shell.pp returned 1
정상적으로 설치가 완료되었다면 설치 시 입력한 EXTERNAL_URL의 정보를 브라우저에 입력하면
아래와 같은 페이지가 로드 될 것이다.
혹시나 아래와 같이 502 Whoops, GitLab is taking too much time to respond. 에러가 뜬다면 여유를 가지고 1~2분 정도 기다리면 접속이 된다.
아직 서비스가 정상적으로 모두 올라가지 않아서 그런 것이다.
설치가 완료되고 나면 터미널에 아래와 같은 문구가 출력되어 있을 것이다.
Notes: Default admin account has been configured with following details: Username: root Password: You didn't opt-in to print initial root password to STDOUT. Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.
초기 비밀번호는 /etc/gitlab/initial_root_password에 저장되어 있으며 이 파일은 처음 설정을 적용한 후 24시간 뒤에 사라진다는 내용이다. 해당 파일은 내용은 아래 처럼 적혀있다.
# WARNING: This value is valid only in the following conditions # 1. If provided manually (either via `GITLAB_ROOT_PASSWORD` environment variable or via `gitlab_rails['initial_root_password']` setting in `gitlab.rb`, it was provided before database was seeded for the first time (usually, the first reconfigure run). # 2. Password hasn't been changed manually, either via UI or via command line. # # If the password shown here doesn't work, you must reset the admin password following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.