When deploying the GitLab on my cloudserver following the official steps, I got stuck on
Recipe: gitlab::database_migrations
* ruby_block[check remote PG version] action nothing (skipped due to action :nothing)
* rails_migration[gitlab-rails] action run[2023-12-08T15:15:06+08:00] WARN: gitlab-rails does not have a log_group or default logdir mode defined. Setting to 0700.
* bash_hide_env[migrate gitlab-rails database] action run
I checked the server’s resources and found the disk usage is extremely high around 100MB/s writing speed, continuously, and CPU is also working at 10~15%. This happened several times and it made me extremely frustrated. Should I be using docker or something similar?
If you could help me troubleshoot this problem I would appreciate! If you need any logs please tell, and I will try my best to share them. The system is Ubuntu jammy.
What are the instance configurations in terms of cpu/ram? I would expect the problem is the instance being used, either lack of CPU/ram or lack of IOPS for the disk.
Not enough, instance of Gitlab needs at least 4vcpu and 8gb ram - this is mentioned in the docs. You can get away with less if you follow the Gitlab docs for reducing the memory usage by using the memory constrained documentation. That would require you to configure gitlab.rb appropriately before running the initial reconfigure to get Gitlab working. See: Running GitLab in a memory-constrained environment | GitLab for more info.