Bug 235545 - news/nzbhydra2: after install will not start missing permissions to create directory to /usr/local
Summary: news/nzbhydra2: after install will not start missing permissions to create di...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Tobias C. Berner
URL: https://reviews.freebsd.org/D19091
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-06 00:50 UTC by Ralph Bacolod
Modified: 2019-02-08 22:46 UTC (History)
2 users (show)

See Also:
tcberner: maintainer-feedback+


Attachments
fix nzbhydra.in to set permissions (1.72 KB, patch)
2019-02-06 03:17 UTC, Daniel Shafer
daniel: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Bacolod 2019-02-06 00:50:23 UTC

    
Comment 1 Ralph Bacolod 2019-02-06 00:51:49 UTC
service nzbhydra2 start
Starting nzbhydra2.
Traceback (most recent call last):
  File "/usr/local/share/nzbhydra2/nzbhydra2wrapper.py", line 541, in <module>
    setupLogger()
  File "/usr/local/share/nzbhydra2/nzbhydra2wrapper.py", line 136, in setupLogger
    os.makedirs(logsFolder)
  File "/usr/local/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/local/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/nzbhydra2'
/usr/local/etc/rc.d/nzbhydra2: WARNING: failed to start nzbhydra2
Comment 2 Daniel Shafer 2019-02-06 02:07:05 UTC
Thank you!  I'll get this fixed and submitted after dinner!
Comment 3 Daniel Shafer 2019-02-06 03:17:34 UTC
Created attachment 201782 [details]
fix nzbhydra.in to set permissions

Added logic to set proper permissions and create data directory if it doesn't exist.

Review: https://reviews.freebsd.org/D19091
Comment 4 commit-hook freebsd_committer freebsd_triage 2019-02-08 22:45:55 UTC
A commit references this bug:

Author: tcberner
Date: Fri Feb  8 22:45:49 UTC 2019
New revision: 492464
URL: https://svnweb.freebsd.org/changeset/ports/492464

Log:
  news/nzbhydra2: update to 2.3.6

  - while here, also address the issue of the missing data directory

  PR:		235545
  Submitted by:	Daniel Shafer <daniel@shafer.cc> (maintainer)
  Differential Revision:	https://reviews.freebsd.org/D19091

Changes:
  head/news/nzbhydra2/Makefile
  head/news/nzbhydra2/distinfo
  head/news/nzbhydra2/files/nzbhydra2.in
Comment 5 Tobias C. Berner freebsd_committer freebsd_triage 2019-02-08 22:46:33 UTC
Committed. Thanks.