Bug 2148757 - Permission denied: '/var/log/pgadmin'
Summary: Permission denied: '/var/log/pgadmin'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pgadmin4
Version: 37
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sandro Mani
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-27 18:39 UTC by udavidson
Modified: 2022-12-07 01:34 UTC (History)
1 user (show)

Fixed In Version: pgadmin4-6.15-4.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-12-07 01:34:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.