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.

Issue when Deleting / Uploading Large Files (<50MB)

See original GitHub issue

OS/Web Information

  • Web Browser: Chrome [Version 89.0.4389.82 (Official Build) (x86_64)]
  • Local OS: Debian (Code Server Docker)
  • Remote OS: MacOS (Big Sur)
  • Remote Architecture: Darwin x64
  • code-server --version: 3.9.3 and 3.9.1

Steps to Reproduce

  1. Select a Large File (Tried with a 44.8MB file)
  2. Right Click and Click “Delete Permanently”
  3. Code Server starts Deleting but the process never finishes and file does not get deleted

Expected

Selected Files should get deleted

Actual

Code Server starts Deleting but the process never finishes and no files get deleted Smaller files seem to work fine. Same issue happens for Upload of these large files.

Screenshot

image

image

image

Notes

This issue can be reproduced in VS Code: Yes/No - No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
metalshankedcommented, Apr 12, 2021

Thanks, it seems to be very strange and i am not able to figure out if the issue is with my setup or code-server.

  1. I noticed that certain large files such as “.csv” text files do get uploaded without any issue
  2. The setup is MacOS Chrome Browser --> F5 LoadBalancer --> Nginx Ingress (K8s)–> Pod having Docker Container running code-server Whenever the issue happens i see the below in the Nginx Ingress logs recv() failed (104: Connection reset by peer) while proxying upgraded connection
1reaction
muxiangqiucommented, Jun 21, 2021

Increase the constants related to Ack time in ipc.net.ts -> ProtocolConstants in the vscode project. Can solve the problems encountered above

export const enum ProtocolConstants {
	HeaderLength = 13,
	/**
	 * Send an Acknowledge message at most 2 seconds later...
	 */
	AcknowledgeTime = 20000, // 2 seconds
	/**
	 * If there is a message that has been unacknowledged for 10 seconds, consider the connection closed...
	 */
	AcknowledgeTimeoutTime = 200000, // 20 seconds
	/**
	 * Send at least a message every 5s for keep alive reasons.
	 */
	KeepAliveTime = 500000, // 5 seconds
	/**
	 * If there is no message received for 10 seconds, consider the connection closed...
	 */
	KeepAliveTimeoutTime = 200000, // 20 seconds
	/**
	 * If there is no reconnection within this time-frame, consider the connection permanently closed...
	 */
	ReconnectionGraceTime = 3 * 60 * 60 * 1000, // 3hrs
	/**
	 * Maximal grace time between the first and the last reconnection...
	 */
	ReconnectionShortGraceTime = 5 * 60 * 1000, // 5min
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

They all shall pass: a guide to handling large file uploads
Even GitHub gives a warning if you want to upload a file larger than 50 MB and blocks pushes that exceed 100 MB,...
Read more >
[SOLVED] Can't Upload large (up to 50MB) .wav files using IE 11
Hi,. I'm a website owner that allows my users to upload large music files to my site. I've noticed the uploads never work...
Read more >
Can't push to GitHub because of large file which I already ...
First of all, you need a clean, up-to-date local repo. Delete all the large files. Now create a new folder OUTSIDE of your...
Read more >
About large files on GitHub
GitHub limits the size of files allowed in repositories. If you attempt to add or update a file that is larger than 50...
Read more >
Uploading Large Files to GitHub
It cannot be solved by removing the large files and committing again. This is because GitHub keeps track of every commit, ...
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