Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #6499

Closed
Open
Created Mar 09, 2014 by Administrator@rootOwner

Auto Refresh of Notes Generates 404's

Created by: genebean

The javascript that is listed in the header excerpt below is adding the relative root (/gitlab) twice and, thus, generating 404's.

<link href="/gitlab/assets/favicon-220424ba6cb497309f8faf8545eb5408.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
<link href="/gitlab/assets/application-6f9c5cefbe8b34fb1e470ff0a1c80ae5.css" media="screen" rel="stylesheet" />
<script src="/gitlab/assets/application-25b0e529a750710c27d99a8f9f2cd929.js"></script>

Here are some sanitized excerpts of my Nginx access_log to show what I am referring to:

x.x.41.212 - - [08/Mar/2014:23:08:07 -0500] "GET /gitlab/gitlab/someuser1/splitthecheck/notes?target_id=9d2138cfce11eba76304cef9bdd3510c9fd1d4e8&target_type=commit HTTP/1.1" 404 36 "https://code.example.com/gitlab/someuser1/splitthecheck" "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)" "-"
x.x.250.179 - - [08/Mar/2014:23:08:17 -0500] "GET /gitlab/gitlab/gene-cs6242-work/consciousmess/notes?target_id=3a564be289e88d58226ad7c858ed99e5f98462d4&target_type=commit HTTP/1.1" 404 36 "https://code.example.com/gitlab/gene-cs6242-work/consciousmess/commits/master" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36" "-"
x.x.41.212 - - [08/Mar/2014:23:08:22 -0500] "GET /gitlab/gitlab/someuser1/splitthecheck/notes?target_id=9d2138cfce11eba76304cef9bdd3510c9fd1d4e8&target_type=commit HTTP/1.1" 404 36 "https://code.example.com/gitlab/someuser1/splitthecheck" "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)" "-"
x.x.250.179 - - [08/Mar/2014:23:08:32 -0500] "GET /gitlab/gitlab/gene-cs6242-work/consciousmess/notes?target_id=3a564be289e88d58226ad7c858ed99e5f98462d4&target_type=commit HTTP/1.1" 404 36 "https://code.example.com/gitlab/gene-cs6242-work/consciousmess/commits/master" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36" "-"
x.x.41.212 - - [08/Mar/2014:23:08:37 -0500] "GET /gitlab/gitlab/someuser1/splitthecheck/notes?target_id=9d2138cfce11eba76304cef9bdd3510c9fd1d4e8&target_type=commit HTTP/1.1" 404 36 "https://code.example.com/gitlab/someuser1/splitthecheck" "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)" "-"
x.x.250.179 - - [08/Mar/2014:23:08:47 -0500] "GET /gitlab/gitlab/gene-cs6242-work/consciousmess/notes?target_id=3a564be289e88d58226ad7c858ed99e5f98462d4&target_type=commit HTTP/1.1" 404 36 "https://code.example.com/gitlab/gene-cs6242-work/consciousmess/commits/master" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36" "-"

Checks:

[git@code gitlab]$ bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment ...

Git configured for git user? ... yes

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.7.9 ? ... OK (1.8.0)
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
update hook up-to-date? ... yes
update hooks in repos are links: ...
-- all ok or empty
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
  /home/git/repositories: OK
  /home/git/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.4.10
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 users with access to your GitLab server (only showing the first 100 results)
-- They show up as expected

Checking LDAP ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... no
  Try fixing it:
  Redownload 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.
projects have namespace: ...
-- all ok or empty
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.8.4)

Checking GitLab ... Finished

GitLab 6.6.4 42e34aec

[git@code gitlab]$ bundle exec rake gitlab:env:info RAILS_ENV=production

System information
System:     CentOS 6.5
Current User:   git
Using RVM:  no
Ruby Version:   2.0.0p247
Gem Version:    2.0.3
Bundler Version:1.3.5
Rake Version:   10.1.1

GitLab information
Version:    6.6.4
Revision:   42e34ae
Directory:  /home/git/gitlab
DB Adapter: mysql2
URL:        https://code.example.com/gitlab
HTTP Clone URL: https://code.example.com/gitlab/some-project.git
SSH Clone URL:  [email protected]:some-project.git
Using LDAP: yes
Using Omniauth: no

GitLab Shell
Version:    1.8.0
Repositories:   /home/git/repositories/
Hooks:      /home/git/gitlab-shell/hooks/
Git:        /usr/bin/git

I am no expert but I bet this is related to notes.js.coffee

Assignee
Assign to
Time tracking