You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8dd1cfd
Browse filesBrowse the repository at this point in the historyBrowse files
Answer an agent's Pings from one connector only (#936)
Each connector serves the projects it's started with; only one started with --pings hears Pings and other events outside a project. --pings is implied for an agent's first connection and --no-pings is the default for added (bcac_) connections; a profile that isn't an agent connection keeps hearing Pings unless --no-pings. The choice persists per profile, shows in connect status and doctor, and the CLI warns when it sees more than one Ping-hearing connector for the same identity on this computer.
c.Status, c.Message=setup.StatusFail, "Whether it hears the agent's Pings was saved, and can't be read, so the next start without a flag refuses: "+errorMessage(v.SavedErr)
189
+
c.Hint=v.Remedy(p.name)
190
+
returnc
191
+
}
192
+
hears, known:=v.Hears()
193
+
if!known {
194
+
c.Status, c.Message=setup.StatusSkip, "Whether it hears the agent's Pings can't be told without the profile's credential"
195
+
returnc
196
+
}
197
+
// A running connector is described by its lock; Next may be unknown
198
+
// then, with no saved choice and no credential to read a default from.
c.Hint="Only one connector should answer Pings, and this one doesn't: upgrade any older one, then restart all but one of the others with --no-pings: basecamp connect -P <profile> --no-pings"
247
+
case!hears:
248
+
c.Hint="Only one connector should answer Pings, and this one doesn't: restart all but one of the others with --no-pings: basecamp connect -P <profile> --no-pings"
249
+
caseolder:
250
+
c.Hint="Only one connector should answer Pings, and an older build can't be told: upgrade it, or start this one with --no-pings: basecamp connect -P "+richtext.ShellQuote(p.name) +" --no-pings"
251
+
default:
252
+
c.Hint="Only one connector should answer Pings. Start all but one of them with --no-pings: basecamp connect -P "+richtext.ShellQuote(p.name) +" --no-pings"
fmt.Fprintf(w, " Pings the saved choice can't be read (%s), so the next start without a flag refuses. %s\n", richtext.SanitizeSingleLine(p.Error), p.Hint)
867
+
casep.Saved==nil:
868
+
fmt.Fprintf(w, " Pings not chosen yet: the first start without --project chooses (an agent's first connection hears them, a connection added after it doesn't)\n")
0 commit comments