[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: migrating to Debian gitlab (was: Re: GitLab B.V. to host free-software GitLab for Debian project)



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512



On 2016, ഫെബ്രുവരി 11 8:44:45 PM IST, Johannes Schauer <josch@debian.org> wrote:
>Hi,
>
>Quoting IOhannes m zmölnig (Debian/GNU) (2016-02-11 13:17:36)
>> thank you very much for all your efforts!
>
>let me express my gratitude as well!
>
>Thank you for all your hard work! It seems installing gitlab pulled in
>more
>than 330 (!!) ruby packages.

You are welcome :)

>> now i only need a migration plan :-)
>
>If you are running systemd, you might want to hold off until RC bugs
>#814413
>and #812841 are fixed.

You can use,

systemctl start gitlab.target

 as init script has problems with systemd. The installation is complete otherwise.

I added systemd unit files already and I will add a check for systemd to fix the bug.

>As far as I understand it, migration should be as easy as installing
>the new
>version over the old version and run:
>
>rake db:migrate RAILS_ENV=production
>
>And copy your prior ./repositories directory and authorized_keys file
>to their
>new location in /var/lib/gitlab. To check your installation one can
>use:
>
>rake gitlab:check RAILS_ENV=production
>
>Another useful tool seems to be the one to backup the database:
>
>rake db:migrate RAILS_ENV=production
>
>The documentation I was able to find prefixes all the above commands
>with "sudo
>-u gitlab -H bundle exec" but I guess this is not needed anymore with
>all
>packages installed as Debian packages?

You'll need to run them as gitlab user and export all variables defined in /etc/gitlab/gitlab-debian.conf

Also better to use bundle exec to make sure bundle is complete (in case some dependencies change).

>I'm myself trying to upgrade my version 7.8.4 installation to the
>version
>currently in Debian but failed because of the RC bugs mentioned above.
>
>Thanks!
>
>cheers, josch

- --
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-----BEGIN PGP SIGNATURE-----

iQJWBAEBCgBAORxQcmF2ZWVuIEFyaW1icmF0aG9kaXlpbCAocGlyYXRlcGluKSA8
cHJhdmVlbkBkZWJpYW4ub3JnPgUCVryvtgAKCRDOH5xnRRLCKpUUEACMhRRdK3SR
fwrQ8rLqH8qkF3nqzgS+2afoFr2YP4oAFZNbOBP+TRbi2BBZvTkJrkDGJIFUhOfX
3i9eq35fUOHXPNrA51IYtMT+Rv1Rt1+94O8K+itcJ3UNYTGPUMAhpUJDb6FM6eA7
siravJwmMdFhXDYDmPkAC2D0FAT2aqz9a6d5ry1dVTz067c0KM42LhJfjK6VR0NZ
4++KsrVjoUnp/rJzKgzE77SW9gvLAFiuP7dWv3Ah9fXagjuv5ggkVW7Pey0NqtCa
CrR/OG86xyMZtzfTsxM5MxlaPS0bcaNRTNXGsNjqOuwVpCIE/BQXUfEe9ZUwg4u9
xTWx/1+lromdxEJk2k0Rq00ne8KQUHSTIQAjM4YeCS1Dk2sxRBxyH/DXET71Esxx
jzOUQDLTKYzW6I2G1optSHx0hEA4gQceUi08WRW9L3dGcNhkX4cDLbEVVIsaz2ES
TFef7Ci1yVnJnO0ogqDY+QzLjkx6fx2mUWmGbSTxetbIQuz383/XacEg3xq3n+GR
QkQfU+jMuvnA82dEhp8UHSiJ+Ef7uwzqg5P+TdTV9uZw9pzY2//x0SHHw/0JBBNR
fZYL5alw7Tuo36b61YnxR/VTXb+z/Bxm+tdKHHvBA3dVZbgi5WbBN6F53kalAbZR
F3eMj908hNARl2W7j4pIMTfph+itokilQw==
=l5i+
-----END PGP SIGNATURE-----


Reply to: