[tor-bugs] #14066 [Tor]: SIGHUP: Reloading config and does not reset internal state of accounting

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Jan 1 04:20:33 UTC 2015


#14066: SIGHUP: Reloading config and does not reset internal state of accounting
---------------------+-------------------------------
 Reporter:  Sasi     |          Owner:
     Type:  defect   |         Status:  new
 Priority:  trivial  |      Milestone:
Component:  Tor      |        Version:  Tor: 0.2.5.10
 Keywords:           |  Actual Points:
Parent ID:           |         Points:
---------------------+-------------------------------
 Wrongly configured accounting and sent sighup to reload the config. Reload
 failed with below messages

 Jan  1 08:22:50 NoNameForHost Tor[19880]: Option 'AccountingStart' used
 more than once; all but the last value will be ignored.
 Jan  1 08:22:50 NoNameForHost Tor[19880]: You have set AccountingMax to
 use hibernation. You have also chosen a low DirPort or OrPort. This
 combination can make Tor stop working when it tries to re-attach the port
 after a period of hibernation. Please choose a different port or turn off
 hibernation unless you know this combination will work on your platform.
 Jan  1 08:22:50 NoNameForHost Tor[19880]: You have set AccountingMax to
 use hibernation. You have also chosen a low DirPort or OrPort. This
 combination can make Tor stop working when it tries to re-attach the port
 after a period of hibernation. Please choose a different port or turn off
 hibernation unless you know this combination will work on your platform.
 Jan  1 08:22:50 NoNameForHost Tor[19880]: Caching new entry toranon for
 toranon
 Jan  1 08:22:50 NoNameForHost Tor[19880]: Failed to unlink
 /var/lib/tor/bw_accounting: No such file or directory
 Jan  1 08:22:50 NoNameForHost Tor[19880]: Configured hibernation. This
 interval begins at 2015-01-01 10:00:00 and ends at 2015-02-01 10:00:00. We
 have no prior estimate for bandwidth, so we will start out awake and
 hibernate when we exhaust our quota.
 Jan  1 08:22:51 NoNameForHost Tor[19880]: Commencing hibernation. We will
 wake up at 2015-01-01 10:00:00 local time.
 Jan  1 08:22:51 NoNameForHost Tor[19880]: Going dormant. Blowing away
 remaining connections.

 Later I commented out accounting and sent sighup to reload the config but
 it does not reset internal state and keep on logging below messages.

 Jan  1 08:23:23 NoNameForHost Tor[19880]: Accounting period ended. This
 period, we will hibernate until 2015-01-01 04:30:00 UTC
 Jan  1 08:23:24 NoNameForHost Tor[19880]: Accounting period ended. This
 period, we will hibernate until 2015-01-01 04:30:00 UTC

 I had to restart tor service to properly load config again.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/14066>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list