# The go plugin may not work right?

**URL:** <https://discuss.konghq.com/t/the-go-plugin-may-not-work-right/5545>\
**Category:** Questions\
**Created:** [February 14, 2020, 4:47am UTC](https://discuss.konghq.com/t/the-go-plugin-may-not-work-right/5545 "2020-02-14T04:47:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sison](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/sison/32/1718_2.png) [@sison](https://discuss.konghq.com/u/sison)\
**Post date:** [February 14, 2020, 4:47am UTC](https://discuss.konghq.com/t/the-go-plugin-may-not-work-right/5545/1 "2020-02-14T04:47:20Z")

</div>

I use the kong 2.0.1,  
go-pluginserver is the master of [github.com/Kong/go-pluginserver](http://github.com/Kong/go-pluginserver) which clone at 2020-02-13

I have a go plugin that set on 2 routes and uses different plugin parameters.  
When I send a request match one of the routes, the StartInstance function in go\_pluginserver will be called with my plugin parameters,  
then I send another request which matched another routes, the StartInstance function is not called, it used the old Instance, so the plugin parameters is wrong.

the problem can’t found on lua plugin .

---

<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:** [February 14, 2020, 6:44pm UTC](https://discuss.konghq.com/t/the-go-plugin-may-not-work-right/5545/2 "2020-02-14T18:44:38Z")

</div>

@javier @salazar might be able to answer here.

---

<div class="post-metadata">

**Author:** ![javier](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/javier/32/1740_2.png) [@javier](https://discuss.konghq.com/u/javier)\
**Post date:** [February 24, 2020, 1:56pm UTC](https://discuss.konghq.com/t/the-go-plugin-may-not-work-right/5545/3 "2020-02-24T13:56:42Z")

</div>

HI @sison. I’ve reproduced your issue and have a fix in the queue. Can you confirm which DB or dbless / declarative config?

---

<div class="post-metadata">

**Author:** ![sison](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/sison/32/1718_2.png) [@sison](https://discuss.konghq.com/u/sison)\
**Post date:** [February 24, 2020, 2:33pm UTC](https://discuss.konghq.com/t/the-go-plugin-may-not-work-right/5545/4 "2020-02-24T14:33:04Z")

</div>

Hi, this is my config  
DB: cassandra  
configs:  
KONG\_ADMIN\_ACCESS\_LOG="/dev/stdout"  
KONG\_ADMIN\_ERROR\_LOG="/dev/stderr"  
KONG\_ADMIN\_LISTEN=“0.0.0.0:8001, 0.0.0.0:8444 ssl”  
KONG\_CASSANDRA\_CONTACT\_POINTS=“kong-database”  
KONG\_DATABASE=“cassandra”  
KONG\_GO\_PLUGINS\_DIR="/home/plugin/"  
KONG\_LOG\_LEVEL=“debug”  
KONG\_PG\_HOST=“kong-database”  
KONG\_PLUGINS=“bundled,go-hello”  
KONG\_PROXY\_ACCESS\_LOG="/dev/stdout"  
KONG\_PROXY\_ERROR\_LOG="/dev/stderr"  
KONG\_GO\_PLUGINSERVER\_EXE="/home/server"
