Cannot login after restart KNIME server

Hey guys,

I am a little desperate and confused. We have been using the Knime server for a few months and so far it is running quite stable. During installation we created multiple users like knimeadmin and so far we have been able to log in via the webportal without any problems.

This morning we suddenly could not put any workflows on the server via the client. Therefore, we have restarted via
the server via:

bash /opt/knime/
bash /opt/knime/

However, we can now no longer log in via the webportal with the knimeadmin account: “Login failed. Please try again”. Also no user can connect to the server via the client: “User abc cannot be authenticated, probably the password is wrong”. However we are sure that the knimeadmin as well as all user-level passwords are correct and we did not change them.

The server itself and executor is running:

Any ideas?

I would like to add that I found this line within a tomcat logfile:

08-Dec-2022 13:54:31.394 INFO [main] com.knime.enterprise.server.application.LoginManagerImpl.<init> Current users: []

Is it right to assume that all our users have somehow disappeared?

So, while I still don’t know how this happened, i found a solution.

I was able to connect to the H2 database and saw that indeed no user was inside the users table.
With the following script I managed to create a user manually via cli:


set -x

# Location of this script.

# tomcat home directory

# db parameters

# construct db query
read -p 'Username: ' user
read -p 'Password: ' pw

newpassword=$($tomcat_home/bin/ -a sha-256 $newpassword)

echo "insert into users values('$user', '$newpassword');" > $location/dbscript

chown knime:knime $location/dbscript

# manipulate db
java -cp $tomcat_home/lib/h2*.jar -url $dburl -script $location/dbscript

# delete script file
rm dbscript

exit 0

The idea is taken from this post: How to reset the knimeadmin password from the CLI - KNIME Server - KNIME Community Forum. However I did update the script to let user pass username and password instead of changing password of existing user.

Just wanted to share that :wink:


Hi @ThoMi,

Good to hear that you already found the solution, thanks for sharing it here.

I expect that your H2 user database, the got corrupted somehow. I have never heard about such a case so I don’t know what could have caused this.


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