Page 1 of 2
[RESOLVED] Secondary repositories not functioning
Published: September 19, 2024 - 09:24
by Vercingetorix
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.
Re: Inoperative secondary storage facilities
Published: September 19, 2024 - 10:01 AM
by sfonteneau
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?
Re: Inoperative secondary storage facilities
Published: September 20, 2024 - 10:05 AM
by Vercingetorix
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.
Re: Inoperative secondary storage facilities
Published: September 20, 2024 - 10:12 AM
by Vercingetorix
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
Re: Inoperative secondary storage facilities
Published: September 20, 2024 - 10:38 AM
by Vercingetorix
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.
Re: Inoperative secondary storage facilities
Published: September 20, 2024 - 12:45 PM
by sfonteneau
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.
Re: Inoperative secondary storage facilities
Published: September 20, 2024 - 2:23 PM
by Vercingetorix
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.
Re: Inoperative secondary storage facilities
Published: September 20, 2024 - 2:26 PM
by Vercingetorix
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.
Re: Inoperative secondary storage facilities
Published: September 20, 2024 - 3:22 PM
by sfonteneau
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.
Re: Inoperative secondary storage facilities
Published: September 23, 2024 - 10:32 AM
by Vercingetorix
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.