I think the only thing you can do now is enter the database and change the password there.
The database structure seems to have changed in Chef 12.2 or later, so based on your version, you should use the following commands
(Before the cook 12.2)
$ sudo -u opscode-pgsql /opt/chef-server/embedded/bin/psql opscode_chef psql# update osc_users set hashed_password = '$2a$12$y31Wno2MKiGXS3FSgVg5UunKG48gJz0pRV//RMy1osDxVbrb0On4W' , salt ='$2a$12$y31Wno2MKiGXS3FSgVg5Uu' where username ='admin';
(Chef 12.2 and above)
$ sudo -u opscode-pgsql /opt/opscode/embedded/bin/psql opscode_chef psql# update users set hashed_password = '$2a$12$y31Wno2MKiGXS3FSgVg5UunKG48gJz0pRV//RMy1osDxVbrb0On4W' , salt ='$2a$12$y31Wno2MKiGXS3FSgVg5Uu' where username ='admin';
The new password for the administrator is "password". Log in and change it through the web interface.
Draco ater
source share