Windows client does not remote

Questions about WAPT Server / Requests and help related to the WAPT server
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
izhocell
Messages: 5
Registration: Apr 29, 2016 - 4:03 p.m.

April 29, 2016 - 4:09 PM

Hello,

I'd like to test the wapt solution, so I installed the server on a 2012 R2 machine. All my test clients connect after installing waptagent.exe, except for my PC. evil:

I've tried almost everything: uninstalling and reinstalling multiple times, disabling the firewall, antivirus, and rebuilding the agent, but nothing works. The worst part is that I have a VM on my machine that connects just fine.

I found the command `wapt-get register`, which, if I understand correctly, allows me to manually connect the client.
It gives me this:

`C:\wapt>wapt-get register`
About to speak to waptservice...
Waptservice User(): administrator
Password: *********
Inform the server of this machine's inventory
.......TypeError: coercing to Unicode: need string or buffer, int found`



Do you know why this is happening?

Have you ever encountered this problem?

Izhocell
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

May 9, 2016 - 6:21 PM

Hello izhocell,

Could you please return the result of

Code: Select all

wapt-get register -l debug
Your problem may be related to this bug:
https://roundup.tranquil.it/wapt/issue620

with the patch
https://github.com/tranquilit/WAPT/comm...b29613e8a6

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
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

May 9, 2016 - 6:26 PM

(Continuing from my message above)

To see if this is indeed the bug mentioned above, you can test the command line
: `c:\wapt\dmidecode.exe > out.txt
dir out.txt`

and check the file size. Normally, it shouldn't be much more than a few tens of kilobytes. If the file is very large, it's likely that you have the manufacturer's logo encoded in the BIOS, and dmidecode (which retrieves the machine's hardware information) is returning a large bitmap that can't be uploaded...

Sincerely,

Denis Cardon
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
izhocell
Messages: 5
Registration: Apr 29, 2016 - 4:03 p.m.

May 11, 2016 - 09:04

Good morning,

Thank you for your answers.

I ran the `wapt-get register` command in debug mode and here is the command output

Code: Select all

C:\wapt>wapt-get register -l debug
Current loglevel : DEBUG
About to speak to waptservice...
Connecting to Waptservice event queue...
Connected to Waptservice event queue
Call register URL...
Waptservice User () :administrateur
Password: ************
Task 5 added to queue
Informer le serveur de l'inventaire de cette machine
.......TypeError: coercing to Unicode: need string or buffer, int found
.Leaving Waptservice event queue
dcardon wrote:Hello izhocell,

Could you please return the result of

Code: Select all

wapt-get register -l debug
izhocell
Messages: 5
Registration: Apr 29, 2016 - 4:03 p.m.

May 11, 2016 - 09:42

I just followed your instructions and as you can see, my out.txt file weighs approximately 30KB.

Code: Select all

C:\wapt>dmidecode.exe > out.txt

C:\wapt>dir out.txt
 Le volume dans le lecteur C n’a pas de nom.
 Le numéro de série du volume est F1CF-152A

 Répertoire de C:\wapt

11/05/2016  09:04            30 532 out.txt
               1 fichier(s)           30 532 octets
               0 Rép(s)  95 178 678 272 octets libres
I find your story about the manufacturer's logo being encoded in the BIOS strange, because my colleague has the same PC as me and it works perfectly for him. But I'll still try the suggested fix.

THANKS
dcardon wrote:(continuing my message above)

To see if this is indeed the bug mentioned above, you can test the command line
: c:\wapt\dmidecode.exe > out.txt
dir out.txt

and check the file size. Normally, it shouldn't be much more than a few tens of kilobytes. If the file is very large, it's likely that you have the manufacturer's logo encoded in the BIOS, and dmidecode (which retrieves the machine's hardware information) is returning a large bitmap that can't be uploaded...

Best regards,

Denis Cardon
izhocell
Messages: 5
Registration: Apr 29, 2016 - 4:03 p.m.

May 11, 2016 - 09:56

I downloaded the patch and then replaced it in the wapt install folder on my machine, but when I run the command wapt-get register I still get the same error message.

Is this the correct procedure to follow?
dcardon wrote: It's possible your problem is related to this bug:
https://roundup.tranquil.it/wapt/issue620

with the patch
https://github.com/tranquilit/WAPT/comm ... b29613e8a6

Regards,

Denis
izhocell
Messages: 5
Registration: Apr 29, 2016 - 4:03 p.m.

May 19, 2016 - 4:49 PM

Can't anyone help me?
Locked