Hi everyone currently i am stuck and don’t know where to go so i’ll leave it here
we encountered problem in regards to tyk gateway trying to get/fetch api definition from tyk pro
our setup is like this
we also have a tyk ce which also running the same version
storage write to a file
chronology we recently tried upgrading our tyk version from version 4.3.1 to the later version 5.0.3, this happen due we wanted to migrate our tyk pro which was using mongodb but now we wanted it to be on postgresql, which in the 4.0.3 we encountered bugs so we upgrade to 5.0.3
fast forward yesterday we are trying to do a tyk-sync to update the definition on the dashboard but suddenly one of our gateway is restarted, we got these following messages on our docker logs for gateway
time=“Jul 20 15:25:47” level=debug msg=“Calling: http://xxx-tyk-dashboard-staging.xxxx.xxx:3000/system/apis”
time=“Jul 20 15:25:47” level=debug msg=“Using: NodeID: 5418e175-8fc4-xxxx-xxxx-xxxxxxxxx”
time=“Jul 20 15:26:17” level=error msg="failed to load API specs: failed to decode body: context deadline exceeded (Client.Timeout or context cancellation while reading body) body was: "
time=“Jul 20 15:26:17” level=error msg="Error during syncing apis:failed to decode body: context deadline exceeded (Client.Timeout or context cancellation while reading body) body was: " prefix=main
we tried restarting again but with no avail.
we noticed a consistent 30 second after the first Using: NodeID it will go either to failed to load API specs or it will succeed to continue, we think that this is related to some kind of timeout setting on the gateway itself. we also had tried tcpdump this and got RST packet from gateway to dashboard
connection reset from gateway 10 > dashboard 241
this problem only occur on our tyk pro and doesn’t affect our tyk ce