#2147 assigned defect

web.port can conflict

Reported by: joeyh Owned by: daira
Priority: normal Milestone: soon
Component: code-nodeadmin Version: 1.10.0
Keywords: usability cli git-annex port Cc:
Launchpad Bug:

Description

I created 2 separate tahoe nodes on my laptop, and got some very surprising behavior. It turned out that tahoe create-node puts in a default web.port, and if 2 nodes have the same port, any tahoe command will assume that, since it connects to the configured port, it's talking with the right node.

This impacts at least the git-annex tahoe special remote, which sets up a tahoe node for the user. Users sometimes have more than 1 git-annex repository, and so will try to set up separate tahoe special remotes (which might connect back to the same grid, or not).

It would be great if web.port could be set to something like tcp:any:interface=127.0.0.1, and then tahoe start could just pick any free port.

Change History (11)

comment:1 Changed at 2014-01-08T23:32:39Z by zooko

  • Component changed from unknown to code-nodeadmin
  • Keywords usability cli added

comment:2 Changed at 2014-01-08T23:36:26Z by zooko

Note that the node currently does this desired behavior for client.port (docs, source), so this ticket would be to make web.port behave similarly to client.port.

comment:3 Changed at 2014-01-08T23:49:05Z by zooko

This is one of two issues blocking the git-annex↔LAFS integration, as mentioned here: http://source.git-annex.branchable.com/?p=source.git;a=commitdiff;h=85272d8a988b249d755ac3f8133e2bf8126fb271 . The other is #2149.

comment:4 Changed at 2014-01-10T19:50:42Z by daira

  • Keywords git-annex port added

comment:5 Changed at 2014-01-10T19:52:58Z by daira

See also #1377: "tahoe start" claims to have started when it didn't (due to port number conflict)

comment:6 Changed at 2014-04-01T01:02:26Z by joeyh

This is blocking adding easy point-n-click configuration of tahoe in the git-annex webapp. I could arbitraily limit it to one tahoe remote to avoid the problem, but that doesn't feel right.

comment:7 Changed at 2014-04-02T16:11:36Z by daira

  • Milestone changed from undecided to 1.12.0
  • Status changed from new to assigned

comment:8 Changed at 2016-03-22T05:02:25Z by warner

  • Milestone changed from 1.12.0 to 1.13.0

Milestone renamed

comment:9 Changed at 2016-06-28T18:17:14Z by warner

  • Milestone changed from 1.13.0 to 1.14.0

renaming milestone

comment:10 Changed at 2020-06-30T14:45:13Z by exarkun

  • Milestone changed from 1.14.0 to 1.15.0

Moving open issues out of closed milestones.

comment:11 Changed at 2021-03-30T18:40:19Z by meejah

  • Milestone changed from 1.15.0 to soon

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.