Error 500 when trying to set group avatar, but nothing in logs
I installed the omnibus 7.4.3 package on my Ubuntu 14.04 server, and I'm now trying to set a group avatar for one of my (imported) groups. This fails however with a page showing:
500
We're sorry, but something went wrong.
Please contact your GitLab administrator if this problem persists.
I checked the unicorn and nginx logs, but there's nothing related there.
I suspect this to be a permission issue (because I had to fiddle around with them to get everything working after copying the repositories, and might have overdone it); it only happens when I want to upload an avatar (not when I simply press save on the groups page.
Where do I need to check for getting the actual error message in this case?
Edit1: What I should probably mention is that
$ sudo -u git -H gitlab-rake gitlab:check RAILS_ENV=production SANITIZE=true
returns
chpst: fatal: unable to setgroups: permission denied
This doesn't give me any information in directions of what permissions are missing, though, and the without changing to git user, it does run through fine:
$ sudo gitlab-rake gitlab:check RAILS_ENV=production SANITIZE=true
just noticed that it doesn't run through fine entirely, there was one entry either I previously didn't see or which was missing; it was about permissions to the /opt/gitlab/embedded/service/gitlab-rails/tmp
directory. The user specified there was wrong (sudo chown -R gitlab /opt/gitlab/embedded/service/gitlab-rails/tmp
- there is no "gitlab" user on my system, I suppose this should read gitlab-www
? But still I get a message about missing permissions?
Edit2: gitlab:check does run fine through now (after chmod gitlab-www ... and chmod g+rwx on the gitlab-rails tmp folder). Upload of an avatar still fails, as does the gitlab check with git user
$ sudo gitlab-rake gitlab:check RAILS_ENV=production SANITIZE=true
Checking Environment ...
Git configured for git user? ... yes
Checking Environment ... Finished
Checking GitLab Shell ...
GitLab Shell version >= 2.0.1 ? ... OK (2.0.1)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
Satellites access is drwxr-x---? ... yes
hooks directories in repos are links: ...
5/1 ... ok
6/2 ... ok
7/3 ... ok
7/4 ... ok
7/5 ... ok
7/6 ... ok
7/7 ... ok
7/8 ... ok
7/9 ... ok
7/10 ... ok
7/11 ... ok
7/12 ... ok
7/13 ... ok
7/14 ... ok
8/15 ... ok
8/16 ... ok
8/17 ... ok
8/18 ... ok
8/19 ... ok
8/20 ... ok
8/21 ... ok
8/22 ... ok
8/23 ... ok
8/24 ... ok
8/25 ... ok
8/26 ... ok
8/27 ... ok
9/28 ... ok
4/29 ... repository is empty
4/30 ... ok
4/31 ... ok
4/32 ... ok
4/33 ... ok
4/34 ... ok
4/35 ... ok
4/36 ... ok
10/37 ... ok
10/38 ... ok
10/39 ... ok
10/40 ... ok
10/41 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
/var/opt/gitlab/git-data/repositories: OK
/var/opt/gitlab/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.8.2
Send ping to redis server: PONG
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
projects have namespace: ...
5/1 ... yes
6/2 ... yes
7/3 ... yes
7/4 ... yes
7/5 ... yes
7/6 ... yes
7/7 ... yes
7/8 ... yes
7/9 ... yes
7/10 ... yes
7/11 ... yes
7/12 ... yes
7/13 ... yes
7/14 ... yes
8/15 ... yes
8/16 ... yes
8/17 ... yes
8/18 ... yes
8/19 ... yes
8/20 ... yes
8/21 ... yes
8/22 ... yes
8/23 ... yes
8/24 ... yes
8/25 ... yes
8/26 ... yes
8/27 ... yes
9/28 ... yes
4/29 ... yes
4/30 ... yes
4/31 ... yes
4/32 ... yes
4/33 ... yes
4/34 ... yes
4/35 ... yes
4/36 ... yes
10/37 ... yes
10/38 ... yes
10/39 ... yes
10/40 ... yes
10/41 ... yes
Projects have satellites? ...
5/1 ... yes
6/2 ... yes
7/3 ... yes
7/4 ... yes
7/5 ... yes
7/6 ... yes
7/7 ... yes
7/8 ... yes
7/9 ... yes
7/10 ... yes
7/11 ... yes
7/12 ... yes
7/13 ... yes
7/14 ... yes
8/15 ... yes
8/16 ... yes
8/17 ... yes
8/18 ... yes
8/19 ... yes
8/20 ... yes
8/21 ... yes
8/22 ... yes
8/23 ... yes
8/24 ... yes
8/25 ... yes
8/26 ... yes
8/27 ... yes
9/28 ... yes
4/29 ... yes
4/30 ... yes
4/31 ... yes
4/32 ... yes
4/33 ... yes
4/34 ... yes
4/35 ... yes
4/36 ... yes
10/37 ... yes
10/38 ... yes
10/39 ... yes
10/40 ... yes
10/41 ... yes
Redis version >= 2.0.0? ... yes
Ruby version >= 2.0.0 ? ... yes (2.1.2)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 1.7.10 ? ... yes (2.0.0)
Checking GitLab ... Finished