Password forget, broken link, token missing

Really sad this point of help.

We use this Ticketsystem productive and never had problems except with this Password forgot link variable.
All other features we’re using work very well. Is there somebody else who can help ?

If u say its the environment who is not set up correctly it was set up 2 years ago with the set up dialog of the zammad Documentation and we have this issue since a few months. Nothing happened except a Zammad / OS Update. It isnt possible to analyze the error in a specific Logfile?

No offense but this is a free community. We do have limits on scopes we can help with.

If you require commercial grade support, you may want to consider getting a support contract. If you don’t want that for whatever reason that’s absolutely fine.

But please be aware that not everything might be solvable via this forum.

i’ve updated my Zammad correctly now and have the correct Version of ruby.

But i have still the Problem that the Password forget link isn’t correct.
Where can i find a logfile or something else to find the error?

Password forget link to email x.y getting sent just without the correct token.

This means all the above steps are now working fine, e.g. accessing the Rails console?

hello @fliebe92

when i start the command zammad run rails c i get following log:

but when i run the command for installing gemfile i get this:

with Bundle info to one of this red gems he cant find anything.
The same error messages except the root notification i get as zammad user.

the bundle fund command give me this error Template:

— ERROR REPORT TEMPLATE -------------------------------------------------------

NoMethodError: undefined method `metadata' for nil:NilClass

        if spec.metadata.key?("funding_uri")
               ^^^^^^^^^
  /usr/share/rvm/gems/ruby-3.1.3/gems/bundler-2.5.6/lib/bundler/cli/fund.rb:24:in `block in run'
          /usr/share/rvm/gems/ruby-3.1.3/gems/bundler-2.5.6/lib/bundler/cli/fund.rb:22:in `each'
          /usr/share/rvm/gems/ruby-3.1.3/gems/bundler-2.5.6/lib/bundler/cli/fund.rb:22:in `each_with_object'
          /usr/share/rvm/gems/ruby-3.1.3/gems/bundler-2.5.6/lib/bundler/cli/fund.rb:22:in `run'
          /usr/share/rvm/gems/ruby-3.1.3/gems/bundler-2.5.6/lib/bundler/cli.rb:392:in `fund'
          /usr/share/rvm/gems/ruby-3.1.3/gems/bundler-2.5.6/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
          /usr/share/rvm/gems/ruby-3.1.3/gems/bundler-2.5.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
          /usr/share/rvm/gems/ruby-3.1.3/gems/bundler-2.5.6/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch'
          /usr/share/rvm/gems/ruby-3.1.3/gems/bundler-2.5.6/lib/bundler/cli.rb:34:in `dispatch'
          /usr/share/rvm/gems/ruby-3.1.3/gems/bundler-2.5.6/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
          /usr/share/rvm/gems/ruby-3.1.3/gems/bundler-2.5.6/lib/bundler/cli.rb:28:in `start'
          /usr/share/rvm/gems/ruby-3.1.3/gems/bundler-2.5.6/exe/bundle:28:in `block in <top (required)>'
          /usr/share/rvm/gems/ruby-3.1.3/gems/bundler-2.5.6/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
          /usr/share/rvm/gems/ruby-3.1.3/gems/bundler-2.5.6/exe/bundle:20:in `<top (required)>'
          /usr/share/rvm/gems/ruby-3.1.3/bin/bundle:25:in `load'
          /usr/share/rvm/gems/ruby-3.1.3/bin/bundle:25:in `<main>'
          /usr/share/rvm/gems/ruby-3.1.3/bin/ruby_executable_hooks:22:in `eval'
          /usr/share/rvm/gems/ruby-3.1.3/bin/ruby_executable_hooks:22:in `<main>'

Environment

Bundler             2.5.6
  Platforms         ruby, x86_64-linux
Ruby                3.1.3p185 (2022-11-24 revision 1a6b16756e0ba6b95ab71a441357ed5484e33498) [x86_64-linux]
  Full Path         /usr/share/rvm/rubies/ruby-3.1.3/bin/ruby
  Config Dir        /etc
RubyGems            3.5.6
  Gem Home          /usr/share/rvm/gems/ruby-3.1.3
  Gem Path          /usr/share/rvm/gems/ruby-3.1.3:/usr/share/rvm/rubies/ruby-3.1.3/lib/ruby/gems/3.1.0
  User Home         /home/zammad
  User Path         /home/zammad/.local/share/gem/ruby/3.1.0
  Bin Dir           /usr/share/rvm/gems/ruby-3.1.3/bin
Tools
  Git               2.34.1
  RVM               1.29.12 (manual)
  rbenv             not installed
  chruby            not installed
  rubygems-bundler  (1.4.5)

Bundler Build Metadata

Built At          2024-02-06
Git SHA           7ac045dcaa
Released Version  true

Bundler settings

clean
  Set for your local app (/opt/zammad/.bundle/config): false
frozen
  Set for your local app (/opt/zammad/.bundle/config): false
jobs
  Set for your local app (/opt/zammad/.bundle/config): 4
without
  Set for your local app (/opt/zammad/.bundle/config): [:test, :development, :postgres]
  Set for the current user (/home/zammad/.bundle/config): [:"?"]

Gemfile

Gemfile

# Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/

source 'https://rubygems.org'

# core - base
ruby '3.1.3'
gem 'rails', '~> 7.0.8'

# TEMPORARY Security updates from Ruby 3.1.4. Can be removed when updating from Ruby 3.1.3 to a higher version.
# See also: https://www.ruby-lang.org/en/news/2023/03/30/ruby-3-1-4-released/
gem 'time', '>= 0.2.2'
gem 'uri', '>= 0.12.1'
# END TEMPORARY

# core - rails additions
gem 'activerecord-import'
gem 'activerecord-session_store'
gem 'bootsnap', require: false
gem 'composite_primary_keys'
gem 'json'
gem 'parallel'

