> OctoPerf Enterprise Edition - Migration from 9.x to 10.x.

Source: https://api.octoperf.com/doc/on-premise-infra/migration/9.x-to-10.x/

# 9.x to 10.x

As containers are now executed with a *non-privileged* user, data stored in default `octoperf-data` files ownership must be adjusted accordingly. (otherwise the data is not readable / writable)

**How to fix file ownership**:

- Upgrade to 10.x first,
- Start the Enterprise Edition via `docker-compose`,
- List containers using `docker ps`, and get container id of `enterprise-edition` container,
- Execute as root inside this container:

```bash
docker exec -it -u root CONTAINER_ID /bin/bash
```

- Then, chown all `octoperf-data` volume files to `octoperf` user:

```bash
chown -R octoperf:octoperf /data
```

The command `ls -al` should list all files with `octoperf` user and `octoperf` group.

```bash
root@CONTAINER_ID:~# ls -al
total 104228
drwxr-xr-x 1 octoperf octoperf      4096 .
drwxr-xr-x 1 root     root          4096 ..
-rw------- 1 octoperf octoperf       221 .bash_history
drwxrwxr-x 2 octoperf octoperf      4096 config
drwxr-xr-x 4 octoperf octoperf      4096 data
-rw-r----- 1 octoperf octoperf 106689614 enterprise-edition.jar
-rwxr-x--- 1 octoperf octoperf       102 entrypoint.sh
drwxr-xr-x 4 octoperf octoperf      4096 license
```
