Edgewall Software

Opened 3 years ago

Last modified 3 years ago

#13336 closed defect

tracd 1.5.2 --daemonize fails, "TypeError: an integer is required (got type str)" — at Initial Version

Reported by: stu-trac-@… Owned by:
Priority: normal Milestone: 1.5.3
Component: general Version: 1.5.2
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

https://trac.edgewall.org/changeset/17483/trunk/trac/util/daemon.py changed daemonize from open to os.open, but didn't convert from Python 'rb' and 'ab+' to os.open flags, result of trying to run tracd -d is:

Traceback (most recent call last):
  File "/usr/local/bin/tracd", line 11, in <module>
    load_entry_point('Trac==1.5.2', 'console_scripts', 'tracd')()
  File "/usr/local/lib/python3.8/site-packages/trac/web/standalone.py", line 366, in main
    daemon.daemonize(pidfile=args.pidfile, progname='tracd',
  File "/usr/local/lib/python3.8/site-packages/trac/util/daemon.py", line 71, in daemonize
    stdin = os.open(stdin, 'rb')
TypeError: an integer is required (got type str)

Change History (0)

Note: See TracTickets for help on using tickets.