# core - application servers
gem 'puma', group: :puma

# core - supported ORMs
gem 'activerecord-nulldb-adapter', group: :nulldb
gem 'mysql2', group: :mysql
gem 'pg', '~> 1.2.0', group: :postgres

# core - asynchrous task execution
gem 'daemons'
gem 'delayed_job_active_record'

# core - command line interface
gem 'thor'

# core - websocket
gem 'em-websocket'
gem 'eventmachine'
gem 'hiredis'
# version restriction from actioncable-6.1.6.1/lib/action_cable/subscription_adapter/redis.rb
#   - check after rails update
gem 'redis', '>= 3', '< 5'

# core - password security
gem 'argon2'

# core - state machine
gem 'aasm'

# core - authorization
gem 'pundit'

# core - graphql handling
gem 'graphql'
gem 'graphql-batch', require: 'graphql/batch'

# core - image processing
gem 'rszr'

# core - use same timezone data on any host
gem 'tzinfo-data'

# performance - Memcached
gem 'dalli', require: false

# Vite is required by the web server
gem 'vite_rails'

# asset handling - config.assets for pipeline
gem 'sprockets-rails'

# Only load gems for asset compilation if they are needed to avoid
#   having unneeded runtime dependencies like NodeJS.
group :assets do
  # asset handling - javascript execution for e.g. linux
  gem 'execjs', require: false

  # asset handling - coffee-script
  gem 'coffee-rails', require: false

  # asset handling - frontend templating
  gem 'eco', require: false

  # asset handling - SASS
  gem 'sassc-rails', require: false

  # asset handling - pipeline
  gem 'sprockets', '~> 3.7.2', require: false
  gem 'terser', require: false

  gem 'autoprefixer-rails', require: false
end

# authentication - provider
gem 'doorkeeper'
gem 'oauth2'

# authentication - two factor
gem 'rotp', require: false
gem 'webauthn', require: false

# authentication - third party
gem 'omniauth-rails_csrf_protection'

# authentication - third party providers
gem 'omniauth-facebook'
gem 'omniauth-github'
gem 'omniauth-gitlab'
gem 'omniauth-google-oauth2'
gem 'omniauth-linkedin-oauth2'
gem 'omniauth-microsoft-office365'
gem 'omniauth-saml'
gem 'omniauth-twitter'
gem 'omniauth-weibo-oauth2', git: 'https://github.com/zammad-deps/omniauth-weibo-oauth2', branch: 'unpin-dependencies'

# Rate limiting
gem 'rack-attack'

# channels
gem 'gmail_xoauth'
gem 'koala'
gem 'telegram-bot-ruby'
gem 'twitter'

# channels - email additions
gem 'email_address'
gem 'htmlentities'
gem 'mail'
gem 'mime-types'
gem 'rchardet', '>= 1.8.0'

# networking libraries were removed from stdlib in ruby 3.1..
gem 'net-ftp',  require: false
gem 'net-http', require: false
gem 'net-imap', require: false
gem 'net-pop',  require: false
gem 'net-smtp', require: false

# convert from punycode ACE strings to unicode UTF-8 strings and visa versa
gem 'simpleidn'

# feature - business hours
gem 'biz'

# feature - signature diffing
gem 'diffy'

# feature - excel output
gem 'write_xlsx', require: false

# feature - csv import/export
gem 'csv', require: false

# feature - device logging
gem 'browser'

# feature - iCal export
gem 'icalendar'
gem 'icalendar-recurrence'

# feature - phone number formatting
gem 'telephone_number'

# feature - SMS
gem 'messagebird-rest'
gem 'twilio-ruby', require: false

# feature - ordering
gem 'acts_as_list'

# integrations
gem 'clearbit', require: false
gem 'net-ldap'
gem 'slack-notifier', require: false
gem 'zendesk_api', require: false

# integrations - exchange
gem 'autodiscover', git: 'https://github.com/zammad-deps/autodiscover', require: false
gem 'viewpoint', require: false

# integrations - S/MIME
gem 'openssl'

# Translation sync
gem 'byk', require: false
gem 'PoParser', require: false

# Simple storage
gem 'aws-sdk-s3', require: false

# Debugging and profiling
gem 'byebug'
gem 'pry-byebug'
gem 'pry-doc'
gem 'pry-rails'
gem 'pry-remote'
gem 'pry-rescue'
gem 'pry-stack_explorer'
gem 'pry-theme'

# Gems used only for develop/test and not required
# in production environments by default.
group :development, :test do

  # watch file changes
  gem 'listen'

  # test frameworks
  gem 'minitest-profile', require: false
  gem 'rails-controller-testing'
  gem 'rspec-rails'
  gem 'rspec-retry'
  gem 'shoulda-matchers'
  gem 'test-unit'

  # for testing Pundit authorisation policies in RSpec
  gem 'pundit-matchers'

  # UI tests w/ Selenium
  gem 'capybara'
  gem 'selenium-webdriver'

  # code QA
  gem 'brakeman', require: false
  gem 'overcommit'
  gem 'rubocop'
  gem 'rubocop-faker'
  gem 'rubocop-graphql'
  gem 'rubocop-inflector'
  gem 'rubocop-performance'
  gem 'rubocop-rails'
  gem 'rubocop-rspec'

  # generate random test data
  gem 'factory_bot_rails'
  gem 'faker'

  # mock http calls
  gem 'webmock'

  # record and replay TCP/HTTP transactions
  gem 'tcr', require: false
  gem 'vcr', require: false

  # handle deprecations in core and addons
  gem 'deprecation_toolkit'

  # image comparison in tests
  gem 'chunky_png'

  # Slack helper for testing
  gem 'slack-ruby-client', require: false

  # self-signed localhost certificates for puma / capybara
  gem 'localhost'

  # Keycloak admin tool for setting up SAML auth tests
  gem 'keycloak-admin', git: 'https://github.com/tschaefer/ruby-keycloak-admin/', branch: 'main', require: false
