Connecting to Elasticsearch, Can't find config setting 'password'

  • Used Zammad version: lastest deb
  • Used Zammad installation type: package
  • Operating system: debian 12.8 and ubuntu server 24.04.1

Expected behavior:

While folowing official instructions ending at having a funtional system with elasticsearch

Actual behavior:

All seem to run smooth as described, but as i get to the point:
Step 3: Connecting Zammad with Elasticsearch i run into an error;
when I enter

zammad run rails r “Setting.set(‘password’, ‘my-password’)”

the error Appears:
/opt/zammad/app/models/setting.rb:42:in set': Can't find config setting 'password' (RuntimeError) from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.1.4.1/lib/rails/commands/runner/runner_command.rb:46:in
from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.1.4.1/lib/rails/commands/runner/runner_command.rb:46:in eval' from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.1.4.1/lib/rails/commands/runner/runner_command.rb:46:in block in perform’
from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:92:in wrap' from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.1.4.1/lib/rails/commands/runner/runner_command.rb:45:in perform’
from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/thor-1.3.2/lib/thor/command.rb:28:in run' from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/thor-1.3.2/lib/thor/invocation.rb:127:in invoke_command’
from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.1.4.1/lib/rails/command/base.rb:178:in invoke_command' from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/thor-1.3.2/lib/thor.rb:538:in dispatch’
from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.1.4.1/lib/rails/command/base.rb:73:in perform' from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.1.4.1/lib/rails/command.rb:71:in block in invoke’
from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.1.4.1/lib/rails/command.rb:149:in with_argv' from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.1.4.1/lib/rails/command.rb:69:in invoke’
from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.1.4.1/lib/rails/commands.rb:18:in <main>' from <internal:/opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in require’
from internal:/opt/zammad/vendor/ruby-3.2.4/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb:38:in require' from /opt/zammad/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require’
from /opt/zammad/bin/rails:4:in `’

I first tried It with ubuntu server, after I ran inot this I restartet from scratch but i got stuck at the same point.
I gave it a try and restarted from scratch with debian 12.8 but the same error happened

Steps to reproduce the behavior:

new fresh install of debian 12.8 or ubuntu server 24.04.1, folowing offical install instruction an getting to the point:
Step 3: Connecting Zammad with Elasticsearch i run into an error;
when I enter

zammad run rails r “Setting.set(‘password’, ‘my-password’)”

the error Appears:

The setting is called es_password.
Looks like a typo got found it’s way into the documentation.

PR is already done by me:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.