Issues boards not loading because of API 404
Summary
When loading the issues board for any given project, the lists are simply stuck with the spinners spinning away. Upon inspection of the Chrome developer console, the follow URL pattern always returns a 404:
/{GROUP}/{PROJECT}/boards/{BOARD_ID}/lists/{LIST_ID}/issues?page=1&search= 404 (Not Found)
The obvious result being that Vue.js is crashing because it's getting back text/html in the form of a 404, rather than application/json 200.
Steps to reproduce
Create a few labels + issues & then select the board list/labels & let it try to populate. Not sure what else to describe to reproduce. If you guys want to let me know what to look into and check, I'll be happy to do so.
What is the current bug behavior?
Board lists are empty with a permanent spinner.
What is the expected correct behavior?
Board lists that are populated with issues.
Relevant logs and/or screenshots
==> gitlab-workhorse.log <==
2017/04/11 11:00:51 ErrorPage: serving predefined error page: 404
redacted.url - - [2017-04-11 11:00:51.36645653 +0000 UTC] "GET /petri/Workspace/boards/7/lists/22/issues?page=1&search= HTTP/1.1" 404 2680 "https://redacted.url/petri/Workspace/boards" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36" 0.083392
Output of checks
Some things to note about the log outputs below:
- Redis is running on a remote server, it's not local. It's version 3.2.8 and I have a cluster on my dedicated LAN that it's using.
- Sidekiq is running, the script just isn't able to detect it because I'm running on FreeBSD and it uses a different init system (BSD init) as opposed to systemd or upstart or any other Linux-centric startup/service managers. Been meaning to get around to sending a PR for an updated script.
- Output of sidekiq ps:
gitlab 57228 0.0 0.4 670848 311364 - IsJ 10:44 1:07.78 ruby24: sidekiq 4.2.7 gitlab-ce [0 of 25 busy] (ruby24)
- Output of workhorse log:
I, [2017-04-11T10:44:11.901410 #57042] INFO -- : listening on addr=/home/gitlab/app/gitlab-ce/tmp/sockets/gitlab.socket fd=14
I, [2017-04-11T10:44:11.901971 #57042] INFO -- : listening on addr=10.1.1.21:8080 fd=15
I, [2017-04-11T10:44:11.918326 #57156] INFO -- : worker=0 ready
I, [2017-04-11T10:44:11.928130 #57157] INFO -- : worker=1 ready
I, [2017-04-11T10:44:11.936917 #57042] INFO -- : master process ready
I, [2017-04-11T10:44:11.938312 #57158] INFO -- : worker=2 ready
/usr/home/gitlab/app/gitlab-ce/vendor/bundle/ruby/2.4/gems/redis-3.2.2/lib/redis/client.rb:441: warning: constant ::Fixnum is deprecated
/usr/home/gitlab/app/gitlab-ce/vendor/bundle/ruby/2.4/gems/redis-3.2.2/lib/redis/client.rb:441: warning: constant ::Fixnum is deprecated
/usr/home/gitlab/app/gitlab-ce/vendor/bundle/ruby/2.4/gems/redis-3.2.2/lib/redis/client.rb:441: warning: constant ::Fixnum is deprecated
/usr/home/gitlab/app/gitlab-ce/vendor/bundle/ruby/2.4/gems/redis-3.2.2/lib/redis/client.rb:441: warning: constant ::Fixnum is deprecated
/usr/home/gitlab/app/gitlab-ce/vendor/bundle/ruby/2.4/gems/rainbow-2.1.0/lib/rainbow/color.rb:15: warning: constant ::Fixnum is deprecated
Checking GitLab Shell ...
GitLab Shell version >= 5.0.0 ? ... OK (5.0.0)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by gitlab:gitlab?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
/usr/home/gitlab/app/gitlab-ce/vendor/bundle/ruby/2.4/gems/rainbow-2.1.0/lib/rainbow/color.rb:15: warning: constant ::Fixnum is deprecated
{ REDACTED: JUST SOME OKs ON REPOS }
Running /home/gitlab/app/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /home/gitlab/.ssh/authorized_keys: OK
Send ping to redis server: /usr/home/gitlab/app/gitlab-shell/lib/vendor/redis/lib/redis/client.rb:459: warning: constant ::Fixnum is deprecated
OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... no
Try fixing it:
sudo -u gitlab -H RAILS_ENV=production bin/background_jobs start
For more information see:
doc/install/installation.md in section "Install Init Script"
see log/sidekiq.log for possible errors
Please fix the error above and rerun the checks.
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... /usr/home/gitlab/app/gitlab-ce/vendor/bundle/ruby/2.4/gems/rainbow-2.1.0/lib/rainbow/color.rb:15: warning: constant ::Fixnum is deprecated
no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... yes
Init script exists? ... no
Try fixing it:
Install the init script
For more information see:
doc/install/installation.md in section "Install Init Script"
Please fix the error above and rerun the checks.
Init script up-to-date? ... can't check because of previous errors
projects have namespace: ...
{ REDACTED: JUST SOME OKs ON GROUPS/REPOS }
Redis version >= 2.8.0? ... no
Try fixing it:
Update your redis server to a version >= 2.8.0
For more information see:
gitlab-public-wiki/wiki/Trouble-Shooting-Guide in section sidekiq
Please fix the error above and rerun the checks.
Ruby version >= 2.1.0 ? ... yes (2.4.1)
Your git bin path is "/usr/local/bin/git"
Git version >= 2.7.3 ? ... yes (2.12.1)
Active users: 2
Checking GitLab ... Finished
Results of GitLab environment info
/usr/home/gitlab/app/gitlab-ce/vendor/bundle/ruby/2.4/gems/redis-3.2.2/lib/redis/client.rb:441: warning: constant ::Fixnum is deprecated
/usr/home/gitlab/app/gitlab-ce/vendor/bundle/ruby/2.4/gems/redis-3.2.2/lib/redis/client.rb:441: warning: constant ::Fixnum is deprecated
/usr/home/gitlab/app/gitlab-ce/vendor/bundle/ruby/2.4/gems/redis-3.2.2/lib/redis/client.rb:441: warning: constant ::Fixnum is deprecated
/usr/home/gitlab/app/gitlab-ce/vendor/bundle/ruby/2.4/gems/redis-3.2.2/lib/redis/client.rb:441: warning: constant ::Fixnum is deprecated
/usr/home/gitlab/app/gitlab-ce/vendor/bundle/ruby/2.4/gems/rainbow-2.1.0/lib/rainbow/color.rb:15: warning: constant ::Fixnum is deprecated
System information
System:
Current User: gitlab
Using RVM: no
Ruby Version: 2.4.1p111
Gem Version: 2.6.11
Bundler Version:1.14.6
Rake Version: 10.5.0
Redis Version: unknown
Git Version: 2.12.1
Sidekiq Version:4.2.7
/usr/home/gitlab/app/gitlab-ce/vendor/bundle/ruby/2.4/gems/rainbow-2.1.0/lib/rainbow/color.rb:15: warning: constant ::Fixnum is deprecated
GitLab information
Version: 9.0.5
Revision: a6b9899d4d
Directory: /usr/home/gitlab/app/gitlab-ce
DB Adapter: postgresql
URL: https://redacted.url
HTTP Clone URL: https://redacted.url/some-group/some-project.git
SSH Clone URL: gitlab@redacted.url:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 5.0.0
Repository storage paths:
- default: /usr/home/gitlab/data/repositories/
Hooks: /home/gitlab/app/gitlab-shell/hooks/
Git: /usr/local/bin/git