[RESOLVED] Server index not generated (secondary repository)

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
mart03
Messages: 47
Registration: December 26, 2017 - 11:03

February 13, 2020 - 2:22 PM

Specify the installed WAPT version (1.8)
* Specify server OS (Linux) and version (Debian Buster)
* Specify the OS of the machine used for administration/package creation (Linux)

Good morning,

I now have my secondary repository configured, however when I go to the repository tab and try to create my index on the server, nothing happens.

My secondary repository is therefore waiting for the index.
Capture.JPG
Capture.JPG (14.67 KB) Viewed 8414 times
I'm having trouble following your procedure for setting up this deposit system... I'm stuck at this step: https://www.wapt.fr/fr/doc/wapt-replica ... figuration

I can't find the waptserver.ini file which, according to your documentation, is located on the main server; there's nothing in /opt/wapt.

Thank you,
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

February 13, 2020 - 6:27 PM

Hello mart03,
mart03 wrote: Feb 13, 2020 - 2:22 PM I can't find the waptserver.ini which, according to your documentation, is located on the main server, nothing in /opt/wapt.
The server configuration file is /opt/wapt/conf/waptserver.ini

I will look into making this more explicit in the documentation.

Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
mart03
Messages: 47
Registration: December 26, 2017 - 11:03

February 14, 2020 - 09:08

Thank you.

You mention the [global] section in the documentation, but there is no global section in waptserver.ini, only [options].

So I added the section and tested with and without it, but nothing happens with the index creation process...
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

February 14, 2020 - 12:19

Hello mart03,
mart03 wrote: Feb 14, 2020 - 9:08 AM You mention the [global] section in the documentation, but there is no global section in waptserver.ini, only [options].

So I added the section and tested with and without it, but nothing happens with the index creation...
Yes, it's in the [options] section that it needs to be added. We're going to have some documentation updating to do :-)

Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
mart03
Messages: 47
Registration: December 26, 2017 - 11:03

February 14, 2020 - 2:39 PM

Hello,

that's exactly what I did, but the index isn't being created. :)

Thank you.
User avatar
eblaudy
WAPT Expert
Messages: 16
Registration: August 5, 2019 - 2:15 PM

February 14, 2020 - 5:07 PM

Good morning,
So you will need:
* Add `remote_repo_support=True` to the [options] section of `/opt/wapt/conf/waptserver.ini`
* Restart your server:

Code: Select all

systemctl restart waptserver
Can you verify that a sync.json file has been created in the /var/www folder?
If not, you can create it in /var/www/ and assign it the correct permissions.

Code: Select all

touch /var/www/sync.json
chown wapt www-data
systemctl restart waptserver
Creating this file may take some time depending on the number and size of the packages on your server.
Check from time to time if it has content with cat for example.
Best regards,
Evan Blaudy
Developer WAPT at TRANQUIL IT
User avatar
eblaudy
WAPT Expert
Messages: 16
Registration: August 5, 2019 - 2:15 PM

February 14, 2020 - 5:09 PM

Or you can upgrade to version 1.8.1; there's a bug fix related to that ;)
Developer WAPT at TRANQUIL IT
mart03
Messages: 47
Registration: December 26, 2017 - 11:03

February 19, 2020 - 3:54 PM

Good morning,

Thank you for your valuable help!

I have since updated my server to version 1.8.1; the files were created correctly, but nothing is being written to them.

Here are the details of the permissions in /var/www/

Code: Select all

-rw-r--r--  1 wapt     www-data     0 Feb 19 15:42 sync.json
-rw-r-----  1 wapt     www-data     0 Jan 28 14:05 rules.json
Do they have the correct permissions? (I've since deleted and recreated the sync.json file, but it's the same)
My waptserver.ini is also correctly configured.

Sincerely,
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

February 19, 2020 - 8:36 PM

mart03 wrote: Feb 19, 2020 - 3:54 PM Thank you for your valuable help!

I have since updated my server to version 1.8.1; the files were created correctly, but nothing is being written to them.

Here are the details of the permissions in /var/www/

Code: Select all

-rw-r--r--  1 wapt     www-data     0 Feb 19 15:42 sync.json
-rw-r-----  1 wapt     www-data     0 Jan 28 14:05 rules.json
Do they have the correct permissions? (I've since deleted and recreated the sync.json file, but it's the same)
My waptserver.ini is also correctly configured.
The rules.json file is populated when rules are saved in the secondary repository tab. It's normal for it to be empty if there are no rules.

Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
mart03
Messages: 47
Registration: December 26, 2017 - 11:03

February 20, 2020 - 8:58 AM

I updated the server with my various repositories to version 1.8.1, and it has appeared since the update.
Locked