> Markdown version of https://tuna.am/en/docs/troubleshooting/errors/device-is-not-enrolled-in-mesh/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# device is not enrolled in mesh

```text
Error: device is not enrolled in mesh — run 'tuna mesh login' first

```

`tuna mesh up`, `tuna mesh peers`, and `tuna mesh ip` print this error. The command exits right away.

## Cause

The tunad service is running, but the device isn't part of any [mesh network](https://tuna.am/en/docs/mesh.md): you haven't signed in with `tuna mesh login` yet, you signed out with `tuna mesh logout`, or the device was removed from the team in the dashboard.

In a terminal, `tuna mesh up` offers to sign in by itself. The error appears if you declined or the command was run without a terminal, for example from a script.

## What to do

1. Connect the device as described in [Connecting a device](https://tuna.am/en/docs/mesh.md#connect): on your own computer, run `tuna mesh login`; on a server without a browser, use a token.
2. Run `tuna mesh up`.
