---
# System prepended metadata

title: Council Daemon v1.4.2 update guide

---

# Council Daemon v1.4.2 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 c4aec25a315f1fc6355bb6a60f8f76a043ed41dc`
- install the deps: `yarn`
- 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:9943ed50556fc8bf75c1179023c33dc30ef9efc6ee4f4f29bfed2fc5bc23ad64
```

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:9943ed50556fc8bf75c1179023c33dc30ef9efc6ee4f4f29bfed2fc5bc23ad64
```

### 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 more than 30 minutes.
