Traceback (most recent call last): 
 "/env/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 600, in urlopen chunked=chunked) 
 "/env/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 384, in _make_request six.raise_from(e, None) 
 "<string>", line 2, in raise_from 
 "/env/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 380, in _make_request httplib_response = conn.getresponse() 
 "/opt/python3.7/lib/python3.7/http/client.py", line 1321, in getresponse response.begin() 
 "/opt/python3.7/lib/python3.7/http/client.py", line 296, in begin version, status, reason = self._read_status() 
 "/opt/python3.7/lib/python3.7/http/client.py", line 257, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") 
 "/opt/python3.7/lib/python3.7/socket.py", line 589, in readinto return self._sock.recv_into(b) 
 "/opt/python3.7/lib/python3.7/ssl.py", line 1049, in recv_into return self.read(nbytes, buffer) 
 "/opt/python3.7/lib/python3.7/ssl.py", line 908, in read return self._sslobj.read(len, buffer) ConnectionResetError: [Errno 104] Connection reset by peer During handling of the above exception, another exception occurred: Traceback (most recent call last): 
 "/env/local/lib/python3.7/site-packages/requests/adapters.py", line 445, in send timeout=timeout 
 "/env/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 638, in urlopen _stacktrace=sys.exc_info()[2]) 
 "/env/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 367, in increment raise six.reraise(type(error), error, _stacktrace) 
 "/env/local/lib/python3.7/site-packages/urllib3/packages/six.py", line 685, in reraise raise value.with_traceback(tb) 
 "/env/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 600, in urlopen chunked=chunked) 
 "/env/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 384, in _make_request six.raise_from(e, None) 
 "<string>", line 2, in raise_from 
 "/env/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 380, in _make_request httplib_response = conn.getresponse() 
 "/opt/python3.7/lib/python3.7/http/client.py", line 1321, in getresponse response.begin() 
 "/opt/python3.7/lib/python3.7/http/client.py", line 296, in begin version, status, reason = self._read_status() 
 "/opt/python3.7/lib/python3.7/http/client.py", line 257, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") 
 "/opt/python3.7/lib/python3.7/socket.py", line 589, in readinto return self._sock.recv_into(b) 
 "/opt/python3.7/lib/python3.7/ssl.py", line 1049, in recv_into return self.read(nbytes, buffer) 
 "/opt/python3.7/lib/python3.7/ssl.py", line 908, in read return self._sslobj.read(len, buffer) urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) During handling of the above exception, another exception occurred: Traceback (most recent call last): 
 "/user_code/main.py", line 230, in bq_merge archive_pending_blobs(bucket, blobs[min_idx:max_idx], pending_prefix, loaded_prefix) 
 "/user_code/main.py", line 44, in archive_pending_blobs raise e 
 "/user_code/main.py", line 40, in archive_pending_blobs bucket.copy_blob(b, bucket, b.name.replace(pending_prefix, loaded_prefix)) 
 "/env/local/lib/python3.7/site-packages/google/cloud/storage/bucket.py", line 711, in copy_blob _target_object=new_blob, 
 "/env/local/lib/python3.7/site-packages/google/cloud/_http.py", line 290, in api_request headers=headers, target_object=_target_object) 
 "/env/local/lib/python3.7/site-packages/google/cloud/_http.py", line 183, in _make_request return self._do_request(method, url, headers, data, target_object) 
 "/env/local/lib/python3.7/site-packages/google/cloud/_http.py", line 212, in _do_request url=url, method=method, headers=headers, data=data) 
 "/env/local/lib/python3.7/site-packages/google/auth/transport/requests.py", line 201, in request method, url, data=data, headers=request_headers, **kwargs) 
 "/env/local/lib/python3.7/site-packages/requests/sessions.py", line 512, in request resp = self.send(prep, **send_kwargs) 
 "/env/local/lib/python3.7/site-packages/requests/sessions.py", line 622, in send r = adapter.send(request, **kwargs) 
 "/env/local/lib/python3.7/site-packages/requests/adapters.py", line 495, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) During handling of the above exception, another exception occurred: Traceback (most recent call last): 
 "/env/local/lib/python3.7/site-packages/google/cloud/functions_v1beta2/worker.py", li

Traceback (most recent call last):


 "/srv/homeassistant/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 2158, in _wrap_pool_connect

return fn()


 "/srv/homeassistant/lib/python3.5/site-packages/sqlalchemy/pool.py", line 403, in connect

return _ConnectionFairy._checkout(self)


 "/srv/homeassistant/lib/python3.5/site-packages/sqlalchemy/pool.py", line 791, in _checkout

fairy = _ConnectionRecord.checkout(pool)


 "/srv/homeassistant/lib/python3.5/site-packages/sqlalchemy/pool.py", line 532, in checkout

rec = pool._do_get()


 "/srv/homeassistant/lib/python3.5/site-packages/sqlalchemy/pool.py", line 1287, in _do_get

return self._create_connection()


 "/srv/homeassistant/lib/python3.5/site-packages/sqlalchemy/pool.py", line 350, in _create_connection

return _ConnectionRecord(self)


 "/srv/homeassistant/lib/python3.5/site-packages/sqlalchemy/pool.py", line 477, in __init__

self.__connect(first_connect_check=True)


 "/srv/homeassistant/lib/python3.5/site-packages/sqlalchemy/pool.py", line 686, in __connect

pool.dispatch.connect(self.connection, self)


 "/srv/homeassistant/lib/python3.5/site-packages/sqlalchemy/event/attr.py", line 246, in __call__

fn(*args, **kw)


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/recorder/__init__.py", line 361, in set_sqlite_pragma

cursor.execute("PRAGMA journal_mode=WAL")
sqlite3.OperationalError: database is locked
