Author Topic: Updated Samba Client  (Read 172827 times)

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2531
  • Karma: +195/-0
    • View Profile
Re: Updated Samba Client
« Reply #75 on: January 06, 2024, 11:40:44 pm »
Provided  the Server/client are  not running,  it's safe to remove  all the tdb files...

Do you *need* to enable NT1 connections? I'm certain this isn't the cause of the problem,  but unless  you  have an ancient NAS around that only runs Samba 3.x, it's safest to remove  the support  for NT1...

It would be nice if some others could test the updated smbd / netdrive plugin to get some more data points...
« Last Edit: January 06, 2024, 11:42:23 pm by Paul Smedley »

Dariusz Piatkowski

  • Hero Member
  • *****
  • Posts: 1438
  • Karma: +28/-0
    • View Profile
Re: Updated Samba Client
« Reply #76 on: January 06, 2024, 11:43:41 pm »
...It would be nice if some others could test the updated smbd / netdrive plugin to get some more data points...
OK, but what is the exact use-case you are looking for Paul?

I had previously tried your client update and that results is a "face meets brick wall" (LOL) event here, been following the thread all along, but so far I'm not picking up on anything that I can specifically test out.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2531
  • Karma: +195/-0
    • View Profile
Re: Updated Samba Client
« Reply #77 on: January 06, 2024, 11:50:34 pm »
In particular, running the server with the updated  client and seeing if it works as expected.  In theory at least -  it should be possible to run this is a 'drop in' replacement for the Samba 3.3.x  server. Ie shutdown Samba 3.x server - start running smbd/nmbd from Samba 4.18.x

@Darcio I need to go  back and read your previous posts  to see if I have any other ideas...

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2531
  • Karma: +195/-0
    • View Profile
Re: Updated Samba Client
« Reply #78 on: January 06, 2024, 11:53:32 pm »
Sooo...whatever is causing the issue is a brick-wall for me. Happy to troubleshoot Paul, tell me what level of debugging you might like...

A few thoughts.... make sure you're running the latest libcn0.dll and libcx0.dll.

Perhaps create a ndpsmb.dbg in the root of the boot drive and after the error  occurs, send a copy of \var\log\ndpsmb.log

David McKenna

  • Hero Member
  • *****
  • Posts: 891
  • Karma: +32/-0
    • View Profile
Re: Updated Samba Client
« Reply #79 on: January 07, 2024, 12:10:41 am »
Hey Paul,

  No, I don't need NT1 connections. That's just what AOS created as default - I have never changed that file (except for the WORKGROUP). Guess I'll try with SMB2...

Regards,

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2531
  • Karma: +195/-0
    • View Profile
Re: Updated Samba Client
« Reply #80 on: January 07, 2024, 12:50:45 am »
  No, I don't need NT1 connections. That's just what AOS created as default - I have never changed that file (except for the WORKGROUP). Guess I'll try with SMB2...

It should be using SMB2 anyway - that setting just defines the _minimum_ SMB level that  Samba will negotiate to.  The Samba team increased this from NT1 (aka SMB1) to SMB2 many versions ago (in 4.11  in fact - https://www.samba.org/samba/history/samba-4.11.0.html)

I patched the source to 4.19.3  today - building now...

David McKenna

  • Hero Member
  • *****
  • Posts: 891
  • Karma: +32/-0
    • View Profile
Re: Updated Samba Client
« Reply #81 on: January 07, 2024, 09:22:18 pm »
Paul,

  I've tried everything I could think of, but nothing helps. I even uninstalled SAMBA from the server, deleted all files in C:\MPTN\ETC\samba (there were 55000 files in\lock\msg.lock !) then reinstalled the Netlabs package, and upgraded to your latest SAMBA but still have the slowness issue at the client. Went back to 4.11 on the server and everything works well, even the 4.18 smbclient on the client machine works without -t 60 then.

  BTW, deleting those 55000 files makes the server start MUCH faster. Wonder if there is a way to clean those up before the server is shut down...

Regards,

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5407
  • Karma: +128/-1
    • View Profile
Re: Updated Samba Client
« Reply #82 on: January 07, 2024, 09:30:13 pm »
In startup.cmd or as a regular cmd file in startup or shutdown folders, perhaps something like,
Code: [Select]
if exist \lock\msg.lock rm-rf \lock\msg.lock\*
Likely paths could be adjusted.
This would at clean them up on boot. Could also be part of a wrapper script that also starts the server.

David McKenna

  • Hero Member
  • *****
  • Posts: 891
  • Karma: +32/-0
    • View Profile
Re: Updated Samba Client
« Reply #83 on: January 07, 2024, 11:17:49 pm »
 Thanks Dave! There is a smbexit.cmd file already (installed with the Netlabs SAMBA) - I added that to the end of it (with proper paths) and it works...

Regards,

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2531
  • Karma: +195/-0
    • View Profile
Re: Updated Samba Client
« Reply #84 on: January 08, 2024, 11:51:56 am »
I raised https://mantis.smedley.id.au/view.php?id=779 for the leftover files.

David McKenna

  • Hero Member
  • *****
  • Posts: 891
  • Karma: +32/-0
    • View Profile
Re: Updated Samba Client
« Reply #85 on: January 08, 2024, 12:16:31 pm »
 Thanks Paul. Wonder if I could see your inetcfg.ini file? At one point I spent some time tuning mine for internet performance, maybe something there is tripping up SAMBA? I could test here with yours...

Regards,

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2531
  • Karma: +195/-0
    • View Profile
Re: Updated Samba Client
« Reply #86 on: January 09, 2024, 08:59:48 am »
Mine is the defaults:
Code: [Select]
keepalive 300
synattack 1

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2531
  • Karma: +195/-0
    • View Profile
Re: Updated Samba Client
« Reply #87 on: January 09, 2024, 09:53:56 am »
Very light testing,  but 4.19.3 seems to work like 4.18.x  Then they released 4.19.4 overnight -  so rebuilding with those patches now. Hopefully something to test tomorrow.

New gnutls30.dll  will be needed: https://smedley.id.au/tmp/gnutls30.zip

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2531
  • Karma: +195/-0
    • View Profile
Re: Updated Samba Client
« Reply #88 on: January 10, 2024, 09:22:44 am »
Client: https://smedley.id.au/tmp/ndpsmb-4.19-1-samba419-20240110.zip
Server and other stuff: https://smedley.id.au/tmp/samba-4.19.4-os2-20240110.zip

Seems to work like 4.18.9 to me in my limited testing...

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2531
  • Karma: +195/-0
    • View Profile
Re: Updated Samba Client
« Reply #89 on: January 12, 2024, 09:24:57 am »
  BTW, deleting those 55000 files makes the server start MUCH faster. Wonder if there is a way to clean those up before the server is shut down...

https://smedley.id.au/tmp/smbd-4.19.4-20240112.zip improves (but doesn't  completely fix)  the situation.