Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"error reading server preface" under proxy environment. #3242

Open
hidehide55 opened this issue Feb 8, 2024 · 2 comments
Open

"error reading server preface" under proxy environment. #3242

hidehide55 opened this issue Feb 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@hidehide55
Copy link

Describe the bug
I am running the flyctl command on a PC under a proxy server for internet access.
The proxy server is specified in the https_proxy environment variable.
Since v0.1.135 of flyctl, I get the some error messages.
I have tried from v0.1.135 to v0.1.147 and get the same message.
apps list is not much of a problem, but the deploy process stalls.

  • Operating system
    • Ubuntu 20.04 LTS Desktop
  • fly version
    • flyctl v0.1.134 linux/amd64 Commit: 4068ab3 BuildDate: 2023-12-08T18:58:44Z
    • flyctl v0.1.135 linux/amd64 Commit: 4cd282a BuildDate: 2023-12-22T00:44:24Z

Command output:

  • v0.1.135 ~
flyctl apps list

NAME         	OWNER   	STATUS  	PLATFORM	LATEST DEPLOY        
xxxx-xxxx-999	personal	deployed	machines	2023-xx-xxTxx:xx:xxZ	

2024/xx/xx xx:xx:xx traces export: context deadline exceeded: rpc error: code = Unavailable desc = connection error: desc = "error reading server preface: read tcp [IP ADDRESS OF PC]:43168-[IP ADDRESS OF PROXY SERVER]:[PORT]: read: connection reset by peer"

  • v0.1.134
flyctl apps list

NAME         	OWNER   	STATUS  	PLATFORM	LATEST DEPLOY        
xxxx-xxxx-999	personal	deployed	machines	2023-xx-xxTxx:xx:xxZ	
@hidehide55 hidehide55 added the bug Something isn't working label Feb 8, 2024
@benbjohnson
Copy link
Contributor

Thanks for reporting the issue. I believe the issue is that some telemetry is going over HTTP so it's not being proxied by the HTTPS_PROXY. Can you try setting http_proxy as well and see if that fixes it? If so, I can make the fix on the CLI.

@hidehide55
Copy link
Author

The previous attempt also had http_proxy already set.

I tried with v0.2.0 and get the same message.

set | grep proxy
----
http_proxy=http://xxx.xxx.xxx.xxx:xxxx/
https_proxy=http://xxx.xxx.xxx.xxx:xxxx/
no_proxy='localhost,...'
----

flyctl apps list
----
NAME           	OWNER   	STATUS  	LATEST DEPLOY     
xxxx-xxxx-999	personal	deployed	Xxx xx 2023 xx:xx

2024/xx/xx xx:xx:xx traces export: context deadline exceeded: rpc error: code = Unavailable desc = connection error: desc = "error reading server preface: read tcp [IP ADDRESS OF PC]:52798->[IP ADDRESS OF PROXY SERVER]:[PORT]: read: connection reset by peer"
----

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants