Content
You are here:
Unable to change admin password on fresh install: "Last name can't be blank."
Added by Niek B about 1 year ago
I just installed OpenProject version 13.0.3 on Kubernetes and am running into issues changing the admin password at first login. (as required)
Inspecting the logs of the running pod reveals the same error message:
I, [2023-09-25T04:37:54.428862 #258] INFO -- : Started POST "/account/change_password" for xxx.xxx.xxx.xxx at 2023-09-25 04:37:54 +0000
I, [2023-09-25T04:37:54.473663 #258] INFO -- : Processing by AccountController#change_password as HTML
I, [2023-09-25T04:37:54.473811 #258] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"[auth_token]", "back_url"=>"[endpoint_url]", "password_change_user_id"=>"[FILTERED]", "password"=>"[FILTERED]", "new_password"=>"[FILTERED]", "new_password_confirmation"=>"[FILTERED]", "button"=>""}
I, [2023-09-25T04:37:54.805428 #258] INFO -- : User admin failed password change: Last name can't be blank..
I, [2023-09-25T04:37:54.959952 #258] INFO -- : Rendered my/password.html.erb within layouts/no_menu (Duration: 138.1ms | Allocations: 10287)
I, [2023-09-25T04:37:55.415818 #258] INFO -- : Rendered layouts/base.html.erb (Duration: 453.3ms | Allocations: 29639)
I, [2023-09-25T04:37:55.415991 #258] INFO -- : Rendered layout layouts/no_menu.html.erb (Duration: 594.2ms | Allocations: 40223)
I, [2023-09-25T04:37:55.416327 #258] INFO -- : Completed 200 OK in 942ms (Views: 594.4ms | ActiveRecord: 34.0ms | Allocations: 53203)
I'm not sure what other info could be relevant to debug this but I'm happy to provide more if needed.
Replies (2)
I managed to fix it by editing the row of the admin user in the database manually.
I changed the env var
OPENPROJECT_SEED_ADMIN_USER_NAME
toAdministrator
, this was what caused the issue as apparently both a first- and lastname is required for the system to work.After considerable debugging, it was discovered that the server's firewall was preventing access. Firewall rules to permit the connection using ports 80 and 443 were not created during the installation.
sudo wget -O /etc/apt/sources.list.d/openproject.list/
penalty kick online
https://dl.packager.io/srv/opf/openproject/stable/13/installer/ubuntu/22.04.repo