Accessing the Rails Console

  • Used Zammad version: 6.2.0
  • Used Zammad installation type: docker compose
  • Operating system: Ubuntu 22LTS

Warning: I am a ruby noob let alone rails.

Expected behavior: Be able to configure via rails console

Actual behavior: Every command either returns nil or throws and error because nil

Steps to reproduce the behavior:

  • install zammad using docker compose
  • do first time setup via web interface
  • docker exec -it zammad-docker-compose-zammad-railsserver-1 bash
  • rails c inside the container
  • try a command such as Setting.get(‘fqdn’)
  • returns nil
  • quit pry and try “DISABLE_PRY_RAILS=1 rails c” inside container to get irb instead of pry
  • try a command such as User.first
  • returns nil

Any help would be much appreciated. I am just trying to add a ticket state but I cannot figure out how to operate the rails console.

You’re attaching to the container incorrectly. Please see the relevant documentation page here:

Apart from that, proceed with caution.

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