Bug 214895

Summary: www/gitlab: 8.11.11 fails to create repository via gitlab-shell
Product: Ports & Packages Reporter: Matthias Breddin <mb>
Component: Individual Port(s)Assignee: Torsten Zuehlsdorff <tz>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: needs-qa
Priority: --- Flags: bugzilla: maintainer-feedback? (tz)
Version: Latest   
Hardware: Any   
OS: Any   

Description Matthias Breddin 2016-11-28 04:22:21 UTC
FreeBSD: 11.0 w zfs

After installing gitlab 8.11.11 everything works, except creating or importing a repository.

Creating a repository results in: Failed to create repository via gitlab-shell

Trying to import a repository results in: Unable to save project. Error: Failed create wikiProject ID: 1, trying to start import after that, production.log emits:

NoMethodError (undefined method `[]' for nil:NilClass):
  app/controllers/projects/imports_controller.rb:14:in `create'
  lib/gitlab/request_profiler/middleware.rb:15:in `call'
  lib/gitlab/middleware/go.rb:16:in `call'


Check says everything is okay, permissions are right (directories get created), event tried with a ufs (md) mount on the repository, in case it's an zfs issue.
Comment 1 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2016-11-29 11:06:13 UTC
Aloha Matthias,

i do my tests on zfs, so i believe it shouldn't be an issue.

The first part of the error message rises if you define a symlink as repos-path. But in the default configuration this is not the case. So some questions:
- do you have rubygem-gitlab_git 10.5.0 installed?
- are there any configuration changes done by you?
- are there any non-default ports for example another ruby-version?
- what is the output of the check?

Greetings,
Torsten
Comment 2 Matthias Breddin 2016-11-29 13:25:17 UTC
Hey Torsten,

actually I did (after it didn't work) a bundle exec install (if i remember correctly). 

The version of gitlab_git is 10.5.0. Changes were only the hostname.

Also in the beginning i used postgresql 9.6

But for now to save work and your time, i will do a complete fresh install and give feedback here.

cheers,
Matthias
Comment 3 Matthias Breddin 2016-11-30 00:47:07 UTC
Hello Torsten,

Did a complete fresh install just with the instructions from the installation-freebsd.

Sadly, still the same error :/
Comment 4 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2016-11-30 08:30:24 UTC
Interesting. I'm currently testing the update to 8.12.9. Would you like to test, if the errors are gone with the update?

Since you mentioned a bundle install: are you sure that there are no differences between "gem list" and "pkg info | grep rubygem"? (But i do not really suspect the error here).

What is the output of "ls -lah /home/git"? 

And can you please copy the output of the rake check?

Are there any entries in /usr/local/www/gitlab/log ?
Comment 5 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2016-12-02 14:02:20 UTC
Another user with issues pointed me to an error in gitlab-shell. Its very likely that this is also your source of issues.

Please update to the latest gitlab-shell-3.4.0_1 and check if it now works! :)
Comment 6 Matthias Breddin 2016-12-04 10:13:25 UTC
Just came home and tested it with the latest gitlab_shell, import / creating repositories work now. Thanks @Torsten Zuehlsdorff 

Just curious, what was the cause?
Comment 7 Matthias Breddin 2016-12-04 20:21:23 UTC
I think it can be marked as resolved
Comment 8 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2016-12-05 09:06:20 UTC
(In reply to Matthias Breddin from comment #6)

>  Just curious, what was the cause?

I missed a file in pkg-plist of gitlab-shell. :( And it was an import file ;) After adding it, everything is fine! :)