# Axle couldn't watch the files

What "Axle couldn't watch the repository's files" means and how to fix it.

```text
error: Axle couldn't watch the repository's files: OS file watch limit reached
hint: Check that the repository's folder still exists. On Linux, raise fs.inotify.max_user_watches if the system ran out of watches.
```

## Why it happens

`axle watch` and `axle daemon` ask the operating system to tell them when any file in the repository changes. The system refused: the folder was moved or deleted, or, most often on Linux, every inotify watch the system allows is already taken. Each folder takes one, and editors, dev servers and other watchers share the same limit.

## How to fix it

Check that the repository is still where you ran Axle. On Linux, see the limit with `cat /proc/sys/fs/inotify/max_user_watches` and raise it:

```sh
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf
sudo sysctl --system
```

Then run `axle watch` again.
