st-one-io / node-red-contrib-smb

Node of Node-RED for SMB Protocol.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I can't list all files in a directory

dolby44 opened this issue · comments

Hello,
I'm trying to list all files of a directory (537 files), but the plugin only shows the 262 first files. I put a catch error node, but no error is thrown.

Another folder containing 484 files shows 280 files.

All files have the same attributes and owner and similar size (11MB for the first folder and 1,5MB for the second)

I don't know if I can check a log somewhere

Thank you for your assistance
Thomas

Hello can you paste your flow here? And also your Windows and Node-Red versions.

Hello, thank you for your quick answer

Here is the flow:
[{"id":"8b06af7f.e5acb","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"c51d6cdf.98b3f","type":"inject","z":"8b06af7f.e5acb","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":260,"y":100,"wires":[["df1f5f22.2a581"]]},{"id":"df1f5f22.2a581","type":"SMB","z":"8b06af7f.e5acb","name":"","config":"514b838a.dbfe8c","operation":"read-dir","path":"OUT\FOLDER","path_new":"","format":"string","x":260,"y":160,"wires":[["798374c7.89109c"]]},{"id":"798374c7.89109c","type":"debug","z":"8b06af7f.e5acb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":570,"y":160,"wires":[]},{"id":"514b838a.dbfe8c","type":"smb config","z":"","name":"SMB share","share":"\\SERVER\FOLDER","domain":"workgroup"}]

nodered 1.1.3
Windows Server 2008 R2 for the samba share

Hi, sorry for the delay.
Windows 2008 has SMB v1 and v2, can you check which version is available in your installation? This node only supports v2.
One more thing: you can let the domain empty if you don't have any domain setup in your server.

Hello, I checked my server and you're right, it uses samba v1.
I'll try to upgrade to samba v2 and see if it's better.

I have another question about samba in nodered:
is there a way to print owner of the file or creation date of the file ?

thank you so much for your help
Thomas

Unfortunately it is not possible to get the file owner.
I'll close this issue by now (since the problem is actually the SMB version), please feel free to re-open it in case the problem persists.

Hello again,
We set up samba v2 and still don't see all files (now 276 over 5192)
Can I check something else ?

Thank you

can you send me your flow, or at least a print screen of what you don't see?

yes, it is still the same:

Here is the flow:
[{"id":"8b06af7f.e5acb","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"c51d6cdf.98b3f","type":"inject","z":"8b06af7f.e5acb","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":260,"y":100,"wires":[["df1f5f22.2a581"]]},{"id":"df1f5f22.2a581","type":"SMB","z":"8b06af7f.e5acb","name":"","config":"514b838a.dbfe8c","operation":"read-dir","path":"OUT\FOLDER","path_new":"","format":"string","x":260,"y":160,"wires":[["798374c7.89109c"]]},{"id":"798374c7.89109c","type":"debug","z":"8b06af7f.e5acb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":570,"y":160,"wires":[]},{"id":"514b838a.dbfe8c","type":"smb config","z":"","name":"SMB share","share":"\SERVER\FOLDER","domain":"workgroup"}]

strange, I don't see any problem here in my enviroment. Just tried a filder with 1165 items and it is working perfectly

image

Can you send me a screenshot of your folder properties AND the node-red debug screen?

Hello,
I was using debian 9.11 with node-red 1.1.3

I'm now using debian 10.7 with node-red 1.2.7
and samba works now like a charm.

Thank you very much for your help, you can close the ticket