[SOLVED] Slow wapt-get: solution

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
erickeke
Messages: 16
Registration: June 12, 2019 - 10:33

June 13, 2019 - 3:34 PM

A workaround for a bug that has long annoyed me

Client version: 1.7.4.6077 and higher, on W10 > 1803

Machine out of domain

On some machines, wapt-get update takes a very long time to complete.

When running `wapt-get update -ldebug`, we regularly find this in the logs:

2019-06-13 14:59:43,460 DEBUG Transaction took too much time: 2.33699989319
2019-06-13 14:59:45,822 DEBUG Transaction took too much time: 2.31399989128
2019-06-13 14:59:48,397 DEBUG Transaction took too much time: 2.31700015068
2019-06-13 14:59:50,740 DEBUG Transaction took too much time: 2.30399990082
2019-06-13 15:00:17,855 DEBUG Transaction took too much time: 2.37700009346
2019-06-13 15:00:20,233 DEBUG Transaction took too much time: 2.34000015259


Simultaneously, when these messages appear, Procmon remains stuck for approximately 2 seconds on "CreateFile \\WORKGROUP*\MAILSLOT\NET\NETLOGON":
mailslot.PNG
mailslot.PNG (9.69 KB) Viewed 4922 times
Workaround:

Disable NetBIOS over TCP/IP:
Capture.PNG
Capture.PNG (18.68 KB) Viewed 4922 times
After running `wapt-get update -ldebug` again, the "Transaction took too much time" message disappears. Procmon no longer attempts to open mailslots.

From what little I understand, it seems to be related to an Active Directory (AD) call concerning user account management. The AD call is even used to query a local, non-domain account... I need to investigate further to understand this better.

The thread below was very helpful, as the timeouts mentioned were similar to those I encountered:
https://social.technet.microsoft.com/Fo... inserverDS

The first answer addresses the problem, and disabling NetBIOS over TCP/IP solves it, allowing us to finally enjoy a fast WAPT connection :-)

I think the Wapt team hasn't encountered the problem because they primarily use Wapt on machines in an AD domain.

I will complete my post later.
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

June 14, 2019 - 11:28

Thank you very much for this analysis.
Indeed, on our infrastructure, NetBIOS is generally disabled.

The slowness problem may also be related to the search for the groups to which the machine is attached.
( setuphelpers.get_computer_groups() )
who appeals to the AD

I think we need to configure this usage...

Could you try putting an empty host_profiles entry in wapt-get.ini?

<waptdir>\wapt-get.ini:

Code: Select all

[global]
host_profiles=

The information gathered potentially involves Active Directory or name searches:

setuphelpers.host_info():

Code: Select all

    info['profiles_users'] = get_profiles_users()
    info['local_profiles'] = get_local_profiles()
    info['local_administrators'] = local_admins()
    info['local_groups'] =  {g:local_group_members(g) for g in local_groups()}
    info['local_users'] =  local_users()

in a WaptPython, we can test which one might take time.
Tranquil IT
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

June 21, 2019 - 1:06 PM

Hello Erickeke,
erickeke wrote: June 13, 2019 - 3:34 PM A workaround for a bug that has long annoyed me.

Client version: 1.7.4.6077 and above, on W10 > 1803.

Machine not in domain.

On some machines, wapt-get update takes a very long time to complete.
Thanks for your long quote. Have you had a chance to look into which function is taking too long with the NetBIOS part?

As you mentioned in your email, we tend to always disable NetBIOS (there's a package in the store for that) :-) )

We've made some changes to improve this issue. It should be included in the next release.

Hopefully this will solve the problem. Otherwise, disabling NetBIOS is also a very good idea!

Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
erickeke
Messages: 16
Registration: June 12, 2019 - 10:33

September 4, 2019 - 7:51 PM

Sorry, I missed quite a few messages, and then I was on vacation and missed more. I updated my email to one I check more often. ;-)

No, I haven't looked at the function yet, I'll get back to it when I have 5 minutes, I promise!
Locked