fmjstudios / helm

🪖 A collection of MIT-licensed Helm Charts
MIT License
13 stars 13 forks source link

[ntfy] Data and Config PVC are mounted to same directory #19

Closed Cogitri closed 3 months ago

Cogitri commented 9 months ago

Name and Version

fmjstudios/ntfy 0.2.1

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. Deploy with empty values.yaml

Are you using any custom parameters or values?

service: ports: http: 8080

What is the expected behavior?

No response

What do you see instead?

  Warning  FailedCreate  52s (x17 over 6m20s)  statefulset-controller  create Pod ntfy-0 in StatefulSet ntfy failed error: Pod "ntfy-0" is invalid: spec.containers[0].volumeMounts[1].mountPath: Invalid value: "/var/lib/ntfy": must be unique

Additional information

No response

github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

timoa commented 6 months ago

Same issue for me:

create Pod ntfy-0 in StatefulSet ntfy failed error: Pod "ntfy-0" is invalid: spec.containers[0].volumeMounts[1].mountPath: Invalid value: "/var/lib/ntfy": must be unique
timoa commented 6 months ago

I changed all the values to use a different folder (/data/ntfy) for the data:

ntfy.data.rootPath:                "/data/ntfy"
ntfy.cache.file:                       "/data/ntfy/cache.db"
ntfy.auth.file:                         "/data/ntfy/auth.db"
ntfy.web.file:                          "/data/ntfy/webpush.db"
ntfy.attachment.cacheDir:   "/data/ntfy/attachments"

I can launch the pod, and the volume is bonded, but another issue exists. Since no args are sent to the Docker container, we get the NTFY help instead of launching the server. It needs at least the command serve to work. I will create an issue

github-actions[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 3 months ago

false