Skip to content

Slow installation time

Overview

This morning I started a fresh installation of GDK after upgrading to Ubuntu 22.04, a brand new Ubuntu installation, totally clean.

Environment:

  • Ubuntu 22.04 inside Windows WSL2

I:

  • installed the prerequisites following these 3 points
  • used the one-line installation command leaving all the defaults apart from the project URL (I used the community fork) from here

The installation worked without any issues the first time and I got GDK up and running, but it took nearly 4 hours to complete.

It took a while to compile all the dependencies, and OpenSSL 1 since I am in Ubuntu 22.04, but then it took nearly 2 and a half hours to complete the database setup being stuck at this step:

--------------------------------------------------------------------------------
Ensuring necessary databases are setup and seeded
--------------------------------------------------------------------------------
Waiting for praefect to boot.OK
Missing Rails.application.secrets.secret_key_base for development environment. The secret will be generated and stored in config/secrets.yml.
Missing Rails.application.secrets.otp_key_base for development environment. The secret will be generated and stored in config/secrets.yml.
Missing Rails.application.secrets.db_key_base for development environment. The secret will be generated and stored in config/secrets.yml.
Missing Rails.application.secrets.openid_connect_signing_key for development environment. The secret will be generated and stored in config/secrets.yml.
Dropped database 'gitlabhq_development'
Dropped database 'gitlabhq_development_ci'
Dropped database 'gitlabhq_test'
Dropped database 'gitlabhq_test_ci'
Created database 'gitlabhq_development'
Created database 'gitlabhq_development_ci'
Created database 'gitlabhq_test'
Created database 'gitlabhq_test_ci'

Same thing that happened in the past (always using WSL2) and I reported in #1669 (closed)

Impacted categories

The following categories relate to this issue:

Steps to replicate (optional)

Proposal (optional)

Environment (optional)

  • Operating system name: Linux marco 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
  • Architecture: x86_64
  • The contents of your gdk.yml (if any)
  • Ruby version: <!-- output of `ruby --version` command -->
  • GDK version: <!-- output of `git rev-parse --short HEAD` command -->
Edited by Marco Zille