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

Laravel template issues: Invalid PLATFORM_PROJECT_ENTROPY & Missing Redis on first start #113

Closed
mikemilano opened this issue Aug 31, 2020 · 0 comments
Assignees

Comments

@mikemilano
Copy link

When spinning up a Laravel project, the following error appears in the Laravel log:

1. PLATFORM_PROJECT_ENTROPY must be a 32+ char base64 encoded string

production.ERROR: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths. {"exception":"[object] (RuntimeException(code: 0): The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths. at /app/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php:43)

Updating the hard coded value of PLATFORM_PROJECT_ENTROPY in integrations/lando-platformsh/lib/run.js with a base64 encoded 32 character string resolves it however we need to determine if it's OK to hard code or if we need to use or generate it another way.

  ...
  PLATFORM_PROJECT_ENTROPY: Buffer.from('01234567890123456789012345678901').toString('base64');
  ...

2. Redis extension missing on first start

On the first time the site is started, it complains that the redis extension is not installed. The line exists in the php.ini file at the root of the project however and a lando restart resolves the issue.

I suspect a race condition where the extension definition is not in place before the first start of the appserver.

@mikemilano mikemilano self-assigned this Aug 31, 2020
@pirog pirog self-assigned this Sep 23, 2020
pirog referenced this issue in lando/lando Sep 24, 2020
@pirog pirog closed this as completed Sep 24, 2020
@rtfm-47 rtfm-47 transferred this issue from lando/lando Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants