Fix the Chrome extension connection
Reconnect the extension, resolve version mismatch, and clear bridge and profile contention.
When a run says the extension is not connected, ask the extension itself first. This command opens no tab and contacts no platform:
blowhorn chrome extension-statusIt reports whether the extension directory is installed, whether the native host manifest is missing, current or stale against the checkout, which install route is on disk (policy, external, or none), and whether the extension answers hello on its socket. An answered hello proves the extension is loaded in the real Google Chrome and talking.
Not connected
Work through the report top to bottom: a missing directory or manifest means
the install did not finish, so install it again with your administrator. A
stale manifest means the checkout moved on without it. A run repairs that
itself on demand: it repairs the native host, registers the extension for
the mapped profile's data directory when nothing is there yet, and
re-probes hello once. A scheduled run goes further: if a native host
process left by an earlier upgrade is still answering in that profile's
place, it ends that process by its own process id first, which is
usually enough on its own. Ahead of a run, ensure it for one mapped profile
with blowhorn chrome extension-install --profile <name> --ensure.
If the socket is still missing after the ensure and Chrome is running,
relaunch Chrome with that profile (or accept the install offer). When
Chrome is closed, the run opens it on that profile itself and says so
(see Opening Chrome when it is closed).
While another run holds the bridge, no ensure runs: wait for it to finish
and recheck.
Version mismatch after an update
A Blowhorn upgrade does not reinstall the extension. When the extension is older than the app accepts, its side panel says "This extension doesn't work with your Blowhorn app yet." instead of "You're all set". To update it:
- Click the Blowhorn icon in Chrome's toolbar to open the Blowhorn side panel.
- Click Upgrade. The extension asks Chrome for the update and restarts itself once Chrome has downloaded it; the side panel closes when it does. If a run is at work, the update waits until that run finishes.
- If the panel says Chrome checked a moment ago, wait a few minutes and click Check for update again.
- Run
blowhorn chrome extension-statusagain until hello answers.
If the panel says Chrome has no newer version, the Chrome Web Store has
not published one yet, or the extension was loaded unpacked. For a store
install, take the
store update
once it is published (never load it unpacked over a store install). For
an unpacked copy, run
blowhorn chrome extension-install --profile <name> --ensure and
relaunch Chrome. The ensure leaves a store install alone, since Chrome's
updater owns it, and never forces a store update.
When the profile is ready the panel also has Check for update, so you can take an update before the app requires it.
After an update, the Service screen's Extension rows say the same thing: a profile whose extension is behind the app reads "update available", and one below the version Blowhorn needs reads "update needed". A behind extension still runs.
"Update the Blowhorn app" when the app is current
Chrome starts the extension's native host once and keeps it until the extension lets go. After you install or move the Blowhorn app, Chrome can still be talking to the host the previous app started, and that host cannot read the newer app's setup, so the panel asks you to update the app. The extension handles this itself: when the host reads as outdated and no run is at work, it lets go of that host and Chrome starts the one the installed app names. The panel says it is checking for a moment and then shows your real state. If a run is at work, the switch waits until the run finishes.
If the panel still says to update the app:
- Open the Blowhorn app and check its version against the latest release. If it is older, update it.
- If it is current, close the panel, wait a minute, and open it again: the extension tries a fresh host again then, and waits longer between each later try.
- If it still says so, quit and reopen Chrome.
Bridge busy
another blowhorn run holds the Chrome extension bridge (pid 1234)One mapped profile runs in one process at a time. Another run is acting as that profile: wait for it, or stop it -- the message names its pid. Your activities stay queued, and a scheduled job tries again on its next run. A run that has hung stops sending its heartbeat, and after 30 seconds without one the bridge is released on its own, so a wedged run cannot hold the bridge indefinitely.
Profile in use
When a run says the profile is in use by another Blowhorn process, the same rule holds under any driver: wait for that run, or stop it. The profile is skipped and its activities stay queued.
Related
- Choose how Blowhorn reaches Chrome - run under another mode instead
- Troubleshooting - start from a symptom instead
- Keep posting when the app is closed - stop a pass cleanly before retrying