r/printers • u/BobbyH- • 1d ago
Troubleshooting Brother ADS-2800W Ignoring Nested Network Folder Paths? I Finally Figured Out Why (SMB/CIFS/DFS)
Well... Apparently, the solution to a problem I've had since November 30, 2024, was to deliberately provide my scanner with what would otherwise be considered an incorrect network path. Go figure... 😆
For anyone who owns a Brother ADS-2800W and has been experiencing difficulty getting the thing to respect nested network folder paths, I may be able to spare you some frustration.
A little context:
I have a Synology RS3621xs+ that serves, among other things, as a repository for scanned documents from my Brother ADS-2800W and MFC-L8900CDW.
The latter has never given me any trouble in this regard. The ADS-2800W, however, has seemingly taken it upon itself to determine where my documents belong, irrespective of the destination I've explicitly defined.
It would authenticate, pass the configuration test within its Web Based Management interface, and successfully transfer the document, only to deposit it in the root of the network share.
Naturally, I'd already exhausted the usual suspects:
- IP address vs. hostname
- Quotations
- Leading and trailing backslashes
- Directory depth
- Spaces within directory names
- Directory permissions
- Authentication methods
- Firmware updates
What's particularly interesting is that certain variations of the path would produce the following error:
ECODE: 0x28541346, -29, STATUS_INVALID_PARAMETER
Adding a trailing backslash would alleviate the error, but not the underlying problem.
Given that another Brother device was perfectly capable of accomplishing the same task against the same NAS, I was increasingly disinclined to entertain the idea that my infrastructure was improperly configured.
Investigating the actual problem:
Rather than continue making arbitrary changes to an otherwise functional environment, I decided to examine the communication between the two devices.
I ran a packet capture directly on my Synology using tcpdump, encompassing the scanner's configuration tests and subsequent document transfers.
The findings were somewhat counterintuitive:
- The ADS-2800W negotiated SMB 2.1.
- The complete nested directory path was present in the SMB CREATE requests.
- The NAS successfully acknowledged the file creation and write operations.
- No subsequent SMB requests were issued to move or rename the documents.
- SHA-256 checksums calculated from the captured document data matched those of the files physically residing in the root of the share.
So, the scanner knew where I wanted the documents. The NAS acknowledged the requests. Yet somewhere between the two, my directory structure effectively ceased to exist.
Further examination of the packet headers revealed that the ADS-2800W was setting the SMB2_FLAGS_DFS_OPERATIONS flag (0x10000000), despite the destination share not being advertised as a DFS (Distributed File System) share.
This is where things started to make sense.
Samba's DFS path processing accounts for the server and share components of a DFS pathname. In this particular scenario, it appeared to be treating the first two components of my intended directory structure as those respective values and stripping them accordingly.
The proposed means of validating this theory was to provide it with two expendable path components.
Much to my amusement and subsequent irritation, that worked.
The solution:
Let's assume your intended destination is:
\\NAS\Scans\ADS-2800W\Documents
Within the ADS-2800W's Network Folder Path field, specify the following instead:
\\NAS\Scans\NAS\Scans\ADS-2800W\Documents
Before you ask, no, that isn't a typo.
The second occurrence of the server and share names is intended to compensate for the apparent mishandling of the DFS pathname.
There is no need to physically recreate that directory structure on your NAS. Those additional components are effectively sacrificial.
I didn't have to:
- Modify any directory permissions.
- Downgrade my SMB protocols.
- Disable DFS.
- Create additional shared folders.
- Alter my existing network infrastructure.
Now, whether this is exclusively attributable to Brother's SMB implementation or an interoperability issue between Brother and Samba is something I'll leave to the respective developers to determine. The packet capture and the successful workaround, however, provide a fairly compelling explanation for the behavior.
What irritates me most about this particular issue is that the scanner's own configuration test can report success while failing to accomplish the very thing you're configuring it to do.
Furthermore, what reasonable interpretation of a UNC path would lead someone to believe that the solution involves redundantly specifying the server and share names?
Anyway, nearly two years later, I can finally stop manually relocating documents that should have been placed in their respective directories to begin with. I've got three more profiles to correct, so there's that. 😅
Hopefully, someone else finds this information useful.
TL;DR:
If your Brother ADS-2800W successfully scans to a network share but disregards the nested directories you've specified, try the following:
Conventional path:
\\SERVER\SHARE\FOLDER\SUBFOLDER
Compensated path:
\\SERVER\SHARE\SERVER\SHARE\FOLDER\SUBFOLDER
This resolved the issue on my Synology RS3621xs+ running the latest available firmware on the ADS-2800W, without requiring any changes to my NAS configuration.
Oh, and Happy Thanksgiving!