Error adding packages (locally or via the internet)

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
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
yakalelo57
Messages: 3
Registration: June 21, 2016 - 6:18 PM

June 21, 2016 - 6:27 PM

Good evening,
I just installed WAPT server on a Windows server 2012 and didn't have too many problems with the configuration.
However, when I add a package from an internet search or from a file downloaded from the website and loaded locally via the console, I get an error message: "

An unhandled exception has occurred.
HTTPError: 400 Client Error: Bad request for url:
....:444/upload_package/pkg-adobereader_11.9-3_x86.w..."

I should mention that in my default installation, I had to:
1) disable an Apache service present on the server;
2) after installing WAPT, I modified the WAPT Apache configuration (httpd.conf): I replaced ports 80 and 443 with 8081 and 444 in two places in this file: Listen and Virtual Host;
3) restart WAPT Apache and test from a client PC on both ports (OK
); 4) restart my other Apache server, which was listening on 80 and 443, and it also worked fine.

I've already received a message I encountered a similar error when trying to generate a WAPT agent, but ultimately the file creation was successful, and my client had the correct (and up-to-date) server credentials with the correct ports.

However, I also don't see my client on the console (this might be related to my client PC firewall being active, but that's a minor issue for now).

If anyone has any ideas about the error message preventing me from adding applications, I'd appreciate it.
yakalelo57
Messages: 3
Registration: June 21, 2016 - 6:18 PM

June 22, 2016 - 10:55

Okay, so I ran some more tests:
- On my 2012 server, I found 2-3 configuration files still using ports 80 and 443 in c:\wapt
=> modifying them and restarting Apache didn't change anything.
- On a Windows 7 machine, I installed Wapt Server without changing any ports, and I get the same error when uploading a package.
- The same thing happens when disabling the firewall on the Windows 7 PC.

I'm going to test the Windows 7 PC again with a direct internet connection to eliminate any doubt about the site's internal firewall.
Since I tested using a .wapt file previously downloaded to my Windows 7 machine, I shouldn't need a network connection to add my package anymore, right?
yakalelo57
Messages: 3
Registration: June 21, 2016 - 6:18 PM

June 22, 2016 - 3:30 PM

With direct internet access, it works (I installed and configured everything from start to finish using my mobile internet connection).
I've noticed that the server is recognized in the inventory tab of the console, which isn't even the case on my Windows 7 machine or my server.

So, is the WAPT console constantly communicating over the internet?
That's the only explanation I can see for why local server detection only works on my machine, which is connected via mobile internet.

What should I test or check in my firewall settings to resolve this?
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

June 24, 2016 - 4:55 PM

An internet connection is only required for package import if the external repository is on the internet.
In this case, if the site uses a proxy, it must be enabled in the console to access the external repository (no automatic detection).

However, the custom port 444 for HTTPS might not be handled correctly in the console... we haven't tested with a port other than 443.

Do you have an active antivirus program that intercepts and scans HTTP/HTTPS requests?
Tranquil IT
Locked