weaver: tutorial wont multi deploy - cant resolve local hostname
this feels like an env variable problem, but its not clear which var or how to override.
when following the tutorial, i get to the multi deploy phase and i get this output when trying to hit the endpoint for the first time:
S0313 11:24:35.338221 stderr c17304c8 ] error initializing Service Weaver: error creating internal listener: listen tcp: lookup HOSTNAME.COMPANY.com: no such host
(hostname PII redacted)
it seems like it is trying to resolve my FQDN, but should really just be using localhost or the loopback IP.
FWIW, single deploy is working fine:
hello listener available on 127.0.0.1:12345
╭───────────────────────────────────────────────────╮
│ app : hello │
│ deployment : ddde8609-00e3-4074-a41c-60f6fa3e4275 │
╰───────────────────────────────────────────────────╯
curl "localhost:12345/hello?name=Weaver"
Hello, revaeW!
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 15 (6 by maintainers)
Commits related to this issue
- Fixed UseLocalhost bug introduced in PR #115. Before PR #115, the WeaveletInfo proto had a UseLocalhost field. When true, weavelets would listen on localhost for external listeners (the kind returned... — committed to ServiceWeaver/weaver by mwhittaker a year ago
- Fixed UseLocalhost bug introduced in PR #115. Before PR #115, the WeaveletInfo proto had a UseLocalhost field. When true, weavelets would listen on localhost for external listeners (the kind returned... — committed to ServiceWeaver/weaver by mwhittaker a year ago
- Fixed UseLocalhost bug introduced in PR #115. Before PR #115, the WeaveletInfo proto had a UseLocalhost field. When true, weavelets would listen on localhost for external listeners (the kind returned... — committed to ServiceWeaver/weaver by mwhittaker a year ago
- Fixed UseLocalhost bug introduced in PR #115. Before PR #115, the WeaveletInfo proto had a UseLocalhost field. When true, weavelets would listen on localhost for external listeners (the kind returned... — committed to ServiceWeaver/weaver by mwhittaker a year ago
- Added "weaver version" command. > Example ```console $ weaver version weaver version 0.16.0 254d063fcc5a3c27f95869215dfa6bb36bbfbac6 linux/amd64 ``` > Overview This PR introduces a `weaver version... — committed to ServiceWeaver/weaver by mwhittaker a year ago
- Added "weaver purge" command. > Example ```console $ weaver purge WARNING: You are about to delete the following directories used to store logs and data for local Service Weaver applications. This d... — committed to ServiceWeaver/weaver by mwhittaker a year ago
- Added "weaver version" command. > Example ```console $ weaver version weaver version: commit=254d063fcc5a3c27f95869215dfa6bb36bbfbac6 deployer=v0.2.0 target=linux/amd64 ``` > Overview This PR intr... — committed to ServiceWeaver/weaver by mwhittaker a year ago
- Added "weaver version" command. > Example ```console $ weaver version weaver version: commit=254d063fcc5a3c27f95869215dfa6bb36bbfbac6 deployer=v0.2.0 target=linux/amd64 ``` > Overview This PR intr... — committed to ServiceWeaver/weaver by mwhittaker a year ago
- Added "weaver version" command. > Example ```console $ weaver version weaver version: commit=254d063fcc5a3c27f95869215dfa6bb36bbfbac6 deployer=v0.2.0 target=linux/amd64 ``` > Overview This PR intr... — committed to ServiceWeaver/weaver by mwhittaker a year ago
- Added "weaver purge" command. > Example ```console $ weaver multi purge WARNING: You are about to delete the following directories used to store logs and data for local Service Weaver applications. ... — committed to ServiceWeaver/weaver by mwhittaker a year ago
- Added "weaver purge" command. > Example ```console $ weaver multi purge WARNING: You are about to delete the following directories used to store logs and data for local Service Weaver applications. ... — committed to ServiceWeaver/weaver by mwhittaker a year ago
Thanks @stevemcghee! That’s very helpful. I opened PR #156, which should address this issue.