end

# To permanently extend Zammad with additional gems, you can specify them in Gemfile.local.
Dir['Gemfile.local*'].each do |file|
  eval_gemfile file
end

Gemfile.lock

GIT
  remote: https://github.com/tschaefer/ruby-keycloak-admin
  revision: 037ac274541d513f3edc3df74bc684ff23ecc473
  branch: main
  specs:
    keycloak-admin (22.0.4)
      httparty (~> 0.21.0)

GIT
  remote: https://github.com/zammad-deps/autodiscover
  revision: ee9b53dfa797ce6d4f970b82beea7fbdd2df56bb
  specs:
    autodiscover (1.0.2)
      httpclient
      logging
      nokogiri
      nori

GIT
  remote: https://github.com/zammad-deps/omniauth-weibo-oauth2
  revision: 06803ef97f822ede854322587db8049cc67dcfa6
  branch: unpin-dependencies
  specs:
    omniauth-weibo-oauth2 (0.5.2)
      omniauth
      omniauth-oauth2

GEM
  remote: https://rubygems.org/
  specs:
    PoParser (3.2.6)
      simple_po_parser (~> 1.1.6)
    aasm (5.5.0)
      concurrent-ruby (~> 1.0)
    actioncable (7.0.8)
      actionpack (= 7.0.8)
      activesupport (= 7.0.8)
      nio4r (~> 2.0)
      websocket-driver (>= 0.6.1)
    actionmailbox (7.0.8)
      actionpack (= 7.0.8)
      activejob (= 7.0.8)
      activerecord (= 7.0.8)
      activestorage (= 7.0.8)
      activesupport (= 7.0.8)
      mail (>= 2.7.1)
      net-imap
      net-pop
      net-smtp
    actionmailer (7.0.8)
      actionpack (= 7.0.8)
      actionview (= 7.0.8)
      activejob (= 7.0.8)
      activesupport (= 7.0.8)
      mail (~> 2.5, >= 2.5.4)
      net-imap
      net-pop
      net-smtp
      rails-dom-testing (~> 2.0)
    actionpack (7.0.8)
      actionview (= 7.0.8)
      activesupport (= 7.0.8)
      rack (~> 2.0, >= 2.2.4)
      rack-test (>= 0.6.3)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0, >= 1.2.0)
    actiontext (7.0.8)
      actionpack (= 7.0.8)
      activerecord (= 7.0.8)
      activestorage (= 7.0.8)
      activesupport (= 7.0.8)
      globalid (>= 0.6.0)
      nokogiri (>= 1.8.5)
    actionview (7.0.8)
      activesupport (= 7.0.8)
      builder (~> 3.1)
      erubi (~> 1.4)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.1, >= 1.2.0)
    activejob (7.0.8)
      activesupport (= 7.0.8)
      globalid (>= 0.3.6)
    activemodel (7.0.8)
      activesupport (= 7.0.8)
    activerecord (7.0.8)
      activemodel (= 7.0.8)
      activesupport (= 7.0.8)
    activerecord-import (1.5.1)
      activerecord (>= 4.2)
    activerecord-nulldb-adapter (1.0.1)
      activerecord (>= 5.2.0, < 7.2)
    activerecord-session_store (2.1.0)
      actionpack (>= 6.1)
      activerecord (>= 6.1)
      cgi (>= 0.3.6)
      multi_json (~> 1.11, >= 1.11.2)
      rack (>= 2.0.8, < 4)
      railties (>= 6.1)
    activestorage (7.0.8)
      actionpack (= 7.0.8)
      activejob (= 7.0.8)
      activerecord (= 7.0.8)
      activesupport (= 7.0.8)
      marcel (~> 1.0)
      mini_mime (>= 1.1.0)
    activesupport (7.0.8)
      concurrent-ruby (~> 1.0, >= 1.0.2)
      i18n (>= 1.6, < 2)
      minitest (>= 5.1)
      tzinfo (~> 2.0)
    acts_as_list (1.1.0)
      activerecord (>= 4.2)
    addressable (2.8.6)
      public_suffix (>= 2.0.2, < 6.0)
    android_key_attestation (0.3.0)
    argon2 (2.3.0)
      ffi (~> 1.15)
      ffi-compiler (~> 1.0)
    ast (2.4.2)
    autoprefixer-rails (10.4.16.0)
      execjs (~> 2)
    awrence (1.2.1)
    aws-eventstream (1.3.0)
    aws-partitions (1.892.0)
    aws-sdk-core (3.191.2)
      aws-eventstream (~> 1, >= 1.3.0)
      aws-partitions (~> 1, >= 1.651.0)
      aws-sigv4 (~> 1.8)
      base64
      jmespath (~> 1, >= 1.6.1)
    aws-sdk-kms (1.77.0)
      aws-sdk-core (~> 3, >= 3.191.0)
      aws-sigv4 (~> 1.1)
    aws-sdk-s3 (1.143.0)
      aws-sdk-core (~> 3, >= 3.191.0)
      aws-sdk-kms (~> 1)
      aws-sigv4 (~> 1.8)
    aws-sigv4 (1.8.0)
      aws-eventstream (~> 1, >= 1.0.2)
    base64 (0.2.0)
    bigdecimal (3.1.6)
    bindata (2.5.0)
    binding_of_caller (1.0.0)
      debug_inspector (>= 0.0.1)
    biz (1.8.2)
      clavius (~> 1.0)
      tzinfo
    bootsnap (1.18.3)
      msgpack (~> 1.2)
    brakeman (6.1.2)
      racc
    browser (5.3.1)
    buftok (0.3.0)
    builder (3.2.4)
    byebug (11.1.3)
    byk (1.1.0)
    capybara (3.40.0)
      addressable
      matrix
      mini_mime (>= 0.1.3)
      nokogiri (~> 1.11)
      rack (>= 1.6.0)
      rack-test (>= 0.6.3)
      regexp_parser (>= 1.5, < 3.0)
      xpath (~> 3.2)
    cbor (0.5.9.8)
    cgi (0.4.1)
    childprocess (5.0.0)
    chunky_png (1.4.0)
    clavius (1.0.4)
    clearbit (0.3.3)
      nestful (~> 1.1.0)
    coderay (1.1.3)
    coffee-rails (5.0.0)
      coffee-script (>= 2.2.0)
      railties (>= 5.2.0)
    coffee-script (2.4.1)
      coffee-script-source
      execjs
    coffee-script-source (1.12.2)
    composite_primary_keys (14.0.9)
      activerecord (~> 7.0.2)
    concurrent-ruby (1.2.3)
    cose (1.3.0)
      cbor (~> 0.5.9)
      openssl-signature_algorithm (~> 1.0)
    crack (1.0.0)
      bigdecimal
      rexml
    crass (1.0.6)
    csv (3.2.8)
    daemons (1.4.1)
    dalli (3.2.8)
    date (3.3.4)
    debug_inspector (1.2.0)
    delayed_job (4.1.11)
      activesupport (>= 3.0, < 8.0)
    delayed_job_active_record (4.1.8)
      activerecord (>= 3.0, < 8.0)
      delayed_job (>= 3.0, < 5)
    deprecation_toolkit (2.2.0)
      activesupport (>= 6.1)
    diff-lcs (1.5.1)
    diffy (3.4.2)
    domain_name (0.6.20240107)
    doorkeeper (5.6.9)
      railties (>= 5)
    dry-cli (1.0.0)
    dry-core (1.0.1)
      concurrent-ruby (~> 1.0)
      zeitwerk (~> 2.6)
    dry-inflector (1.0.0)
    dry-logic (1.5.0)
      concurrent-ruby (~> 1.0)
      dry-core (~> 1.0, < 2)
      zeitwerk (~> 2.6)
    dry-struct (1.6.0)
      dry-core (~> 1.0, < 2)
      dry-types (>= 1.7, < 2)
      ice_nine (~> 0.11)
      zeitwerk (~> 2.6)
    dry-types (1.7.2)
      bigdecimal (~> 3.0)
      concurrent-ruby (~> 1.0)
      dry-core (~> 1.0)
      dry-inflector (~> 1.0)
      dry-logic (~> 1.4)
      zeitwerk (~> 2.6)
    eco (1.0.0)
      coffee-script
      eco-source
      execjs
    eco-source (1.1.0.rc.1)
    em-websocket (0.5.3)
      eventmachine (>= 0.12.9)
      http_parser.rb (~> 0)
    email_address (0.2.4)
      simpleidn
    equalizer (0.0.11)
    erubi (1.12.0)
    eventmachine (1.2.7)
    execjs (2.9.1)
    factory_bot (6.4.6)
      activesupport (>= 5.0.0)
    factory_bot_rails (6.4.3)
      factory_bot (~> 6.4)
      railties (>= 5.0.0)
    faker (3.2.3)
      i18n (>= 1.8.11, < 2)
    faraday (2.9.0)
      faraday-net_http (>= 2.0, < 3.2)
    faraday-mashify (0.1.1)
      faraday (~> 2.0)
      hashie
    faraday-multipart (1.0.4)
      multipart-post (~> 2)
    faraday-net_http (3.1.0)
      net-http
    ffi (1.16.3)
    ffi-compiler (1.0.1)
      ffi (>= 1.0.0)
      rake
    gli (2.21.1)
    globalid (1.2.1)
      activesupport (>= 6.1)
    gmail_xoauth (0.4.3)
      oauth (>= 0.3.6)
    graphql (2.2.9)
    graphql-batch (0.5.4)
      graphql (>= 1.12.18, < 3)
      promise.rb (~> 0.7.2)
    hashdiff (1.1.0)
    hashie (5.0.0)
    hiredis (0.6.3)
    htmlentities (4.3.4)
    http (5.1.1)
      addressable (~> 2.8)
      http-cookie (~> 1.0)
      http-form_data (~> 2.2)
      llhttp-ffi (~> 0.4.0)
    http-cookie (1.0.5)
      domain_name (~> 0.5)
    http-form_data (2.3.0)
    http_parser.rb (0.8.0)
    httparty (0.21.0)
      mini_mime (>= 1.0.0)
      multi_xml (>= 0.5.2)
    httpclient (2.8.3)
    i18n (1.14.1)
      concurrent-ruby (~> 1.0)
    icalendar (2.10.1)
      ice_cube (~> 0.16)
    icalendar-recurrence (1.2.0)
      icalendar (~> 2.0)
      ice_cube (~> 0.16)
      tzinfo (~> 2.0)
    ice_cube (0.16.4)
    ice_nine (0.11.2)
    inflection (1.0.0)
    iniparse (1.5.0)
    interception (0.5)
    jmespath (1.6.2)
    json (2.7.1)
    jwt (2.3.0)
    koala (3.5.0)
      addressable
      faraday
      faraday-multipart
      json (>= 1.8)
      rexml
    language_server-protocol (3.17.0.3)
    listen (3.8.0)
      rb-fsevent (~> 0.10, >= 0.10.3)
      rb-inotify (~> 0.9, >= 0.9.10)
    little-plugger (1.1.4)
    llhttp-ffi (0.4.0)
      ffi-compiler (~> 1.0)
      rake (~> 13.0)
    localhost (1.2.0)
    logging (2.3.1)
      little-plugger (~> 1.1)
      multi_json (~> 1.14)
    loofah (2.22.0)
      crass (~> 1.0.2)
      nokogiri (>= 1.12.0)
    mail (2.8.1)
      mini_mime (>= 0.1.1)
      net-imap
      net-pop
      net-smtp
    marcel (1.0.2)
    matrix (0.4.2)
    memoizable (0.4.2)
      thread_safe (~> 0.3, >= 0.3.1)
    messagebird-rest (4.0.0)
      jwt (~> 2.3.0)
    method_source (1.0.0)
    mime-types (3.5.2)
      mime-types-data (~> 3.2015)
    mime-types-data (3.2024.0206)
    mini_mime (1.1.5)
    minitest (5.22.2)
    minitest-profile (0.0.2)
    msgpack (1.7.2)
    multi_json (1.15.0)
    multi_xml (0.6.0)
    multipart-post (2.4.0)
    mysql2 (0.5.6)
    naught (1.1.0)
    nestful (1.1.4)
    net-ftp (0.3.4)
      net-protocol
      time
    net-http (0.4.1)
      uri
    net-imap (0.4.10)
      date
      net-protocol
    net-ldap (0.19.0)
    net-pop (0.1.2)
      net-protocol
    net-protocol (0.2.2)
      timeout
    net-smtp (0.4.0.1)
      net-protocol
    nio4r (2.7.0)
    nkf (0.2.0)
    nokogiri (1.16.2-aarch64-linux)
      racc (~> 1.4)
    nokogiri (1.16.2-arm-linux)
      racc (~> 1.4)
    nokogiri (1.16.2-arm64-darwin)
      racc (~> 1.4)
    nokogiri (1.16.2-x86-linux)
      racc (~> 1.4)
    nokogiri (1.16.2-x86_64-darwin)
      racc (~> 1.4)
    nokogiri (1.16.2-x86_64-linux)
      racc (~> 1.4)
    nori (2.7.0)
      bigdecimal
    oauth (1.1.0)
      oauth-tty (~> 1.0, >= 1.0.1)
      snaky_hash (~> 2.0)
      version_gem (~> 1.1)
    oauth-tty (1.0.5)
      version_gem (~> 1.1, >= 1.1.1)
    oauth2 (2.0.9)
      faraday (>= 0.17.3, < 3.0)
      jwt (>= 1.0, < 3.0)
      multi_xml (~> 0.5)
      rack (>= 1.2, < 4)
      snaky_hash (~> 2.0)
      version_gem (~> 1.1)
    omniauth (2.1.2)
      hashie (>= 3.4.6)
      rack (>= 2.2.3)
      rack-protection
    omniauth-facebook (9.0.0)
      omniauth-oauth2 (~> 1.2)
    omniauth-github (2.0.1)
      omniauth (~> 2.0)
      omniauth-oauth2 (~> 1.8)
    omniauth-gitlab (4.1.0)
      omniauth (~> 2.0)
      omniauth-oauth2 (~> 1.8.0)
    omniauth-google-oauth2 (1.1.1)
      jwt (>= 2.0)
      oauth2 (~> 2.0.6)
      omniauth (~> 2.0)
      omniauth-oauth2 (~> 1.8.0)
    omniauth-linkedin-oauth2 (1.0.1)
      omniauth-oauth2
    omniauth-microsoft-office365 (0.0.8)
      omniauth
      omniauth-oauth2
    omniauth-oauth (1.2.0)
      oauth
      omniauth (>= 1.0, < 3)
    omniauth-oauth2 (1.8.0)
      oauth2 (>= 1.4, < 3)
      omniauth (~> 2.0)
    omniauth-rails_csrf_protection (1.0.1)
      actionpack (>= 4.2)
      omniauth (~> 2.0)
    omniauth-saml (2.1.0)
      omniauth (~> 2.0)
      ruby-saml (~> 1.12)
    omniauth-twitter (1.4.0)
      omniauth-oauth (~> 1.1)
      rack
    openssl (3.2.0)
    openssl-signature_algorithm (1.3.0)
      openssl (> 2.0)
    overcommit (0.62.0)
      childprocess (>= 0.6.3, < 6)
      iniparse (~> 1.4)
      rexml (~> 3.2)
    parallel (1.24.0)
    parser (3.3.0.5)
      ast (~> 2.4.1)
      racc
    pg (1.2.3)
    power_assert (2.0.3)
    promise.rb (0.7.4)
    pry (0.14.2)
      coderay (~> 1.1)
      method_source (~> 1.0)
    pry-byebug (3.10.1)
      byebug (~> 11.0)
      pry (>= 0.13, < 0.15)
    pry-doc (1.5.0)
      pry (~> 0.11)
      yard (~> 0.9.11)
    pry-rails (0.3.9)
      pry (>= 0.10.4)
    pry-remote (0.1.8)
      pry (~> 0.9)
      slop (~> 3.0)
    pry-rescue (1.6.0)
      interception (>= 0.5)
      pry (>= 0.12.0)
    pry-stack_explorer (0.6.1)
      binding_of_caller (~> 1.0)
      pry (~> 0.13)
    pry-theme (1.3.1)
      coderay (~> 1.1)
    public_suffix (5.0.4)
    puma (6.4.2)
      nio4r (~> 2.0)
    pundit (2.3.1)
      activesupport (>= 3.0.0)
    pundit-matchers (3.1.2)
      rspec-core (~> 3.12)
      rspec-expectations (~> 3.12)
      rspec-mocks (~> 3.12)
      rspec-support (~> 3.12)
    racc (1.7.3)
    rack (2.2.8)
    rack-attack (6.7.0)
      rack (>= 1.0, < 4)
    rack-protection (3.2.0)
      base64 (>= 0.1.0)
      rack (~> 2.2, >= 2.2.4)
    rack-proxy (0.7.7)
      rack
    rack-test (2.1.0)
      rack (>= 1.3)
    rails (7.0.8)
      actioncable (= 7.0.8)
      actionmailbox (= 7.0.8)
      actionmailer (= 7.0.8)
      actionpack (= 7.0.8)
      actiontext (= 7.0.8)
      actionview (= 7.0.8)
      activejob (= 7.0.8)
      activemodel (= 7.0.8)
      activerecord (= 7.0.8)
      activestorage (= 7.0.8)
      activesupport (= 7.0.8)
      bundler (>= 1.15.0)
      railties (= 7.0.8)
    rails-controller-testing (1.0.5)
      actionpack (>= 5.0.1.rc1)
      actionview (>= 5.0.1.rc1)
      activesupport (>= 5.0.1.rc1)
    rails-dom-testing (2.2.0)
      activesupport (>= 5.0.0)
      minitest
      nokogiri (>= 1.6)
    rails-html-sanitizer (1.6.0)
      loofah (~> 2.21)
      nokogiri (~> 1.14)
    railties (7.0.8)
      actionpack (= 7.0.8)
      activesupport (= 7.0.8)
      method_source
      rake (>= 12.2)
      thor (~> 1.0)
      zeitwerk (~> 2.5)
    rainbow (3.1.1)
    rake (13.1.0)
    rb-fsevent (0.11.2)
    rb-inotify (0.10.1)
      ffi (~> 1.0)
    rchardet (1.8.0)
    redis (4.8.1)
    regexp_parser (2.9.0)
    rexml (3.2.6)
    rotp (6.3.0)
    rspec-core (3.13.0)
      rspec-support (~> 3.13.0)
    rspec-expectations (3.13.0)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.13.0)
    rspec-mocks (3.13.0)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.13.0)
    rspec-rails (6.1.1)
      actionpack (>= 6.1)
      activesupport (>= 6.1)
      railties (>= 6.1)
      rspec-core (~> 3.12)
      rspec-expectations (~> 3.12)
      rspec-mocks (~> 3.12)
      rspec-support (~> 3.12)
    rspec-retry (0.6.2)
      rspec-core (> 3.3)
    rspec-support (3.13.0)
    rszr (1.5.0)
    rubocop (1.60.2)
      json (~> 2.3)
      language_server-protocol (>= 3.17.0)
      parallel (~> 1.10)
      parser (>= 3.3.0.2)
      rainbow (>= 2.2.2, < 4.0)
      regexp_parser (>= 1.8, < 3.0)
      rexml (>= 3.2.5, < 4.0)
      rubocop-ast (>= 1.30.0, < 2.0)
      ruby-progressbar (~> 1.7)
      unicode-display_width (>= 2.4.0, < 3.0)
    rubocop-ast (1.30.0)
      parser (>= 3.2.1.0)
    rubocop-capybara (2.20.0)
      rubocop (~> 1.41)
    rubocop-factory_bot (2.25.1)
      rubocop (~> 1.41)
    rubocop-faker (1.1.0)
      faker (>= 2.12.0)
      rubocop (>= 0.82.0)
    rubocop-graphql (1.5.0)
      rubocop (>= 0.90, < 2)
    rubocop-inflector (0.2.1)
      activesupport
      rubocop
      rubocop-rspec
    rubocop-performance (1.20.2)
      rubocop (>= 1.48.1, < 2.0)
      rubocop-ast (>= 1.30.0, < 2.0)
    rubocop-rails (2.23.1)
      activesupport (>= 4.2.0)
      rack (>= 1.1)
      rubocop (>= 1.33.0, < 2.0)
      rubocop-ast (>= 1.30.0, < 2.0)
    rubocop-rspec (2.26.1)
      rubocop (~> 1.40)
      rubocop-capybara (~> 2.17)
      rubocop-factory_bot (~> 2.22)
    ruby-progressbar (1.13.0)
    ruby-saml (1.16.0)
      nokogiri (>= 1.13.10)
      rexml
    rubyntlm (0.6.3)
    rubyzip (2.3.2)
    safety_net_attestation (0.4.0)
      jwt (~> 2.0)
    sassc (2.4.0)
      ffi (~> 1.9)
    sassc-rails (2.1.2)
      railties (>= 4.0.0)
      sassc (>= 2.0)
      sprockets (> 3.0)
      sprockets-rails
      tilt
    selenium-webdriver (4.17.0)
      base64 (~> 0.2)
      rexml (~> 3.2, >= 3.2.5)
      rubyzip (>= 1.2.2, < 3.0)
      websocket (~> 1.0)
    shoulda-matchers (6.1.0)
      activesupport (>= 5.2.0)
    simple_oauth (0.3.1)
    simple_po_parser (1.1.6)
    simpleidn (0.2.1)
      unf (~> 0.1.4)
    slack-notifier (2.4.0)
    slack-ruby-client (2.3.0)
      faraday (>= 2.0)
      faraday-mashify
      faraday-multipart
      gli
      hashie
    slop (3.6.0)
    snaky_hash (2.0.1)
      hashie
      version_gem (~> 1.1, >= 1.1.1)
    sprockets (3.7.2)
      concurrent-ruby (~> 1.0)
      rack (> 1, < 3)
    sprockets-rails (3.4.2)
      actionpack (>= 5.2)
      activesupport (>= 5.2)
      sprockets (>= 3.0.0)
    tcr (0.4.0)
    telegram-bot-ruby (2.0.0)
      dry-struct (~> 1.6)
      faraday (~> 2.0)
      faraday-multipart (~> 1.0)
      zeitwerk (~> 2.6)
    telephone_number (1.4.20)
    terser (1.2.0)
      execjs (>= 0.3.0, < 3)
    test-unit (3.6.2)
      power_assert
    thor (1.3.0)
    thread_safe (0.3.6)
    tilt (2.3.0)
    time (0.3.0)
      date
    timeout (0.4.1)
    tpm-key_attestation (0.12.0)
      bindata (~> 2.4)
      openssl (> 2.0)
      openssl-signature_algorithm (~> 1.0)
    twilio-ruby (6.11.0)
      faraday (>= 0.9, < 3.0)
      jwt (>= 1.5, < 3.0)
      nokogiri (>= 1.6, < 2.0)
    twitter (8.0.1)
      addressable (~> 2.3)
      buftok (~> 0.3.0)
      equalizer (~> 0.0.11)
      http (~> 5.1)
      http-form_data (~> 2.3)
      llhttp-ffi (~> 0.4.0)
      memoizable (~> 0.4.0)
      multipart-post (~> 2.0)
      naught (~> 1.0)
      simple_oauth (~> 0.3.0)
    tzinfo (2.0.6)
      concurrent-ruby (~> 1.0)
    tzinfo-data (1.2024.1)
      tzinfo (>= 1.0.0)
    unf (0.1.4)
      unf_ext
    unf_ext (0.0.9.1)
    unicode-display_width (2.5.0)
    uri (0.13.0)
    vcr (6.2.0)
    version_gem (1.1.3)
    viewpoint (1.1.1)
      httpclient
      logging
      nokogiri
      rubyntlm
    vite_rails (3.0.17)
      railties (>= 5.1, < 8)
      vite_ruby (~> 3.0, >= 3.2.2)
    vite_ruby (3.5.0)
      dry-cli (>= 0.7, < 2)
      rack-proxy (~> 0.6, >= 0.6.1)
      zeitwerk (~> 2.2)
    webauthn (3.1.0)
      android_key_attestation (~> 0.3.0)
      awrence (~> 1.1)
      bindata (~> 2.4)
      cbor (~> 0.5.9)
      cose (~> 1.1)
      openssl (>= 2.2)
      safety_net_attestation (~> 0.4.0)
      tpm-key_attestation (~> 0.12.0)
    webmock (3.20.0)
      addressable (>= 2.8.0)
      crack (>= 0.3.2)
      hashdiff (>= 0.4.0, < 2.0.0)
    websocket (1.2.10)
    websocket-driver (0.7.6)
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.5)
    write_xlsx (1.11.2)
      nkf
      rubyzip (>= 1.0.0)
    xpath (3.2.0)
      nokogiri (~> 1.8)
    yard (0.9.34)
    zeitwerk (2.6.13)
    zendesk_api (3.0.5)
      faraday (> 2.0.0)
      faraday-multipart
      hashie (>= 3.5.2, < 6.0.0)
      inflection
      mini_mime
      multipart-post (~> 2.0)

