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

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

Open
Cogitri opened this issue Sep 18, 2024 · 4 comments
Open

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

Cogitri opened this issue Sep 18, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Cogitri
Copy link
Contributor

Cogitri commented Sep 18, 2024

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

Copy link

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 github-actions bot added the stale label Oct 18, 2024
@vindelicus vindelicus removed the stale label Nov 7, 2024
@vindelicus vindelicus self-assigned this Nov 7, 2024
@vindelicus vindelicus added the bug Something isn't working label Nov 14, 2024
Copy link

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 github-actions bot added the stale label Dec 15, 2024
@timoa
Copy link

timoa commented Jan 1, 2025

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
Copy link

timoa commented Jan 1, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants