Closed starcraftman closed 3 years ago
I'm not sure I can stop this, seems platform/python interpreter related.
Off top head solution. Have cron monitor some heartbeat file, if file stops outputing every 20 seconds then have bot manually issue asudo systemctl restart bot
.
It's been too long and libraries have changed. I don't think this issue occurs anymore.
^CTraceback (most recent call last): File "/home/starcraftman/.shell/pyenv/versions/3.5.3/lib/python3.5/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/home/starcraftman/.shell/pyenv/versions/3.5.3/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/starcraftman/prog/cogBot/cog/bot.py", line 731, in
main()
File "/home/starcraftman/prog/cogBot/cog/bot.py", line 717, in main
scanner = scan_sheet(cog.share.get_config('hudson', 'cattle'), cogdb.query.FortScanner)
File "/home/starcraftman/prog/cogBot/cog/bot.py", line 706, in scan_sheet
scanner = cls(sheet)
File "/home/starcraftman/prog/cogBot/cogdb/query.py", line 437, in init
self.system_col = self.find_system_column()
File "/home/starcraftman/prog/cogBot/cogdb/query.py", line 559, in find_system_column
fmt_cells = self.gsheet.get_with_formatting('!A10:J10')
File "/home/starcraftman/prog/cogBot/cog/sheets.py", line 273, in get_with_formatting
includeGridData=True).execute()
File "/home/starcraftman/.shell/pyenv/versions/3.5.3/lib/python3.5/site-packages/oauth2client/_helpers.py", line 133, in positional_wrapper
return wrapped(*args, *kwargs)
File "/home/starcraftman/.local/lib/python3.5/site-packages/googleapiclient/http.py", line 835, in execute
method=str(self.method), body=self.body, headers=self.headers)
File "/home/starcraftman/.local/lib/python3.5/site-packages/googleapiclient/http.py", line 162, in _retry_request
resp, content = http.request(uri, method, args, **kwargs)
File "/home/starcraftman/.shell/pyenv/versions/3.5.3/lib/python3.5/site-packages/oauth2client/transport.py", line 193, in new_request
redirections, connection_type)
File "/home/starcraftman/.shell/pyenv/versions/3.5.3/lib/python3.5/site-packages/oauth2client/transport.py", line 282, in request
connection_type=connection_type)
File "/home/starcraftman/.local/lib/python3.5/site-packages/httplib2/init.py", line 1322, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/home/starcraftman/.local/lib/python3.5/site-packages/httplib2/init.py", line 1072, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/home/starcraftman/.local/lib/python3.5/site-packages/httplib2/init.py", line 1025, in _conn_request
response = conn.getresponse()
File "/home/starcraftman/.shell/pyenv/versions/3.5.3/lib/python3.5/http/client.py", line 1198, in getresponse
response.begin()
File "/home/starcraftman/.shell/pyenv/versions/3.5.3/lib/python3.5/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/home/starcraftman/.shell/pyenv/versions/3.5.3/lib/python3.5/http/client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/home/starcraftman/.shell/pyenv/versions/3.5.3/lib/python3.5/socket.py", line 576, in readinto
return self._sock.recv_into(b)
File "/home/starcraftman/.shell/pyenv/versions/3.5.3/lib/python3.5/ssl.py", line 937, in recv_into
return self.read(nbytes, buffer)
File "/home/starcraftman/.shell/pyenv/versions/3.5.3/lib/python3.5/ssl.py", line 799, in read
return self._sslobj.read(len, buffer)
File "/home/starcraftman/.shell/pyenv/versions/3.5.3/lib/python3.5/ssl.py", line 583, in read
v = self._sslobj.read(len, buffer)
KeyboardInterrupt