[WAPTAGENTBuilder] Unable to create an agent, System error

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
piouscott
Messages: 2
Registration: Sep 25, 2017 - 3:01 p.m.

September 25, 2017 - 3:55 PM

Hello,

I'm having trouble creating the wapt agent.
When the loading bar reaches the end, I get an error message:

"Error while creating waptagent.exe: System error, (OS Code 2): The specified file could not be found. : Error in C:\wapt\waptsetup\custom_waptsetup.iss: The process cannot access the file because it is being used by another process.
Compile aborted."

I found a thread on your forum about a problem with wapt in the "Program Files (x86)" folder which gives the same error message, but my wapt is definitely in c:\wapt.

I should mention that the problem is occurring on a Windows Server 2012 R2 which has both a private and a public IP address (the server is hosted externally). I did my proof of concept for wapt on a Windows 7 machine, and I never encountered this problem.

I've thoroughly searched through all the posts and haven't found a solution.

Thank you in advance for your reply.
Sincerely,

Have a good day.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

September 25, 2017 - 8:17 PM

Was the console launched as administrator?
piouscott
Messages: 2
Registration: Sep 25, 2017 - 3:01 p.m.

September 27, 2017 - 10:38

Yes, the console was launched with "Run as administrator".
And the WAPT server was also installed with "Run as administrator".
renaud.counhaye
Messages: 31
Registration: December 13, 2017 - 11:45

March 6, 2019 - 2:43 PM

Good morning,

I have the same problem :(

I installed the agent setup for 1.7.3.5 in community.

I am indeed launching the console as administrator (right-click > run as administrator) and have even put it in compatibility mode. (on two different versions of Windows 10)
However, it keeps telling me to run the console as admin when I want to launch the agent's wizard.
Then I also get this error message
screenshot
screenshot
2019-03-06 14_26_15-Window.png (6.66 KB) Viewed 11617 times
Renaud Counhaye,
Network Systems Technician,
Central Functions Division
, Ymagis Group
Picture
renaud.counhaye
Messages: 31
Registration: December 13, 2017 - 11:45

March 6, 2019 - 4:52 PM

Okay, I tried using the "waptconsolepostconf.exe" tool after deleting waptagent.exe from the server; it compiles until it reaches the .crt file where I get an error and it stops there.
The same thing happens if I create a new certificate and its key pair; the compilation crashes in the same place: C:\Program Files (x86)\wapt\ssl\xxx.crt

So still stuck on my 1.7.3.5
2019-03-06 16_56_31-Window.png
2019-03-06 16_56_31-Window.png (5.21 KB) Viewed 11610 times
I await your help :)
Renaud Counhaye,
Network Systems Technician,
Central Functions Division
, Ymagis Group
Picture
renaud.counhaye
Messages: 31
Registration: December 13, 2017 - 11:45

March 7, 2019 - 2:35 PM

It's not the most elegant solution, but:

I managed to compile my agent using the console by installing it on a Windows 7 x86 system.
I didn't get any errors like "console not admin" messages, nor any compilation errors. But instead, it asked for the key password, as it should have on Windows 10.

So if you have the same problem, you know what to do...

Regards,
Renaud Counhaye,
Network Systems Technician,
Central Functions Division
, Ymagis Group
Picture
ozoidebing
Messages: 2
Registration: May 26, 2021 - 2:27 p.m.

May 26, 2021 - 2:38 PM

Hello,
I'm experiencing the same problem after updating to version 1.8 (see attached image).
Has anyone found a solution since?
Thanks.
Attachments
wapt.jpg
wapt.jpg (58.99 KB) Viewed 5274 times
ozoidebing
Messages: 2
Registration: May 26, 2021 - 2:27 p.m.

May 26, 2021 - 2:48 PM

Hello,
I'm replying to myself. :D
Actually, my ESET antivirus was deleting a file essential to the agent's construction; I disabled it and it's perfect!
Locked