Quantcast
Channel: Zammad - Community - Latest posts
Viewing all articles
Browse latest Browse all 6835

6.2 update - rake tasks 'NoMethodError' method_missing 'connection_config'

$
0
0

I could solve the error by changing the ‘connection_config’ part in db_preferences_mysql.rb and db_preferences_postgresql.rb to ‘connection_db_config.configuration_hash’.

Next error was

/opt/zammad/config/initializers/db_preferences_mysql.rb:64:in `<main>': uninitialized constant Setting (NameError)

   Setting.get('postmaster_max_size').present? &&
   ^^^^^^^
Did you mean?  String

so I just uncomment that part for now:

if connection.execute("SHOW tables LIKE 'settings';").any? &&
   Setting.get('postmaster_max_size').present? &&
   Setting.get('postmaster_max_size').to_i > max_allowed_packet_mb
  printf "\e[33m" # ANSI yellow
  puts <<~MSG
  Warning: Database config value 'max_allowed_packet' less than Zammad setting 'Maximum Email Size'
  Zammad will fail to process emails (both incoming and outgoing)
  larger than the value of 'max_allowed_packet' (#{max_allowed_packet_mb}MB).
  Please increase this value in your #{vendor} configuration accordingly.
  MSG
  printf "\e[0m" # ANSI normal
end

For now rake tasks are working again and postinstall-script finally completed the update.
Question still is why those files had wrong code? It is a package installation and there werent any errors before… like since v3.x I guess


Viewing all articles
Browse latest Browse all 6835

Trending Articles