Skip to content
Back to skills

Pixinsight Connector Troubleshooting

ASecurity

Use when a `pixinsight` MCP tool (pixinsight-connector) fails, refuses, reports a PixInsight console error, returns something that looks wrong, or PixInsight was paused or aborted. Covers reading the connector's call log, the Pause/Abort protocol, known tool pitfalls and their workarounds, and when to stop and ask the user. Also use for "why did this PixInsight call fail", "the connector is stuck", "PixInsight won't start".

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
ai-agentsgoangularnodeexpressdatabase

Works with

  • terminal
  • cli
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned October 11, 2026

npx -y skills add mxcoppell/pixinsight-connector-skills --skill pixinsight-connector-troubleshooting --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pixinsight Connector Troubleshooting?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pixinsight Connector Troubleshooting
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mxcoppell-pixinsight-connector-troubleshooting/badge)](https://www.skillsdirectory.com/skills/mxcoppell-pixinsight-connector-troubleshooting)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pixinsight-connector-troubleshooting
description: >-
  Use when a `pixinsight` MCP tool (pixinsight-connector) fails, refuses, reports a PixInsight
  console error, returns something that looks wrong, or PixInsight was paused or aborted. Covers
  reading the connector's call log, the Pause/Abort protocol, known tool pitfalls and their
  workarounds, and when to stop and ask the user. Also use for "why did this PixInsight call
  fail", "the connector is stuck", "PixInsight won't start".
license: MIT
metadata:
  author: mxcoppell
---

# Troubleshooting pixinsight-connector

## First: what actually happened

- **The connector logs every call in full** to `<workspace>/agentic/logs/*.jsonl`, one file per session: the tool input, the PJSR it sent, and PixInsight's raw result. When a result is unclear, read the latest entries there instead of guessing (logging is off when `PIXINSIGHT_CONNECTOR_LOG=0`).
- **Console errors are part of the result.** A line `[PixInsight console reported: ...]` holds the `*** Error` / `** Warning` lines PixInsight printed during the call. A process that declines to run says why only there.
- `whether any of it was applied is unknown` means the command was not re-run and may have partly applied: check the affected views before retrying.
- Tools can report success while damaging an image. After any step that is supposed to preserve a level (background, gradient, leveling), check the median with `get_image_stats`.

## Setup problems

| Symptom | Do this |
|---|---|
| No `pixinsight` tools at all | The server is not registered or did not start. Run `pixinsight-connector doctor` in a terminal; it checks Node, the PixInsight install, the workspace and the watcher, and prints a hint per failed check |
| Server fails to start when registered with `npx` | npx needs the npm registry until the package is cached. Install it (`npm install -g pixinsight-connector@2.5.0`) and register `pixinsight-connector` |
| Two `pixinsight` servers registered (by hand and by a plugin) | Keep one. Two connectors driving one PixInsight compete for its single script slot |
| `No usable workspace: ...` | The workspace is the filesystem root, the home folder itself, missing or unwritable. `set_workspace` to the target folder, then retry |
| `export_image` refuses a path | Absolute paths are allowed only under `<workspace>/output/` or `<workspace>/agentic/`. Use a relative path (lands in `output/`) |
| PixInsight does not start | It starts on the first tool call unless `PIXINSIGHT_CONNECTOR_AUTOSTART=0` (then start it yourself). `PIXINSIGHT_BIN` or `PIXINSIGHT_DIR` override where it is looked for |
| Something about Gaia, MARS or RC-Astro tools | Run `pixinsight-preflight`: `inspect_environment` asks PixInsight what is installed |

## Pause / Abort

If the user presses Pause/Abort in PixInsight, the call returns `STOPPED BY USER`. Stop, tell the user, and do not call `resume_bridge` until they say to continue. Never retry around it.

## Known tool pitfalls

| Symptom | Cause | Do this |
|---|---|---|
| `run_plate_solve` says "Plate solve OK" and the console adds `No database files have been selected` or `the Gaia process is not working, probably because of a wrong database configuration` | Printed by the Gaia process while the solve itself used DR3/SP (the result names its reference catalog) | Harmless when DR3/SP is valid (preflight). Confirm with `run_pjsr` `ImageWindow.windowById(id).astrometricSolutionSummary()` |
| `combine_channels` warns about inconsistent FOCALLEN/XPIXSZ/RADESYS; the result has no solution | Solution metadata is not propagated to the combined image | Plate-solve the combined view before SPCC |
| A PixelMath-made image (`pixelmath_new_image` without `size_from`, or `run_pjsr` PixelMath with a new image) has no astrometric solution | New images carry none | `pixelmath_new_image` copies `size_from`'s solution; otherwise `copy_astrometric_solution` from a solved file on the same grid |
| `run_mgc` refuses: flux metadata missing | SPFC did not run on that same view | `run_spfc` on it first (same view, not a clone) |
| `run_mgc`: `No reference data found for filter ...` | The MARS files do not cover this position | `inspect_environment` with `sections: ["mars"]` and the target's `ra_deg`/`dec_deg` shows the coverage; add MARS files for that sky area |
| `run_background_neutralization` succeeds but the median jumps and the MAD grows many times | It rescaled the image (seen on an image containing exact zeros) | SPCC already neutralizes the background; level with sky-tile offsets instead, and check the median afterwards |
| `run_pixelmath` reports samples truncated to [0,1] | PixInsight images hold [0,1] and clamp anything outside, silently in PJSR | Keep fluxes and gains above 1 in expressions or JSON, never in an image; `get_image_stats` `clampFractions` shows how much sits at exactly 0 or 1 |
| `save_preview` of linear data is black; JPEG "insufficient numerical accuracy" warning | Linear values; the warning is harmless | Pass a stretch: `stf_from` (a view whose STF to use; `set_stf` sets one) or `stf_m`/`stf_c0`, optionally with `crop` and `downsample` |
| `get_image_stats` MAD looks small | It is the raw MAD | Multiply by 1.4826 for MADN, the value STF formulas use |
| `measure_stars` reports `color_diversity` 0 and large FWHM on every image | Saturated star cores | Use `median_fwhm_px` only, comparatively (same image, before/after) |
| `measure_saturation` reports 0 on a linear image | It is tuned for 0-1 display data | Measure on a display copy |
| `PixelMath` new image gets id `X1` instead of `X` | An image `X` was already open | Close the old one first |
| `run_pjsr` refuses code with a line number | The code does not parse | Fix that line; `code` is a script (no top-level `return`, the last expression is the result) |
| `Invalid argument type` from a process property | A PJSR enum constant was undefined (they live on the process object, e.g. `IntegerResample.Average`, not on its prototype) | Use the constant's number, or read it from `describe_process` |
| A negative BXT `adjust_star_halos` | Deepens dark rings around bright stars | Keep halos at 0 unless you check the rings |
| `crop_image` / `resample_image` says the astrometric solution was removed | Geometric processes delete it (the connector suppresses the confirmation dialog) | `run_plate_solve` again before SPFC, SPCC or anything that needs coordinates |
| `run_mgc` refuses a mono image without `filter` | MGC would fit the wrong MARS band and can subtract real nebula | Pass the channel's `filter` (`L`, `R`, `G`, `B`, `Ha`, `OIII`, `SII`) |
| `PixInsight is busy with job ...` or `... WBPP run ... is running` | A `run_pjsr` `async` job or a `run_wbpp` run owns PixInsight | `job_status` / `wbpp_status` report it; `cancel_job` stops a job at its next `processEvents()` |
| A call ran long and says PixInsight may be showing a dialog | A modal dialog in PixInsight is waiting for a click | Ask the user to look at PixInsight and answer it; do not retry meanwhile |
| Every call fails with `crashed mid-command ... retry` although PixInsight was restarted (connector before 2.3.0) | A stale "busy" heartbeat | 2.3.0 clears it by itself; on older versions move `<workspace>/agentic/bridge/<machine>/heartbeat` aside |
| A starless image after `run_sxt` shows a faint rectangular grid, cells of about 470 px | StarXTerminator's tile overlap was too low: connectors before 2.4.0 defaulted to 0.10 | Run `run_sxt` with `overlap` 0.5 (the default from 2.4.0) and check the starless image again under a hard stretch |
| `run_spcc` in narrowband mode gives an Hα/[O III] scale that looks wrong for a 5 nm filter | Connectors before 2.4.1 left the bands at PixInsight's 3 nm default; a solar-type white reference is also needed for star colour (the default "Average Spiral Galaxy" tints stars) | Pass `red_bandwidth_nm`, `green_bandwidth_nm`, `blue_bandwidth_nm` (and the `_wavelength_nm` centres) with the real filter widths and `white_reference` "G2V Star" |
| `reproject_to_reference` says a view has no astrometric solution | Both the source and the reference need one | `run_plate_solve` on each, then retry |
| `run_bxt`, `run_nxt` or `run_sxt` ignores a parameter you set, or the console says `Skipped unknown process parameter` | RC Astro's unified PixInsight module renamed and removed parameters: `ai_file` is now the numeric `ml_version` (0 is the latest); `correct_first`, `nonstellar_then_stellar`, `lum_only` and `AI` are gone; BlurXTerminator's stellar sharpening is `sharpen_stars` inside PixInsight. A PJSR assignment to a name the process does not have is ignored without an error. Connectors before 2.5.0 set names the module no longer has, so their `sharpen_stellar` input had no effect (the module's own default applied) | `describe_process` for the real names; use connector 2.5.0 or later |
| A solved image opens without an astrometric solution | Solutions saved by 1.9.5 use a new XISF format that earlier PixInsight versions do not read | Open it in 1.9.5, or `run_plate_solve` it again on the older version. Matters for stage files moved between machines |
| `verify_astrometry` reports a large median deviation after `run_plate_solve` | Recursive surface splines, an ImageSolver 6.5.0 option (core 1.9.5), are off by default; the default model can leave distortion uncorrected. The vendor's own figure on a 34,000-star mosaic panel: median deviation from Gaia DR3 0.315 px to 0.091 px with them on | `run_plate_solve` again with `recursive_splines` true, then `verify_astrometry` again |
| `verify_astrometry` fails or refuses | It needs a plate-solved view and the AstrometricSolutionVerifier script, which needs core 1.9.5 | `run_plate_solve` the view first; `pixinsight-preflight` reports whether the script is present |
| SPFC, MGC or SPCC give different numbers from an earlier run on the same data | Build 1705 changed the default of the PSF "Auto" option, which changes the default results of LocalNormalization, SPFC, PhotometricColorCalibration and SPCC; MGC uses SPFC's scale factors | Compare the build (`pixinsightBuild` in `agentic/preflight.json`, or the `processes` section of `inspect_environment`) for the two runs; redo both on one build |
| A view `open_image` opened has an unexpected id | Since 1.9.4 PixInsight names views from metadata by default (template `(primary-image-type)_(filter)_(parent-id)_(aux-original-id)`), not from the file name | Use the id `open_image` returns, or `list_open_images`, and `rename_view` to the id you need; never assume the file name |
| A third-party script's window is unusable (taller than the screen, cannot be resized) | Contained windowing mode (build 1705 and later) is now the recommended GUI mode and will become the default; a script written for the other mode can lay its interface out badly | Toggle the mode before assuming the script is broken: Edit > Global Preferences > Main Window / Startup, or start PixInsight with `--contained-windows` or `--no-contained-windows` (the choice persists) |
| A third-party script runs much slower on Apple Silicon | It has no `#engine` directive, so it runs on the legacy SpiderMonkey engine, which is interpreter-only there (PixInsight 1.9.5); its results are correct | Expected, not a failure. A script that declares `#engine v8` is not affected; the legacy engine is scheduled for removal |
| Memory pressure | Each 32-bit colour image of a full-frame sensor is hundreds of MB, and snapshots add up | Export intermediates to XISF and close them |

## When to stop and ask the user

- A required input (camera QE, filters, position, scale) is missing: `pixinsight-target-intake`.
- A plate solve fails after a corrected seed.
- A gate keeps failing after one fix.
- Any choice of taste (brightness, noise reduction strength, sharpening).
- Before closing images the user may want to inspect, or writing anywhere outside `agentic/` and `output/`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.