Troubleshooting

Fixes for the problems you are most likely to meet when you install morphirup, set up a toolchain, compile and generate

Each problem below gives what you see, why it happens, and what to do. For problems with a single command, see also the CLI troubleshooting reference.

Installing morphirup

morphirup is not found

What you see. After installing, the terminal says morphirup is not recognized, or command not found.

Why. The folder that holds morphirup is not on your PATH, or the terminal was open before the install.

What to do. On Windows, the install script adds its folder to your user PATH, so open a new terminal; one that was already open doesn’t see the change. On macOS and Linux, the script doesn’t change PATH. When its folder isn’t on your PATH, it ends by printing the line to add:

morphirup-install: .../bin is not on your PATH. Add this line to your shell profile
morphirup-install: (~/.profile, ~/.bashrc or ~/.zshrc), then open a new shell:

    export PATH=".../bin:$PATH"

The script prints the full folder where this shows .... Add its export line to your shell profile and open a new shell. Installation says where each script installs morphirup.

The install script reports a checksum mismatch

What you see.

SHA-256 mismatch for morphirup-win-arm64.exe: expected 0000000000000000000000000000000000000000000000000000000000000000, got 6bb59736f765a9f2cbdf7262a1f07838c15c6025927f10f7642f4307a8d237f3; nothing was installed

Why. The file the script downloaded is not the one the release published. Usually the download was cut short or changed on the way.

What to do. Nothing was installed, so it is safe to run the script again. If the mismatch comes back, download morphirup and the release’s checksum file yourself and compare them, as Download it yourself shows. If they still don’t match, don’t run the file, and open an issue.

The install script says the release has no morphirup

What you see. With --version or -Version:

morphirup-install: error: finos/morphir release v0.4.0-beta.12 has no morphirup-linux-x64 (https://github.com/finos/morphir/releases/download/v0.4.0-beta.12/morphirup-linux-x64: HTTP 404); morphirup releases before 0.5.0-alpha.2 are on finos/morphir-dotnet: https://github.com/finos/morphir-dotnet/releases

Why. The script installs from the Morphir releases, and that release has no morphirup for your machine. morphirup is there from 0.5.0-alpha.2 on. 0.5.0-alpha.1 has the morphir CLI only, and 0.4.0-beta and older are releases of the earlier Rust CLI. Nothing was installed.

What to do. Pass 0.5.0-alpha.2 or a later version, or leave the version out to get the newest. For an older morphirup, download it from the finos/morphir-dotnet releases, as Download it yourself shows.

The install script refuses on an Intel Mac

What you see. On an Intel Mac, the script stops with an error that says Intel macOS is not supported. (A terminal that runs under Rosetta on an Apple silicon Mac is fine: the script installs the Apple silicon file.)

Why. morphirup is built for Macs with Apple silicon (M1 and later) only.

What to do. Use a Mac with Apple silicon, or a Windows machine.

mise installs an older release, or the wrong one

What you see. Without a version, mise can pick a release that has no morphirup. With the command from Installation, mise picked a release of the earlier Rust CLI:

mise ✗ github:finos/morphir@0.4.0-beta.12  194ms · failed: No matching asset found for platform windows-arm64
mise ERROR Failed to install github:finos/morphir@0.4.0-beta.12: No matching asset found for platform windows-arm64
Note: filtered by matching="morphirup"

mise installed nothing: it never takes another file in place of morphirup.

Why. The Morphir releases also hold releases without morphirup: 0.5.0-alpha.1, which has the morphir CLI only, and the releases of the earlier Rust CLI, 0.4.0-beta and older. mise lists them all, and it doesn’t always see the newest release: its list can leave out one published in the last day. It then takes the newest release it sees. Without version_prefix=v,prerelease=true, it takes the release that GitHub marks as latest, which is an older Rust release.

What to do. Give mise the version. Add @<version> at the end, inside the quotes, as With mise shows, for example @0.5.0-alpha.2. The versions are on the releases page, written without the v; morphirup is in 0.5.0-alpha.2 and later.

Setting up a toolchain

setup says the platform isn’t supported

What you see.

  "status": "refused",
  ...
    "code": "setup.platform_mismatch",
    "message": "Release setup requires an actual Windows x64, Windows ARM64, macOS ARM64, Linux x64 or Linux ARM64 manager process."

Why. You are running on an unsupported platform (Intel macOS osx-x64, or musl Linux such as Alpine), under x64 emulation on Apple silicon, or with an older morphirup release before 0.5.0-alpha.7 on Linux (releases before 0.5.0-alpha.7 did not include Linux setup toolchains).

What to do. On GNU/Linux x64 or ARM64 (glibc 2.35+), install morphirup 0.5.0-alpha.7 or later. On Apple silicon, install the native osx-arm64 build rather than running an x64 binary under Rosetta. On musl Linux or Intel macOS, morphirup setup is not supported.

run or show says the Home needs setup

What you see. One of these, from morphirup run or morphirup show:

morphirup: local.setup_required: This Home was set up with local-toolchains 0.1.0-preview.5, and this morphirup reads only 0.1.0-preview.6. Run morphirup setup --yes again in this Home. ...
morphirup: local.platform_mismatch: Historical local execution requires a win-x64 manager process.
    "code": "local.io_refused",
    "message": "Local input or installed state could not be safely opened."

Why. morphirup keeps the toolchain in a folder called the Home: .morphir in your user folder, or the folder that MORPHIR_HOME names. The first message means the Home was set up by an older morphirup. The other two mean nothing has been set up in this Home yet. On Windows ARM64, run reports this case as a win-x64 problem, which is misleading. The fix is still to set up.

What to do. Run setup, then try again:

morphirup setup --yes

If you set MORPHIR_HOME, check that it names the same folder for setup and run.

Setup fails without a network

What you see. setup (or setup --dry-run) refuses with:

    "code": "acquisition.refused",
    "message": "The bounded release transfer was refused by transport or byte-integrity checks."

Why. Setup downloads the toolchain from the Morphir release on GitHub, https://github.com/finos/morphir/releases/download/v<version>/, so it needs the network. GitHub then sends the download to release-assets.githubusercontent.com or objects.githubusercontent.com. A proxy that is set but doesn’t work, or a firewall that blocks one of those three hosts, causes the same error.

What to do. Run setup once while you are online, and check HTTPS_PROXY and HTTP_PROXY. Ask for github.com, release-assets.githubusercontent.com and objects.githubusercontent.com to be allowed. Behind a company proxy or firewall, see Behind a proxy or firewall. After that, morphirup run -- compile and morphirup run -- generate need no network.

Setup says a path is too long (Windows)

Why. Windows limits a program’s path to 259 characters, and the Home’s folders add to the length.

What to do. Set MORPHIR_HOME to a short folder, such as C:\morphir-home, and run morphirup setup --yes again.

The release-checksum note

What you see. setup, show and run print this line on stderr:

morphirup: release-checksum delivery, NOT publisher-authenticated.

Why. It tells you how far the download was checked. Every file matched the checksums published with the release, so you have the files the release published, intact. The files are not signed, so the check doesn’t prove who published them.

What to do. Nothing. It is a notice, not an error. The morphirup reference describes the check in detail.

Validating IR

validate can’t read the file

validate stops with exit code 2 when the file isn’t IR it can read. The message names the problem and where it is:

CauseMessage
The file is not complete JSONError: malformed-json: ...\broken.json: The input is not a complete JSON document.
formatVersion is a string, "3", not the number 3Error: unsupported-version: ...\bad-ir.json at $.formatVersion: Expected a classic IR version: integer 1, 2 or 3, or release 3.0.x or 3.1.x.
A tag has the wrong case, "public" for "Public"Error: decode: ...\case-ir.json at $.distribution[3].modules[0]: Invalid access 'public'.

Fix the file at the place the message names, and run validate again. The validate reference has the full list of input rules.