Connection reset by peer
See original GitHub issueI am not having this issue on my local machine but on my server:
❯ ./run.sh
unpacking 'https://github.com/DavHau/pypi-deps-db/tarball/521ca251792514f1a8170dd89b11edd158d7bfbe'...
warning: dumping very large path (> 256 MiB); this may run out of memory
error: writing to file: Connection reset by peer
(use '--show-trace' to show detailed location information)
Local machine (works): macOS Catalina, 8GB ram Remote server (did not work): NixOS, 1GB ram
default.nix
let
mach-nix = import (builtins.fetchGit {
url = "https://github.com/DavHau/mach-nix/";
ref = "2.2.2";
});
in mach-nix.buildPythonPackage rec {
pname = "twitterscraper";
version = "1.6.2";
src = builtins.fetchGit{
url = "https://github.com/ihsanturk/twitterscraper";
ref = "javascript-patch-1";
rev = "2233682b3c04840531a94ba8ee3c3325d7bf6b4a";
};
doCheck = false;
doInstallCheck = false;
requirements = builtins.readFile "${src}/requirements.txt";
}
Thank you for creating such a useful project @DavHau.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
What does "connection reset by peer" mean? - Stack Overflow
"Connection reset by peer" is the TCP/IP equivalent of slamming the phone back on the hook. It's more polite than merely not replying,...
Read more >How To Fix the Error “Connection Reset by Peer” - Alphr
A “connection reset by peer” error means the TCP stream was closed, for whatever reason, from the other end of the connection.
Read more >What is a TCP Connection Reset by Peer? | Pico
An application gets a connection reset by peer error when it has an established TCP connection with a peer across the network, and...
Read more >How To Fix “Connection Reset By Peer” Error
The “Connection reset by peer” error occurs during a network connection when the other end or server closes the connection without reading ...
Read more >6 Ways to Fix Connection Reset by peer - howtouselinux
Connection Reset by peer means the remote side is terminating the session. This error is generated when the OS receives notification of TCP...
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 FreeTop 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
Top GitHub Comments
It’s probably best to increase the memory amount of your instance. Optimizing mach-nix for lower memory usage is something on my list, but it will take some time until it gets done.
I think you are right, but, I added the config you provide, rebuilt the system and nothing changed, nothing about “swap” was in the output logs though. Maybe I had to collect the garbage before
nix-rebuild
? I don’t know.Anyways, I don’t plan to test with low RAM machine again anytime soon.
Thank you for help.