sameersbn / sameersbn/docker-gitlab

bug 16.1.2: mail_room won't start

Open
#2,800 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
8.1k
Forks
2.1k
Avg merge
17h 47m
Merged PRs (30d)
7

Description

bundler: failed to load command: mail_room (/home/git/gitlab/vendor/bundle/ruby/3.0.0/bin/mail_room)
/usr/local/lib/ruby/3.0.0/psych/class_loader.rb:99:in `find': Tried to load unspecified class: Symbol (Psych::DisallowedClass)
	from /usr/local/lib/ruby/3.0.0/psych/class_loader.rb:28:in `load'
	from (eval):2:in `symbol'
	from /usr/local/lib/ruby/3.0.0/psych/class_loader.rb:32:in `symbolize'
	from /usr/local/lib/ruby/3.0.0/psych/class_loader.rb:84:in `symbolize'
	from /usr/local/lib/ruby/3.0.0/psych/scalar_scanner.rb:74:in `tokenize'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:65:in `deserialize'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:128:in `visit_Psych_Nodes_Scalar'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/visitor.rb:30:in `visit'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/visitor.rb:6:in `accept'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:35:in `accept'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:343:in `each'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:343:in `each_slice'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:343:in `revive_hash'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/visitor.rb:30:in `visit'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/visitor.rb:6:in `accept'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:35:in `accept'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:343:in `each'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:343:in `each_slice'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:343:in `revive_hash'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/visitor.rb:30:in `visit'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/visitor.rb:6:in `accept'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:35:in `accept'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:343:in `each'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:343:in `each_slice'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:343:in `revive_hash'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/visitor.rb:30:in `visit'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/visitor.rb:6:in `accept'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:35:in `accept'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:318:in `visit_Psych_Nodes_Document'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/visitor.rb:30:in `visit'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/visitor.rb:6:in `accept'
	from /usr/local/lib/ruby/3.0.0/psych/visitors/to_ruby.rb:35:in `accept'
	from /usr/local/lib/ruby/3.0.0/psych.rb:362:in `safe_load'
	from /usr/local/lib/ruby/3.0.0/psych.rb:595:in `block in safe_load_file'
	from /usr/local/lib/ruby/3.0.0/psych.rb:594:in `open'
	from /usr/local/lib/ruby/3.0.0/psych.rb:594:in `safe_load_file'
	from /home/git/gitlab/lib/gitlab/mail_room.rb:146:in `load_yaml'
	from /home/git/gitlab/lib/gitlab/mail_room.rb:118:in `merged_configs'
	from /home/git/gitlab/lib/gitlab/mail_room.rb:102:in `fetch_config'
	from /home/git/gitlab/lib/gitlab/mail_room.rb:96:in `block in configs'
	from /home/git/gitlab/lib/gitlab/mail_room.rb:96:in `to_h'
	from /home/git/gitlab/lib/gitlab/mail_room.rb:96:in `configs'
	from /home/git/gitlab/lib/gitlab/mail_room.rb:78:in `enabled_configs'
	from /home/git/gitlab/config/mail_room.yml:4:in `<main>'
	from /usr/local/lib/ruby/3.0.0/erb.rb:905:in `eval'
	from /usr/local/lib/ruby/3.0.0/erb.rb:905:in `result'
	from /home/git/gitlab/vendor/bundle/ruby/3.0.0/gems/gitlab-mail_room-0.0.23/lib/mail_room/configuration.rb:18:in `initialize'
	from /home/git/gitlab/vendor/bundle/ruby/3.0.0/gems/gitlab-mail_room-0.0.23/lib/mail_room/cli.rb:44:in `new'
	from /home/git/gitlab/vendor/bundle/ruby/3.0.0/gems/gitlab-mail_room-0.0.23/lib/mail_room/cli.rb:44:in `initialize'
	from /home/git/gitlab/vendor/bundle/ruby/3.0.0/gems/gitlab-mail_room-0.0.23/bin/mail_room:5:in `new'
	from /home/git/gitlab/vendor/bundle/ruby/3.0.0/gems/gitlab-mail_room-0.0.23/bin/mail_room:5:in `<top (required)>'
	from /home/git/gitlab/vendor/bundle/ruby/3.0.0/bin/mail_room:25:in `load'
	from /home/git/gitlab/vendor/bundle/ruby/3.0.0/bin/mail_room:25:in `<top (required)>'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.4.14/lib/bundler/cli/exec.rb:58:in `load'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.4.14/lib/bundler/cli/exec.rb:58:in `kernel_load'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.4.14/lib/bundler/cli/exec.rb:23:in `run'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.4.14/lib/bundler/cli.rb:492:in `exec'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.4.14/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.4.14/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.4.14/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.4.14/lib/bundler/cli.rb:34:in `dispatch'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.4.14/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.4.14/lib/bundler/cli.rb:28:in `start'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.4.14/exe/bundle:37:in `block in <top (required)>'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.4.14/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
	from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.4.14/exe/bundle:29:in `<top (required)>'
	from /usr/local/bin/bundle:23:in `load'
	from /usr/local/bin/bundle:23:in `<main>'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at lib/gitlab/mail_room.rb, especially load_yaml and merged_configs, and inspect config/mail_room.yml where the stack trace enters the mail_room configuration. Reproduce the failure by running the mail_room command in the Dockerized GitLab environment; done means mail_room starts without the Psych::DisallowedClass error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, ruby
Domain
backend, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.