ecwood / GCAM-CDR-modeling

1 stars 0 forks source link

Broken Pipe When Copying to AWS #22

Closed ecwood closed 1 year ago

ecwood commented 1 year ago

I wanted to document that to copy a debug_db file (zipped) on an instance, to avoid this error:

debug_db_dac_usa_test1.zip                     63%  182MB   4.8MB/s   00:21 ETA
client_loop: send disconnect: Broken pipe
lost connection

I ran this

sudo sysctl -a | grep tcp.keep

to get this

net.ipv4.tcp_keepalive_intvl = 75
net.ipv4.tcp_keepalive_probes = 9
net.ipv4.tcp_keepalive_time = 7200

so, I ran this to update it

sudo sysctl -w net.ipv4.tcp_keepalive_intvl=300

which returned this

net.ipv4.tcp_keepalive_intvl = 300
net.ipv4.tcp_keepalive_probes = 9
net.ipv4.tcp_keepalive_time = 7200

This fix was based on the post here.