Skip to content

Connection reset by peer #3360

Closed
Closed

Description

@hotzen
  • I have tried with the latest STABLE version of my channel
  • I have uploaded Diagnostics
  • Diagnostics ID: A7F21FC2-03AA-406D-B83B-822BF4822BE7/20181123082253

Expected behavior

running local pg_restore into containerized postgres succeeds.

Actual behavior

postgres-log in container:

daidalos-postgres_1_36312229a8b2 | 2018-11-23 08:05:57.709 UTC [23] LOG:  checkpoints are occurring too frequently (29 seconds apart)
daidalos-postgres_1_36312229a8b2 | 2018-11-23 08:05:57.709 UTC [23] HINT:  Consider increasing the configuration parameter "max_wal_size".
daidalos-postgres_1_36312229a8b2 | 2018-11-23 08:06:23.628 UTC [23] LOG:  checkpoints are occurring too frequently (26 seconds apart)
daidalos-postgres_1_36312229a8b2 | 2018-11-23 08:06:23.628 UTC [23] HINT:  Consider increasing the configuration parameter "max_wal_size".
daidalos-postgres_1_36312229a8b2 | 2018-11-23 08:08:39.587 UTC [32] LOG:  could not receive data from client: Connection reset by peer
daidalos-postgres_1_36312229a8b2 | 2018-11-23 08:08:39.587 UTC [32] CONTEXT:  COPY debt, line 2861916
daidalos-postgres_1_36312229a8b2 | 2018-11-23 08:08:39.587 UTC [32] STATEMENT:  COPY ...
daidalos-postgres_1_36312229a8b2 |
daidalos-postgres_1_36312229a8b2 | 2018-11-23 08:08:39.587 UTC [32] LOG:  incomplete message from client
daidalos-postgres_1_36312229a8b2 | 2018-11-23 08:08:39.587 UTC [32] CONTEXT:  COPY ...
daidalos-postgres_1_36312229a8b2 | 2018-11-23 08:08:39.587 UTC [32] STATEMENT:  COPY ...
daidalos-postgres_1_36312229a8b2 |
daidalos-postgres_1_36312229a8b2 | 2018-11-23 08:08:39.587 UTC [32] ERROR:  unexpected EOF on client connection with an open transaction
daidalos-postgres_1_36312229a8b2 | 2018-11-23 08:08:39.587 UTC [32] CONTEXT:  COPY ...
daidalos-postgres_1_36312229a8b2 | 2018-11-23 08:08:39.587 UTC [32] STATEMENT:  COPY ...
daidalos-postgres_1_36312229a8b2 |
daidalos-postgres_1_36312229a8b2 | 2018-11-23 08:08:39.592 UTC [32] FATAL:  terminating connection because protocol synchronization was lost
daidalos-postgres_1_36312229a8b2 | 2018-11-23 08:08:39.592 UTC [32] LOG:  could not send data to client: Broken pipe```

### Information
  - Is it reproducible?
yes, every time i do a pg-restore
already did 1) full-reset and even 2) uninstall/reinstall. nothing did help.

  - Is the problem new?
yes, since docker-for-mac 2.x

  - Did the problem appear with an update?
yes, since docker-for-mac 2.x

  - macOS Version:
macOS Mojave 10.14.1

### Diagnostic logs

Docker Desktop
Version 2.0.0.0-mac78 (28905)
Channel: stable
c404a62c3f


### Steps to reproduce the behavior
  1. do a ~50gb pg-restore into a postgres-container 

Activity

  1. iamfeek commented on Nov 26, 2018

    @iamfeek

    Dropping by to also mention that a colleague and I are also facing this issue.

    We have the same exact setup the OP, only that our dataset is ~3gb.

  2. radiospiel commented on Nov 30, 2018

    @radiospiel

    I see the same here, with a 1.5GB psql dump

  3. hotzen commented on Nov 30, 2018

    @hotzen
    Author

    we also did revert to Docker Community Edition 18.06.0-ce-mac70 2018-07-25, working flawlessly.

  4. jlmorton commented on Dec 5, 2018

    @jlmorton

    I can confirm this too. Doing a pg_restore from an approximately 500mb compressed Postgres archive to a Postgres container causes networking to fail for all running Docker containers.

    OS: Mojave
    Docker Desktop: Version 2.0.0.0-mac81 (29211)
    Docker Engine: Engine: 18.09.0
    Networking: Bridged, default Docker Compose network

    Mid-way through the pg_restore, connectivity will stop working for any running container.

    Every new TCP connection attempt generates the following Docker error:

    default 17:01:46.158917 -0800 com.docker.vpnkit Socket.Pipe.writev vms/0/connect: caught Broken pipe returning Eof
    default 17:01:46.158981 -0800 com.docker.vpnkit Socket.Stream: caught Forwarder.Multiplexer.Make(Flow).Multiplexer_failed

    Looking at Netstat, I see my pg_restore established connections, with one side waiting with data in the recv-Q, and one side waiting in the send-Q

    tcp4 642111 0 127.0.0.1.5432 127.0.0.1.54145 ESTABLISHED
    tcp4 0 343596 127.0.0.1.54145 127.0.0.1.5432 ESTABLISHED

    Downgrading to 18.06.0-ce-mac70 did seem to resolve this problem.

  5. davidoram commented on Dec 18, 2018

    @davidoram

    I can confirm am getting the same issue with my setup.
    Diagnostics ID: 2DED6122-3304-4B87-BC1F-C19C21C40D39/20181218221203

  6. waTeim commented on Feb 22, 2019

    @waTeim

    confirm this is still a problem with 2.0.0.3

  7. hotzen commented on Feb 22, 2019

    @hotzen
    Author

    thanks for confirming, was just thinking about giving it a try ;)

  8. MarounMaroun commented on Mar 11, 2019

    @MarounMaroun

    Reproduces in 2.0.0.2.

  9. docker-robott commented on Jun 9, 2019

    @docker-robott
    Collaborator

    Issues go stale after 90d of inactivity.
    Mark the issue as fresh with /remove-lifecycle stale comment.
    Stale issues will be closed after an additional 30d of inactivity.

    Prevent issues from auto-closing with an /lifecycle frozen comment.

    If this issue is safe to close now please do so.

    Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
    /lifecycle stale

  10. bbinet commented on Jun 20, 2019

    @bbinet

    /remove-lifecycle stale

  11. 19 remaining items

  12. radiospiel commented on Jun 22, 2020

    @radiospiel

    This is getting ridiculous. @docker pls add a button to the Mac client which lets us reopen the supposedly "stale" issues.

  13. waTeim commented on Jun 22, 2020

    @waTeim

    here is a bug the prevents Postgres operations introduced in version 2 100% reproducible has been around for almost a year now.

  14. radiospiel commented on Jun 22, 2020

    @radiospiel

    @waTeim this was originally filed Nov 23, 2018, so more than one and a half year already

  15. docker-robott commented on Sep 20, 2020

    @docker-robott
    Collaborator

    Issues go stale after 90 days of inactivity.
    Mark the issue as fresh with /remove-lifecycle stale comment.
    Stale issues will be closed after an additional 30 days of inactivity.

    Prevent issues from auto-closing with an /lifecycle frozen comment.

    If this issue is safe to close now please do so.

    Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
    /lifecycle stale

  16. radiospiel commented on Oct 22, 2020

    @radiospiel

    /remove-lifecycle stale

  17. radiospiel commented on Oct 22, 2020

    @radiospiel

    /lifecycle frozen

  18. radiospiel commented on Oct 22, 2020

    @radiospiel

    we'll see how long until someone @ docker actually does something to address this issue. I am still on 18.06, and won't update to a newer version that might or might not work.

  19. kmandeville commented on Oct 22, 2020

    @kmandeville

    @radiospiel Me too! No idea what version they are even up to now. As soon as I upgraded from 18.06 (ce I think), it broke and I can't afford to have it not working. Never updated since

  20. docker-robott commented on Nov 21, 2020

    @docker-robott
    Collaborator

    Closed issues are locked after 30 days of inactivity.
    This helps our team focus on active issues.

    If you have found a problem that seems similar to this, please open a new issue.

    Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
    /lifecycle locked

  21. locked and limited conversation to collaborators on Nov 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions