sameersbn / sameersbn/docker-gitlab
Permission denied /var/log/gitlab/gitlab-shell/gitlab-shell.log (Errno::EACCES)
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 8.1k
- Forks
- 2.1k
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 7
Description
i created container Gitlab with parametres volume
...
--volume /share/VM/container-station-data/gitlab/data:/home/git/data \
--volume /share/VM/container-station-data/gitlab/log/:/var/log/gitlab \
and created folders on my NAS with chmod 664

Why i get error on console ?? I dont have more idea.
I see only one problem with script why he trying read from /home/git/gitlab-shell when folder /var/log/gitlab
Migrating
to MigrateToNewShell (20140903115954)
/usr/lib/ruby/2.3.0/logger.rb:703:in initialize': Permission denied @ rb_sysopen - /var/log/gitlab/gitlab-shell/gitlab-shell.log (Errno::EACCES)
from /usr/lib/ruby/2.3.0/logger.rb:703:in open'
from /usr/lib/ruby/2.3.0/logger.rb:703:in open_logfile'
from /usr/lib/ruby/2.3.0/logger.rb:695:in set_dev'
from /usr/lib/ruby/2.3.0/logger.rb:635:in initialize'
from /usr/lib/ruby/2.3.0/logger.rb:353:in new'
from /usr/lib/ruby/2.3.0/logger.rb:353:in initialize'
from /home/git/gitlab-shell/lib/gitlab_logger.rb:15:in new'
from /home/git/gitlab-shell/lib/gitlab_logger.rb:15:in <top (required)>'
from /home/git/gitlab-shell/lib/gitlab_projects.rb:6:in require_relative'
from /home/git/gitlab-shell/lib/gitlab_projects.rb:6:in <top (required)>'
from /home/git/gitlab-shell//bin/create-hooks:8:in require'
from /home/git/gitlab-shell//bin/create-hooks:8:in `
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported volume mappings and the stack-trace entry points in /home/git/gitlab-shell/lib/gitlab_logger.rb and bin/create-hooks. Reproduce the migration with the mounted /var/log/gitlab directory, inspect its ownership and permissions, and confirm that the migration completes without the Errno::EACCES failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, ruby, shell
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100