Page 1 of 1
[RESOLVED] Server index not generated (secondary repository)
Published: February 13, 2020 - 2:22 PM
by mart03
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 (14.67 KB) Viewed 8411 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,
Re: Server index not generated (secondary repository)
Published: February 13, 2020 - 6:27 PM
by dcardon
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
Re: Server index not generated (secondary repository)
Published: February 14, 2020 - 09:08
by mart03
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...
Re: Server index not generated (secondary repository)
Published: February 14, 2020 - 12:19 PM
by dcardon
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
Re: Server index not generated (secondary repository)
Published: February 14, 2020 - 2:39 PM
by mart03
Hello,
that's exactly what I did, but the index isn't being created.
Thank you.
Re: Server index not generated (secondary repository)
Published: February 14, 2020 - 5:07 PM
by eblaudy
Good morning,
So you will need:
* Add `remote_repo_support=True` to the [options] section of `/opt/wapt/conf/waptserver.ini`
* Restart your server:
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
Re: Server index not generated (secondary repository)
Published: February 14, 2020 - 5:09 PM
by eblaudy
Or you can upgrade to version 1.8.1; there's a bug fix related to that

Re: Server index not generated (secondary repository)
Published: February 19, 2020 - 3:54 PM
by mart03
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,
Re: Server index not generated (secondary repository)
Published: February 19, 2020 - 8:36 PM
by dcardon
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
Re: Server index not generated (secondary repository)
Published: February 20, 2020 - 8:58 AM
by mart03
I updated the server with my various repositories to version 1.8.1, and it has appeared since the update.