Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported cipher or incorrect key length. Supported ciphers are: aes-128-cbc, aes-256-cbc, aes-128-gcm, aes-256-gcm. #15040

Closed
2 tasks done
SealinGp opened this issue Jul 8, 2024 · 3 comments

Comments

@SealinGp
Copy link

SealinGp commented Jul 8, 2024

Debug mode

Describe the bug

It happens When I Install In Docker

Reproduction steps

  1. docker pull snipe/snipe-it
  2. create env file in /volume1/docker/snipe-it/env/.env follow https://snipe-it.readme.io/docs/docker config
  3. docker run --rm snipe/snipe-it and fill it in /volume1/docker/snipe-it/env/.env file env key 'APP_KEY'
  4. docker run -d -p 8010:80 --name="snipeit" --env-file=/volume1/docker/snipe-it/env/.env --mount source=snipe-vol,dst=/var/lib/snipeit --network share snipe/snipe-it
  5. access $APP_URL use chrome browser
  6. it redirect to $APP_URL/setup and display blow errors:
    'Unsupported cipher or incorrect key length. Supported ciphers are: aes-128-cbc, aes-256-cbc, aes-128-gcm, aes-256-gcm.'
image

Expected behavior

can normally access APP_URL

Screenshots

image

Snipe-IT Version

snipe/snipe-it:latest

Operating System

ubuntu

Web Server

Apache

PHP Version

8.1.2-1ubuntu2.18

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

Copy link

welcome bot commented Jul 8, 2024

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@SealinGp
Copy link
Author

SealinGp commented Jul 8, 2024

if key generated as "base64:xxx", i must copy "base64:xxx" as value to .env file instead of "xxx"

@SealinGp SealinGp closed this as completed Jul 8, 2024
@Reftek85
Copy link

Reftek85 commented Jul 9, 2024

if key generated as "base64:xxx", i must copy "base64:xxx" as value to .env file instead of "xxx"

wow Thank you! I tried a lot of things to get me going but this was the issue I was facing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants