---
title: "Exiting with code -26"
description: "What exit code -26 means when registering or unregistering a package, and how to fix it."
product: "Alchemy"
edition: "Public"
type: "reference"
url: "https://docs.cloudhouse.com/public/troubleshooting-packages/errors/exit-codes/exit-code-26/exiting-with-code-26/"
---
# Exiting with code -26

For a number of reasons when either registering or unregistering an Alchemy Compatibility Package, you may receive exit code -26 reading: "Exiting with code: -26". To troubleshoot this error, refer to the tables below depending on which task you are trying to complete.

Applies to: `Alchemy`

## During registration

`Registration failed: {PackageID} is not deployed in machine mode.`
:   You must first deploy the package in Machine Mode in order to then register the package. This deployment must also use the **--noregister** flag. For more information, see [Deploy an Alchemy Compatibility Package to a Machine](https://docs.cloudhouse.com/public/deploying-packages/deploy-to-a-machine/index.md).

`Registration failed: The user was already registered at deploy time.`
:   You must first uninstall the package and then redeploy using the **--noregister** flag. For more information, see [Deploy an Alchemy Compatibility Package to a Machine](https://docs.cloudhouse.com/public/deploying-packages/deploy-to-a-machine/index.md).

## During unregistration

`Unregistration failed: {PackageId} is not deployed.`
:   You must first deploy the package to the machine before it is possible to unregister. For more information, see [Deploy an Alchemy Compatibility Package to a Machine](https://docs.cloudhouse.com/public/deploying-packages/deploy-to-a-machine/index.md).

`Unregistration failed: The user was registered at deploy time.`
:   The package was deployed without the --noregister flag, so an individual user can't unregister their own package. To remove the package for all users, see Uninstalling a Package. For more information on available flags when deploying to a machine, see [Deploy an Alchemy Compatibility Package to a Machine](https://docs.cloudhouse.com/public/deploying-packages/deploy-to-a-machine/index.md).

`Unregistration failed: The user is not registered.`
:   This package is not registered to the current user, so there is no need to unregister.
