Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Container Exiting #2

Open
jbaldo opened this issue Sep 10, 2017 · 4 comments
Open

Docker Container Exiting #2

jbaldo opened this issue Sep 10, 2017 · 4 comments

Comments

@jbaldo
Copy link

jbaldo commented Sep 10, 2017

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 326, in connect
    ssl_context=context)
  File "/usr/local/lib/python3.6/site-packages/urllib3/util/ssl_.py", line 329, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/local/lib/python3.6/ssl.py", line 401, in wrap_socket
    _context=self, _session=session)
  File "/usr/local/lib/python3.6/ssl.py", line 808, in __init__
    self.do_handshake()
  File "/usr/local/lib/python3.6/ssl.py", line 1061, in do_handshake
    self._sslobj.do_handshake()
  File "/usr/local/lib/python3.6/ssl.py", line 683, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:748)
@jbaldo
Copy link
Author

jbaldo commented Sep 10, 2017

for now, adjusting the restart policy. noticing that the google cloud drive didn't mount on last start. I think this is because it's not in privileged mode. Suggested for now:

docker run --privileged=true --restart=unless-stopped jbaldo/retweet-bot

@jbaldo
Copy link
Author

jbaldo commented Sep 14, 2017

Still exited. Trying

docker run --privileged=true --restart=always jbaldo/retweet-bot

@jbaldo
Copy link
Author

jbaldo commented Oct 8, 2017

Added a try / except block that catches Tweepy errors and sleeps for 20 seconds. Also added an option to send an event to pagerduty when that happens so I can better monitor the problem.

I must be setting restart policy incorrectly because I don't see the container restarting.

@jbaldo
Copy link
Author

jbaldo commented Jul 19, 2018

docker run -d --privileged=true --restart=always jbaldo/retweet-bot

docker run -d --privileged=true --restart=always jbaldo/retweet-bot:2018_1

@jbaldo jbaldo mentioned this issue Feb 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant