Opened 5 years ago

Last modified 3 years ago

#14066 new defect

SIGHUP: Reloading config and does not reset internal state of accounting

Reported by: Sasi Owned by:
Priority: Very Low Milestone: Tor: unspecified
Component: Core Tor/Tor Version: Tor: 0.2.5.10
Severity: Normal Keywords: tor-relay accounting hibernation hup state
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

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.

Child Tickets

Change History (5)

comment:1 Changed 5 years ago by nickm

Keywords: tor-relay added
Milestone: Tor: 0.2.???

comment:2 Changed 3 years ago by teor

Milestone: Tor: 0.2.???Tor: 0.3.???

Milestone renamed

comment:3 Changed 3 years ago by nickm

Keywords: tor-03-unspecified-201612 added
Milestone: Tor: 0.3.???Tor: unspecified

Finally admitting that 0.3.??? was a euphemism for Tor: unspecified all along.

comment:4 Changed 3 years ago by nickm

Keywords: tor-03-unspecified-201612 removed

Remove an old triaging keyword.

comment:5 Changed 3 years ago by nickm

Keywords: accounting hibernation hup state added
Severity: Normal
Note: See TracTickets for help on using tickets.