You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the php-smbclient extension for the SMB external storages backend (which is the preferred way of enabling SMB access according to the Nextcloud documentation), it is not possible to access SMB shares due to a regression in libsmbclient 4.17.5 (see nextcloud/server#36773).
Steps To Reproduce
Steps to reproduce the behavior:
Create a Nix configuration for Nextcloud with the php-smbclient PHP extension enabled:
services.nextcloud = {
enable = true;
phpExtraExtensions = all: [ all.smbclient ];
# [Remainder of Nextcloud service configuration omitted]
}
Configure Nextcloud with a SMB external storage.
Attempt to access the configured storage using the web interface.
Expected behavior
The web interface shows the contents of the external storage.
Instead, accessing the storage fails, and the user is repeatedly prompted for login information even though the provided information is correct. The log of the phpfpm-nextcloud service also contains an error message (see additional context below).
Additional context
A possible solution (until either libsmbclient and/or php-smbclient have new releases which address the issue) is overriding the PHP extension with a patched version that works around the regression (which is also mentioned in the corresponding issue in the Nextcloud repo).
The following configuration has solved the issue for me locally:
Describe the bug
Using the php-smbclient extension for the SMB external storages backend (which is the preferred way of enabling SMB access according to the Nextcloud documentation), it is not possible to access SMB shares due to a regression in libsmbclient 4.17.5 (see nextcloud/server#36773).
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
The web interface shows the contents of the external storage.
Instead, accessing the storage fails, and the user is repeatedly prompted for login information even though the provided information is correct. The log of the
phpfpm-nextcloud
service also contains an error message (see additional context below).Additional context
A possible solution (until either libsmbclient and/or php-smbclient have new releases which address the issue) is overriding the PHP extension with a patched version that works around the regression (which is also mentioned in the corresponding issue in the Nextcloud repo).
The following configuration has solved the issue for me locally:
Relevant output of
journalctl -xeu phpfpm-nextcloud
(with personal information omitted):Notify maintainers
@schneefux @bachp @globin @Ma27
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: