You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the Bugfix version 1.17.1 another error came into play that prevents us from using RancherDesktop in our development environment.
The scenario is this: We start a docker compose environment with several applications in it including an nginx. The application in development runs in an IDE on the host and we route all traffic in the nginx.conf via host.docker.internal to the application in the IDE. That worked just fine in 1.16.0.
But now nginx times out while reading the response from the application on host.docker.internal.
Steps to Reproduce
Attached is a zip file containing the smallest springboot application I could think of and a compose file to start an nginx container.
In the restapp folder start the nginx container with docker compose up -d. This starts the nginx with the provided configuration routing /test to the springboot application via host.docker.internal.
Then start the application with mvn spring-boot:run. That should build and start the springboot application.
In another DOS box you can call curl -v http://localhost:8090/test which accesses the application directly to check that it really works and returns a JSON:
* Host localhost:8090 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:8090...
* Connected to localhost (::1) port 8090
> GET /test HTTP/1.1
> Host: localhost:8090
> User-Agent: curl/8.9.1
> Accept: */*
>
* Request completely sent off
< HTTP/1.1 200
< Content-Type: application/json
< Transfer-Encoding: chunked
< Date: Wed, 29 Jan 2025 07:24:42 GMT
<
{"content":"test"}* Connection #0 to host localhost left intact
Now call curl -v http://localhost:8080/test which accesses the nginx container which routes the call to the application and tries to read the JSON response.
The response should be read successfully and returned to curl.
Additional Information
My guess is that there is a problem, when the response does not have a newline at the end of the content?
I even didn't have a problem when I return a String instead of a Java object. There is no new newline at the end here too. But a Content-Length header is set which, I presume, is handled by nginx so that the response is read successfully.
As this worked fine in 1.16.0 I hope you can find the cause of this.
Rancher Desktop Version
1.17.1
Rancher Desktop K8s Version
1.31.4
Which container engine are you using?
moby (docker cli)
What operating system are you using?
Windows
Operating System / Build Version
Windows 10 Enterprise 22H2
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
None
Windows User Only
SecurePoint SSL VPN
Bitdefender
The text was updated successfully, but these errors were encountered:
We're seeing exactly the same problem on Windows. Nginx container is not able to forward requests to the host via host.docker.internal neither to Java app nor to JS app. Curl from the nginx container works fine.
Actual Behavior
With the Bugfix version 1.17.1 another error came into play that prevents us from using RancherDesktop in our development environment.
The scenario is this: We start a docker compose environment with several applications in it including an nginx. The application in development runs in an IDE on the host and we route all traffic in the nginx.conf via host.docker.internal to the application in the IDE. That worked just fine in 1.16.0.
But now nginx times out while reading the response from the application on host.docker.internal.
Steps to Reproduce
Attached is a zip file containing the smallest springboot application I could think of and a compose file to start an nginx container.
You will need a Java 21 JDK and Apache Maven to run this though.
In the
restapp
folder start the nginx container withdocker compose up -d
. This starts the nginx with the provided configuration routing/test
to the springboot application via host.docker.internal.Then start the application with
mvn spring-boot:run
. That should build and start the springboot application.In another DOS box you can call
curl -v http://localhost:8090/test
which accesses the application directly to check that it really works and returns a JSON:Now call
curl -v http://localhost:8080/test
which accesses the nginx container which routes the call to the application and tries to read the JSON response.restapp.zip
Result
The call fails with the curl output
and the log of nginx
Expected Behavior
The response should be read successfully and returned to curl.
Additional Information
My guess is that there is a problem, when the response does not have a newline at the end of the content?
I even didn't have a problem when I return a
String
instead of a Java object. There is no new newline at the end here too. But a Content-Length header is set which, I presume, is handled by nginx so that the response is read successfully.As this worked fine in 1.16.0 I hope you can find the cause of this.
Rancher Desktop Version
1.17.1
Rancher Desktop K8s Version
1.31.4
Which container engine are you using?
moby (docker cli)
What operating system are you using?
Windows
Operating System / Build Version
Windows 10 Enterprise 22H2
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
None
Windows User Only
SecurePoint SSL VPN
Bitdefender
The text was updated successfully, but these errors were encountered: