Password forget, broken link, token missing

Infos:

  • Used Zammad version: 6.1

  • Used Zammad installation type: (source)

  • Operating system: ubuntu 20.04 LTS

  • Browser + version: newest Chrome and Firefox

Hello, we have since a few Updates the Problem that we can’t use the Password forget function.
The Mail getting sent but without a User Token
so the Links ends with #password_reset_verify/ :
image

In the past there was a Token like: oJglDubhLQdEiU714t7uyVeksHo0owemQcZkGJOik3RLa9h1rjQTyN6 behind the #password_reset_verify

I dont get a clue to fix it out of the logfiles.

I’am glad if someone can help.

Hi @clzvegovk. Is it broken for all users or only specific ones?

hello @fliebe92 it is broken for all users.

Please compare the content of app/views/mailer/password_reset/en.html.erb with the appropriate file in the Zammad GitHub repository.

What’s the output of ActiveRecord::Migration.check_pending! executed in a Rails Console?

Hello @fliebe92 thanks for the fast response, the html File is exactly the same.
The output of the rails is following:
image

No, this is an error message. Please fix this and post the correct output. :slight_smile:

Hello @fliebe92 i already installed now ubuntu 22.04 LTS but i got still ruby 3.0.2 instead of 3.1.3 but the System says the newest ruby is installed.

i Updated now the ruby Version to 3.1.4 but the Zammad Application dont care about it.
image

@fliebe92 and with the official supported 3.1.3 it doesnt work aswell.

image

Please follow the doucmentation on how to install the fitting ruby version.
Your environment does not fit the requirement. Installing the version is not enough, your environment configuration needs to fit as well.

1 Like

@MrGeneration i don’t find the documentation about that thread on the System Documentation page.

Please have a look here (step 2).

hello @fliebe92 this point i already found and did the Point at Step 2, but it doesnt helped.

I did it step by step, without errors


But at the end it says that when i enter the command ,bundle fund"

What happens if you do a rails console as Zammad user?

this happens:

zammad@zammad:/opt/zammad$ rails console
/usr/share/rvm/gems/ruby-3.1.3/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in require': cannot load such file -- listen (LoadError) from /usr/share/rvm/gems/ruby-3.1.3/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in require’
from /usr/share/rvm/gems/ruby-3.1.3/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in require' from /usr/share/rvm/gems/ruby-3.1.3/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in block in require’
from /usr/share/rvm/gems/ruby-3.1.3/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:299:in load_dependency' from /usr/share/rvm/gems/ruby-3.1.3/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in require’
from /usr/share/rvm/gems/ruby-3.1.3/gems/activesupport-6.1.7.6/lib/active_support/evented_file_update_checker.rb:6:in <main>' from /usr/share/rvm/gems/ruby-3.1.3/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in require’
from /usr/share/rvm/gems/ruby-3.1.3/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in require' from /usr/share/rvm/gems/ruby-3.1.3/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in require’
from /usr/share/rvm/gems/ruby-3.1.3/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in block in require' from /usr/share/rvm/gems/ruby-3.1.3/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:299:in load_dependency’
from /usr/share/rvm/gems/ruby-3.1.3/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in require' from /opt/zammad/config/environments/development.rb:63:in block in ’
from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/railtie.rb:234:in instance_eval' from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/railtie.rb:234:in configure’
from /opt/zammad/config/environments/development.rb:3:in <main>' from /usr/share/rvm/gems/ruby-3.1.3/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in require’
from /usr/share/rvm/gems/ruby-3.1.3/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in require' from /usr/share/rvm/gems/ruby-3.1.3/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in require’
from /usr/share/rvm/gems/ruby-3.1.3/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in block in require' from /usr/share/rvm/gems/ruby-3.1.3/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:299:in load_dependency’
from /usr/share/rvm/gems/ruby-3.1.3/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in require' from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/engine.rb:571:in block (2 levels) in class:Engine
from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/engine.rb:570:in each' from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/engine.rb:570:in block in class:Engine
from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in instance_exec' from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in run’
from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/initializable.rb:61:in block in run_initializers' from /usr/share/rvm/rubies/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:228:in block in tsort_each’
from /usr/share/rvm/rubies/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' from /usr/share/rvm/rubies/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:422:in block (2 levels) in each_strongly_connected_component_from’
from /usr/share/rvm/rubies/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:431:in each_strongly_connected_component_from' from /usr/share/rvm/rubies/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:421:in block in each_strongly_connected_component_from’
from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/initializable.rb:50:in each' from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/initializable.rb:50:in tsort_each_child’
from /usr/share/rvm/rubies/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:415:in call' from /usr/share/rvm/rubies/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:415:in each_strongly_connected_component_from’
from /usr/share/rvm/rubies/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:349:in block in each_strongly_connected_component' from /usr/share/rvm/rubies/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:347:in each’
from /usr/share/rvm/rubies/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:347:in call' from /usr/share/rvm/rubies/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:347:in each_strongly_connected_component’
from /usr/share/rvm/rubies/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:226:in tsort_each' from /usr/share/rvm/rubies/ruby-3.1.3/lib/ruby/3.1.0/tsort.rb:205:in tsort_each’
from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/initializable.rb:60:in run_initializers' from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/application.rb:391:in initialize!’
from /opt/zammad/config/environment.rb:7:in <main>' from /usr/share/rvm/gems/ruby-3.1.3/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in require’
from /usr/share/rvm/gems/ruby-3.1.3/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in require' from /usr/share/rvm/gems/ruby-3.1.3/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in require’
from /usr/share/rvm/gems/ruby-3.1.3/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in block in require' from /usr/share/rvm/gems/ruby-3.1.3/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:299:in load_dependency’
from /usr/share/rvm/gems/ruby-3.1.3/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in require' from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/application.rb:367:in require_environment!’
from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/command/actions.rb:28:in require_environment!' from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/command/actions.rb:15:in require_application_and_environment!’
from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/commands/console/console_command.rb:101:in perform' from /usr/share/rvm/gems/ruby-3.1.3/gems/thor-1.2.2/lib/thor/command.rb:27:in run’
from /usr/share/rvm/gems/ruby-3.1.3/gems/thor-1.2.2/lib/thor/invocation.rb:127:in invoke_command' from /usr/share/rvm/gems/ruby-3.1.3/gems/thor-1.2.2/lib/thor.rb:392:in dispatch’
from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/command/base.rb:69:in perform' from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/command.rb:48:in invoke’
from /usr/share/rvm/gems/ruby-3.1.3/gems/railties-6.1.7.6/lib/rails/commands.rb:18:in <main>' from /usr/share/rvm/gems/ruby-3.1.3/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in require’
from /usr/share/rvm/gems/ruby-3.1.3/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in require' from bin/rails:5:in
zammad@zammad:/opt/zammad$

@MrGeneration @fliebe92 can u help me with this error? Does my issue starts with this rails console error ?

I’am wondering that this is the only things that don’t work ,password forget link"
Everything else works fine and the password forgotten link was also properly created in the middle of the year.

Could still use some help. No changes solve the problem

Your environment is still not correct if the Rails Console is not working. Therefore, I am not sure where to start helping you.

But everything is working except the Password forget function.

I never changed anything except the normal ubuntu Updates and Zammad Updates.

Which logs u need to define the issuer

I’m sorry, it’s not about logs, it’s about the environment which is not set up correctly.

PS: There is more stuff that is not working, I’m pretty sure