question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Buffer size for credential forwarder is too small

See original GitHub issue

Actual 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:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
amanfredicommented, Jun 10, 2022

A workaround for this seems to be interacting directly with docker-credential-osxkeychain.

echo "{\"ServerURL\":\"306760545897.dkr.ecr.us-east-1.amazonaws.com\",\"Username\":\"AWS\",\"Secret\":\"$(aws ecr get-login-password --region us-east-1 --profile marketplace)\"}" | docker-credential-osxkeychain store
0reactions
janduboiscommented, Jun 10, 2022

I realized I can force docker-credential-rancher-desktop to exit with status 52 by passing any json over 2049 characters long

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found