#20179: Require absolute path for `$TARBALLTARGETDIR` in `src/main/resources
     Reporter:  karsten            |      Owner:
         Type:  defect             |     Status:  new
     Priority:  Medium             |  Milestone:
    Component:  Metrics/CollecTor  |    Version:
     Severity:  Normal             |   Keywords:
Actual Points:                     |  Parent ID:
       Points:                     |   Reviewer:
      Sponsor:                     |
 The comment in `src/main/resources/create-tarballs.sh` says that "OUTDIR
 and TARBALLTARGETDIR have to be given absolute or relative to WORKDIR",
 but a relative path for `$TARBALLTARGETDIR` doesn't work anymore since
 that script also updates symlinks (commit 94278aa).  Here's what the
 script is running on the main CollecTor instance with default values:

 cd /srv/collector.torproject.org/collector/
 ln -f -s -t archive/bridge-descriptors/statuses/ ../data/bridge-

 That last path does not exist, so `ln` places a link to that non-existant
 path into its `archive/` directory structure.  So, this won't work with a
 path that is relative to `$WORKDIR`, which is required for creating
 tarballs.  I'd say it's easiest to just require an absolute path there.
 At least that's how I resolved the issue on the main CollecTor instance.

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

Reply via email to