Page 1 of 2

LAN Plugin Connection Error

Posted: 2024-08-09, 14:09 UTC
by ramon2000
Dear Christian,

First of all, thank you for the amazing Total Commander, both Android and PC.

Anyway, I write because I have been using TC for a long time with the LAN Plugin, and this week I have noticed that I have problems connecting to my OpenMediaVault SMB drive.

I don't know if it is only the latest version or the error comes from a previous one (few weeks ago I had no issue, but I don't remember when was the exact last time I used)

These are the errors it gives me when connecting (or authenticating, I don't know):

SMB2 AUTH: Attempt to invoke interface method 'byte[]
javax.crypto.SecretKey.getEncoded()' on a null object reference

java.lang.NullPointerExcepton: Attempt to invoke interface method 'byte[]
javax.crypto.SecretKey.getEncoded()' on a null object reference

I am on LAN Plugin v3.54
I am only using SMB3 (SMB2 as well as all the other options, except SMB3, unchecked).
I have an Android 13 smartphone and an old android 9 tablet.
My server has no password.
If I put no password in the properties, I am not able to unckeck the "Protect with a master key" (I don't know the exact translation into English). Anyway, it can be a "desired feature".

The issue itself:
- If I leave the "Password" field empty ("Protect with master key" enabled because I cannot disable it), then it gives me the error I have put before in the smartphone and in the tablet.
- If I put any password (my server requires no password, any way), it works in the smartphone but not in the tablet (error in the tablet but not in the smartphone, but maybe it is because I have made fewer tests).

If you need more information, please ask it to me. Anyway, from tomorrow I will be away for a few days, so maybe I will not be able to answer you until afterwards.

Edit: Maybe it is an OpenMediaVault issue and not Total Command, I don't know.
Edit 2: In the tablet, I have returned to v3.50, and everything works fine. I have not tested in the smartphone, but I suspect it would also work fine.
Edit 3: In the tablet, after installing v3.50 I have reinstalled v3.54 and reset it, and now it works like the smartphone: Error if password field is empty, ok if password field has some content (although my server has no password).
Edit 4: Corrected version number (I had put v8 instead of v3).

Thanks in advance,

Re: LAN Plugin Connection Error

Posted: 2024-08-10, 01:51 UTC
by petermad
I am on LAN Plugin v8.54
I have returned to v8.50
after installing v8.50 I have reinstalled v8.54
The latest version of the LAN plugin for TC Android is 3.54 - how can you have versions 8.50 and 8.54 :?:

Re: LAN Plugin Connection Error

Posted: 2024-08-10, 07:32 UTC
by ramon2000
You are right. Thank you.

I meant v3 instead of v8. I suppose I put v8 the 1st time in the message, and then repeated it in the following references.

I have already corrected it in the original message.

Re: LAN Plugin Connection Error

Posted: 2024-08-12, 10:15 UTC
by ghisler(Author)
My server has no password.
That's the problem, the plugin only supports accounts with a password. You can just add an extra account with a password and then use that to connect from the plugin.

Re: LAN Plugin Connection Error

Posted: 2024-08-18, 10:01 UTC
by gk1mst
I have the same problem.

My SMB accounts do have a passwords but i didn't put them in de lan plugin account settings.
This way i have to type the password every time wen i want to login and get the password prompt.
This was what i wanted because i think it is more safe the way it was.

Now i MUST save the password in de LAN Plugin account for every network share.
For me that seems not the safest.

Could you make the LAN Plugin so that i get a prompt again to enter the password every time i want to login?
For me that seems more safe then saving the passwords in the LAN plugin account(s).

Re: LAN Plugin Connection Error

Posted: 2024-08-20, 14:59 UTC
by ghisler(Author)
2gk1mst
You are right, leaving the password field empty no longer worked. Please try the latest beta 3.55 from the Play Store or our f-Droid repository now.
https://play.google.com/apps/testing/com.ghisler.tcplugins.LAN
or
https://www.ghisler.com/fdroid.htm

Re: LAN Plugin Connection Error

Posted: 2024-08-20, 15:20 UTC
by gk1mst
Hello sir Ghisler,

I installed and tested the Beta Lan app.
The problem seems to be fixed with the beta version. Great!

Thank you!

Re: LAN Plugin Connection Error

Posted: 2024-08-21, 06:02 UTC
by ramon2000
ghisler(Author) wrote: 2024-08-12, 10:15 UTC That's the problem, the plugin only supports accounts with a password. You can just add an extra account with a password and then use that to connect from the plugin.
OK, no major problem for me. Thanks.

Re: LAN Plugin Connection Error

Posted: 2024-08-24, 18:56 UTC
by MikeHungerford
My similar problem began this morning when my phone updated to One UI 6.1

Whenever I try to connect to my home network I get the following error:

Error connecting to server! Reported error:
SMB2_CREATE returned 3221225506
(3221225506/3221225506):
///LAN/___LAN_MIKEREDUX

MIKEREDUX is the correct server name.

Installing the beta LAN app did not help.

Re: LAN Plugin Connection Error

Posted: 2024-08-26, 10:19 UTC
by ghisler(Author)
Please update to the latest plugin version 3.56 from the Play Store, it should fix the problem.

Re: LAN Plugin Connection Error

Posted: 2024-08-26, 17:30 UTC
by cookiemasta
ghisler(Author) wrote: 2024-08-26, 10:19 UTC Please update to the latest plugin version 3.56 from the Play Store, it should fix the problem.
Please add 2 simple features as copying files from archive to let's say /data/user or any /data or /system folder
because it's not supported in TC
it says error unpacking files when i open archive in left panel chose one file and then copy it to right panel where /data/user folder is opened
it's mounted as rw and given the root access rights


and 2nd request is to show amount of files inside folders and sorting based on it
and show folders size and sort them on that basis
ghost commander and solid explorer are capable of doing latter
I'm now thinking of switch to them but if TC will implement this functions it will become best and irreplaceable file explorer on Android (just like it is on windows)

Re: LAN Plugin Connection Error

Posted: 2024-08-26, 19:57 UTC
by JOUBE
cookiemasta wrote: 2024-08-26, 17:30 UTC ghost commander and solid explorer are capable of doing latter
I'm now thinking of switch to them
If they can do that and you need it, then use them.

Re: LAN Plugin Connection Error

Posted: 2024-08-28, 06:54 UTC
by ghisler(Author)
Please add 2 simple features as copying files from archive to let's say /data/user or any /data or /system folder
That's not possible because copying there requires root rights. It doesn't mean that all functions can be used from root, they need to run as a shell command on a hidden command line. Total Commander would have to unpack the file to a temporary directory with normal rights, and then move them to the root folder with root rights. This would only be possible if the file isn't very large.
and show folders size and sort them on that basis
This is supported, add a button with function type "Internal command", then click >> and pick command 115.

Re: LAN Plugin Connection Error

Posted: 2024-08-31, 23:09 UTC
by MikeHungerford
ghisler(Author) wrote: 2024-08-26, 10:19 UTC Please update to the latest plugin version 3.56 from the Play Store, it should fix the problem.
That did the trick! Thank you.

Re: LAN Plugin Connection Error

Posted: 2024-09-05, 02:27 UTC
by cookiemasta
JOUBE wrote: 2024-08-26, 19:57 UTC
cookiemasta wrote: 2024-08-26, 17:30 UTC ghost commander and solid explorer are capable of doing latter
I'm now thinking of switch to them
If they can do that and you need it, then use them.
would you be kind to not answer if you weren't asked?