memories
memories copied to clipboard
Nextcloud Log entries: "Failed to index folder..." with smb storage
Describe the bug A user has external smb storage mounted in Nextcloud, which is working fine in general. In Nextclouds Logs such entries appear periodically: "Failed to index folder /username/files/SMBStorage: No valid backend available, ensure smbclient is in the path or php-smbclient is installed"
Nextcloud is running as container from this base image: https://hub.docker.com/_/nextcloud, tag: 28.0.1-fpm with installed smbclient and php module by extending the image with such a dockerfile:
FROM nextcloud:28.0.1-fpm
RUN apt-get update && apt-get install -y procps smbclient libsmbclient-dev libmagickwand-dev ffmpeg && rm -rf /var/lib/apt/lists/*
RUN pecl install inotify smbclient && docker-php-ext-enable inotify smbclient && docker-php-ext-install bz2
This was checked by entering the container, switching to user "www-data" (the user running nextcloud) and looked at this:
www-data@wolke-app-756c48bbc4-2x5m9:~/html$ which smbclient
/usr/bin/smbclient
www-data@wolke-app-756c48bbc4-2x5m9:~/html$ smbclient
Usage: smbclient [-?EgqBNPkV] [-?|--help] [--usage] [-M|--message=HOST]
[-I|--ip-address=IP] [-E|--stderr] [-L|--list=HOST]
[-T|--tar=<c|x>IXFvgbNan] [-D|--directory=DIR] [-c|--command=STRING]
[-b|--send-buffer=BYTES] [-t|--timeout=SECONDS] [-p|--port=PORT]
[-g|--grepable] [-q|--quiet] [-B|--browse]
[-d|--debuglevel=DEBUGLEVEL] [--debug-stdout]
[-s|--configfile=CONFIGFILE] [--option=name=value]
[-l|--log-basename=LOGFILEBASE] [--leak-report] [--leak-report-full]
[-R|--name-resolve=NAME-RESOLVE-ORDER]
[-O|--socket-options=SOCKETOPTIONS] [-m|--max-protocol=MAXPROTOCOL]
[-n|--netbiosname=NETBIOSNAME] [--netbios-scope=SCOPE]
[-W|--workgroup=WORKGROUP] [--realm=REALM]
[-U|--user=[DOMAIN/]USERNAME[%PASSWORD]] [-N|--no-pass]
[--password=STRING] [--pw-nt-hash] [-A|--authentication-file=FILE]
[-P|--machine-pass] [--simple-bind-dn=DN]
[--use-kerberos=desired|required|off] [--use-krb5-ccache=CCACHE]
[--use-winbind-ccache] [--client-protection=sign|encrypt|off]
[-k|--kerberos] [-V|--version] [OPTIONS] service <password>
www-data@wolke-app-756c48bbc4-2x5m9:~/html$ php -m
[PHP Modules]
apcu
[...]
SimpleXML
smbclient
sodium
SPL
[...]
So the smbclient binary is installed and working just like the smbclient php module.
Screenshots
To Reproduce
- Build a NC image with installed smbclient binary and php module
- Start a container, mount some smb storage, install memories app
- look at NC Logs
Platform:
- OS: Docker Container running in K8s at Ubuntu Nodes
- Browser: Chrome, Firefox
- Memories Version: 6.2.2
- Nextcloud Version: 28.0.1
- PHP Version: 8.2.14
I came here to report the same problem :smile:
I'd like to add that this is not a new problem with Nextcloud 28. My oldest log entry on this is from November using version 27.1.3.2.
Adding a .nomemories
file to this path does not change the behaviour.