Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitlab plugin does not install #12

Open
yummyart opened this issue Nov 20, 2021 · 1 comment
Open

gitlab plugin does not install #12

yummyart opened this issue Nov 20, 2021 · 1 comment

Comments

@yummyart
Copy link

yummyart commented Nov 20, 2021

Overview
Platform: Generic
Version: TrueNAS-12.0-U6.1
HostName: truenas.local
Uptime: 1:14 as of 18:35
Error: gitlab had a failure Exception: RuntimeError Message: pkg error: - gitlab-ce : Refusing to fetch artifact and run post_install.sh! Partial plugin destroyed

@jvs1
Copy link

jvs1 commented Jan 3, 2022

I can confirm the gitlab plugin does not install. It contains several errors.

Same error as above. Maybe the error is related to "release": "12.2-RELEASE", in the gitlab.json of the plugin? I'm able to install it manually in a 12.3-RELEASE jail.

Furthermore the post_install.sh needs a fix. All psql statements use the wrong database user. E.g.
psql -d template1 -U pgsql -c "CREATE USER ${USER} CREATEDB SUPERUSER;"

The database user pqsql doesn't exist anymore. I believe the new default user is postgres.

Wrong path used in the entries below. /usr/local/pgsql/data/ should be /var/db/postgres/data12

echo "listen_addresses = '*'" >> /usr/local/pgsql/data/postgresql.conf
echo "host all all 0.0.0.0/0 md5" >> /usr/local/pgsql/data/pg_hba.conf

Option --har doesn't seem to work. I omitted it.

su -l git -c "cd /usr/local/www/gitlab-ce && rake yarn:install --har RAILS_ENV=production NODE_ENV=production"

A good guide is this script: https://gitlab.fechner.net/mfechner/Gitlab-docu/blob/master/install/14.6-freebsd.md

According to https://gitlab.fechner.net/mfechner/Gitlab-docu/blob/master/install/14.6-freebsd.md#2-database: The current supported version of PostgreSQL by Gitlab is 12 or newer, we use 13 which is currently the FreeBSD standard version. Lets modify the post_install.sh to support PostgreSQL version 13.

@jvs1 jvs1 mentioned this issue Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants