Migration to new Host: auth_xoauth2.rb Net::SMTP::Authenticator (NameError)

Infos:

  • Used Zammad version: 6.1.0-1701845240.5a81e629.buster
  • Used Zammad installation type: apt package
  • Operating system: Debian 11 & 12

Expected behavior:

  • successfull required maintenance tasks after restoring on new host on running zammad run rails r "Rails.cache.clear"

Actual behavior:

  • error returned by zammad run rails r "Rails.cache.clear" command:
    /opt/zammad/lib/core_ext/net/smtp/auth_xoauth2.rb:6:in '<class:SMTP>': uninitialized constant Net::SMTP::Authenticator (NameError)

Steps to reproduce the behavior:

  • Create new Debian 11 or 12 (tried with both, the problem occurs anyway)
  • Successfully follow migration steps 1 to 8 to migrate from previous host to new host Migrate Zammad to New Host — Zammad System Documentation documentation
  • Launch sudo zammad run rails r "Rails.cache.clear"
  • Read the output: /opt/zammad/lib/core_ext/net/smtp/auth_xoauth2.rb:6:in class:SMTP’: uninitialized constant Net::SMTP::Authenticator (NameError)`

Tried:

  • Running sudo zammad run rails r "Rails.cache.clear before restoring backup to new host: all works. The problem occurs only after restoring backup from previous host.
  • Migrate to new host on Debian 11 instead of Debian 12: same error uninitialized constant Net::SMTP::Authenticator (NameError) occurs.

NB:

  • backed up installation does NOT used any xoauth2 Microsoft nor Gmail account

You’re terribly outdated. We’re at 6.3.1 right now. Upgrade first please.

What’s this? I don’t know this file, cannot find it in Zammad 6.1…

Perfect @MrGeneration!

Indeed our zammad repository package was outdated due to a source error in /etc/apt/sources.list.d/zammad.list

We changed it from deb https://dl.packager.io/srv/deb/zammad/zammad/stable/debian 10 main >> to >> https://dl.packager.io/srv/deb/zammad/zammad/stable/debian 11 main

This solved the /opt/zammad/lib/core_ext/net/smtp/auth_xoauth2.rb:6:in '<class:SMTP>': uninitialized constant Net::SMTP::Authenticator (NameError) problem.

1 Like

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