PLATFORMS
  aarch64-linux
  arm-linux
  arm64-darwin
  x86-linux
  x86_64-darwin
  x86_64-linux

DEPENDENCIES
  PoParser
  aasm
  activerecord-import
  activerecord-nulldb-adapter
  activerecord-session_store
  acts_as_list
  argon2
  autodiscover!
  autoprefixer-rails
  aws-sdk-s3
  biz
  bootsnap
  brakeman
  browser
  byebug
  byk
  capybara
  chunky_png
  clearbit
  coffee-rails
  composite_primary_keys
  csv
  daemons
  dalli
  delayed_job_active_record
  deprecation_toolkit
  diffy
  doorkeeper
  eco
  em-websocket
  email_address
  eventmachine
  execjs
  factory_bot_rails
  faker
  gmail_xoauth
  graphql
  graphql-batch
  hiredis
  htmlentities
  icalendar
  icalendar-recurrence
  json
  keycloak-admin!
  koala
  listen
  localhost
  mail
  messagebird-rest
  mime-types
  minitest-profile
  mysql2
  net-ftp
  net-http
  net-imap
  net-ldap
  net-pop
  net-smtp
  oauth2
  omniauth-facebook
  omniauth-github
  omniauth-gitlab
  omniauth-google-oauth2
  omniauth-linkedin-oauth2
  omniauth-microsoft-office365
  omniauth-rails_csrf_protection
  omniauth-saml
  omniauth-twitter
  omniauth-weibo-oauth2!
  openssl
  overcommit
  parallel
  pg (~> 1.2.0)
  pry-byebug
  pry-doc
  pry-rails
  pry-remote
  pry-rescue
  pry-stack_explorer
  pry-theme
  puma
  pundit
  pundit-matchers
  rack-attack
  rails (~> 7.0.8)
  rails-controller-testing
  rchardet (>= 1.8.0)
  redis (>= 3, < 5)
  rotp
  rspec-rails
  rspec-retry
  rszr
  rubocop
  rubocop-faker
  rubocop-graphql
  rubocop-inflector
  rubocop-performance
  rubocop-rails
  rubocop-rspec
  sassc-rails
  selenium-webdriver
  shoulda-matchers
  simpleidn
  slack-notifier
  slack-ruby-client
  sprockets (~> 3.7.2)
  sprockets-rails
  tcr
  telegram-bot-ruby
  telephone_number
  terser
  test-unit
  thor
  time (>= 0.2.2)
  twilio-ruby
  twitter
  tzinfo-data
  uri (>= 0.12.1)
  vcr
  viewpoint
  vite_rails
  webauthn
  webmock
  write_xlsx
  zendesk_api

