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.

Connection reset by peer

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DavHaucommented, Aug 26, 2020

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.

0reactions
0ihsancommented, Aug 30, 2020

I’m actually quite sure that it also has to work with less memory if you have sufficient swap space. Maybe something was wrong with your swap config?

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.

Read more comments on GitHub >

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

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