Gitlab Ce under ubuntu with apache return 404 for every pages

I’ve installed gitlab ce omnibus on ubuntu 16.04 with apache instead of nginx, i can access the server, but the only result for every pages i tried to access is a 404 error.

Can someone help me please?

Hi

Please run rake tests to find the problem.

sudo gitlab-rake gitlab:gitlab_shell:check --trace
sudo gitlab-rake gitlab:sidekiq:check --trace
sudo gitlab-rake gitlab:app:check --trace
sudo gitlab-rake gitlab:check SANITIZE=true --trace

1°)

** Invoke gitlab:gitlab_shell:check (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute gitlab:gitlab_shell:check
Checking GitLab Shell …

GitLab Shell version >= 2.7.2 ? … OK (2.7.2)
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
hooks directories in repos are links: … can’t check, you have no projects
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: FAILED. code: 404
gitlab-shell self-check failed
Try fixing it:
Make sure GitLab is running;
Check the gitlab-shell configuration file:
sudo -u git -H editor /opt/gitlab/embedded/service/gitlab-shell/config.yml
Please fix the error above and rerun the checks.

Checking GitLab Shell … Finished

2°)

** Invoke gitlab:sidekiq:check (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute gitlab:sidekiq:check
Checking Sidekiq …

Running? … yes
Number of Sidekiq processes … 1

Checking Sidekiq … Finished

3°)

** Invoke gitlab:app:check (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute gitlab:app:check
Checking GitLab …

Git configured with autocrlf=input? … yes
Database config exists? … yes
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
Uploads directory setup correctly? … skipped (no tmp uploads folder yet)
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: … can’t check, you have no projects
Redis version >= 2.8.0? … yes
Ruby version >= 2.1.0 ? … yes (2.1.8)
Your git bin path is “/opt/gitlab/embedded/bin/git”
Git version >= 2.7.3 ? … yes (2.7.4)
Active users: 1

Checking GitLab … Finished

4°)

** Invoke gitlab:check (first_time)
** Invoke gitlab:gitlab_shell:check (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute gitlab:gitlab_shell:check
Checking GitLab Shell …

GitLab Shell version >= 2.7.2 ? … OK (2.7.2)
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
hooks directories in repos are links: … can’t check, you have no projects
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: FAILED. code: 404
gitlab-shell self-check failed
Try fixing it:
Make sure GitLab is running;
Check the gitlab-shell configuration file:
sudo -u git -H editor /opt/gitlab/embedded/service/gitlab-shell/config.yml
Please fix the error above and rerun the checks.

Checking GitLab Shell … Finished

** Invoke gitlab:sidekiq:check (first_time)
** Invoke environment
** Execute gitlab:sidekiq:check
Checking Sidekiq …

Running? … yes
Number of Sidekiq processes … 1

Checking Sidekiq … Finished

** Invoke gitlab:incoming_email:check (first_time)
** Invoke environment
** Execute gitlab:incoming_email:check
Checking Reply by email …

Reply by email is disabled in config/gitlab.yml

Checking Reply by email … Finished

** Invoke gitlab:ldap:check (first_time)
** Invoke environment
** Execute gitlab:ldap:check
Checking LDAP …

LDAP is disabled in config/gitlab.yml

Checking LDAP … Finished

** Invoke gitlab:app:check (first_time)
** Invoke environment
** Execute gitlab:app:check
Checking GitLab …

Git configured with autocrlf=input? … yes
Database config exists? … yes
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
Uploads directory setup correctly? … skipped (no tmp uploads folder yet)
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: … can’t check, you have no projects
Redis version >= 2.8.0? … yes
Ruby version >= 2.1.0 ? … yes (2.1.8)
Your git bin path is “/opt/gitlab/embedded/bin/git”
Git version >= 2.7.3 ? … yes (2.7.4)
Active users: 1

Checking GitLab … Finished

** Execute gitlab:check

I think than error is returned on the first command?

Resolved by change gitlab_url: “http://127.0.0.1:8080” into gitlab_url: “http://127.0.0.1:8080/
in the /opt/gitlab/embedded/service/gitlab-shell/config.yml file and restarting gitlab server.

1 Like

I hope the issue is resolved now ?