Bug 2148757

Summary: Permission denied: '/var/log/pgadmin'
Product: [Fedora] Fedora Reporter: udavidson
Component: pgadmin4Assignee: Sandro Mani <manisandro>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: manisandro
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pgadmin4-6.15-4.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-07 01:34:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description udavidson 2022-11-27 18:39:46 UTC
Description of problem:
After installing pgadmin4-httpd, I get a 500 page when accessing "localhost/pgadmin". In the apache error logs I see:
PermissionError: [Errno 13] Permission denied: '/var/log/pgadmin'

The package "pgadmin4-web" from pgadmin.org (https://www.pgadmin.org/download/pgadmin-4-rpm/) has a script which (afaik) corrects the permission for such directories: /usr/pgadmin4/bin/setup-web.sh

It seems like this script is missing? Thank you


Steps to Reproduce:
1. clean fedora 37 + apache
2. install pgadmin4-httpd
3. restart apache
4. navigate to localhost/pgadmin
5. look at /var/log/httpd/error_log

Actual results:
500 page

Expected results:
normal functioning site

Comment 1 udavidson 2022-11-27 18:54:22 UTC
Also I just noticed that it creates the directory "/var/var/log/pgadmin/" instead of just "/var/log/pgadmin/" - this might be accidental?

Comment 2 Fedora Update System 2022-11-28 08:02:23 UTC
FEDORA-2022-6ee0cc3141 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-6ee0cc3141

Comment 3 Sandro Mani 2022-11-28 08:03:04 UTC
Indeed, good catch! Fixed.

Comment 4 Fedora Update System 2022-11-29 02:31:01 UTC
FEDORA-2022-6ee0cc3141 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-6ee0cc3141`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-6ee0cc3141

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2022-12-07 01:34:43 UTC
FEDORA-2022-6ee0cc3141 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.