# Council Daemon v1.2.1 update guide
## From source
If you running the daemon from source:
- stop the app
- pull main branch: `git pull origin main`
- checkout current commit: `git checkout 5c82d39e2ec841f82295fcf05089f82b75274c81`
- rebuild the app: `yarn build`
- start the daemon: `yarn start:prod`
## Docker image
If you are using a docker image, pull the new image:
```bash
docker pull lidofinance/lido-council-daemon@sha256:679e171405b46335500796afbace495329d28879488ae255d8cb1270e56847f4
```
Stop previous version and then run the new one:
```bash
docker run -i -t \
-v ${PWD}/.volumes/council/cache:/council/cache/ \
-p 3000:3000/tcp \
-e PORT='3000' \
-e LOG_LEVEL='debug' \
-e LOG_FORMAT='simple' \
-e RPC_URL='<rpc url>' \
-e KAFKA_SSL='true' \
-e KAFKA_SASL_MECHANISM='plain' \
-e KAFKA_USERNAME='<kafka user>' \
-e KAFKA_PASSWORD='<kafka password>' \
-e KAFKA_BROKER_ADDRESS_1='<kafka address>' \
-e KAFKA_TOPIC=defender \
-e WALLET_PRIVATE_KEY \
lidofinance/lido-council-daemon@sha256:679e171405b46335500796afbace495329d28879488ae255d8cb1270e56847f4
```
### Possible issue
We've updated dockerfile and now run the application as `node` user to restrict access rights.
This may cause a problem with accessing the old cache. If you see any problems accessing the cache files in the logs, delete the cache folder or the entire volume.
```log
error: EACCES: permission denied, mkdir 'cache/chain-1'
```
### Envs
Please make sure that these variables are set correctly (creds for Kafka are the same as before):
```env
RPC_URL=<mainnet RPC url>
KAFKA_USERNAME=<username>
KAFKA_PASSWORD=<password>
KAFKA_BROKER_ADDRESS_1=pkc-l7q2j.europe-north1.gcp.confluent.cloud:9092
WALLET_PRIVATE_KEY
```
The other ENV variables do not need to be changed, they should have default values:
```env
PORT=3000
LOG_LEVEL=debug
LOG_FORMAT=json
PUBSUB_SERVICE=kafka
KAFKA_TOPIC=defender
KAFKA_SASL_MECHANISM=plain
KAFKA_SSL=true
```
The new version will reset the cache, the start will take about 30 minutes.