I am trying to deploy a long running Springboot service on OpenFaas and facing Upstream HTTP request error: Post http://127.0.0.1:8082/: EOF
I have a springboot service which exposes API's. To deploy this service on openfaas the following steps were performed.
- the service depends on external dependencies which are placed in a folder in root project.
- Updated build.gradle with
implementation fileTree("$folderPath")
to include external dependencies. - Started the Springboot Application run process in Handler class, but getting
Upstream HTTP request error: Post http://127.0.0.1:8082/: EOF
while we try to invoke the Handler. - Tried increasing the exec_time, but it dint help.
- How do we run a long running springboot process in OpenFaas?
- If the dependencies are loaded while building, how are they resolved at runtime inside docker container ?