[RESOLVED] Secondary repositories not functioning

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
Vercingetorix
Messages: 36
Registration: Sep 19, 2024 - 09:09

September 19, 2024 - 09:24

Hello,
we have set up two secondary repositories. Synchronization with the primary repository works correctly.
However, with the exception of a few users on one of the repositories, all machines systematically connect to the primary server located in a different subnet.
The two secondary repositories are each in a different subnet.
We would like to understand why this is happening.

In the secondary repository condition settings in the WAPT admin console, we have entered:
"Agent IP" with the value xx.xx.xx.0\21, where 21 is the subnet mask of our subnet. Is this correct?


How can we correct the problem and test the source of the error on a client?
Thank you in advance for your help.
Have a good day.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

September 19, 2024 - 10:01

Hello

, do you have HTTPS verification enabled?

If so, does the secondary repository have a valid HTTPS certificate?

into your browser,

https://urlreposecondaire/wapt/Packages

does it work?
Vercingetorix
Messages: 36
Registration: Sep 19, 2024 - 09:09

September 20, 2024 - 10:05

Hello,
thank you for your reply.
When I enter https://xx.xx.xx.xx/wapt/Packages
, I get the following error:

404 Not Found
nginx/1.24.0.

Thank you in advance for any further information.
Have a good day.
Vercingetorix
Messages: 36
Registration: Sep 19, 2024 - 09:09

September 20, 2024 - 10:12

Good morning,
For your information, the verify_cert in wapt_get.ini is set to zero.

Code: Select all

[global]
use_hostpackages=1
repo_url=https://xxx-xxxxx-wapt/wapt
wapt_server=https://xxx-xxxxx-wapt
verify_cert=0
max_gpo_script_wait=180
pre_shutdown_timeout=180
hiberboot_enabled=0
use_repo_rules=1
allow_remote_reboot=1
allow_remote_shutdown=1

[repo-sync]
enable_remote_repo = True
local_repo_path = C:\Program Files (x86)\wapt\repository\wapt
local_repo_time_for_sync_start = 20:00
local_repo_time_for_sync_end = 05:30
local_repo_sync_task_period = 25
local_repo_limit_bandwidth = 4
remote_repo_dirs = wapt,waptwua,wapt-host
Vercingetorix
Messages: 36
Registration: Sep 19, 2024 - 09:09

September 20, 2024 - 10:38

Good morning,
Also included in the nginx-erros.log log file is the nginx-erros.log file
I'm getting the following error:

Code: Select all

2024/09/20 10:32:15 [error] 3000#2012: *6 CreateFile() "C:/WAPT/wapt/Packages" failed (3: Le chemin d’accès spécifié est introuvable), client: xx.xx.xx.xx, server: _, request: "HEAD /wapt/Packages HTTP/1.1", host: "xx.xx.xx.xx"
It's not looking in the correct directory, C:/WAPT/wapt/Packages, instead of C:\Program Files (x86)\wapt\repository\wapt
as indicated in wapt_get.ini.

I'm looking for where this information is located in the INI files, but I can't find it.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

September 20, 2024 - 12:45

The value of local_repo_path in the config file must have been changed afterwards and nginx didn't see it as a result.

You should force the reinstallation of the "tis-remote-repo-nginx" package.

Note: We also released the package https://wapt.tranquil.it/store/fr/tis-remote-repo-http to replace nginx and which is more efficient.
Vercingetorix
Messages: 36
Registration: Sep 19, 2024 - 09:09

September 20, 2024 - 2:23 PM

Good morning,
I had a problem in my nginx.conf configuration file.
Who had root paths with c::wapt

Code: Select all

location ~ ^/(wapt/waptsetup-tis.exe|wapt/waptagent.exe|wapt/waptdeploy.exe)$ {
                root "C:/Program Files (x86)/wapt/repository/wapt";
            }

            location ~ ^/(wapt/.*|wapt-host/.*|wads/.*|waptwua/.*)$ {
    
                root "C:/Program Files (x86)/wapt/repository/wapt";
            }

After the modification, it works.
Vercingetorix
Messages: 36
Registration: Sep 19, 2024 - 09:09

September 20, 2024 - 2:26 PM

Hello,
before marking the post as resolved (which it is),
I would like more information about the tis-remote-repo-http package.

Two questions:
Is it more efficient for performing updates?
To implement it, can I uninstall the nginx package and install this one instead, and it will work?
Or is there also some configuration required?

Thank you in advance for your previous and future answers.
Have a good day.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

September 20, 2024 - 3:22 PM

It's more efficient in terms of throughput.
Indeed, we encountered problems with nginx on Windows; the throughput was really poor.

Normally, if you install tis-remote-repo-http, it will uninstall nginx (it conflicts) and replace it without needing any reconfiguration.
Vercingetorix
Messages: 36
Registration: Sep 19, 2024 - 09:09

September 23, 2024 - 10:32

Hello, thank you
for all these helpful answers which are helping us improve our use of the tool.
We installed the new recommended package and removed the nginx one.
Everything works, except for a small number of agents.
We stopped and restarted the wapt service.
Is there a reason why it remains on the primary server and doesn't go to the secondary repository?

Thank you in advance for your latest feedback.
Have a good day.
Locked