Replies: 2 comments 5 replies
|
I am not using s3 so that one is difficult to answer. :/ |
|
The first thing I would check is the value of Your current configuration appears to use: AWS_ENDPOINT: s3.fr-par.scw.cloudFor Scaleway Object Storage in the AWS_ENDPOINT: "https://s3.fr-par.scw.cloud"I would also recommend writing all values inside apiVersion: v1
kind: ConfigMap
metadata:
name: storage-env
data:
S3_ENABLED: "true"
AWS_DEFAULT_REGION: "fr-par"
AWS_ENDPOINT: "https://s3.fr-par.scw.cloud"
AWS_BUCKET: "my-lychee-photo-storage"
AWS_USE_PATH_STYLE_ENDPOINT: "false"The access key and secret key should preferably be stored in a Kubernetes For example: apiVersion: v1
kind: Secret
metadata:
name: storage-secret
type: Opaque
stringData:
AWS_ACCESS_KEY_ID: "your-access-key"
AWS_SECRET_ACCESS_KEY: "your-secret-key"Then reference both the envFrom:
- configMapRef:
name: storage-env
- secretRef:
name: storage-secretAfter updating the configuration, restart the deployment: kubectl rollout restart deployment/<your-lychee-deployment>Then check the rollout status: kubectl rollout status deployment/<your-lychee-deployment>You can also verify that the environment variables are available inside the running pod: kubectl exec -it <pod-name> -- sh -c \
'printenv | grep -E "S3_ENABLED|AWS_ENDPOINT|AWS_DEFAULT_REGION|AWS_BUCKET|AWS_USE_PATH_STYLE_ENDPOINT"'The result should contain values similar to: If Lychee is using cached Laravel configuration, clear the application cache inside the pod: kubectl exec -it <pod-name> -- php artisan optimize:clearThen restart the pod or deployment again: kubectl rollout restart deployment/<your-lychee-deployment>The following exception: may be a secondary exception generated while Laravel is handling an earlier bootstrap or configuration failure. Therefore, if correcting the endpoint does not solve the problem, please include the log lines immediately before that stack trace. You can retrieve more complete logs with: kubectl logs <pod-name> --previousor: kubectl logs <pod-name> --tail=200In summary, I would try these changes first:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
With Lychee v7.7.1, I use the following configuration for S3 storage
But I also set a local storage based on the following comment.
The problem is that, on startup, I get the following exception:
Removing the S3 part allows to startup flawlessly.
Is there something I didn't see in the configuration ?
All reactions