404 nginx error when try to save a file crated in online editor (hosted installation)
Steps to reproduce
- Create the project (I'm owner) - http://git.retor.ru/abelugin/publictest
- Create a new file - http://git.retor.ru/abelugin/publictest/new/master?file_name=README.md File Type = txt
- Type some text into online editor
- Try to save file
Expected behavior
- I want to see the saved file
Actual behavior
- I Catch the error: "404 Not Found nginx"
Relevant logs and/or screenshots
gitlab_error.log
` ... 2016/10/14 00:02:36 [crit] 4570#4570: *10 stat() "/opt/gitlab/embedded/service/gitlab-rails/public/uploads/appearance/header_logo/1/logo_retor_46x45.png.html" failed (13: Permission denied), client: 217.118.95.100, server: git.retor.ru, request: "GET /uploads/appearance/header_logo/1/logo_retor_46x45.png HTTP/1.1", host: "git.retor.ru", referrer: "http://git.retor.ru/abelugin/publictest/new/master?file_name=README.md" 2016/10/14 00:03:43 [error] 4570#4570: *4 upstream prematurely closed connection while reading response header from upstream, client: 217.118.95.100, server: git.retor.ru, request: "POST /abelugin/publictest/create/master HTTP/1.1", upstream: "http://unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket:/abelugin/publictest/create/master", host: "git.retor.ru", referrer: "http://git.retor.ru/abelugin/publictest/new/master?file_name=README.md" 2016/10/14 00:03:43 [error] 4570#4570: *4 open() "/opt/gitlab/embedded/service/gitlab-rails/public/50x.html" failed (2: No such file or directory), client: 217.118.95.100, server: git.retor.ru, request: "POST /abelugin/publictest/create/master HTTP/1.1", upstream: "http://unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket/abelugin/publictest/create/master", host: "git.retor.ru", referrer: "http://git.retor.ru/abelugin/publictest/new/master?file_name=README.md"
`
Output of checks
Results of GitLab application Check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)
`Checking GitLab Shell ...
GitLab Shell version >= 3.6.1 ? ... OK (3.6.1) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by git:git? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 2/2 ... ok 2/3 ... ok 2/4 ... ok 3/5 ... ok 3/6 ... ok 3/7 ... ok 3/8 ... ok 3/9 ... repository is empty 2/10 ... ok 15/11 ... ok 16/12 ... ok 9/13 ... ok 9/14 ... ok 3/15 ... ok 2/16 ... ok 19/17 ... ok 19/18 ... repository is empty 20/19 ... ok 21/22 ... ok 21/23 ... ok 20/24 ... ok 22/25 ... ok 22/26 ... repository is empty 25/27 ... ok 26/28 ... repository is empty 26/29 ... ok 17/30 ... ok 2/32 ... ok 3/33 ... ok 32/34 ... ok 32/35 ... repository is empty 10/36 ... repository is empty 32/37 ... repository is empty 32/38 ... repository is empty 32/39 ... repository is empty 10/40 ... repository is empty Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Access to /var/opt/gitlab/.ssh/authorized_keys: OK Send ping to redis server: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
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? ... 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? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) projects have namespace: ... 2/2 ... yes 2/3 ... yes 2/4 ... yes 3/5 ... yes 3/6 ... yes 3/7 ... yes 3/8 ... yes 3/9 ... yes 2/10 ... yes 15/11 ... yes 16/12 ... yes 9/13 ... yes 9/14 ... yes 3/15 ... yes 2/16 ... yes 19/17 ... yes 19/18 ... yes 20/19 ... yes 21/22 ... yes 21/23 ... yes 20/24 ... yes 22/25 ... yes 22/26 ... yes 25/27 ... yes 26/28 ... yes 26/29 ... yes 17/30 ... yes 2/32 ... yes 3/33 ... yes 32/34 ... yes 32/35 ... yes 10/36 ... yes 32/37 ... yes 32/38 ... yes 32/39 ... yes 10/40 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.1.0 ? ... yes (2.3.1) Your git bin path is "/opt/gitlab/embedded/bin/git" Git version >= 2.7.3 ? ... yes (2.7.4) Active users: 15
Checking GitLab ... Finished`
Results of GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info
)
`System information System: Ubuntu 14.04 Current User: git Using RVM: no Ruby Version: 2.3.1p112 Gem Version: 2.6.6 Bundler Version:1.13.1 Rake Version: 10.5.0 Sidekiq Version:4.1.4
GitLab information Version: 8.12.6 Revision: fa20b51c Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: http://git.retor.ru HTTP Clone URL: http://git.retor.ru/some-group/some-project.git SSH Clone URL: git@git.retor.ru:some-group/some-project.git Using LDAP: no Using Omniauth: no
GitLab Shell Version: 3.6.1 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/ Git: /opt/gitlab/embedded/bin/git`
Possible fixes
Search, but don't find yet