You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Unable to hash data" error occurs when trying to register a password that exceeds 72 characters on the initial setup page.
This error may be related to the limitation that bcrypt can only hash strings up to 72 bytes.
Expected Behavior
Password will be registered successfully
Actual Behavior
Unable to hash data error and cannot set password for admin account
Steps to Reproduce
When Portainer is launched for the first time, the initial setup page will be displayed
nexryai
changed the title
"Unable to hash data" error occurs when trying to register a password that exceeds 73 characters.
"Unable to hash data" error occurs when trying to register a password that exceeds 72 characters.
Oct 5, 2023
Just encountered the same issue, took me a great while to boil it down to the long password being the cause. A more specific error such as "password too long" or some sort of warning would be convenient.
Before you start please confirm the following.
Problem Description
"Unable to hash data" error occurs when trying to register a password that exceeds 72 characters on the initial setup page.
This error may be related to the limitation that bcrypt can only hash strings up to 72 bytes.
Expected Behavior
Password will be registered successfully
Actual Behavior
Unable to hash data error and cannot set password for admin account
![image](https://private-user-images.githubusercontent.com/61890205/272890867-ea622c38-3d2f-47fb-b67c-48a48eb081af.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI1NjY2NDAsIm5iZiI6MTcyMjU2NjM0MCwicGF0aCI6Ii82MTg5MDIwNS8yNzI4OTA4NjctZWE2MjJjMzgtM2QyZi00N2ZiLWI2N2MtNDhhNDhlYjA4MWFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODAyVDAyMzkwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ5ZTI0YmMzZjI2NjllYzcwOTU1YmU1YWNlZTk0ODkxZDZkNWEyMTAyNjBjYmY2OWNkYzEzOTIzOGE5OTgxNjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.pmE0DKiIXvNH6oLylF0KhnCO2KJmXuSSSzMlFkV9iZg)
Steps to Reproduce
Portainer logs or screenshots
No response
Portainer version
2.19.1
Portainer Edition
Community Edition (CE)
Platform and Version
Docker version 24.0.6, build ed223bc
OS and Architecture
Debian12 amd64
Browser
Firefox 118.0.1
What command did you use to deploy Portainer?
docker-compose.yml version: '3' services: portainer: image: portainer/portainer-ce:latest container_name: portainer ports: - 127.0.0.1:9000:9000 restart: unless-stopped volumes: - /etc/localtime:/etc/localtime:ro - /var/run/docker.sock:/var/run/docker.sock:ro - ./data:/data
Additional Information
No response
The text was updated successfully, but these errors were encountered: