NC Container (30.0.4) is not able to map an existing SMB Share

Hi guys,

using a Raspberry Pi 4 with Portainer.

Nextcloud is deployed as a container in portainer within version 30.0.4.

Installed smbclient on top in the NC container. All good.

Issue:
external storage >>
connect to the share with IP, sharename and username/password

The connection is red marked and the logs giving me this:

|warning|no app in context|StorageAuthExceptionStorage unauthorized.
External storage not available: Storage unauthorized.

|error|no app in context|ConnectionRefusedExceptionError while getting file info
Error while getting file info|

Any idea what’s the root cause?

The share will heavily be used in the local network.

Thanks a lot and cheers!

Update: Inside an LXC container (Proxmox) all good from scratch. Is is possible that this function simply isn’t supported in a docker container?

It is supported (and irrelevant as far as Nextcloud is concerned). Best guess: a connectivity matter between your original container and your SMB service.

I suggest doing some connectivity checking from the command-line inside your original app container towards your SMB server as well as reviewing your container’s network configuration.