# Troubleshooting

_The problems people meet most often, and the quickest way out of each._

The problems people run into most, and the quickest way out of
each.

## First: monixagent doctor

```
monixagent doctor
```

It checks the installation, whether the server answers and whether it is the
version you installed, whether the provider you chose has credentials, and where
the logs are. If it prints a problem, fix that first. If it does not, look at the
logs:

```
monixagent logs            # server and interface
monixagent logs server -f  # follow the server's log
```

## The server does not start, or the interface cannot find it

## It says the licence is required (402)

The server answers with a licence error when this machine is not activated,
the seat was released, or the licence is bound to another machine (the message
says so). The message also names two other cases: an *online* licence
that could not reach the licence server for a few hours stops until the network
is back, and nothing is wrong with the licence itself; and a build that is newer
than your update window is refused — reinstall the version you own, or extend
the window. Open `monixcode` and sign in, or use
`monixagent license relogin` after a `monixagent logout`. To use the
licence on a different machine, `monixagent license move`. Your data is
still readable in this state: `monixagent export` works without a
licence. See [Licence & updates](https://docs.nemonix.ai/monix-agent/docs/account).

## “Denied: read-only mode”

You are in Read only mode, or in Plan mode. In both
it may read and search but not write or run commands. Cycle the mode with
Shift + Tab or
`/mode`; in plan mode, approving the plan switches writing on. See
[what stops a tool](https://docs.nemonix.ai/monix-agent/docs/tools#modes).

## “Writing to .monixcode/ is not allowed”

The `.monixcode` folder of a project holds Monix Agent's own project data,
and the agent must not change it — the memory only changes through you. The one
exception is `.monixcode/scratch/`: that is where temporary files and tool
caches go, and it is the only writable part. If the agent needs scratch space,
it should use that or a system temporary folder.

The same rule covers Monix Agent's settings and the memory: change them in the
settings window and the panels, not through the agent. See
[What the agent cannot touch](https://docs.nemonix.ai/monix-agent/docs/permissions#protected).

## “Outside all project scopes”

A path outside the project is refused until you grant it. Approve the
agent's request when it asks, or add it to the project's folder list yourself with
`/paths write <folder>`. A folder you blocked stays blocked in every
mode except Full with *Stay in the project* off.

## It keeps asking for approval

In the default mode every shell command asks. Answer
a for “allow this command from now on”, or add a
command with `/allow`. For an unattended run, use Auto — and
read [Permissions & safety](https://docs.nemonix.ai/monix-agent/docs/permissions) first.

## Update problems

## It uses many tokens

Start with `/context`: it shows where the tokens go. The levers are
on [Context & cost](https://docs.nemonix.ai/monix-agent/docs/context) and
[Models & cost](https://docs.nemonix.ai/monix-agent/docs/models) — give the cheap roles a cheap model, use
compaction, and keep long-lived instructions short. Each subagent and each
advisor call is a separate conversation, and costs like one.

## Nothing checks the work at the end

The independent check by a second agent is **off by default**. It
is a setting you switch on when you want it. What runs on its own is only what you
ask for: `/goal` judges each time the agent thinks it is done whether your
condition holds, and sends it back to work if not (up to 40 checks by default).
If you want a mission to end on “the tests pass”, set a goal.

## Scheduled tasks did not run

The server was not running at that time. Closing the interface does not stop
it, but `monixagent server stop` and a reboot do. Install it as a login service
with `monixagent service install`. See
[Scheduled tasks](https://docs.nemonix.ai/monix-agent/docs/automation#schedule).

## The screen looks broken

The interface is laid out to fit a terminal of 80 columns by 24 rows; a
smaller window cuts panels off. Make the window bigger, or turn on Compact mode
under [Settings ▸ Display](https://docs.nemonix.ai/monix-agent/docs/settings). If long output looks odd, a
terminal with full colour and Unicode support helps.

## A command hangs

The agent's shell has no terminal, so a command that asks a question or opens
an editor (for example an interactive rebase) waits forever. Press
Esc to stop the mission and tell the agent to use the
non-interactive form of the command. Commands that run longer than about ten
seconds move to the background, and long-running servers belong in a background
command.

## Still stuck

Write to [hello@nemonix.ai](mailto:hello@nemonix.ai) and
include the output of `monixagent doctor` and the last lines of
`monixagent logs`.
