-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[Bug]: SMB webdav Exception "Malformed state response from server", "Undefined index: attributes" #41114
Comments
Same here. |
Hi guys, I don't know exactly why, but applying the following lines seems to have solved my problem : apt-get install -y libsmbclient-dev php-dev php-pear pecl channel-update pecl.php.net Maybe somebody can help me understand... |
Same problem here with SMB shares. |
Is this related to upstream issue icewind1991/SMB#109 ? |
I don't think so:
|
Same Problem while uploading Files. |
Same issue |
same issue started some days ago without any updates from my side. |
I solved this problem by installing the php-smb module. |
I already have installed the Module. |
v8.0? |
thank you for your reply solved by install php-smbclient for 7.4/8.0 and 8.1 php versions |
On my Cloud at Home i have 7.4. On the Cloud on my Work we have 8.0, but the same issue.
|
sudo apt install php8.1-smbclient |
Unable to locate package php8.1-smbclient |
Try |
I already wrote, i installed 7.4 smb Client. |
This was resolved on my Debian bullseye by installing pecl smbclient extension https://pecl.php.net/package/smbclient |
i already installed smbclient... i wrote it 4 times. It not solve the Problem.
|
Same on generate previews.
|
@corincorvus smbclient and libsmbclient are not enough, you also need the php bindings I see that you attempted to install them in #41114 but the packages were not found. Maybe the packages are called differently on that distro ? there might be distros that don't ship it as package, so need to use pecl to compile it |
Tell me the php package for the official Docker Container inclusive command please. Container: PHP Version in Docker Container: Repos of the Container:
Image builded with:
|
@szaimen can you help ? assuming that it's about the Docker all in one ^ maybe extra repos are required there |
No, this one is not the AIO container image. In this case it most likely come from this repo: https://github.com/nextcloud/docker |
and this one does indeed not include the smbclient by default afaik |
So i installed it:
|
Please continue in nextcloud/docker#1638 |
Hi, I can say that updating did not fix the issue on my end. I'm using the official docker image and install smbclient into it:
The strange thing is that it was working just fine for me until a few weeks ago. I really don't remember doing anyhting to the server or the attached storage. The only other thing I can think of is that maybe the phone app got an update.? But then again, that wouldn't explain why sometimes I can't move files from one place to another on the attached storage in the web gui (like imolb originally described), resulting in the same error message as when the phone app sync fails:
That might have to do with the size of the source folder I try to copy the file from.? If you need additional information from me, I'll be happy to provide it. |
Hi can you also install procps as recommended in the docs: https://github.com/nextcloud/docker/blob/master/.examples/dockerfiles/smb/apache/Dockerfile |
Like this?
Doesn't seem to make a difference. The procps package also seems to be installed in the container already, if I don't explicitly include it in the dockerfile. Same result if I use the exact dockerfile you linked. |
The Apache Dockerfile example appears out of date. It may work, but at best it'll be lower performing and less reliable since it uses the smbclient external binary rather than php-smbclient. The correct approach for adding smb support appears to be in the https://github.com/nextcloud/docker/blob/master/.examples/dockerfiles/full/apache/Dockerfile I suspect the NOTE: Since the community Docker image is based on the community PHP image, just don't try to install PHP extensions by way of apt. If you do so, it'll overwrite the official PHP build in the image with Debian's. This'll effectively nullify the entire image's other configuration elements and deploy conflicting PHP versions in it. Here are the correct (but generic) instructions for adding PHP extensions to the Docker images (which appears to be used by the community Docker https://github.com/docker-library/docs/blob/master/php/README.md#pecl-extensions |
This is confusing to me. So a fileshare Application is based on a component that overlooked the most relaible and most used fileshare protocol in the entire world? Would it be possible to include smb support in the community docker image, given that this has caused major discussions in the forum for years? I am not complaining, just trying to understand the rationale and how I can help. |
Thanks for pointing me to that, I hadn't fully read the file before. So I tried it like this:
(the Now the photo sync from phone works, the file ends up on the server, but the app still reports it as failed with "unknown error". Similarly, when I try to copy a file from a to b on the storage via web gui, it does copy successfully, but report it as failed, sometimes without a reason, sometimes it says the target already exists (which it definitely didn't before the copy). Moving, on the other hand, seems to work fine. |
Problem still exists with nextcloud 25.0.7 on Debian 11. |
I confirm same issue here as this #41114. `[files] Error: Icewind\SMB\Exception\Exception: Unknown error () for [FOLDERNAME] at <>
at 2023-06-03T20:00:11+00:00` |
Had this same issue on debian 12 (bookworm) and Nextcloud 26.0.2 native. php8.2-smbclient is not available via apt so I installed it via pecl and I think this solved it.
Then rebooted server. |
For everyone who uses the alpine-fpm image, the following docker file will install the smb client for you. It adds 34MB to the target image
|
Have same issue, and if I install php-smbclient, external storage just do no work anymore until I remove it. |
also have some issues related to this. installing smbclient dont fix it, but my install dont break either |
Same here. I have 27.1.2 version and php 8.2.11 . All directories from SMB are functioning properly, except for the one where I store all my phone photos. It was working fine until 1-2 weeks ago. Could it be that it has reached some file limits or encountered another issue. |
This comment was marked as off-topic.
This comment was marked as off-topic.
The issue here is that the SMB server is returning a response that lacks Can one of you you try manually connecting to your SMB server with
Example of checking the file
If you want to be extra diligent, run |
So the issue is uploading to the folder and not listing the folder. So there is no way to check this as the file never makes it up there. |
It is true that the problem arises when trying to upload a file, but anyway I attempted to find the requested information. For an existing file:
For a non-existing file:
And then I modified the line in Parser.php to include the contents of the method's parameter The log now contains What makes me wonder is that some of my images make it up onto the server, for example one from yesterday did, while others keep failing (for example one from February fails ever since). |
Hello, I have the same issue. NC is running on my QNAP as Docker container and a share from the QNAP is mounted as SMB external storage. One of the many files causing the issue has been uploaded via QNAP Filestation and the allinfo for this one is:
The attributes part looks different compared to what e-patrick posted. A file which works with the upload gives this information (which is the same as from e-patrick):
***Edit: ***Edit2:
But this files was definitely not in the uploaded batch of files (images only).
***Edit3:
|
I have encountered a similar issue and found that it's caused by https://github.com/nextcloud/text plugin when it's trying to access a non-existent README.md file inside a Samba share folder. After removing the text plugin, the issue was resolved. However, it's very strange because trying to access a non-existent is quite common and should be error-handled by Nextcloud samba client. |
Bug description
Files can not be synchronized from an Android device with "Nextcloud Android App" into the SMB storage location.
Or alternatively files can not be moved within the SMB storage via the browser GUI.
Instead the following errors are reported
Steps to reproduce
Instead of step 4. to 6. also a file within the SMB share could be moved in the browser GUI.
Expected behavior
The file is uploaded to Nextcloud storage.
Installation method
Manual installation
Operating system
Debian/Ubuntu
PHP engine version
PHP 7.4
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Problem arose after upgrade of nextcloud sever (major versions). Worked well before.
There is an similar bug #30751 created recently also effecting the external SMB but with different error message. Bug #30751 reports "Unknown error (NT_STATUS_OBJECT_NAME_INVALID)", this bug reports "Undefined index: attributes".
The problem is also mentioned in the nextcloud.com forum: https://help.nextcloud.com/t/smb-share-not-available/134928
The text was updated successfully, but these errors were encountered: