nextcloud / helm

A community maintained helm chart for deploying Nextcloud on Kubernetes.
GNU Affero General Public License v3.0
334 stars 269 forks source link

The smb protocol is not available #619

Open XDDK opened 3 months ago

XDDK commented 3 months ago

The issue is simple and opened in multiple places because the nextcloud image doesn't install the required dependencies for the smbshare in the Dockerfile.

"smbclient" is not installed. Mounting of "SMB/CIFS", "SMB/CIFS using OC login" is not possible. Please ask your system administrator to install it. image

I've tried multiple solutions to fix this myself besides changing the Dockerfile because I have to run an image that will not always be up with the helm configuration standards.

Solutions tried:

  1. run an init container that installs smbclient and puts it on a mounted folder which is read in the PATH variable (worked partially)
  2. run a before-starting hook to install the smbclient and/or the php-smbclient (didn't work)

Can anyone help me in order to solve this until nextcloud fixes this feature in the helm charts? Nextcloud contributors, please consider adding this to the default installation.

Thank you everyone!

joshtrichards commented 2 months ago

See https://github.com/nextcloud/helm/issues/205#issuecomment-2252118329 for an example.

I've tried multiple solutions to fix this myself besides changing the Dockerfile because I have to run an image that will not always be up with the helm configuration standards.

Extending the Dockerfile is the correct way. I'm not clear what you mean by "have to run an image that will not always be up with the helm configuration standards" so I'm not able to respond to that part of your statement. Can you clarify what you mean?