Lychee icon indicating copy to clipboard operation
Lychee copied to clipboard

[Updating version4.4.0 to 4.5.3] (docker) Error 500 No application encryption key has been specified.

Open jsaathof opened this issue 3 years ago • 1 comments

I am running the docker version of Lychee. I have upgraded Lychee from version 4.4.0 to version 4.5.3. Database migrations went well but I get a 500 error. No application encryption key has been specified. I have an application key in my .env file. I have thrown away the container and tried again. I see that there is a command cancelled.

It looks like the key is not generated because the application is in production. This was the case for the previous version but not for the new version. Does the script check the key or does it check the production status?

Below is the log output in docker.

[web]:~
root# docker logs lychee

-------------------------------------
  _               _                
 | |   _   _  ___| |__   ___  ___  
 | |  | | | |/ __|  _ \ / _ \/ _ \ 
 | |__| |_| | (__| | | |  __/  __/ 
 |_____\__, |\___|_| |_|\___|\___| 
 | |   |___/ _ __ __ ___   _____| |
 | |   / _' | '__/ _' \ \ / / _ \ |
 | |__| (_| | | | (_| |\ V /  __/ |
 |_____\__,_|_|  \__,_| \_/ \___|_|

-------------------------------------
Lychee Version: 4.5.3 (release)
Lychee Commit:  fe173e4
https://github.com/LycheeOrg/Lychee/commit/fe173e4b77ee81a204e0ca6064f37403ab03cec2
-------------------------------------
**** Make sure the /conf and /uploads folders exist ****
**** Create the symbolic link for the /uploads folder ****
**** Create the symbolic link for the /sym folder ****
**** Create the symbolic link to the old Lychee-Laravel folder ****
**** Copy the .env to /conf ****
**** Inject .env values ****
**** Generate the key (to make sure that cookies cannot be decrypted etc) ****
**************************************
*     Application In Production!     *
**************************************

Command Canceled!
**** Migrate the database ****
Nothing to migrate.
**** Check user.css exists and symlink it ****
**** Create user and use PUID/PGID ****
        User UID :      983
        User GID :      983
**** Set Permissions ****
**** Start cron daemon ****
Starting periodic command scheduler: cron.
**** Setup complete, starting the server. ****

I hope you can help me out.

Thanks,

Jurriaan

jsaathof avatar Aug 11 '22 14:08 jsaathof