Buffer size for credential forwarder is too small
See original GitHub issueActual Behavior
After the 1.4.1 release, I can no longer authenticate against more than one AWS ECR repo.
The first repo authenticated against, works fine, but authenticating into a subsequent ECR repo using the following command, produces the following error:
➜ aws ecr get-login-password --region us-east-1 --profile PROFILENAME | nerdctl --namespace k8s.io login --username AWS --password-stdin ACCOUNTID.dkr.ecr.us-east-1.amazonaws.com
time="2022-06-09T13:23:20Z" level=fatal msg="error saving credentials: error storing credentials - err: exit status 52, out: ``"
Steps to Reproduce
Authenticate against two distinct ECR repos like so:
➜ aws ecr get-login-password --region us-east-1 --profile PROFILENAME | nerdctl --namespace k8s.io login --username AWS --password-stdin ACCOUNTID.dkr.ecr.us-east-1.amazonaws.com
Result
```time=“2022-06-09T13:23:20Z” level=fatal msg=“error saving credentials: error storing credentials - err: exit status 52, out: ``”
### Expected Behavior
```Login Succeeded```
### Additional Information
_No response_
### Rancher Desktop Version
1.4.1
### Rancher Desktop K8s Version
1.19.6
### Which container runtime are you using?
containerd (nerdctl)
### What operating system are you using?
macOS
### Operating System / Build Version
12.3.1
### What CPU architecture are you using?
arm64 (Apple Silicon)
### Linux only: what package format did you use to install Rancher Desktop?
N/A
### Windows User Only
_No response_
Issue Analytics
- State:
- Created a year ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
2590 Buffer size is too small for the response.
2590 Buffer size is too small for the response. Explanation: The buffer size specified in the FastExport Initiate request was smaller than ...
Read more >MsgBufferSize - SolarWinds Documentation
Each message that is queued uses a small amount of memory. In most situations, buffering up to 500,000 messages is sufficient.
Read more >Sizing Router Buffers - NANOG Archive
If the window is too small, link is not full; If the link is full, ... Buffer Size = Height of TCP Sawtooth;...
Read more >Embedded powershell tools - potential bug found with it..
Resize PowerShell buffer and window sizeException setting "BufferSize": "Cannot set the buffer size because the size specified is too large or too small....
Read more >Critical chain buffer sizing - PMI
Build the schedule with target durations that are too tight to allow diversion ... However, in both cases the size of the project...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A workaround for this seems to be interacting directly with docker-credential-osxkeychain.
Thank you for digging into this! It is a bug in the credential forwarder: https://github.com/rancher-sandbox/rancher-desktop/blob/05872a8d37e0b5d53e5145fa391d9656e2e63dd9/src/main/credentialServer/httpCredentialHelperServer.ts#L27
I’m glad you found a workaround!