[Solved] `handle_argument_error‘: ERROR: “rails console“ was called with arguments [“production“]

 

Problem background

An error occurs when gitlab modifies the root password:

`handle_ argument_ error’: ERROR: “rails console” was called with arguments [“production”] (Thor::InvocationError)

As shown in the figure:

Note that the following prompt: Usage: “rails console [options]” is incorrect

Change password normally

There are only two parameters in total. After trying, the correct instruction is as follows:

gitlab-rails console -e production

be accomplished!

Read More: