#5197 gunicorn-3[137647]: Error: Error: '/var/log/pagure/error_web.log' isn't writable [PermissionError(13, 'Permission denied')]
Opened 4 years ago by marmalodak. Modified a year ago

I installed pagure for the first time. I tried to launch it with

❯ systemctl start pagure_worker.service

I installed it via dnf. Perhaps naively, I had imagined that log file directories would have been created by the installer.

I scrolled through https://docs.pagure.org/pagure/configuration.html and didn't find any instructions on creating directories in /var/log.

This is what I see in the log:

Jul 25 20:37:31 mediapc systemd[1]: Started Pagure web application.
Jul 25 20:37:31 mediapc gunicorn-3[137647]: Error: Error: '/var/log/pagure/error_web.log' isn't writable [PermissionError(13, 'Permission denied')]
Jul 25 20:37:31 mediapc systemd[1]: pagure_web.service: Main process exited, code=exited, status=1/FAILURE
Jul 25 20:37:31 mediapc systemd[1]: pagure_web.service: Failed with result 'exit-code'.
Jul 25 20:37:32 mediapc systemd[1]: pagure_web.service: Scheduled restart job, restart counter is at 1.
Jul 25 20:37:32 mediapc systemd[1]: Stopped Pagure web application.
Jul 25 20:37:32 mediapc systemd[1]: Started Pagure web application.
Jul 25 20:37:32 mediapc gunicorn-3[137650]: Error: Error: '/var/log/pagure/error_web.log' isn't writable [PermissionError(13, 'Permission denied')]
Jul 25 20:37:32 mediapc systemd[1]: pagure_web.service: Main process exited, code=exited, status=1/FAILURE
Jul 25 20:37:32 mediapc systemd[1]: pagure_web.service: Failed with result 'exit-code'.
Jul 25 20:37:32 mediapc systemd[1]: pagure_web.service: Scheduled restart job, restart counter is at 2.
Jul 25 20:37:32 mediapc systemd[1]: Stopped Pagure web application.
Jul 25 20:37:32 mediapc systemd[1]: Started Pagure web application.
Jul 25 20:37:32 mediapc gunicorn-3[137651]: Error: Error: '/var/log/pagure/error_web.log' isn't writable [PermissionError(13, 'Permission denied')]
Jul 25 20:37:32 mediapc systemd[1]: pagure_web.service: Main process exited, code=exited, status=1/FAILURE
Jul 25 20:37:32 mediapc systemd[1]: pagure_web.service: Failed with result 'exit-code'.
Jul 25 20:37:32 mediapc systemd[1]: pagure_web.service: Scheduled restart job, restart counter is at 3.
Jul 25 20:37:32 mediapc systemd[1]: Stopped Pagure web application.
Jul 25 20:37:32 mediapc systemd[1]: Started Pagure web application.
Jul 25 20:37:33 mediapc gunicorn-3[137652]: Error: Error: '/var/log/pagure/error_web.log' isn't writable [PermissionError(13, 'Permission denied')]
Jul 25 20:37:33 mediapc systemd[1]: pagure_web.service: Main process exited, code=exited, status=1/FAILURE
Jul 25 20:37:33 mediapc systemd[1]: pagure_web.service: Failed with result 'exit-code'.
Jul 25 20:37:33 mediapc systemd[1]: pagure_web.service: Scheduled restart job, restart counter is at 4.
Jul 25 20:37:33 mediapc systemd[1]: Stopped Pagure web application.
Jul 25 20:37:33 mediapc systemd[1]: Started Pagure web application.
Jul 25 20:37:33 mediapc gunicorn-3[137653]: Error: Error: '/var/log/pagure/error_web.log' isn't writable [PermissionError(13, 'Permission denied')]
Jul 25 20:37:33 mediapc systemd[1]: pagure_web.service: Main process exited, code=exited, status=1/FAILURE
Jul 25 20:37:33 mediapc systemd[1]: pagure_web.service: Failed with result 'exit-code'.
Jul 25 20:37:33 mediapc systemd[1]: pagure_web.service: Scheduled restart job, restart counter is at 5.
Jul 25 20:37:33 mediapc systemd[1]: Stopped Pagure web application.
Jul 25 20:37:33 mediapc systemd[1]: pagure_web.service: Start request repeated too quickly.
Jul 25 20:37:33 mediapc systemd[1]: pagure_web.service: Failed with result 'exit-code'.
Jul 25 20:37:33 mediapc systemd[1]: Failed to start Pagure web application.

Metadata Update from @ngompa:
- Issue assigned to ngompa
- Issue tagged with: bug

4 years ago

Metadata Update from @wombelix:
- Issue set to the milestone: 5.14

a year ago

Metadata Update from @wombelix:
- Issue set to the milestone: 6.0 (was: 5.14)

a year ago

Sounds like a problem with the spec file. Let's push that to the 6.0 release, because that will require a massive re-write and testing.

Log in to comment on this ticket.

Metadata