[tor-bugs] #16401 [Onionoo]: Fail-fast if file access permissions for out and status prevent an update

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Jun 19 15:54:57 UTC 2015


#16401: Fail-fast if file access permissions for out and status prevent an update
-----------------------------+-----------------
     Reporter:  leeroy       |      Owner:
         Type:  enhancement  |     Status:  new
     Priority:  normal       |  Milestone:
    Component:  Onionoo      |    Version:
   Resolution:               |   Keywords:
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+-----------------

Comment (by karsten):

 Yes, this sounds useful.  I could imagine checking whether the `out/`
 directory exists, and if not, attempt to create it
 [https://gitweb.torproject.org/onionoo.git/tree/src/main/java/org/torproject/onionoo/cron/Main.java#n166
 before this line].  Doing the same for the `status/` directory would be
 slightly more complicated, but having such a check for `out/` should
 already catch most cases.  Want to submit a patch?

 By the way, I'm curious how you create regular backups.  What I do is stop
 the cronjob, copy directories, and re-enable the cronjob.  Maybe you're
 doing something smarter there?

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


More information about the tor-bugs mailing list