RUBY VERSION
   ruby 3.1.3p185

BUNDLED WITH
   2.5.6

— TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error:
https://github.com/rubygems/rubygems/search?q=undefined+method+`metadata'+for+nil+NilClass&type=Issues

If there aren’t any reports for this error yet, please fill in the new issue form located at Sign in to GitHub · GitHub, and copy and paste the report template above in there.

Please start consulting the documentation. It tells you how to update your bundles etc. Your Zammad is non functional. Consider switching to the package installation for a much easier handling.

I dont understand this sentences: , your Zammad is non functional "

Everything is working except the Password Forget link.

The Ticket inbound,outbound messages, full text search, creating users and administrate workflows. Just the Password forget link isnt generating the token…

I read the Documentation already 20 times and i prompted the command as it stay in the documentation. Anyways i have this errors.

How could i migrate the Tickets+Users to a Package Installation?

You can learn more about how to migrate in the documentation:
https://docs.zammad.org/en/latest/appendix/backup-and-restore/index.html

It literately holds your hands in the process.

this answer really dont help at all.

U said my “source” installation is non functional. Now u send me a Documentation about backup and restore. The Backup and Restore restores a broken installation and this should work after all in a package ?

Sorry but this is how far I’m able to “not help you at all”.

1 Like

@clzvegovk As I already wrote it before, I am pretty sure that there are more functionalities in your Zammad instance that are broken, you just did not notice it until now.

