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

config not found after pod-restart #22

Open
BernhardHaider opened this issue May 31, 2022 · 10 comments
Open

config not found after pod-restart #22

BernhardHaider opened this issue May 31, 2022 · 10 comments

Comments

@BernhardHaider
Copy link

Hello,
this helm chart for crushftp is great!
we did a test with restarting the pod.
but after that the ftp does not find the config anymore and we cannot login anymore (530 permission denied in browser).
not even the set admin user works.
persistent volume is not delete, the data is still there and mounted.
any idea what can be the issue?

thank you!
kind regards
Bernhard

@kbelosevic
Copy link

Having the same exact issue

@greggbjensen
Copy link
Owner

This is likely because you need to update your Persistent Volume for the config storage. Make sure that your shared.storageClassName is set correctly for your cloud provider, and that it is shown as created in Kubernetes.

Default

shared:
  storageClassName: default

Azure

shared:
  storageClassName: azure-files

Can you post the log output from your CrushFTP pod as it starts up, minus any secure information?

@greggbjensen
Copy link
Owner

I have also looped in CrushFTP support for some additional input.

@spinkb
Copy link

spinkb commented Sep 10, 2022

Unfortunately the exact config is not something I am familiar with. But the basic issue is that you are loosing your prefs.XML, ssh key files, and your users/ config folder if you don't have the persistence set correctly. So follow Gregg's advice on the config.

--CrushFTPSupport

@ChantalSchot
Copy link

It's been a while, I'm running into the same issue. Any pointers on how to solve this?

@BernhardHaider
Copy link
Author

BernhardHaider commented Jul 31, 2023 via email

@ChantalSchot
Copy link

ChantalSchot commented Jul 31, 2023

The configuration is saved in a persistent volume, but on restart no configuration is imported into the new CrushFTP instance, not even de admin user. I think it may be related to the StorageClass. When I try to use the azure-files StorageClass (I'm trying to run the deployment in an azure k8s environment), I'm getting errors while mounting the volume. I'll probably have to contact our azure system admins so they can help out with mounting the volume properly...

As for this helm chart: would it matter whether a ReadWriteOnce or ReadWriteMany volume is used for the CrushFTP server pod?

@BernhardHaider
Copy link
Author

BernhardHaider commented Jul 31, 2023 via email

@greggbjensen
Copy link
Owner

Please submit a pull request if you find a fix needed for the helm-chart. I would be happy to update it.

@ChantalSchot
Copy link

ChantalSchot commented Aug 11, 2023

We managed to correctly mount the pod to a ReadWriteMany PVC (azure files provisioner), the firewall was blocking access from the pod to the PVC. Now the issue is... it seems like the users folder from config /mnt/config/users is linked to the users folder from CrushFTP /var/opt/CrushFTP10/users/users whereas the admin account is automatically saved in /var/opt/CrushFTP10/users/MainUsers. The MainUsers folder is not symbolically linked to the users folder in the config, so after a restart, the admin account is not actually loaded anymore and I can't even log in to the dashboard..

Any idea how to resolve this? It seems related to the start-up script from the docker container?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants