HTTPError 403 client Error: Forbidden for URL ...

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
lowix
Messages: 24
Registration: Apr 02, 2017 - 5:59 p.m.

May 15, 2019 - 2:59 PM

Hello,

Following the application of update 1.7.4, I am getting a 403 error on my main repository URL:

Picture
Also :
Picture

Code: Select all

# ls -la /var/www/
total 180
drwxr-xr-x   7 www-data www-data   4096 oct.   3  2018 .
drwxr-xr-x  12 root     root       4096 avril 20  2018 ..
drwxr-xr-x   2 root     root       4096 avril 20  2018 html
-rw-r--r--   1 root     root         26 mai   15 14:09 robots.txt
drwxr-x---+  5 wapt     www-data  40960 mai   15 14:19 wapt
drwxr-x---   3 wapt     www-data 110592 mai   15 12:35 wapt-host
drwxr-x---   2 wapt     www-data   4096 avril 20  2018 wapt-hostref
drwxr-x---   2 wapt     www-data   4096 oct.   3  2018 waptwua

# groups wapt
wapt : www-data
I suspect an nginx configuration problem, but which one?

Any ideas?
lowix
Messages: 24
Registration: Apr 02, 2017 - 5:59 p.m.

May 15, 2019 - 4:19 PM

I solved the problem with a:

Code: Select all

# chmod -R 754 /var/www/wapt* 
Before :

Code: Select all

# ls -la /var/www/
total 180
drwxr-xr-x   7 www-data www-data   4096 oct.   3  2018 .
drwxr-xr-x  12 root     root       4096 avril 20  2018 ..
drwxr-xr-x   2 root     root       4096 avril 20  2018 html
-rw-r--r--   1 root     root         26 mai   15 14:09 robots.txt
drwxr-x---+  5 wapt     www-data  40960 mai   15 14:19 wapt
drwxr-x---   3 wapt     www-data 110592 mai   15 12:35 wapt-host
drwxr-x---   2 wapt     www-data   4096 avril 20  2018 wapt-hostref
drwxr-x---   2 wapt     www-data   4096 oct.   3  2018 waptwua
After :

Code: Select all

# ls -la /var/www/
total 180
drwxr-xr-x   7 www-data www-data   4096 oct.   3  2018 .
drwxr-xr-x  12 root     root       4096 avril 20  2018 ..
drwxr-xr-x   2 root     root       4096 avril 20  2018 html
-rw-r--r--   1 root     root         26 mai   15 14:09 robots.txt
drwxr-xr--+  5 wapt     www-data  40960 mai   15 15:43 wapt
drwxr-xr--   3 wapt     www-data 110592 mai   15 15:36 wapt-host
drwxr-xr--   2 wapt     www-data   4096 avril 20  2018 wapt-hostref
drwxr-xr--   2 wapt     www-data   4096 oct.   3  2018 waptwua
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 24, 2019 - 1:56 PM

Strange, you have a small + next to the wapt folder, this means that ACLs have been set.

Code: Select all

drwxr-x---+  5 wapt     www-data  40960 mai   15 14:19 wapt

You can correct it with:

Code: Select all

setfacl -b -R /var/www/*
chown -R wapt:www-data /var/www/*
lowix
Messages: 24
Registration: Apr 02, 2017 - 5:59 p.m.

May 24, 2019 - 3:27 PM

Thank you,
I applied your fix.
Perhaps it was due to the fact that I had initially set up a secondary repository with Syncthing, which I subsequently uninstalled. :|
Locked