Run Zammad using Kubernetes without Helm

Is there a way to run Zammad using Kubernetes without Helm? I just created some kubectl files but nginx doesn’t boot up properly. Maybe I run into https://github.com/zammad/zammad/issues/1601 but before investigating further days I simply wanted to ask if it is possible at all :sweat_smile:…Thanks :slight_smile:!

P.S.: Sorry for deleting the template but I did not have the feeling that it made sense in this particular case.

Now came further, just the websocket, nginx and the railsserver always crashes during the start. The rest seems to work.

Has anybody ever seen the error and now the cause?

starting railsserver...
/usr/local/bundle/gems/thor-1.0.1/lib/thor/parser/arguments.rb:133:in `parse_numeric': Expected numeric value for '--port'; got "tcp://10.101.127.87:3000" (Thor::MalformattedArgumentError)
	from /usr/local/bundle/gems/thor-1.0.1/lib/thor/parser/options.rb:233:in `parse_peek'
	from /usr/local/bundle/gems/thor-1.0.1/lib/thor/parser/options.rb:100:in `parse'
	from /usr/local/bundle/gems/thor-1.0.1/lib/thor/base.rb:79:in `initialize'
	from /usr/local/bundle/gems/thor-1.0.1/lib/thor/invocation.rb:26:in `initialize'
	from /usr/local/bundle/gems/thor-1.0.1/lib/thor/shell.rb:45:in `initialize'
	from /usr/local/bundle/gems/railties-5.2.4.4/lib/rails/commands/server/server_command.rb:134:in `initialize'
	from /usr/local/bundle/gems/thor-1.0.1/lib/thor.rb:388:in `new'
	from /usr/local/bundle/gems/thor-1.0.1/lib/thor.rb:388:in `dispatch'
	from /usr/local/bundle/gems/railties-5.2.4.4/lib/rails/command/base.rb:69:in `perform'
	from /usr/local/bundle/gems/railties-5.2.4.4/lib/rails/command.rb:46:in `invoke'
	from /usr/local/bundle/gems/railties-5.2.4.4/lib/rails/commands.rb:18:in `<main>'
	from /usr/local/bundle/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
	from /usr/local/bundle/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
	from /usr/local/bundle/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
	from /usr/local/bundle/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
	from /usr/local/bundle/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
	from /usr/local/bundle/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:291:in `block in require'
	from /usr/local/bundle/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:257:in `load_dependency'
	from /usr/local/bundle/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:291:in `require'
	from bin/rails:9:in `<main>'

starting nginx...
nginx: [emerg] invalid host in upstream "zammad-railsserver:tcp://10.101.127.87:3000" in /etc/nginx/sites-enabled/default:6
starting websocket server...
I, [2020-09-24T14:54:02.355425 #1-47194526439780]  INFO -- : Setting.set('models_searchable', ["Chat::Session", "KnowledgeBase::Answer::Translation", "Ticket", "User", "Organization"])
bundler: failed to load command: script/websocket-server.rb (script/websocket-server.rb)
TypeError: wrong argument type String (expected Module)
  /usr/local/bundle/gems/eventmachine-1.2.7/lib/eventmachine.rb:1582:in `include'
  /usr/local/bundle/gems/eventmachine-1.2.7/lib/eventmachine.rb:1582:in `block in klass_from_handler'
  /usr/local/bundle/gems/eventmachine-1.2.7/lib/eventmachine.rb:1582:in `initialize'
  /usr/local/bundle/gems/eventmachine-1.2.7/lib/eventmachine.rb:1582:in `new'
  /usr/local/bundle/gems/eventmachine-1.2.7/lib/eventmachine.rb:1582:in `klass_from_handler'
  /usr/local/bundle/gems/eventmachine-1.2.7/lib/eventmachine.rb:528:in `start_server'
  /usr/local/bundle/gems/em-websocket-0.5.1/lib/em-websocket/websocket.rb:46:in `run'
  /usr/local/bundle/gems/em-websocket-0.5.1/lib/em-websocket/websocket.rb:39:in `block in start'
  /usr/local/bundle/gems/eventmachine-1.2.7/lib/eventmachine.rb:171:in `run'
  /usr/local/bundle/gems/em-websocket-0.5.1/lib/em-websocket/websocket.rb:35:in `start'
  /opt/zammad/lib/websocket_server.rb:11:in `block in run'
  /usr/local/bundle/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `run_machine'
  /usr/local/bundle/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `run'
  /opt/zammad/lib/websocket_server.rb:10:in `run'
  script/websocket-server.rb:129:in `<top (required)>'

Here I uploaded the .yml file: https://pastebin.com/uGXntXSN

Looks like your providing wrong values to the scripts.
First issue is you providing a IP address to a value were it expects a port etc etc.

Sorry but that’s really out of my scope.

1 Like

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