Error on rake-comands during installation

  • Used Zammad version: 2.3
  • Used Zammad installation source: source
  • Operating system: Ubuntu Server 17.10.1
  • Browser + version: none

Expected behavior:

  • Zammad database is created

Actual behavior:

  • error message on ‘rake’ command

Steps to reproduce the behavior:

  • went through all steps on the installation manual. But the first rake db:create command throws an error:

zammad@ZammadSRV1:~/$ rake db:create
rake aborted!
ActiveRecord::AdapterNotSpecified: ‘development’ database is not configured. Available: [“production”]
/opt/zammad/.rvm/gems/ruby-2.4.2/gems/activerecord-5.1.4/lib/active_record/connection_adapters/connection_specification.rb:246:in resolve_symbol_connection' /opt/zammad/.rvm/gems/ruby-2.4.2/gems/activerecord-5.1.4/lib/active_record/connection_adapters/connection_specification.rb:227:inresolve_connection’
/opt/zammad/.rvm/gems/ruby-2.4.2/gems/activerecord-5.1.4/lib/active_record/connection_adapters/connection_specification.rb:141:in resolve' /opt/zammad/.rvm/gems/ruby-2.4.2/gems/activerecord-5.1.4/lib/active_record/connection_handling.rb:55:inestablish_connection’
/opt/zammad/.rvm/gems/ruby-2.4.2/gems/activerecord-5.1.4/lib/active_record/tasks/database_tasks.rb:139:in create_current' /opt/zammad/.rvm/gems/ruby-2.4.2/gems/activerecord-5.1.4/lib/active_record/railties/databases.rake:27:inblock (2 levels) in <top (required)>’
Tasks: TOP => db:create
(See full trace by running task with --trace)
zammad@ZammadSRV1:~/$

Hi @Sebastian_A

it’s a rails issue. You have not the the RAILS_ENV so rails want’s to use the development environment. For that environment a configured database need to exist in config/database.yml.

In you case there is no database configured for development environment in config/database.yml.

I really recommend you to your the Zammad package installation (it’s much easier and you do not need to install ruby/rails dependencies) or in case you really need source installations - try to create an rails example app to get familiar with the rails it self.

Greetings,

-Martin

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