# Kong 2.0.1 DB-Less schema validation issue

**URL:** https://discuss.konghq.com/t/kong-2-0-1-db-less-schema-validation-issue/6375
**Category:** General
**Created:** [May 26, 2020, 8:40am UTC](https://discuss.konghq.com/t/kong-2-0-1-db-less-schema-validation-issue/6375 "2020-05-26T08:40:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Nithya](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/nithya/32/1564_2.png) [@Nithya](https://discuss.konghq.com/u/Nithya)
#### Post date: [May 26, 2020, 8:40am UTC](https://discuss.konghq.com/t/kong-2-0-1-db-less-schema-validation-issue/6375/1 "2020-05-26T08:40:24Z")

</div>

Hi Team,  
I see the below issue is reproducible in kong 2.0.1.

> <https://github.com/Kong/kong/issues/5401>
>
> Summary
> Schema validation silently ignored when starting Kong in db-less mode.
> Steps To Reproduce
> Write db-less config with any plugin with missed required field.
> Start...

  
Our kong service is running as pods in kubernetes.

Steps to reproduce:

1. Write db-less config with any plugin/services/routes with missed required field.
2. kong reload

Appropriate logs are produced in error.log file:  
2020/05/26 08:05:34 [error] 54#0: init\_by\_lua error: /usr/local/share/lua/5.1/kong/init.lua:382: error parsing declarative config file /etc/kong/kong.yml:  
in ‘services’:

- in entry 1 of ‘services’:  
in ‘host’: required field missing  
stack traceback:  
[C]: in function ‘error’  
/usr/local/share/lua/5.1/kong/init.lua:382: in function ‘init’  
init\_by\_lua:3: in main chunk

But Kong gets reloaded without throwing similar error message:  
[root@xyz-apigateway-ingress-data-plane /]# kong reload -v  
2020/05/26 08:05:34 [verbose] Kong: 1.2.1  
2020/05/26 08:05:34 [verbose] reading config file at /usr/local/kong/.kong\_env  
2020/05/26 08:05:34 [verbose] prefix in use: /usr/local/kong  
2020/05/26 08:05:34 [verbose] preparing nginx prefix directory at /usr/local/kong  
2020/05/26 08:05:34 [info] Kong reloaded

Can anybody help on this?

Thanks!

---

<div class="post-metadata">

### Author: ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)
#### Post date: [May 28, 2020, 12:12am UTC](https://discuss.konghq.com/t/kong-2-0-1-db-less-schema-validation-issue/6375/2 "2020-05-28T00:12:14Z")

</div>

I just re-opened the Github issue. Let’s continue the conversation on the Github issue instead of here. Thanks!

---

<div class="post-metadata">

### Author: ![Nithya](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/nithya/32/1564_2.png) [@Nithya](https://discuss.konghq.com/u/Nithya)
#### Post date: [June 2, 2020, 7:46am UTC](https://discuss.konghq.com/t/kong-2-0-1-db-less-schema-validation-issue/6375/3 "2020-06-02T07:46:18Z")

</div>

Thanks for the investigation! Will follow up on Github.