Sorry, but you are ignoring almost all that @MrGeneration and I did write to you.

One last time: Your setup is not correct, this is why you are getting such error messages by using the commands. In a correct environment/setup, it works like a charm. We’re not able to fix your environment/setup for you.

I’ve asked how to migrate from a source installation to a package installation the Database Users and Tickets without migrate the “unhealthy installation”.

Read the backup & restore documentation carefully and you will notice how to do it.

We have a similar problem, even with a backup and restore to a new system, the problem with the missing token in the link remains
we could observe in the debug log that the token is generated and also stored in the DB.

old

D, [2024-03-20T13:23:32.012764#362396-141880] DEBUG -- :   Token Exists? (0.2ms)  SELECT 1 AS one FROM `tokens` WHERE `tokens`.`token` = 'tocken123.....' LIMIT 1
D, [2024-03-20T13:23:32.013460#362396-141880] DEBUG -- :   Token Create (0.2ms)  INSERT INTO `tokens` (`user_id`, `token`, `action`, `created_at`, `updated_at`) VALUES (246, 'tocken123.....', 'PasswordReset', '2024-03-20 12:23:32.011000', '2024-03-20 12:23:32.011000')

new bevor import

D, [2024-03-20T12:16:38.319623#3270-141960] DEBUG -- :   TRANSACTION (0.1ms)  BEGIN
D, [2024-03-20T12:16:38.320013#3270-141960] DEBUG -- :   Token Exists? (0.2ms)  SELECT 1 AS one FROM "tokens" WHERE "tokens"."token" = $1 LIMIT $2  [["token", "tocken456....."], ["LIMIT", 1]]
D, [2024-03-20T12:16:38.321663#3270-141960] DEBUG -- :   Token Create (0.9ms)  INSERT INTO "tokens" ("user_id", "token", "action", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["user_id", 3], ["token", "tocken456....."], ["action", "PasswordReset"], ["created_at", "2024-03-20 12:16:38.318000"], ["updated_at", "2024-03-20 12:16:38.318000"]]
D, [2024-03-20T12:16:38.325725#3270-141960] DEBUG -- :   TRANSACTION (3.5ms)  COMMIT
D, [2024-03-20T12:16:38.330479#3270-141960] DEBUG -- :   Translation Load (0.5ms)  SELECT "translations".* FROM "translations" WHERE "translations"."locale" = $1 AND "translations"."source" = $2 LIMIT $3  [["locale", "de-de"], ["source", "Notification"], ["LIMIT", 1]]
D, [2024-03-20T12:16:38.331217#3270-141960] DEBUG -- :   Translation Load (0.2ms)  SELECT "translations".* FROM "translations" WHERE "translations"."locale" = $1 AND "translations"."source" = $2 LIMIT $3  [["locale", "de-de"], ["source", "Manage your notification settings"], ["LIMIT", 1]]
D, [2024-03-20T12:16:38.334080#3270-141960] DEBUG -- : Send notification to: test@test.de (from:Zammad Helpdesk <noreply@172.x.x.x>/subject:Zurücksetzen Ihres Zammad Helpdesk Passworts)

before we did the restore on the new system, we tested the password forget. in the database the pilbic.token is stored in a different format than in the database of the old non-functioning password forget.

old

COPY public.tokens (id, user_id, persistent, token, action, name, preferences, last_used_at, expires_at, created_at, updated_at) FROM stdin;
36	61	f	token123	PasswordReset	\N	\N	\N	\N	2023-07-31 14:27:25.079+02	2023-07-31 14:27:25.079+02
39	98	f	token123	PasswordReset	\N	\N	\N	\N	2023-08-21 11:30:22.245+02	2023-08-21 11:30:22.245+02
41	97	f	token123	PasswordReset	\N	\N	\N	\N	2023-09-04 08:23:35.454+02	2023-09-04 08:23:35.454+02
43	232	f	token123	PasswordReset	\N	\N	\N	\N	2023-10-04 11:29:04.202+02	2023-10-04 11:29:04.202+02
......

new before import

COPY public.tokens (id, user_id, persistent, name, token, action, preferences, last_used_at, expires_at, created_at, updated_at) FROM stdin;
2	3	f	\N	token123	PasswordReset	\N	\N	\N	2024-03-20 12:16:38.318	2024-03-20 12:16:38.318
\.

maybe this is the cause?
We have not yet been able to solve the problem.
:frowning:

Same organisation, different user.
Please read the documentation. Thank you.

However, the documentation does not state that the DB structure is different despite the same DB and zammad version.

Oops, I’m new to the organization, that’s probably a coincidence

That would be the first case in hundreds of migrations in every direction I have done.
As you can see here:

Zammads backup and restore script use basic functionality for dump creation and restoration.

But sure.
We could start with telling what the source database server and the destination database server is. The version number is very important and relevant. :slight_smile:

I also trust that the issues you colleague mentioned above (e.g. non fitting ruby environment…) is fixed by now. In case it’s not, please fix it before as we consider this installation to be broken or technically only party functional.