# Pastebin 2JAkb2lp [2021-05-17 14:36:42,473] ERROR in app: Exception on /datasets/e84d2b96-8adb-4b12-b981-5f3ee2deba96/download_dataset [GET] Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1952, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1821, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1936, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "./webserver/views/datasets.py", line 167, in download_dataset zip_file = generate_zip_from_dataset(ds) File "./webserver/views/datasets.py", line 192, in generate_zip_from_dataset recordings_json = db.data.load_many_low_level(recordings) File "./db/data.py", line 463, in load_many_low_level result = connection.execute(query, {'recordings': tuple(recordings)}) File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 984, in execute return meth(self, multiparams, params) File "/usr/local/lib/python2.7/site-packages/sqlalchemy/sql/elements.py", line 293, in _execute_on_connection return connection._execute_clauseelement(self, multiparams, params) File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1103, in _execute_clauseelement distilled_params, File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1288, in _execute_context e, statement, parameters, cursor, context File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1482, in _handle_dbapi_exception sqlalchemy_exception, with_traceback=exc_info[2], from_=e File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context cursor, statement, parameters, context File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 590, in do_execute cursor.execute(statement, parameters) OperationalError: (psycopg2.errors.StatementTooComplex) stack depth limit exceeded HINT: Increase the configuration parameter "max_stack_depth" (currently 2048kB), after ensuring the platform's stack depth limit is adequate. [SQL: SELECT ll.gid::text, ll.submission_offset::text, llj.data FROM lowlevel ll JOIN lowlevel_json llj ON ll.id = llj.id WHERE (ll.gid, ll.submission_offset) IN %(recordings)s ] [parameters: {'recordings': ((u'00005ac4-210c-4914-89ba-6279ea881809', 0), (u'0001fac4-7624-450e-a57f-8c0676f1b3a4', 0), (u'0004c480-e0b7-4dd9-b486-3420cfbfe5a6', 0), (u'00081a47 ... (1708048 characters truncated) ... 3e5a4d', 0), (u'fff67b6a-822c-447f-87a8-be238affa245', 0), (u'fff73cef-c077-483d-b221-688fd9af2a01', 0), (u'fffc9fbd-5e8a-4059-90a4-eb1e6563e1ce', 0))}] (Background on this error at: http://sqlalche.me/e/e3q8)