Hello, my server-side json.sync file doesn't match the files I have on it. It lists old packages and not new ones, so naturally, it's failing on my remote repositories. How can I regenerate it properly?
Julien
json.sync
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
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
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Hello,
this file is generated server-side by the "wapttasks" service. You can try restarting the wapttasks service.
Then, in the console, you can click on the "Secondary Repositories" tab -> "Update Index".
Simon Fonteneau
this file is generated server-side by the "wapttasks" service. You can try restarting the wapttasks service.
Then, in the console, you can click on the "Secondary Repositories" tab -> "Update Index".
Simon Fonteneau
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Note that sync.json is created from the sum of files (this therefore takes time and CPU temporarily)
Hello, thank you for the reply. What I did yesterday was delete the file, I did asfonteneau wrote: ↑March 13, 2023 - 4:06 PM Hello,
This file is generated server-side by the "wapttasks" service. You can try restarting the wapttasks service.
Then, in the console, you can click on the "Secondary Repositories" tab -> "Update Index".
Simon Fonteneau
I assigned the correct permissions. The console indicated that the file was corrupted, displaying a "missing file" message for about an hour. Now, it's been a good 16 hours since I've had "creating JSON" displayed on my console, and the file is still 0 bytes. However, I've never seen the button to recreate the indextouch json.sync
Debian 11
WAPT Version: 2.4.0.14143
WAPT Version: 2.4.0.14143
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Do you have any secondary repositories that appear in the console?
Alternatively, on the server you can run wapttasks in debug mode to see what it says, then click on "update package index"
(Your message doesn't specify the Wapt version or OS, so I'll assume you're using the latest version of Debian Linux (see forum rules))
Alternatively, on the server you can run wapttasks in debug mode to see what it says, then click on "update package index"
(Your message doesn't specify the Wapt version or OS, so I'll assume you're using the latest version of Debian Linux (see forum rules))
Code: Select all
[root@srvwapt.mydom ~]# systemctl stop wapttasks
[root@srvwapt.mydom ~]# /opt/wapt/runwapttasks.sh
[2023-03-14 09:55:45,216] INFO:huey.consumer:MainThread:Huey consumer started with 2 thread, PID 2215287 at 2023-03-14 09:55:45.216402
[2023-03-14 09:55:45,216] INFO:huey.consumer:MainThread:Scheduler runs every 1 second(s).
[2023-03-14 09:55:45,217] INFO:huey.consumer:MainThread:Periodic tasks are enabled.
[2023-03-14 09:55:45,217] INFO:huey.consumer:MainThread:The following commands are available:
+ waptserver.tasks.resign_crl
+ waptserver.repositories_tasks.update_file_tree_of_files_in_huey
+ waptserver.wsus_tasks.download_wsusscan
+ waptserver.wsus_tasks.download_wsusscan_crontab
+ waptserver.wsus_tasks.cleanup_delete_non_assigned_kb
+ waptserver.wsus_tasks.download_windows_update_task
+ waptserver.wsus_tasks.download_missing_cabs
[2023-03-14 09:55:57,126] INFO:huey:Worker-2:Executing waptserver.repositories_tasks.update_file_tree_of_files_in_huey: 2aee79df-f46a-4ef9-b7ef-5570080ae9d0
[2023-03-14 09:55:57,139] INFO:huey:Worker-2:waptserver.repositories_tasks.update_file_tree_of_files_in_huey: 2aee79df-f46a-4ef9-b7ef-5570080ae9d0 executed in 0.013sI'm definitely on Debian 11 with the latest version. Restarting the service didn't change anything, however, the routine started at exactly 9:00 AM (is it a cron job running?)
The button has now appeared in the console and the server is offering me "TO RESYNC" on my secondary repository.
I click the "update index" button, and I see the same thing in the logs:
However, the sync doesn't seem to trigger when I click the buttons
Edit: Okay, the sync is working fine, but I still don't have control at the console level. I still need to select "To ressync"
The button has now appeared in the console and the server is offering me "TO RESYNC" on my secondary repository.
I click the "update index" button, and I see the same thing in the logs:
Code: Select all
2023-03-14 11:01:02,335] INFO:huey.consumer:MainThread:Huey consumer started with 2 thread, PID 880268 at 2023-03-14 11:01:02.335857
[2023-03-14 11:01:02,336] INFO:huey.consumer:MainThread:Scheduler runs every 1 second(s).
[2023-03-14 11:01:02,336] INFO:huey.consumer:MainThread:Periodic tasks are enabled.
[2023-03-14 11:01:02,336] INFO:huey.consumer:MainThread:The following commands are available:
+ waptserver.tasks.resign_crl
+ waptserver.repositories_tasks.update_file_tree_of_files_in_huey
+ waptserver.wsus_tasks.download_wsusscan
+ waptserver.wsus_tasks.download_wsusscan_crontab
+ waptserver.wsus_tasks.cleanup_delete_non_assigned_kb
+ waptserver.wsus_tasks.download_windows_update_task
+ waptserver.wsus_tasks.download_missing_cabs
[2023-03-14 11:02:00,103] INFO:huey:Worker-1:Executing waptserver.repositories_tasks.update_file_tree_of_files_in_huey: 2d76a36a-071f-4755-83ea-0f4b265eafc3
[2023-03-14 11:02:01,084] INFO:huey:Worker-1:waptserver.repositories_tasks.update_file_tree_of_files_in_huey: 2d76a36a-071f-4755-83ea-0f4b265eafc3 executed in 0.980s
Edit: Okay, the sync is working fine, but I still don't have control at the console level. I still need to select "To ressync"
Debian 11
WAPT Version: 2.4.0.14143
WAPT Version: 2.4.0.14143
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
So the sync.json file is okay then? (before checking anything else)
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Have you set a time limit for syncing?
You can use the "Force sync" button in the right-click menu.
You can use the "Force sync" button in the right-click menu.
I tried both methods; the synchronization works, all my packages are correctly retrieved by the remote repository, BUT the console still shows an error even though everything is workingsfonteneau wrote: ↑March 14, 2023 - 2:35 PM Have you set a time limit for syncing?
You can use the "Force Sync" button in the right-click menu.
Debian 11
WAPT Version: 2.4.0.14143
WAPT Version: 2.4.0.14143
