I bought a Canon multifunction color laser printer/scanner a few weeks ago, installed it in my home network (LAN) and am still testing it. In addition to printing, it is important for me to be able to scan to an SMB share on my TrueNAS Scale server. (I want to use paperless ngx later).
In the first few days I did a short scan test on an existing TrueNAS SMB share which was successful. I'm not 100% sure, but most likely my TrueNAS Scale was still on Bluefin at that time, as I only recently upgraded to Cobia (23.10.1).
Now I finally wanted to finalize this scan configuration (with a dedicated dataset/SMB share) and unfortunately I can't get any further.
I have already deleted the dataset completely and created a new one (ACL Type=SMB/NFSv4) with a local user (Full Control). For testing purposes, everyone also has Full Control permissions.
For the SMB share I have also left everything to default or as described in the TrueNAS documentation.
I have created an address book entry in the Canon printer with the settings of this share and the local TrueNAS user. (You can't enter much more there).
Unfortunately, this no longer works. The printer gives a generic error message after a certain timeout (sometimes authentication error, sometimes just a network error).
With every test scan, a 0-byte PDF file is created on the SMB share, so the printer seems to be able to create something on the share. But it cannot complete the job.
This still worked with my first tests (Bluefin?). I also tried it with other (existing) SMB shares on my TrueNAS Scale. Always the same problem.
If I scan to an SMB share on my old QNAP NAS, it works immediately and flawlessly. So it seems to be a problem with the TrueNAS (and apparently only with Cobia).
Unfortunately, I don't know exactly how to troubleshoot/debug the problem.
I have only found entries in /var/log/samba4/auth_audit.log and /var/log/samba4/log.smbd. Unfortunately without any errors or hints as to what is causing the problem.
Here is an example of the auth_audit.log:
And here is something from log.smbd:
The last line at least shows the file name (0-byte PDF). I cannot tell whether read=No is wrong, as it also says write=Yes.
Without a comparison to a successful scan, I also don't know whether there should also be a "file closed" entry next to the "file opened" entry.
In the first few days I did a short scan test on an existing TrueNAS SMB share which was successful. I'm not 100% sure, but most likely my TrueNAS Scale was still on Bluefin at that time, as I only recently upgraded to Cobia (23.10.1).
Now I finally wanted to finalize this scan configuration (with a dedicated dataset/SMB share) and unfortunately I can't get any further.
I have already deleted the dataset completely and created a new one (ACL Type=SMB/NFSv4) with a local user (Full Control). For testing purposes, everyone also has Full Control permissions.
For the SMB share I have also left everything to default or as described in the TrueNAS documentation.
I have created an address book entry in the Canon printer with the settings of this share and the local TrueNAS user. (You can't enter much more there).
Unfortunately, this no longer works. The printer gives a generic error message after a certain timeout (sometimes authentication error, sometimes just a network error).
With every test scan, a 0-byte PDF file is created on the SMB share, so the printer seems to be able to create something on the share. But it cannot complete the job.
This still worked with my first tests (Bluefin?). I also tried it with other (existing) SMB shares on my TrueNAS Scale. Always the same problem.
If I scan to an SMB share on my old QNAP NAS, it works immediately and flawlessly. So it seems to be a problem with the TrueNAS (and apparently only with Cobia).
Unfortunately, I don't know exactly how to troubleshoot/debug the problem.
I have only found entries in /var/log/samba4/auth_audit.log and /var/log/samba4/log.smbd. Unfortunately without any errors or hints as to what is causing the problem.
Here is an example of the auth_audit.log:
Code:
"clientAccount": "gamma", "workstation": "CANONF0210F", "becameAccount": "gamma", "becameDomain": "TRUENAS", "becameSid": "S-1-5-21-1387644970-4183348159-4012807230-20070", "mappedAccount": "gamma", "mappedDomain": "", "netlogonComputer": null, "netlogonTrustAccount": null, "netlogonNegotiateFlags": "0x00000000", "netlogonSecureChannelType": 0, "netlogonTrustAccountSid": null, "passwordType": "NTLMv2", "duration": 104229}}
And here is something from log.smbd:
Code:
[2024/01/01 13:07:55.352400, 2] ../../source3/smbd/smb2_service.c:825(make_connection_snum) canonf0210f (ipv4:192.168.10.51:64320) signed connect to service paperless initially as user gamma (uid=3003, gid=3003) (pid 913713) [2024/01/01 13:07:55.353994, 2] ../../source3/smbd/open.c:1713(open_file) gamma opened file 0034_240101130753_001.pdf read=No write=Yes (numopen=2)
The last line at least shows the file name (0-byte PDF). I cannot tell whether read=No is wrong, as it also says write=Yes.
Without a comparison to a successful scan, I also don't know whether there should also be a "file closed" entry next to the "file opened" entry.