Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#52146 - [gitlab] Unable to db migrate

Attached to Project: Community Packages
Opened by Jonas Heinrich (onny) - Wednesday, 14 December 2016, 09:43 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 14 December 2016, 14:20 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Hi,
since several versions I have issues migrating my gitlab database.

When I run:
sudo -u gitlab bundle exec rake db:migrate RAILS_ENV=production

I get following error:
Errno::EACCES: Permission denied @ rb_sysopen - /usr/share/webapps/gitlab/.gitlab_workhorse_secret

Permissions seem to have an issue:
root@http-new /usr/share/webapps/gitlab # namei -mo /etc/webapps/gitlab/gitlab_workhorse_secret :(
f: /etc/webapps/gitlab/gitlab_workhorse_secret
drwxr-xr-x root root /
drwxr-xr-x root root etc
drwxr-xr-x root root webapps
drwxr-x--- gitlab gitlab gitlab
-rw-rw---- root 105 gitlab_workhorse_secret

When I run:
sudo chown gitlab:gitlab /etc/webapps/gitlab/gitlab_workhorse_secret

and migration again, I get:
Errno::EACCES: Permission denied @ rb_sysopen - /usr/share/webapps/gitlab/db/schema.rb

I read somewhere that db/schema.rb needs to be writable because it gets changed in migration process ...

So I do:
sudo chown gitlab:gitlab db/schema.rb

and rerun migration. Now the command works without issues and sometimes migrate tables.

A further problem is, that the file db/schema.rb is different to the one upstream: https://www.diffnow.com/?report=jtf0b
Some database tables in my setup are different to upstream now and this often results in errors using Gitlab :(

Best regards,
Jonas
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 14 December 2016, 14:20 GMT
Reason for closing:  Not a bug
Comment by Doug Newgard (Scimmia) - Wednesday, 14 December 2016, 14:20 GMT
Not having a group with gid 105 means this is a bad setup, probably because of migration from the AUR version.

Loading...