summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2024-01-18 13:01:04 -0400
committerJoey Hess <joeyh@joeyh.name>2024-01-18 13:01:04 -0400
commitae4177ec4e25271f329749c88aeacad122e5ff72 (patch)
treeedce3d7dd3ef75bc99ff11c9df58895e82d822dc
parent52d4f36b2b793e15c214d0bc9dcfb817a4061631 (diff)
comment
-rw-r--r--doc/bugs/webapp_--listen_port_is_not_used__63__/comment_1_275507b26ca13e5d55deec4b7af60699._comment25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/bugs/webapp_--listen_port_is_not_used__63__/comment_1_275507b26ca13e5d55deec4b7af60699._comment b/doc/bugs/webapp_--listen_port_is_not_used__63__/comment_1_275507b26ca13e5d55deec4b7af60699._comment
new file mode 100644
index 0000000000..b05edeb28a
--- /dev/null
+++ b/doc/bugs/webapp_--listen_port_is_not_used__63__/comment_1_275507b26ca13e5d55deec4b7af60699._comment
@@ -0,0 +1,25 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 1"""
+ date="2024-01-18T16:47:15Z"
+ content="""
+--listen takes an IP address (or hostname),
+it does not let you specify the port. I've clarified the documentation
+about this.
+
+I don't reproduce the behavior you show, when I try that the process
+runs but does not bind to any port, and in .git/annex/daemon.log, I see:
+
+ WebApp crashed: Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [], addrFamily = AF_UNSPEC, addrSocketType = Stream, addrProtocol = 0, addrAddress = 0.0.0.0:0, addrCanonName = Nothing}, host name: Just "0.0.0.0:8888", service name: Nothing): does not exist (Name or service not known)
+
+This may be an OS or resolver difference. If "0.0.0.0:8888" somehow
+resolves to an IP address on your system, then the webapp will listen
+on that IP address I suppose. But it's not expecting that to specify a
+port.
+
+The webapp outputs the full url, including the port it chose.
+Since that url also includes an auth token that is required to use the
+webapp, specifying the port for it to listen on does not seem very useful.
+
+What's your use case for wanting to specify a port?
+"""]]