Page 1 of 1

LAN plugin not working properly... strange log file

Posted: 2023-07-30, 19:20 UTC
by HeeroYuy
I have a strange behavior here. I added my local NAS with the LAN plugin.
Name: Nanotek Dynamic
Address: 192.168.1.11/ARCHIV
Where "ARCHIV" is an aggregation folder in the QNAP settings, like this:
Name - Hostname - Remote share
01 ALLGEMEIN - 192.168.1.11 - ALLGEMEIN
02 Steve - 192.168.1.11 - Steve
...
Connecting into the ARCHIV folder seems to work:
2023-07-30 18:47:49.391 HOST:LAN:get dir: /Nanotek Dynamic/ARCHIV/
2023-07-30 18:47:49.408 LAN:CONNECT Nanotek Dynamic
But going one layer deeper (here in 01 ALLGEMEIN):
2023-07-30 18:47:51.467 HOST:LAN:get dir: /Nanotek Dynamic/ARCHIV/01 ALLGEMEIN/
2023-07-30 18:47:51.509 LAN:Verbindungsfehler! Gemeldeter Fehler:
STATUS_OBJECT_NAME_NOT_FOUND (0xc0000034): Create failed for \\192.168.1.11\ARCHIV\01 ALLGEMEIN
/ARCHIV/01 ALLGEMEIN/

A second try:
2023-07-30 18:47:55.890 HOST:LAN:get dir: /Nanotek Dynamic/ARCHIV/01 ALLGEMEIN/
2023-07-30 18:47:56.455 LAN:Verbindungsfehler! Gemeldeter Fehler:
j has already been closed
/ARCHIV/01 ALLGEMEIN/

Closing the connection:
2023-07-30 18:48:02.111 HOST:LAN:disconnect: Nanotek Dynamic
2023-07-30 18:48:02.160 LAN:DISCONNECT Nanotek Dynamic
2023-07-30 18:48:02.265 HOST:LAN:get dir: /
2023-07-30 18:49:46.930 tc:Move 1 files:/storage/emulated/0/.TotalCommander/->/storage/emulated/0/Download/

What is going on here? Especially "\\192.168.1.11\ARCHIV\01 ALLGEMEIN/ARCHIV/01 ALLGEMEIN/" That is so wrong but not my fault.
I know, that this App and the plugin have been working a long time ago with a Samsung S7.

After a few tries, the device gets blocked due to a wrong/incorrect login by the NAS itself.

Re: LAN plugin not working properly... strange log file

Posted: 2023-07-31, 08:21 UTC
by ghisler(Author)
From the log, it looks like the SMB library sends the path with a mix of forward slashes and backslashes. Most servers seem to be able to handle that, but your NAS apparently doesn't. I will check why it's sending forward slashes, they should all be converted to backslashes.

Re: LAN plugin not working properly... strange log file

Posted: 2023-08-25, 13:27 UTC
by HeeroYuy
So.... found something?
I checked everything on my site. I can't change anything.

If its helping: I'm using a QNAP NAS with firmware 5.x

Re: LAN plugin not working properly... strange log file

Posted: 2023-08-25, 14:13 UTC
by ghisler(Author)
Sorry, I couldn't reproduce the problem, it must be a different SMB implementation just on your NAS.

Re: LAN plugin not working properly... strange log file

Posted: 2023-09-03, 12:55 UTC
by HeeroYuy
Which SMB version should be used?

Edit: The FTP plugin is working even with a ftpes connection.

It's strange, because I never changed my NAS' configuration.
Where can I find some requirements for the LAN plugin?

Re: LAN plugin not working properly... strange log file

Posted: 2023-09-04, 14:02 UTC
by ghisler(Author)
Which SMB version should be used?
It depends on the device. SMB1 one one side and SMB2/3 on the other use different libraries. SMB1 should only be used with older devices (by unchecking both SMB2 and SMB3), most newer devices don't support it any more.
SMB3 also supports encryption, but that makes file transfers slower, so it can be enabled separately.
Normally you should be fine when enabling both SMB2 and SMB3.

Re: LAN plugin not working properly... strange log file

Posted: 2023-09-04, 18:01 UTC
by HeeroYuy
Using the NAS w/o aggregation folder works fine... So it must be a specific problem with that feature.
Case closed.

Re: LAN plugin not working properly... strange log file

Posted: 2023-09-05, 09:54 UTC
by AntonyD
2HeeroYuy
NAS w/o aggregation folder
Are you saying about this:
https://docs.qnap.com/operating-system/qts/4.5.x/en-us/GUID-047D026B-EF24-48D0-93EE-2FE5F853C9BC.html
https://kb.synology.com/en-af/DSM/help/SMBService/smbservice_aggregate_portal?version=7
feature???
Simply if - yes, then it makes sense for the author to repeat these settings on his test environment and try to reproduce
the error again. And it is possible to fix the root of the problem in this case!

Re: LAN plugin not working properly... strange log file

Posted: 2023-09-05, 10:35 UTC
by ghisler(Author)
Unfortunately I do not have a QNAP NAS, so I cannot recreate the problem.