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

Azure file aks with Wordpress+mariadb helm crashing #3073

Closed
ojordano opened this issue Jul 8, 2022 · 7 comments
Closed

Azure file aks with Wordpress+mariadb helm crashing #3073

ojordano opened this issue Jul 8, 2022 · 7 comments
Labels
resolution/answer-provided Provided answer to issue, question or feedback.

Comments

@ojordano
Copy link

ojordano commented Jul 8, 2022

What happened:

I have an AKS cluster running; trying to deploy wordpress+mariadb using helm chart with persistence volume from Azure file. But the mariadb pod is failing with CrashLoopBackOff status.

The error returned from log is :

[Warning] InnoDB: Retry attempts for writing partial data failed.
[ERROR] InnoDB: Write to file ./ibdata1 failed at offset 0, 1048576 bytes should have been written, only 0 were written. Operating system error number 22. Check that your OS and file system support files of this size. Check also that the disk is not full or a disk quota exceeded.
[ERROR] InnoDB: Error number 22 means 'Invalid argument'
[ERROR] InnoDB: Could not set the file size of './ibdata1'. Probably out of disk space
[ERROR] InnoDB: Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again.
[ERROR] Plugin 'InnoDB' init function returned error.
[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
[ERROR] Unknown/unsupported storage engine: InnoDB
[ERROR] Aborting

Anything else we need to know?:

I created storage class and claim following below micorsoft documentation:

https://docs.microsoft.com/en-us/azure/aks/azure-files-dynamic-pv

Environment:

  • Kubernetes version : 1.22.6

Any help is appreciated. thanks

@ghost ghost added the triage label Jul 8, 2022
@ghost
Copy link

ghost commented Jul 8, 2022

Hi ojordano, AKS bot here 👋
Thank you for posting on the AKS Repo, I'll do my best to get a kind human from the AKS team to assist you.

I might be just a bot, but I'm told my suggestions are normally quite good, as such:

  1. If this case is urgent, please open a Support Request so that our 24/7 support team may help you faster.
  2. Please abide by the AKS repo Guidelines and Code of Conduct.
  3. If you're having an issue, could it be described on the AKS Troubleshooting guides or AKS Diagnostics?
  4. Make sure your subscribed to the AKS Release Notes to keep up to date with all that's new on AKS.
  5. Make sure there isn't a duplicate of this issue already reported. If there is, feel free to close this one and '+1' the existing issue.
  6. If you have a question, do take a look at our AKS FAQ. We place the most common ones there!

@andyzhangx
Copy link
Contributor

@ojordano could you use azure disk for mariadb, and use azure file nfs for wordpress pod would also help: https://docs.microsoft.com/en-us/azure/aks/azure-files-csi#create-nfs-file-share-storage-class

@andyzhangx andyzhangx added the resolution/answer-provided Provided answer to issue, question or feedback. label Jul 9, 2022
@ghost ghost removed the triage label Jul 9, 2022
@ghost
Copy link

ghost commented Jul 11, 2022

Thanks for reaching out. I'm closing this issue as it was marked with "Answer Provided" and it hasn't had activity for 2 days.

@ghost ghost closed this as completed Jul 11, 2022
@ojordano
Copy link
Author

@andyzhangx , Hello, thank you for your feedback.

For my own information, just want to know why Azure file can not work for mariadb pod...

Structurized data purpose ???

@andyzhangx
Copy link
Contributor

I think that's related to smb protocol, not Unix compatible.

@ojordano
Copy link
Author

I think that's related to smb protocol, not Unix compatible.

Ok fine, thank for your kind support

@ghost ghost locked as resolved and limited conversation to collaborators Aug 17, 2022
@andyzhangx
Copy link
Contributor

#223 (comment)
for the wordpress like scenario, pls try with azurefile-csi-nfs storage class on AKS, the wordpress application could be set up within 5min, below are the commands:

kubectl apply -f https://github.com/kubernetes-sigs/azurefile-csi-driver/blob/master/deploy/example/storageclass-azurefile-nfs.yaml
helm install --set persistence.storageClass="azurefile-csi-nfs" stable/wordpress --generate-name

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution/answer-provided Provided answer to issue, question or feedback.
Projects
None yet
Development

No branches or pull requests

2 participants