[W 210830 18:37:19 app:228] Server Config file: example.yml
[W 210830 18:37:19 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210830 18:37:19 app:230] Server Running on http://0.0.0.0:6677
[W 210830 18:37:21 template:48] Docs Running on http://0.0.0.0:6677/docs
[W 210830 18:38:16 app:238] Stopping http server
[W 210830 18:38:18 app:228] Server Config file: example.yml
[W 210830 18:38:18 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210830 18:38:18 app:230] Server Running on http://0.0.0.0:6677
[W 210830 18:38:20 template:48] Docs Running on http://0.0.0.0:6677/docs
[W 210830 18:41:00 app:238] Stopping http server
[W 210830 18:41:03 app:228] Server Config file: example.yml
[W 210830 18:41:03 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210830 18:41:03 app:230] Server Running on http://0.0.0.0:6677
[W 210830 18:41:30 app:238] Stopping http server
[W 210830 18:41:41 app:228] Server Config file: example.yml
[W 210830 18:41:41 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210830 18:41:41 app:230] Server Running on http://0.0.0.0:6677
[W 210830 18:41:46 template:48] Docs Running on http://0.0.0.0:6677/docs
[W 210830 18:43:00 app:228] Server Config file: example.yml
[W 210830 18:43:00 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210830 18:43:00 app:230] Server Running on http://0.0.0.0:6677
[W 210830 18:43:05 template:48] Docs Running on http://0.0.0.0:6677/docs
[W 210830 18:44:26 app:238] Stopping http server
[W 210830 18:46:51 app:228] Server Config file: example.yml
[W 210830 18:46:51 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210830 18:46:51 app:230] Server Running on http://0.0.0.0:6677
[W 210830 18:46:51 <frozen generate_docs>:54] Traceback (most recent call last):
      File "<frozen generate_docs>", line 46, in do
      File "<frozen start>", line 109, in main
      File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/shutil.py", line 555, in copytree
        with os.scandir(src) as itr:
    FileNotFoundError: [Errno 2] No such file or directory: '/Users/lcylln/www/lcyframepy3/lcyframe/libs/docs/template'
    
[W 210830 18:46:51 <frozen generate_docs>:54] Api docs generate Faile! you can do it yourself： cd 'docs_dir' && make html
[W 210830 18:47:05 app:238] Stopping http server
[W 210830 18:47:08 app:228] Server Config file: example.yml
[W 210830 18:47:08 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210830 18:47:08 app:230] Server Running on http://0.0.0.0:6677
[W 210830 18:47:08 <frozen generate_docs>:54] Traceback (most recent call last):
      File "<frozen generate_docs>", line 46, in do
      File "<frozen start>", line 109, in main
      File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/shutil.py", line 555, in copytree
        with os.scandir(src) as itr:
    FileNotFoundError: [Errno 2] No such file or directory: '/Users/lcylln/www/lcyframepy3/lcyframe/libs/docs/template'
    
[W 210830 18:47:08 <frozen generate_docs>:54] Api docs generate Faile! you can do it yourself： cd 'docs_dir' && make html
[W 210830 18:47:19 app:238] Stopping http server
[W 210830 18:47:23 app:228] Server Config file: example.yml
[W 210830 18:47:23 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210830 18:47:23 app:230] Server Running on http://0.0.0.0:6677
[W 210830 18:47:24 <frozen template>:48] Docs Running on http://0.0.0.0:6677/docs
[W 210830 18:48:21 app:238] Stopping http server
[W 210830 19:32:03 app:228] Server Config file: test_config.yml
[W 210830 19:32:03 app:229] Server ROOT path: /code
[W 210830 19:32:03 app:230] Server Running on http://0.0.0.0:6677
[W 210830 19:32:05 template:48] Docs Running on http://0.0.0.0:6677/docs
[W 210830 19:33:36 app:238] Stopping http server
[W 210830 19:33:38 app:228] Server Config file: test_config.yml
[W 210830 19:33:38 app:229] Server ROOT path: /code
[W 210830 19:33:38 app:230] Server Running on http://0.0.0.0:6677
[W 210830 19:33:40 template:48] Docs Running on http://0.0.0.0:6677/docs
[W 210830 19:34:13 base:73] HTTP 405: Method/URL Not Allowed
[E 210830 19:34:13 web:1065] Uncaught exception in write_error
    Traceback (most recent call last):
      File "/usr/local/python3/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/usr/local/python3/lib/python3.9/site-packages/tornado/web.py", line 225, in get
        raise HTTPError(405)
    tornado.web.HTTPError: HTTP 405: Method Not Allowed
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/usr/local/python3/lib/python3.9/site-packages/tornado/web.py", line 1063, in send_error
        self.write_error(status_code, **kwargs)
      File "/usr/local/python3/lib/python3.9/site-packages/lcyframe/base.py", line 74, in write_error
        return self.write_failed(code=status_code, msg="HTTP 405: Method/URL Not Allowed", name="HTTP 405")
      File "/usr/local/python3/lib/python3.9/site-packages/lcyframe/base.py", line 105, in write_failed
        remote_ip=self.request.remote_ip, uri=self.request.path, params=self.params, method=self.request.method)
    AttributeError: 'BaseHandler' object has no attribute 'params'
[W 210830 19:34:13 web:2105] 405 GET / (172.22.0.1) 8.20ms
[W 210830 19:35:06 app:238] Stopping http server
[W 210830 19:35:41 app:228] Server Config file: example.yml
[W 210830 19:35:41 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210830 19:35:41 app:230] Server Running on http://0.0.0.0:6677
[W 210830 19:35:42 <frozen template>:48] Docs Running on http://0.0.0.0:6677/docs
[W 210830 19:35:44 base:73] HTTP 405: Method/URL Not Allowed
[E 210830 19:35:44 web:1065] Uncaught exception in write_error
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 225, in get
        raise HTTPError(405)
    tornado.web.HTTPError: HTTP 405: Method Not Allowed
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1063, in send_error
        self.write_error(status_code, **kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/base.py", line 74, in write_error
        return self.write_failed(code=status_code, msg="HTTP 405: Method/URL Not Allowed", name="HTTP 405")
      File "/Users/lcylln/www/lcyframepy3/lcyframe/base.py", line 105, in write_failed
        remote_ip=self.request.remote_ip, uri=self.request.path, params=self.params, method=self.request.method)
    AttributeError: 'BaseHandler' object has no attribute 'params'
[W 210830 19:35:44 web:2105] 405 GET / (127.0.0.1) 4.55ms
[W 210830 19:35:53 base:73] HTTP 405: Method/URL Not Allowed
[W 210830 19:38:44 app:228] Server Config file: example.yml
[W 210830 19:38:44 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210830 19:38:44 app:230] Server Running on http://0.0.0.0:6677
[W 210830 19:38:44 base:73] HTTP 405: Method/URL Not Allowed
[W 210830 19:38:44 web:2105] 405 GET / (127.0.0.1) 21.12ms
[W 210830 19:38:46 <frozen template>:48] Docs Running on http://0.0.0.0:6677/docs
[W 210830 20:11:20 app:228] Server Config file: test_config.yml
[W 210830 20:11:20 app:229] Server ROOT path: /code
[W 210830 20:11:20 app:230] Server Running on http://0.0.0.0:6678
[W 210830 20:11:20 <frozen generate_docs>:54] Traceback (most recent call last):
      File "<frozen generate_docs>", line 46, in do
      File "<frozen start>", line 110, in main
      File "/usr/local/python3/lib/python3.9/shutil.py", line 261, in copyfile
        with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
    FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/python3/lib/python3.9/site-packages/lcyframe/libs/docs/index.rst'
    
[W 210830 20:11:20 <frozen generate_docs>:54] Api docs generate Faile! you can do it yourself： cd 'docs_dir' && make html
[W 210830 20:11:30 app:238] Stopping http server
[W 210830 20:20:18 app:228] Server Config file: test_config.yml
[W 210830 20:20:18 app:229] Server ROOT path: /code
[W 210830 20:20:18 app:230] Server Running on http://0.0.0.0:6678
[W 210830 20:20:20 <frozen template>:48] Docs Running on http://0.0.0.0:6678/docs
[W 210830 20:20:25 app:238] Stopping http server
[W 210830 20:21:23 app:228] Server Config file: test_config.yml
[W 210830 20:21:23 app:229] Server ROOT path: /code
[W 210830 20:21:23 app:230] Server Running on http://0.0.0.0:6678
[W 210830 20:21:25 <frozen template>:48] Docs Running on http://0.0.0.0:6678/docs
[W 210830 20:53:50 app:238] Stopping http server
[W 210830 20:58:20 app:228] Server Config file: test_config.yml
[W 210830 20:58:20 app:229] Server ROOT path: /code
[W 210830 20:58:20 app:230] Server Running on http://0.0.0.0:6678
[W 210830 20:58:22 <frozen template>:48] Docs Running on http://0.0.0.0:6678/docs
[W 210830 21:05:59 app:238] Stopping http server
[W 210830 21:09:31 app:228] Server Config file: test_config.yml
[W 210830 21:09:31 app:229] Server ROOT path: /code
[W 210830 21:09:31 app:230] Server Running on http://0.0.0.0:6678
[W 210830 21:09:33 <frozen template>:48] Docs Running on http://0.0.0.0:6678/docs
[W 210830 21:09:47 app:238] Stopping http server
[W 210830 22:00:46 app:228] Server Config file: test_config.yml
[W 210830 22:00:46 app:229] Server ROOT path: /code
[W 210830 22:00:46 app:230] Server Running on http://0.0.0.0:6678
[W 210830 22:00:48 <frozen template>:48] Docs Running on http://0.0.0.0:6678/docs
[W 210830 22:01:23 app:238] Stopping http server
[W 210831 13:41:28 app:228] Server Config file: example.yml
[W 210831 13:41:28 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210831 13:41:28 app:230] Server Running on http://0.0.0.0:6677
[W 210831 13:42:06 base:98] 200 GET /demo?a=1 (127.0.0.1) 13278.12ms
[W 210831 13:43:57 app:238] Stopping http server
[W 210831 13:44:00 app:228] Server Config file: example.yml
[W 210831 13:44:00 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210831 13:44:00 app:230] Server Running on http://0.0.0.0:6677
[W 210831 13:44:52 base:98] 200 GET /demo?a=1 (127.0.0.1) 17711.34ms
[W 210831 13:56:22 app:228] Server Config file: example.yml
[W 210831 13:56:22 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210831 13:56:22 app:230] Server Running on http://0.0.0.0:6677
[W 210831 13:59:25 app:228] Server Config file: example.yml
[W 210831 13:59:25 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210831 13:59:25 app:230] Server Running on http://0.0.0.0:6677
[W 210831 14:05:50 app:228] Server Config file: example.yml
[W 210831 14:05:50 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210831 14:05:50 app:230] Server Running on http://0.0.0.0:6677
[W 210831 14:07:37 base:100] 200 GET /demo?a=1 (127.0.0.1) 103178.43ms
[W 210831 16:43:33 app:228] Server Config file: example.yml
[W 210831 16:43:33 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210831 16:43:33 app:230] Server Running on http://0.0.0.0:6677
[W 210831 17:47:35 app:228] Server Config file: example.yml
[W 210831 17:47:35 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210831 17:47:35 app:230] Server Running on http://0.0.0.0:6677
[W 210831 18:01:06 app:228] Server Config file: example.yml
[W 210831 18:01:06 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210831 18:01:06 app:230] Server Running on http://0.0.0.0:6677
[W 210831 19:26:31 app:228] Server Config file: example.yml
[W 210831 19:26:31 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210831 19:26:31 app:230] Server Running on http://0.0.0.0:6677
[E 210831 19:27:41 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 79, in get
        raise self.api_error.ApiError
    utils.errors.ApiError
[W 210831 19:27:41 base:82] 时间：2021-08-31 19:27:41
[W 210831 19:27:41 base:88] Runtime api error occurred.
[E 210831 19:27:41 web:2105] 500 GET /demo?a=1 (127.0.0.1) 64371.34ms
[W 210831 19:29:20 app:238] Stopping http server
[W 210831 19:29:30 app:228] Server Config file: example.yml
[W 210831 19:29:30 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210831 19:29:30 app:230] Server Running on http://0.0.0.0:6677
[W 210901 13:15:36 app:228] Server Config file: example.yml
[W 210901 13:15:36 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 13:15:36 app:230] Server Running on http://0.0.0.0:6677
[W 210901 13:18:29 app:238] Stopping http server
[W 210901 14:26:36 app:228] Server Config file: example.yml
[W 210901 14:26:36 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 14:26:36 app:230] Server Running on http://0.0.0.0:6677
[W 210901 14:26:41 app:238] Stopping http server
[W 210901 15:20:22 app:228] Server Config file: example.yml
[W 210901 15:20:22 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 15:20:22 app:230] Server Running on http://0.0.0.0:6677
[W 210901 15:20:29 app:238] Stopping http server
[W 210901 16:16:36 app:228] Server Config file: example.yml
[W 210901 16:16:36 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:16:36 app:230] Server Running on http://0.0.0.0:6677
[E 210901 16:19:03 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 79, in get
        self.beanstalk.DefaultEvent.event1({"a": 1})
    AttributeError: 'BeanStalk' object has no attribute 'DefaultEvent'
[W 210901 16:19:03 base:79] 时间：2021-09-01 16:19:03
[W 210901 16:19:03 base:85] 'BeanStalk' object has no attribute 'DefaultEvent'
[E 210901 16:19:03 web:2105] 500 GET /demo?a=1 (127.0.0.1) 6107.30ms
[W 210901 16:19:22 app:228] Server Config file: example.yml
[W 210901 16:19:22 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:19:22 app:230] Server Running on http://0.0.0.0:6677
[W 210901 16:19:42 base:97] 200 GET /demo?a=1 (127.0.0.1) 18796.17ms
[W 210901 16:20:23 base:97] 200 GET /demo?a=1 (127.0.0.1) 5700.91ms
[W 210901 16:24:13 app:228] Server Config file: example.yml
[W 210901 16:24:13 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:24:13 app:230] Server Running on http://0.0.0.0:6677
[E 210901 16:24:42 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 79, in get
        self.beanstalk.DefaultEvents.event1({"a": 1})
    AttributeError: type object 'DefaultEvents' has no attribute 'event1'
[W 210901 16:24:42 base:79] 时间：2021-09-01 16:24:42
[W 210901 16:24:42 base:85] type object 'DefaultEvents' has no attribute 'event1'
[E 210901 16:24:42 web:2105] 500 GET /demo?a=1 (127.0.0.1) 3994.10ms
[W 210901 16:27:04 app:228] Server Config file: example.yml
[W 210901 16:27:04 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:27:04 app:230] Server Running on http://0.0.0.0:6677
[W 210901 16:27:20 app:238] Stopping http server
[W 210901 16:27:47 app:228] Server Config file: example.yml
[W 210901 16:27:47 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:27:47 app:230] Server Running on http://0.0.0.0:6677
[W 210901 16:28:08 app:238] Stopping http server
[W 210901 16:30:36 app:228] Server Config file: example.yml
[W 210901 16:30:36 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:30:36 app:230] Server Running on http://0.0.0.0:6677
[W 210901 16:34:31 app:228] Server Config file: example.yml
[W 210901 16:34:31 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:34:31 app:230] Server Running on http://0.0.0.0:6677
[W 210901 16:34:43 base:97] 200 GET /demo?a=1 (127.0.0.1) 8749.27ms
[W 210901 16:34:56 app:238] Stopping http server
[W 210901 16:34:59 app:228] Server Config file: example.yml
[W 210901 16:34:59 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:34:59 app:230] Server Running on http://0.0.0.0:6677
[W 210901 16:36:26 app:228] Server Config file: example.yml
[W 210901 16:36:26 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:36:26 app:230] Server Running on http://0.0.0.0:6677
[W 210901 16:37:22 app:228] Server Config file: example.yml
[W 210901 16:37:22 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:37:22 app:230] Server Running on http://0.0.0.0:6677
[W 210901 16:38:07 app:228] Server Config file: example.yml
[W 210901 16:38:07 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:38:07 app:230] Server Running on http://0.0.0.0:6677
[E 210901 16:38:21 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 79, in get
        self.beanstalk.DefaultEvents.event1({"a": 1})
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk_route.py", line 71, in __getattr__
        return Agent(self.beanstalk, event, self.tube)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk_route.py", line 71, in __getattr__
        return Agent(self.beanstalk, event, self.tube)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk_route.py", line 71, in __getattr__
        return Agent(self.beanstalk, event, self.tube)
      [Previous line repeated 956 more times]
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk_route.py", line 70, in __getattr__
        def __getattr__(self, event):
      File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 392, in __call__
        is_stepping = pydev_step_cmd != -1
    RecursionError: maximum recursion depth exceeded in comparison
[W 210901 16:38:22 base:79] 时间：2021-09-01 16:38:22
[W 210901 16:38:22 base:85] maximum recursion depth exceeded in comparison
[E 210901 16:38:22 web:2105] 500 GET /demo?a=1 (127.0.0.1) 9977.97ms
[W 210901 16:38:51 app:238] Stopping http server
[W 210901 16:38:54 app:228] Server Config file: example.yml
[W 210901 16:38:54 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:38:54 app:230] Server Running on http://0.0.0.0:6677
[W 210901 16:39:32 app:228] Server Config file: example.yml
[W 210901 16:39:32 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:39:32 app:230] Server Running on http://0.0.0.0:6677
[W 210901 16:43:27 app:228] Server Config file: example.yml
[W 210901 16:43:27 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:43:27 app:230] Server Running on http://0.0.0.0:6677
[E 210901 16:44:11 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 79, in get
        self.beanstalk.DefaultEvents.event1({"a": 1})
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk_route.py", line 89, in __call__
        self.beanstalk.put(body, priority=priority, delay=delay, ttr=ttr, tube=self.tube)
    AttributeError: 'NoneType' object has no attribute 'put'
[W 210901 16:44:11 base:79] 时间：2021-09-01 16:44:11
[W 210901 16:44:11 base:85] 'NoneType' object has no attribute 'put'
[E 210901 16:44:11 web:2105] 500 GET /demo?a=1 (127.0.0.1) 41880.63ms
[W 210901 16:45:12 app:228] Server Config file: example.yml
[W 210901 16:45:12 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:45:12 app:230] Server Running on http://0.0.0.0:6677
[E 210901 16:46:37 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 79, in get
        self.beanstalk.DefaultEvents.event1({"a": 1})
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk_route.py", line 89, in __call__
        self.beanstalk.put(body, priority=priority, delay=delay, ttr=ttr, tube=self.tube)
    AttributeError: 'NoneType' object has no attribute 'put'
[W 210901 16:46:37 base:79] 时间：2021-09-01 16:46:37
[W 210901 16:46:37 base:85] 'NoneType' object has no attribute 'put'
[E 210901 16:46:37 web:2105] 500 GET /demo?a=1 (127.0.0.1) 80710.62ms
[W 210901 16:51:17 app:228] Server Config file: example.yml
[W 210901 16:51:17 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:51:17 app:230] Server Running on http://0.0.0.0:6677
[W 210901 16:55:42 app:228] Server Config file: example.yml
[W 210901 16:55:42 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:55:42 app:230] Server Running on http://0.0.0.0:6677
[W 210901 16:55:52 app:228] Server Config file: example.yml
[W 210901 16:55:52 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:55:52 app:230] Server Running on http://0.0.0.0:6677
[E 210901 16:56:25 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 79, in get
        self.beanstalk.DefaultEvents.event1({"a": 1})
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk_route.py", line 87, in __call__
        self.beanstalk.put(body, priority=priority, delay=delay, ttr=ttr, tube=self.tube)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk.py", line 27, in put
        return self.conn.put(body, priority, delay, ttr)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/greenstalk.py", line 226, in put
        cmd = b'put %d %d %d %d\r\n%b' % (priority, delay, ttr, len(body), body)
    TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'dict'
[W 210901 16:56:25 base:79] 时间：2021-09-01 16:56:25
[W 210901 16:56:25 base:85] %b requires a bytes-like object, or an object that implements __bytes__, not 'dict'
[E 210901 16:56:25 web:2105] 500 GET /demo?a=1 (127.0.0.1) 31755.24ms
[W 210901 16:59:00 app:228] Server Config file: example.yml
[W 210901 16:59:00 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:59:00 app:230] Server Running on http://0.0.0.0:6677
[W 210901 16:59:30 app:238] Stopping http server
[W 210901 16:59:33 app:228] Server Config file: example.yml
[W 210901 16:59:33 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 16:59:33 app:230] Server Running on http://0.0.0.0:6677
[W 210901 17:01:37 app:228] Server Config file: example.yml
[W 210901 17:01:37 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 17:01:37 app:230] Server Running on http://0.0.0.0:6677
[W 210901 17:04:07 base:97] 200 GET /demo?a=1 (127.0.0.1) 148761.70ms
[W 210901 17:04:48 app:228] Server Config file: example.yml
[W 210901 17:04:48 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 17:04:48 app:230] Server Running on http://0.0.0.0:6677
[W 210901 17:08:14 app:228] Server Config file: example.yml
[W 210901 17:08:14 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 17:08:14 app:230] Server Running on http://0.0.0.0:6677
[E 210901 17:08:20 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 79, in get
        self.beanstalk.DefaultEvents.event1({"a": 1})
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk_route.py", line 70, in __getattr__
        if not hasattr(self, "qos"):
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk_route.py", line 70, in __getattr__
        if not hasattr(self, "qos"):
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk_route.py", line 70, in __getattr__
        if not hasattr(self, "qos"):
      [Previous line repeated 482 more times]
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk_route.py", line 68, in __getattr__
        def __getattr__(self, event):
    RecursionError: maximum recursion depth exceeded
[W 210901 17:08:20 base:79] 时间：2021-09-01 17:08:20
[W 210901 17:08:20 base:85] maximum recursion depth exceeded
[E 210901 17:08:20 web:2105] 500 GET /demo?a=1 (127.0.0.1) 3668.36ms
[E 210901 17:08:33 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 79, in get
        self.beanstalk.DefaultEvents.event1({"a": 1})
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk_route.py", line 70, in __getattr__
        if not hasattr(self, "qos"):
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk_route.py", line 70, in __getattr__
        if not hasattr(self, "qos"):
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk_route.py", line 70, in __getattr__
        if not hasattr(self, "qos"):
      [Previous line repeated 483 more times]
    RecursionError: maximum recursion depth exceeded
[W 210901 17:08:33 base:79] 时间：2021-09-01 17:08:33
[W 210901 17:08:33 base:85] maximum recursion depth exceeded
[E 210901 17:08:33 web:2105] 500 GET /demo?a=1 (127.0.0.1) 5.98ms
[W 210901 17:08:36 app:238] Stopping http server
[W 210901 17:08:38 app:228] Server Config file: example.yml
[W 210901 17:08:38 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 17:08:38 app:230] Server Running on http://0.0.0.0:6677
[W 210901 17:16:28 app:228] Server Config file: example.yml
[W 210901 17:16:28 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 17:16:28 app:230] Server Running on http://0.0.0.0:6677
[W 210901 17:19:20 app:228] Server Config file: example.yml
[W 210901 17:19:20 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 17:19:20 app:230] Server Running on http://0.0.0.0:6677
[E 210901 17:19:32 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 79, in get
        self.beanstalk.DefaultEvents.event1({"a": 1})
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk_route.py", line 91, in __call__
        self.beanstalk.put(body, priority=priority, delay=delay, ttr=ttr, tube=self.tube)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk.py", line 27, in put
        return self.conn.put(body, priority, delay, ttr)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/greenstalk.py", line 226, in put
        cmd = b'put %d %d %d %d\r\n%b' % (priority, delay, ttr, len(body), body)
    TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'dict'
[W 210901 17:19:32 base:79] 时间：2021-09-01 17:19:32
[W 210901 17:19:32 base:85] %b requires a bytes-like object, or an object that implements __bytes__, not 'dict'
[E 210901 17:19:32 web:2105] 500 GET /demo?a=1 (127.0.0.1) 9773.51ms
[E 210901 17:20:21 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 79, in get
        self.beanstalk.DefaultEvents.event1({"a": 1})
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk_route.py", line 91, in __call__
        self.beanstalk.put(body, priority=priority, delay=delay, ttr=ttr, tube=self.tube)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/beanstalk.py", line 27, in put
        return self.conn.put(body, priority, delay, ttr)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/greenstalk.py", line 226, in put
        cmd = b'put %d %d %d %d\r\n%b' % (priority, delay, ttr, len(body), body)
    TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'dict'
[W 210901 17:20:21 base:79] 时间：2021-09-01 17:20:21
[W 210901 17:20:21 base:85] %b requires a bytes-like object, or an object that implements __bytes__, not 'dict'
[E 210901 17:20:21 web:2105] 500 GET /demo?a=1 (127.0.0.1) 19031.74ms
[W 210901 17:20:47 app:238] Stopping http server
[W 210901 17:20:50 app:228] Server Config file: example.yml
[W 210901 17:20:50 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 17:20:50 app:230] Server Running on http://0.0.0.0:6677
[W 210901 17:21:19 app:228] Server Config file: example.yml
[W 210901 17:21:19 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 17:21:19 app:230] Server Running on http://0.0.0.0:6677
[W 210901 17:21:38 base:97] 200 GET /demo?a=1 (127.0.0.1) 16950.66ms
[W 210901 17:23:11 app:238] Stopping http server
[W 210901 17:23:14 app:228] Server Config file: example.yml
[W 210901 17:23:14 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 17:23:14 app:230] Server Running on http://0.0.0.0:6677
[W 210901 17:23:44 base:97] 200 GET /demo?a=1 (127.0.0.1) 25494.71ms
[W 210901 19:15:15 app:228] Server Config file: example.yml
[W 210901 19:15:15 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 19:15:15 app:230] Server Running on http://0.0.0.0:6677
[W 210901 19:16:04 base:97] 200 GET /demo?a=1 (127.0.0.1) 25956.14ms
[W 210901 19:16:05 app:238] Stopping http server
[W 210901 19:16:09 app:228] Server Config file: example.yml
[W 210901 19:16:09 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 19:16:09 app:230] Server Running on http://0.0.0.0:6677
[W 210901 19:23:36 app:228] Server Config file: example.yml
[W 210901 19:23:36 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 19:23:36 app:230] Server Running on http://0.0.0.0:6677
[W 210901 19:31:52 app:228] Server Config file: example.yml
[W 210901 19:31:52 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 19:31:52 app:230] Server Running on http://0.0.0.0:6677
[W 210901 19:32:32 app:228] Server Config file: example.yml
[W 210901 19:32:32 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 19:32:32 app:230] Server Running on http://0.0.0.0:6677
[W 210901 19:45:25 app:228] Server Config file: example.yml
[W 210901 19:45:25 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 19:45:25 app:230] Server Running on http://0.0.0.0:6677
[W 210901 19:47:09 app:228] Server Config file: example.yml
[W 210901 19:47:09 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 19:47:09 app:230] Server Running on http://0.0.0.0:6677
[W 210901 19:47:59 base:97] 200 GET /demo?a=1 (127.0.0.1) 33907.39ms
[W 210901 19:48:00 app:238] Stopping http server
[W 210901 19:48:03 app:228] Server Config file: example.yml
[W 210901 19:48:03 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 19:48:03 app:230] Server Running on http://0.0.0.0:6677
[W 210901 19:56:27 base:97] 200 GET /demo?a=1 (127.0.0.1) 22082.40ms
[W 210901 19:57:34 app:228] Server Config file: example.yml
[W 210901 19:57:34 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 19:57:34 app:230] Server Running on http://0.0.0.0:6677
[W 210901 19:57:50 base:97] 200 GET /demo?a=1 (127.0.0.1) 3637.06ms
[W 210901 19:59:09 app:238] Stopping http server
[W 210901 19:59:12 app:228] Server Config file: example.yml
[W 210901 19:59:12 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 19:59:12 app:230] Server Running on http://0.0.0.0:6677
[W 210901 19:59:21 base:97] 200 GET /demo?a=1 (127.0.0.1) 6381.37ms
[W 210901 19:59:56 base:97] 200 GET /demo?a=1 (127.0.0.1) 3063.23ms
[W 210901 20:05:34 app:228] Server Config file: example.yml
[W 210901 20:05:34 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 20:05:34 app:230] Server Running on http://0.0.0.0:6677
[W 210901 20:07:38 app:228] Server Config file: example.yml
[W 210901 20:07:38 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 20:07:38 app:230] Server Running on http://0.0.0.0:6677
[W 210901 20:12:03 app:228] Server Config file: example.yml
[W 210901 20:12:03 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210901 20:12:03 app:230] Server Running on http://0.0.0.0:6677
[W 210902 09:12:43 app:228] Server Config file: example.yml
[W 210902 09:12:43 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 09:12:43 app:230] Server Running on http://0.0.0.0:6677
[W 210902 09:12:56 app:238] Stopping http server
[W 210902 09:12:58 app:228] Server Config file: example.yml
[W 210902 09:12:58 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 09:12:58 app:230] Server Running on http://0.0.0.0:6677
[W 210902 09:14:52 app:238] Stopping http server
[W 210902 09:14:55 app:228] Server Config file: example.yml
[W 210902 09:14:55 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 09:14:55 app:230] Server Running on http://0.0.0.0:6677
[W 210902 09:16:48 app:238] Stopping http server
[W 210902 09:16:51 app:228] Server Config file: example.yml
[W 210902 09:16:51 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 09:16:51 app:230] Server Running on http://0.0.0.0:6677
[W 210902 09:18:41 base:98] 200 GET /demo?a=1 (127.0.0.1) 3322.64ms
[W 210902 09:19:07 base:98] 200 GET /demo?a=1 (127.0.0.1) 2462.85ms
[W 210902 09:19:10 app:238] Stopping http server
[W 210902 09:19:13 app:228] Server Config file: example.yml
[W 210902 09:19:13 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 09:19:13 app:230] Server Running on http://0.0.0.0:6677
[W 210902 09:19:21 base:98] 200 GET /demo?a=1 (127.0.0.1) 1767.51ms
[W 210902 09:20:06 app:238] Stopping http server
[W 210902 09:20:09 app:228] Server Config file: example.yml
[W 210902 09:20:09 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 09:20:09 app:230] Server Running on http://0.0.0.0:6677
[W 210902 09:20:19 app:228] Server Config file: example.yml
[W 210902 09:20:19 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 09:20:19 app:230] Server Running on http://0.0.0.0:6677
[W 210902 09:21:39 app:228] Server Config file: example.yml
[W 210902 09:21:39 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 09:21:39 app:230] Server Running on http://0.0.0.0:6677
[W 210902 09:21:43 base:97] 200 GET /demo?a=1 (127.0.0.1) 1947.23ms
[W 210902 09:22:06 base:97] 200 GET /demo?a=1 (127.0.0.1) 3161.48ms
[W 210902 11:05:45 app:228] Server Config file: example.yml
[W 210902 11:05:45 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 11:05:45 app:230] Server Running on http://0.0.0.0:6677
[W 210902 11:06:37 base:97] 200 GET /demo?a=1 (127.0.0.1) 49096.35ms
[W 210902 11:06:38 base:97] 200 GET /demo?a=1 (127.0.0.1) 1270.67ms
[W 210902 11:20:18 app:228] Server Config file: example.yml
[W 210902 11:20:18 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 11:20:18 app:230] Server Running on http://0.0.0.0:6677
[W 210902 11:20:26 base:97] 200 GET /demo?a=1 (127.0.0.1) 6148.44ms
[W 210902 11:25:35 app:238] Stopping http server
[W 210902 11:25:39 app:228] Server Config file: example.yml
[W 210902 11:25:39 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 11:25:39 app:230] Server Running on http://0.0.0.0:6677
[W 210902 11:25:46 base:97] 200 GET /demo?a=1 (127.0.0.1) 4812.99ms
[W 210902 11:26:49 base:97] 200 GET /demo?a=1 (127.0.0.1) 2600.27ms
[W 210902 11:34:03 app:238] Stopping http server
[W 210902 11:34:06 app:228] Server Config file: example.yml
[W 210902 11:34:06 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 11:34:06 app:230] Server Running on http://0.0.0.0:6677
[W 210902 11:38:36 app:228] Server Config file: example.yml
[W 210902 11:38:36 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 11:38:36 app:230] Server Running on http://0.0.0.0:6677
[W 210902 11:51:13 app:228] Server Config file: example.yml
[W 210902 11:51:13 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 11:51:13 app:230] Server Running on http://0.0.0.0:6677
[W 210902 11:51:35 base:97] 200 GET /demo?a=1 (127.0.0.1) 7353.66ms
[W 210902 11:52:20 app:238] Stopping http server
[W 210902 11:52:24 app:228] Server Config file: example.yml
[W 210902 11:52:24 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 11:52:24 app:230] Server Running on http://0.0.0.0:6677
[W 210902 11:56:04 base:97] 200 GET /demo?a=1 (127.0.0.1) 151903.20ms
[W 210902 11:56:04 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (160.15s), closing
[W 210902 11:56:04 writer:247] [127.0.0.1:4150] connection closed
[E 210902 11:56:04 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210902 11:56:04 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210902 11:56:04 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210902 11:57:14 app:238] Stopping http server
[W 210902 11:58:27 app:228] Server Config file: example.yml
[W 210902 11:58:27 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 11:58:27 app:230] Server Running on http://0.0.0.0:6677
[W 210902 12:00:10 base:97] 200 GET /demo?a=1 (127.0.0.1) 100007.81ms
[W 210902 12:00:10 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (103.01s), closing
[W 210902 12:00:10 writer:247] [127.0.0.1:4150] connection closed
[E 210902 12:00:10 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210902 12:00:10 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210902 12:00:10 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210902 12:00:36 app:238] Stopping http server
[W 210902 12:00:50 app:228] Server Config file: example.yml
[W 210902 12:00:50 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 12:00:50 app:230] Server Running on http://0.0.0.0:6677
[W 210902 12:01:21 base:97] 200 GET /demo?a=1 (127.0.0.1) 3640.64ms
[W 210902 12:34:11 app:228] Server Config file: example.yml
[W 210902 12:34:11 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 12:34:11 app:230] Server Running on http://0.0.0.0:6677
[W 210902 12:34:13 base:97] 200 GET /demo?a=1 (127.0.0.1) 1909.65ms
[W 210902 12:34:45 app:228] Server Config file: example.yml
[W 210902 12:34:45 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 12:34:45 app:230] Server Running on http://0.0.0.0:6677
[W 210902 12:34:52 base:97] 200 GET /demo?a=1 (127.0.0.1) 3930.48ms
[W 210902 12:35:10 app:228] Server Config file: example.yml
[W 210902 12:35:10 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 12:35:10 app:230] Server Running on http://0.0.0.0:6677
[W 210902 12:35:24 base:97] 200 GET /demo?a=1 (127.0.0.1) 2872.73ms
[W 210902 13:39:49 app:228] Server Config file: example.yml
[W 210902 13:39:49 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 13:39:49 app:230] Server Running on http://0.0.0.0:6677
[W 210902 13:39:54 base:97] 200 GET /demo?a=1 (127.0.0.1) 3104.26ms
[W 210902 13:42:29 app:228] Server Config file: example.yml
[W 210902 13:42:29 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 13:42:29 app:230] Server Running on http://0.0.0.0:6677
[W 210902 13:45:05 base:97] 200 GET /demo?a=1 (127.0.0.1) 2592.77ms
[W 210902 13:55:17 app:238] Stopping http server
[W 210902 13:55:20 app:228] Server Config file: example.yml
[W 210902 13:55:20 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 13:55:20 app:230] Server Running on http://0.0.0.0:6677
[W 210902 13:55:39 app:238] Stopping http server
[W 210902 13:55:42 app:228] Server Config file: example.yml
[W 210902 13:55:42 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 13:55:42 app:230] Server Running on http://0.0.0.0:6677
[W 210902 13:57:26 app:228] Server Config file: example.yml
[W 210902 13:57:26 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 13:57:26 app:230] Server Running on http://0.0.0.0:6677
[W 210902 13:58:04 app:228] Server Config file: example.yml
[W 210902 13:58:04 app:229] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 13:58:04 app:230] Server Running on http://0.0.0.0:6677
[W 210902 13:58:11 base:97] 200 GET /demo?a=1 (127.0.0.1) 6264.46ms
[W 210902 16:59:28 app:229] Server Config file: example.yml
[W 210902 16:59:28 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 16:59:28 app:231] Server Running on http://0.0.0.0:6677
[W 210902 16:59:37 app:229] Server Config file: example.yml
[W 210902 16:59:37 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 16:59:37 app:231] Server Running on http://0.0.0.0:6677
[W 210902 16:59:39 app:242] Stopping http server
[W 210902 18:28:19 app:229] Server Config file: example.yml
[W 210902 18:28:19 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 18:28:19 app:231] Server Running on http://0.0.0.0:6677
[W 210902 18:28:36 app:242] Stopping http server
[W 210902 18:28:37 app:229] Server Config file: example.yml
[W 210902 18:28:37 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 18:28:37 app:231] Server Running on http://0.0.0.0:6677
[W 210902 18:28:39 <frozen template>:48] Docs Running on http://0.0.0.0:6677/docs
[W 210902 18:32:13 app:242] Stopping http server
[W 210902 18:32:22 app:229] Server Config file: example.yml
[W 210902 18:32:22 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 18:32:22 app:231] Server Running on http://0.0.0.0:6677
[W 210902 18:32:24 <frozen template>:48] Docs Running on http://0.0.0.0:6677/docs
[W 210902 18:33:42 app:229] Server Config file: example.yml
[W 210902 18:33:42 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 18:33:42 app:231] Server Running on http://0.0.0.0:6677
[W 210902 18:33:44 template:48] Docs Running on http://0.0.0.0:6677/docs
[W 210902 18:34:36 app:242] Stopping http server
[W 210902 18:34:39 app:229] Server Config file: example.yml
[W 210902 18:34:39 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 18:34:39 app:231] Server Running on http://0.0.0.0:6677
[W 210902 18:35:29 template:48] Docs Running on http://0.0.0.0:6677/docs
[W 210902 18:36:04 app:242] Stopping http server
[W 210902 19:44:19 app:229] Server Config file: example.yml
[W 210902 19:44:19 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 19:44:19 app:231] Server Running on http://0.0.0.0:6677
[W 210902 19:44:20 <frozen template>:48] Docs Running on http://0.0.0.0:6677/docs
[W 210902 19:59:50 app:229] Server Config file: example.yml
[W 210902 19:59:50 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 19:59:50 app:231] Server Running on http://0.0.0.0:6677
[W 210902 19:59:51 <frozen template>:48] Docs Running on http://0.0.0.0:6677/docs
[W 210902 20:03:13 app:229] Server Config file: example.yml
[W 210902 20:03:13 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210902 20:03:13 app:231] Server Running on http://0.0.0.0:6677
[W 210902 20:03:15 <frozen template>:48] Docs Running on http://0.0.0.0:6677/docs
[W 210903 09:17:35 app:229] Server Config file: example.yml
[W 210903 09:17:35 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 09:17:35 app:231] Server Running on http://0.0.0.0:6677
[W 210903 09:23:53 app:229] Server Config file: example.yml
[W 210903 09:23:53 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 09:23:53 app:231] Server Running on http://0.0.0.0:6677
[W 210903 09:26:30 app:242] Stopping http server
[W 210903 09:26:33 app:229] Server Config file: example.yml
[W 210903 09:26:33 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 09:26:33 app:231] Server Running on http://0.0.0.0:6677
[E 210903 09:26:48 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 81, in get
        self.mqtt.MqttEvent.on_create_user({"a": "mqtt_test"})
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/mqtt_route.py", line 307, in __call__
        payload = encrypt(dumps(payload), self.mqtt.msg_pwd, self.mqtt.encrypt_model) if len(payload) > 1 else None
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/crypto.py", line 90, in encrypt
        return salt_aes_encrypt(plain_text, password_phase)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/crypto.py", line 85, in salt_aes_encrypt
        return salt + enc.decode()
    AttributeError: 'str' object has no attribute 'decode'
[W 210903 09:26:48 base:81] 时间：2021-09-03 09:26:48
[W 210903 09:26:48 base:87] 'str' object has no attribute 'decode'
[E 210903 09:26:48 web:2105] 500 GET /demo?a=1 (127.0.0.1) 128.94ms
[E 210903 09:28:08 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 81, in get
        self.mqtt.MqttEvent.on_create_user({"a": "mqtt_test"})
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/mqtt_route.py", line 307, in __call__
        payload = encrypt(dumps(payload), self.mqtt.msg_pwd, self.mqtt.encrypt_model) if len(payload) > 1 else None
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/crypto.py", line 90, in encrypt
        return salt_aes_encrypt(plain_text, password_phase)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/crypto.py", line 85, in salt_aes_encrypt
        return salt + enc.decode()
    AttributeError: 'str' object has no attribute 'decode'
[W 210903 09:28:08 base:81] 时间：2021-09-03 09:28:08
[W 210903 09:28:08 base:87] 'str' object has no attribute 'decode'
[E 210903 09:28:08 web:2105] 500 GET /demo?a=1 (127.0.0.1) 56641.06ms
[W 210903 09:28:08 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (64.53s), closing
[W 210903 09:28:08 writer:247] [127.0.0.1:4150] connection closed
[E 210903 09:28:08 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210903 09:28:08 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210903 09:28:08 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210903 09:28:09 app:242] Stopping http server
[W 210903 09:28:12 app:229] Server Config file: example.yml
[W 210903 09:28:12 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 09:28:12 app:231] Server Running on http://0.0.0.0:6677
[W 210903 09:28:24 base:99] 200 GET /demo?a=1 (127.0.0.1) 9466.09ms
[W 210903 09:29:59 base:99] 200 GET /demo?a=1 (127.0.0.1) 3491.16ms
[W 210903 09:30:15 base:99] 200 GET /demo?a=1 (127.0.0.1) 7910.64ms
[W 210903 10:44:55 app:229] Server Config file: example.yml
[W 210903 10:44:55 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 10:44:55 app:231] Server Running on http://0.0.0.0:6677
[W 210903 10:46:27 app:229] Server Config file: example.yml
[W 210903 10:46:27 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 10:46:27 app:231] Server Running on http://0.0.0.0:6677
[E 210903 10:47:01 base_pymysql:102] (1146, "Table 'lcylln.demo' doesn't exist")
[E 210903 10:47:30 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 86, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 24, in get_demo
        cls.mysql.select_one(sql="select * from test where name:=%s", param=(2,))
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/database/base_pymysql.py", line 65, in select_one
        self.__execute(sql, param)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/database/base_pymysql.py", line 195, in __execute
        count = self.cursor.execute(sql, param)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/dbutils/steady_db.py", line 598, in tough_method
        result = method(*args, **kwargs)  # try to execute
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 143, in execute
        while self.nextset():
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 96, in nextset
        return self._nextset(False)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 83, in _nextset
        conn = self._get_db()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 65, in _get_db
        raise err.ProgrammingError("Cursor closed")
    pymysql.err.ProgrammingError: Cursor closed
[W 210903 10:47:30 base:81] 时间：2021-09-03 10:47:30
[W 210903 10:47:30 base:87] Cursor closed
[E 210903 10:47:30 web:2105] 500 GET /demo?a=1 (127.0.0.1) 60290.81ms
[W 210903 10:47:30 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (62.89s), closing
[E 210903 10:47:30 writer:255] [127.0.0.1:4150] failed to pub (test, b'{"uid": 0, "event": "on_create_user"}'), data is 
[W 210903 10:47:30 writer:247] [127.0.0.1:4150] connection closed
[E 210903 10:47:30 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210903 10:47:30 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210903 10:47:30 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[E 210903 10:48:59 base_pymysql:102] Cursor closed
[E 210903 10:48:59 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 86, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 24, in get_demo
        cls.mysql.select_one(sql="select * from test where name:=%s", param=(2,))
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/database/base_pymysql.py", line 65, in select_one
        self.__execute(sql, param)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/database/base_pymysql.py", line 195, in __execute
        count = self.cursor.execute(sql, param)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/dbutils/steady_db.py", line 598, in tough_method
        result = method(*args, **kwargs)  # try to execute
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 143, in execute
        while self.nextset():
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 96, in nextset
        return self._nextset(False)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 83, in _nextset
        conn = self._get_db()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 65, in _get_db
        raise err.ProgrammingError("Cursor closed")
    pymysql.err.ProgrammingError: Cursor closed
[W 210903 10:48:59 base:81] 时间：2021-09-03 10:48:59
[W 210903 10:48:59 base:87] Cursor closed
[E 210903 10:48:59 web:2105] 500 GET /demo?a=1 (127.0.0.1) 1554.21ms
[W 210903 10:52:42 app:242] Stopping http server
[W 210903 10:54:15 app:229] Server Config file: example.yml
[W 210903 10:54:15 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 10:54:15 app:231] Server Running on http://0.0.0.0:6677
[E 210903 10:55:08 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 86, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 24, in get_demo
        cls.mysql.select_one(sql="select * from test where name:=%s", param=(2,))
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/database/base_pymysql.py", line 65, in select_one
        self.__execute(sql, param)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/database/base_pymysql.py", line 195, in __execute
        count = self.cursor.execute(sql, param)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/dbutils/steady_db.py", line 598, in tough_method
        result = method(*args, **kwargs)  # try to execute
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 143, in execute
        while self.nextset():
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 96, in nextset
        return self._nextset(False)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 83, in _nextset
        conn = self._get_db()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 65, in _get_db
        raise err.ProgrammingError("Cursor closed")
    pymysql.err.ProgrammingError: Cursor closed
[W 210903 10:55:08 base:81] 时间：2021-09-03 10:55:08
[W 210903 10:55:08 base:87] Cursor closed
[E 210903 10:55:08 web:2105] 500 GET /demo?a=1 (127.0.0.1) 50052.44ms
[E 210903 10:55:42 base_pymysql:102] Cursor closed
[E 210903 10:56:17 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 86, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 24, in get_demo
        cls.mysql.select_one(sql="select * from test where name:=%s", param=(2,))
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/database/base_pymysql.py", line 65, in select_one
        self.__execute(sql, param)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/database/base_pymysql.py", line 195, in __execute
        count = self.cursor.execute(sql, param)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/dbutils/steady_db.py", line 598, in tough_method
        result = method(*args, **kwargs)  # try to execute
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 143, in execute
        while self.nextset():
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 96, in nextset
        return self._nextset(False)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 83, in _nextset
        conn = self._get_db()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 65, in _get_db
        raise err.ProgrammingError("Cursor closed")
    pymysql.err.ProgrammingError: Cursor closed
[W 210903 10:56:17 base:81] 时间：2021-09-03 10:56:17
[W 210903 10:56:17 base:87] Cursor closed
[E 210903 10:56:17 web:2105] 500 GET /demo?a=1 (127.0.0.1) 35577.99ms
[W 210903 10:56:17 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (61.63s), closing
[E 210903 10:56:17 writer:255] [127.0.0.1:4150] failed to pub (test, b'{"uid": 0, "event": "on_create_user"}'), data is 
[W 210903 10:56:17 writer:247] [127.0.0.1:4150] connection closed
[E 210903 10:56:17 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210903 10:56:17 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210903 10:56:17 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210903 10:56:41 app:242] Stopping http server
[W 210903 10:56:47 app:229] Server Config file: example.yml
[W 210903 10:56:47 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 10:56:47 app:231] Server Running on http://0.0.0.0:6677
[E 210903 10:56:54 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 86, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 24, in get_demo
        cls.mysql.select_one(sql="select * from test where name=%s", param=(2,))
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/database/base_pymysql.py", line 65, in select_one
        self.__execute(sql, param)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/database/base_pymysql.py", line 195, in __execute
        count = self.cursor.execute(sql, param)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/dbutils/steady_db.py", line 598, in tough_method
        result = method(*args, **kwargs)  # try to execute
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 143, in execute
        while self.nextset():
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 96, in nextset
        return self._nextset(False)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 83, in _nextset
        conn = self._get_db()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymysql/cursors.py", line 65, in _get_db
        raise err.ProgrammingError("Cursor closed")
    pymysql.err.ProgrammingError: Cursor closed
[W 210903 10:56:54 base:81] 时间：2021-09-03 10:56:54
[W 210903 10:56:54 base:87] Cursor closed
[E 210903 10:56:54 web:2105] 500 GET /demo?a=1 (127.0.0.1) 4429.82ms
[W 210903 10:57:27 app:242] Stopping http server
[W 210903 10:57:30 app:229] Server Config file: example.yml
[W 210903 10:57:30 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 10:57:30 app:231] Server Running on http://0.0.0.0:6677
[E 210903 10:57:33 base_pymysql:144] select * from test where name=2
[E 210903 10:57:33 base_pymysql:145] Cursor closed
[W 210903 10:57:44 app:242] Stopping http server
[W 210903 10:57:47 app:229] Server Config file: example.yml
[W 210903 10:57:47 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 10:57:47 app:231] Server Running on http://0.0.0.0:6677
[E 210903 10:57:51 base_pymysql:144] select * from test where name=2
[E 210903 10:57:51 base_pymysql:145] Cursor closed
[W 210903 10:57:56 base:99] 200 GET /demo?a=1 (127.0.0.1) 7303.94ms
[E 210903 10:57:58 base_pymysql:102] Cursor closed
[E 210903 10:58:37 base_pymysql:144] select * from test where name=2
[E 210903 10:58:41 base_pymysql:145] Cursor closed
[W 210903 10:58:46 base:99] 200 GET /demo?a=1 (127.0.0.1) 48292.01ms
[W 210903 11:05:17 app:242] Stopping http server
[W 210903 11:05:20 app:229] Server Config file: example.yml
[W 210903 11:05:20 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 11:05:20 app:231] Server Running on http://0.0.0.0:6677
[E 210903 11:05:30 base_pymysql:144] select * from demo where name=2
[E 210903 11:07:57 base_pymysql:145] Cursor closed
[W 210903 11:07:57 base:99] 200 GET /demo?a=1 (127.0.0.1) 151982.61ms
[W 210903 11:07:57 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (156.95s), closing
[E 210903 11:07:57 writer:255] [127.0.0.1:4150] failed to pub (test, b'{"uid": 0, "event": "on_create_user"}'), data is 
[W 210903 11:07:57 writer:247] [127.0.0.1:4150] connection closed
[E 210903 11:07:57 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210903 11:07:57 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210903 11:07:57 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210903 11:09:36 app:242] Stopping http server
[W 210903 11:09:40 app:229] Server Config file: example.yml
[W 210903 11:09:40 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 11:09:40 app:231] Server Running on http://0.0.0.0:6677
[W 210903 11:12:43 app:229] Server Config file: example.yml
[W 210903 11:12:43 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 11:12:43 app:231] Server Running on http://0.0.0.0:6677
[W 210903 11:20:22 base:99] 200 GET /demo?a=1 (127.0.0.1) 455598.68ms
[W 210903 11:20:24 app:229] Server Config file: example.yml
[W 210903 11:20:24 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 11:20:24 app:231] Server Running on http://0.0.0.0:6677
[W 210903 11:20:28 app:229] Server Config file: example.yml
[W 210903 11:20:28 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 11:20:28 app:231] Server Running on http://0.0.0.0:6677
[W 210903 11:20:40 app:229] Server Config file: example.yml
[W 210903 11:20:40 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 11:20:40 app:231] Server Running on http://0.0.0.0:6677
[W 210903 11:35:43 base:99] 200 GET /demo?a=1 (127.0.0.1) 900175.30ms
[W 210903 11:42:28 app:229] Server Config file: example.yml
[W 210903 11:42:28 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 11:42:28 app:231] Server Running on http://0.0.0.0:6677
[W 210903 11:51:50 base:99] 200 GET /demo?a=1 (127.0.0.1) 541911.75ms
[W 210903 11:51:57 app:229] Server Config file: example.yml
[W 210903 11:51:57 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 11:51:57 app:231] Server Running on http://0.0.0.0:6677
[W 210903 11:53:16 app:229] Server Config file: example.yml
[W 210903 11:53:16 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 11:53:16 app:231] Server Running on http://0.0.0.0:6677
[E 210903 11:53:22 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handlers/demo_handler.py", line 86, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 24, in get_demo
        data = cls.mysql.query_sql(sql="select * from demo where name=(name)", params={"name": 2})
    TypeError: query_sql() got an unexpected keyword argument 'params'
[W 210903 11:53:22 base:81] 时间：2021-09-03 11:53:22
[W 210903 11:53:22 base:87] query_sql() got an unexpected keyword argument 'params'
[E 210903 11:53:22 web:2105] 500 GET /demo?a=1 (127.0.0.1) 3549.51ms
[W 210903 11:53:48 app:242] Stopping http server
[W 210903 11:53:51 app:229] Server Config file: example.yml
[W 210903 11:53:51 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 11:53:51 app:231] Server Running on http://0.0.0.0:6677
[W 210903 11:54:26 app:242] Stopping http server
[W 210903 11:54:29 app:229] Server Config file: example.yml
[W 210903 11:54:29 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 11:54:29 app:231] Server Running on http://0.0.0.0:6677
[W 210903 11:54:33 base:99] 200 GET /demo?a=1 (127.0.0.1) 3863.73ms
[W 210903 13:45:42 app:229] Server Config file: example.yml
[W 210903 13:45:42 app:230] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 13:45:42 app:231] Server Running on http://0.0.0.0:6677
[W 210903 13:45:44 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210903 15:05:12 app:231] Server Config file: example.yml
[W 210903 15:05:12 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 15:05:12 app:233] Server Running on http://0.0.0.0:6677
[W 210903 15:05:13 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210903 15:05:28 app:231] Server Config file: example.yml
[W 210903 15:05:28 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 15:05:28 app:233] Server Running on http://0.0.0.0:6677
[W 210903 15:05:29 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210903 15:41:25 app:231] Server Config file: example.yml
[W 210903 15:41:25 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 15:41:25 app:233] Server Running on http://0.0.0.0:6677
[W 210903 15:41:28 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210903 15:43:49 app:231] Server Config file: example.yml
[W 210903 15:43:49 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 15:43:49 app:233] Server Running on http://0.0.0.0:6677
[W 210903 15:43:50 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210903 16:08:47 app:231] Server Config file: example.yml
[W 210903 16:08:47 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 16:08:47 app:233] Server Running on http://0.0.0.0:6677
[W 210903 16:08:49 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210903 16:08:59 app:231] Server Config file: example.yml
[W 210903 16:08:59 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 16:08:59 app:233] Server Running on http://0.0.0.0:6677
[W 210903 16:09:01 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210903 16:28:06 app:231] Server Config file: example.yml
[W 210903 16:28:06 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 16:28:06 app:233] Server Running on http://0.0.0.0:6677
[W 210903 16:28:07 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210903 16:29:17 app:231] Server Config file: example.yml
[W 210903 16:29:17 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 16:29:17 app:233] Server Running on http://0.0.0.0:6677
[W 210903 16:29:18 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210903 16:34:25 app:231] Server Config file: example.yml
[W 210903 16:34:25 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 16:34:25 app:233] Server Running on http://0.0.0.0:6677
[W 210903 16:34:26 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210903 16:34:39 app:244] Stopping http server
[W 210903 16:39:38 app:231] Server Config file: example.yml
[W 210903 16:39:38 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 16:39:38 app:233] Server Running on http://0.0.0.0:6677
[W 210903 16:39:41 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210903 16:40:17 app:244] Stopping http server
[W 210903 16:40:21 app:231] Server Config file: example.yml
[W 210903 16:40:21 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 16:40:21 app:233] Server Running on http://0.0.0.0:6677
[W 210903 16:40:23 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210903 16:41:41 app:244] Stopping http server
[W 210903 16:41:45 app:231] Server Config file: example.yml
[W 210903 16:41:45 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 16:41:45 app:233] Server Running on http://0.0.0.0:6677
[W 210903 16:41:46 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210903 16:44:20 app:231] Server Config file: example.yml
[W 210903 16:44:20 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 16:44:20 app:233] Server Running on http://0.0.0.0:6677
[W 210903 16:44:21 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210903 16:44:28 base:99] 200 GET /demo?a=1 (127.0.0.1) 3153.82ms
[W 210903 16:44:38 base:99] 200 GET /demo?a=1 (127.0.0.1) 3749.59ms
[W 210903 17:02:08 app:231] Server Config file: test_config.yml
[W 210903 17:02:08 app:232] Server ROOT path: /code
[W 210903 17:02:08 app:233] Server Running on http://0.0.0.0:6678
[W 210903 17:02:11 <frozen template>:56] Docs Running on http://0.0.0.0:6678/docs
[W 210903 17:02:14 app:244] Stopping http server
[W 210903 17:02:39 app:231] Server Config file: test_config.yml
[W 210903 17:02:39 app:232] Server ROOT path: /code
[W 210903 17:02:39 app:233] Server Running on http://0.0.0.0:6678
[W 210903 17:02:41 <frozen template>:56] Docs Running on http://0.0.0.0:6678/docs
[W 210903 17:11:05 app:244] Stopping http server
[W 210903 17:11:16 app:231] Server Config file: example.yml
[W 210903 17:11:16 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 17:11:16 app:233] Server Running on http://0.0.0.0:6677
[W 210903 17:11:17 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210903 17:11:33 app:244] Stopping http server
[W 210903 17:11:43 app:231] Server Config file: test_config.yml
[W 210903 17:11:43 app:232] Server ROOT path: /code
[W 210903 17:11:43 app:233] Server Running on http://0.0.0.0:6678
[W 210903 17:11:44 <frozen template>:56] Docs Running on http://0.0.0.0:6678/docs
[W 210903 17:13:33 app:231] Server Config file: test_config.yml
[W 210903 17:13:33 app:232] Server ROOT path: /code
[W 210903 17:13:33 app:233] Server Running on http://0.0.0.0:6678
[W 210903 17:13:35 <frozen template>:56] Docs Running on http://0.0.0.0:6678/docs
[W 210903 17:14:09 app:244] Stopping http server
[W 210903 17:14:30 app:231] Server Config file: test_config.yml
[W 210903 17:14:30 app:232] Server ROOT path: /code
[W 210903 17:14:30 app:233] Server Running on http://0.0.0.0:6678
[W 210903 17:14:31 <frozen template>:56] Docs Running on http://0.0.0.0:6678/docs
[W 210903 17:14:41 app:244] Stopping http server
[W 210903 17:50:59 app:231] Server Config file: example.yml
[W 210903 17:50:59 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 17:50:59 app:233] Server Running on http://0.0.0.0:6677
[W 210903 17:51:00 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210903 17:51:04 app:244] Stopping http server
[W 210903 18:04:48 app:231] Server Config file: localhost.yml
[W 210903 18:04:48 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210903 18:04:48 app:233] Server Running on http://0.0.0.0:6677
[W 210903 18:04:50 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210904 10:30:24 app:244] Stopping http server
[W 210904 10:30:28 app:231] Server Config file: localhost.yml
[W 210904 10:30:28 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210904 10:30:28 app:233] Server Running on http://0.0.0.0:6677
[W 210904 10:30:29 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210904 10:40:08 app:244] Stopping http server
[W 210904 10:40:35 app:231] Server Config file: localhost.yml
[W 210904 10:40:35 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210904 10:40:35 app:233] Server Running on http://0.0.0.0:6677
[W 210904 10:40:37 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210904 10:59:15 app:244] Stopping http server
[W 210904 10:59:19 app:231] Server Config file: localhost.yml
[W 210904 10:59:19 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210904 10:59:19 app:233] Server Running on http://0.0.0.0:6677
[W 210904 10:59:20 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[E 210904 10:59:23 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 79, in get
        self.ssdb.auth("1")
    AttributeError: 'ConnectionPool' object has no attribute 'auth'
[W 210904 10:59:23 base:81] 时间：2021-09-04 10:59:23
[W 210904 10:59:23 base:87] 'ConnectionPool' object has no attribute 'auth'
[E 210904 10:59:23 web:2105] 500 GET /demo?a=1 (127.0.0.1) 6.86ms
[E 210904 11:00:49 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 79, in get
        self.ssdb.auth("1")
    AttributeError: 'ConnectionPool' object has no attribute 'auth'
[W 210904 11:00:49 base:81] 时间：2021-09-04 11:00:49
[W 210904 11:00:49 base:87] 'ConnectionPool' object has no attribute 'auth'
[E 210904 11:00:49 web:2105] 500 GET /demo?a=1 (127.0.0.1) 42429.38ms
[W 210904 11:00:59 app:231] Server Config file: localhost.yml
[W 210904 11:00:59 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210904 11:00:59 app:233] Server Running on http://0.0.0.0:6677
[W 210904 11:01:00 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210904 11:01:35 app:231] Server Config file: localhost.yml
[W 210904 11:01:35 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210904 11:01:35 app:233] Server Running on http://0.0.0.0:6677
[W 210904 11:01:36 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210904 11:01:58 app:244] Stopping http server
[W 210904 11:02:01 app:231] Server Config file: localhost.yml
[W 210904 11:02:01 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210904 11:02:01 app:233] Server Running on http://0.0.0.0:6677
[W 210904 11:02:03 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[E 210904 11:02:04 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 79, in get
        self.ssdb.get("1")
    AttributeError: 'ConnectionPool' object has no attribute 'get'
[W 210904 11:02:04 base:81] 时间：2021-09-04 11:02:04
[W 210904 11:02:04 base:87] 'ConnectionPool' object has no attribute 'get'
[E 210904 11:02:04 web:2105] 500 GET /demo?a=1 (127.0.0.1) 3.65ms
[W 210904 11:21:40 app:231] Server Config file: localhost.yml
[W 210904 11:21:40 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210904 11:21:40 app:233] Server Running on http://0.0.0.0:6677
[W 210904 11:21:42 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[E 210904 11:22:52 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 79, in get
        self.ssdb.get("1")
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/ssdb/client.py", line 278, in get
        return self.execute_command('get', name)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/ssdb/client.py", line 231, in execute_command
        connection.send_command(*args)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/ssdb/connection.py", line 404, in send_command
        self.send_packed_command(self.pack_command(*args))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/ssdb/connection.py", line 383, in send_packed_command
        self._sock.sendall(item)
    TypeError: a bytes-like object is required, not 'str'
[W 210904 11:22:52 base:81] 时间：2021-09-04 11:22:52
[W 210904 11:22:52 base:87] a bytes-like object is required, not 'str'
[E 210904 11:22:52 web:2105] 500 GET /demo?a=1 (127.0.0.1) 66328.79ms
[W 210904 11:22:52 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (71.91s), closing
[W 210904 11:22:52 writer:247] [127.0.0.1:4150] connection closed
[E 210904 11:22:52 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210904 11:22:52 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210904 11:22:52 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[E 210904 11:23:17 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 79, in get
        self.ssdb.get("1")
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/ssdb/client.py", line 278, in get
        return self.execute_command('get', name)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/ssdb/client.py", line 231, in execute_command
        connection.send_command(*args)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/ssdb/connection.py", line 404, in send_command
        self.send_packed_command(self.pack_command(*args))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/ssdb/connection.py", line 383, in send_packed_command
        self._sock.sendall(item)
    TypeError: a bytes-like object is required, not 'str'
[W 210904 11:23:17 base:81] 时间：2021-09-04 11:23:17
[W 210904 11:23:17 base:87] a bytes-like object is required, not 'str'
[E 210904 11:23:17 web:2105] 500 GET /demo?a=1 (127.0.0.1) 22779.76ms
[W 210904 11:23:38 app:244] Stopping http server
[W 210904 11:23:41 app:231] Server Config file: localhost.yml
[W 210904 11:23:41 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210904 11:23:41 app:233] Server Running on http://0.0.0.0:6677
[W 210904 11:23:43 <frozen template>:44] Docs Running on http://0.0.0.0:6677/docs
[E 210904 11:24:33 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 79, in get
        self.ssdb.set("a", 1)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/ssdb/client.py", line 298, in set
        return self.execute_command('set', name, value)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/ssdb/client.py", line 231, in execute_command
        connection.send_command(*args)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/ssdb/connection.py", line 404, in send_command
        self.send_packed_command(self.pack_command(*args))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/ssdb/connection.py", line 383, in send_packed_command
        self._sock.sendall(item)
    TypeError: a bytes-like object is required, not 'str'
[W 210904 11:24:33 base:81] 时间：2021-09-04 11:24:33
[W 210904 11:24:33 base:87] a bytes-like object is required, not 'str'
[E 210904 11:24:33 web:2105] 500 GET /demo?a=1 (127.0.0.1) 49720.10ms
[W 210904 11:35:34 app:231] Server Config file: localhost.yml
[W 210904 11:35:34 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210904 11:35:34 app:233] Server Running on http://0.0.0.0:6677
[W 210904 11:35:36 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210904 11:36:08 base:99] 200 GET /demo?a=1 (127.0.0.1) 29053.91ms
[W 210904 11:37:17 base:99] 200 GET /demo?a=1 (127.0.0.1) 58855.34ms
[W 210904 11:37:17 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (69.29s), closing
[W 210904 11:37:17 writer:247] [127.0.0.1:4150] connection closed
[E 210904 11:37:17 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210904 11:37:17 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210904 11:37:17 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210904 11:39:06 app:244] Stopping http server
[W 210904 11:39:09 app:231] Server Config file: localhost.yml
[W 210904 11:39:09 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210904 11:39:09 app:233] Server Running on http://0.0.0.0:6677
[W 210904 11:39:11 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210904 13:41:02 app:231] Server Config file: localhost.yml
[W 210904 13:41:02 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210904 13:41:02 app:233] Server Running on http://0.0.0.0:6677
[W 210904 13:41:03 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210904 13:41:19 app:231] Server Config file: localhost.yml
[W 210904 13:41:19 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210904 13:41:19 app:233] Server Running on http://0.0.0.0:6677
[W 210904 13:41:20 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210904 13:47:00 app:231] Server Config file: localhost.yml
[W 210904 13:47:00 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210904 13:47:00 app:233] Server Running on http://0.0.0.0:6677
[W 210904 13:47:01 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210904 13:47:37 app:244] Stopping http server
[W 210904 13:47:40 app:231] Server Config file: localhost.yml
[W 210904 13:47:40 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210904 13:47:40 app:233] Server Running on http://0.0.0.0:6677
[W 210904 13:47:42 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210906 09:30:49 app:231] Server Config file: localhost.yml
[W 210906 09:30:49 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210906 09:30:49 app:233] Server Running on http://0.0.0.0:6677
[W 210906 09:30:50 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[E 210906 09:30:59 base_pymysql:163] select * from demo where name=:name
[E 210906 09:30:59 base_pymysql:164] (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':name' at line 1")
[E 210906 10:32:20 base_pymysql:163] select * from demo where name=:name
[E 210906 10:32:20 base_pymysql:164] (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':name' at line 1")
[W 210906 10:32:20 base:99] 200 GET /demo?a=1 (127.0.0.1) 3689312.89ms
[W 210906 10:32:20 app:244] Stopping http server
[W 210906 10:40:30 app:231] Server Config file: localhost.yml
[W 210906 10:40:30 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210906 10:40:30 app:233] Server Running on http://0.0.0.0:6677
[W 210906 10:40:32 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210906 10:40:47 base:99] 200 GET /demo?a=1 (127.0.0.1) 13374.71ms
[W 210906 10:48:14 app:231] Server Config file: localhost.yml
[W 210906 10:48:14 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210906 10:48:14 app:233] Server Running on http://0.0.0.0:6677
[W 210906 10:48:15 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210907 11:58:23 app:231] Server Config file: localhost.yml
[W 210907 11:58:23 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210907 11:58:23 app:233] Server Running on http://0.0.0.0:6677
[W 210907 11:58:25 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210907 11:58:49 base:99] 200 GET /demo?a=1 (127.0.0.1) 9378.47ms
[W 210907 11:59:00 app:244] Stopping http server
[W 210907 13:39:26 app:231] Server Config file: localhost.yml
[W 210907 13:39:26 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210907 13:39:26 app:233] Server Running on http://0.0.0.0:6677
[W 210907 13:39:28 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210907 13:40:57 app:231] Server Config file: localhost.yml
[W 210907 13:40:57 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210907 13:40:57 app:233] Server Running on http://0.0.0.0:6677
[W 210907 13:40:58 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210907 13:43:29 base:99] 200 GET /demo?a=1 (127.0.0.1) 149281.83ms
[W 210907 13:43:29 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (151.92s), closing
[W 210907 13:43:29 writer:247] [127.0.0.1:4150] connection closed
[E 210907 13:43:29 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210907 13:43:29 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210907 13:43:29 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210907 13:48:02 base:99] 200 GET /demo?a=1 (127.0.0.1) 272223.03ms
[W 210907 13:50:14 app:244] Stopping http server
[W 210907 13:51:21 app:231] Server Config file: localhost.yml
[W 210907 13:51:21 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210907 13:51:21 app:233] Server Running on http://0.0.0.0:6677
[W 210907 13:51:22 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210907 14:15:42 app:231] Server Config file: localhost.yml
[W 210907 14:15:42 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210907 14:15:42 app:233] Server Running on http://0.0.0.0:6677
[W 210907 14:15:44 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210907 14:16:32 base:99] 200 GET /demo?a=1 (127.0.0.1) 43471.55ms
[W 210907 14:20:53 app:231] Server Config file: localhost.yml
[W 210907 14:20:53 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210907 14:20:53 app:233] Server Running on http://0.0.0.0:6677
[W 210907 14:20:55 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210907 14:21:18 base:99] 200 GET /demo?a=1 (127.0.0.1) 21725.45ms
[W 210907 14:26:32 app:244] Stopping http server
[W 210907 14:40:08 app:231] Server Config file: localhost.yml
[W 210907 14:40:08 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210907 14:40:08 app:233] Server Running on http://0.0.0.0:6677
[W 210907 14:40:10 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210907 14:41:09 base:99] 200 GET /demo?a=1 (127.0.0.1) 56694.52ms
[W 210907 14:41:09 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (60.33s), closing
[W 210907 14:41:09 writer:247] [127.0.0.1:4150] connection closed
[E 210907 14:41:09 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210907 14:41:09 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210907 14:41:09 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210907 14:45:17 app:244] Stopping http server
[W 210907 14:45:28 app:231] Server Config file: localhost.yml
[W 210907 14:45:28 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210907 14:45:28 app:233] Server Running on http://0.0.0.0:6677
[W 210907 14:45:30 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210907 14:46:00 app:244] Stopping http server
[W 210907 14:49:40 app:231] Server Config file: localhost.yml
[W 210907 14:49:40 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210907 14:49:40 app:233] Server Running on http://0.0.0.0:6677
[W 210907 14:49:42 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210907 14:50:21 app:231] Server Config file: localhost.yml
[W 210907 14:50:21 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210907 14:50:21 app:233] Server Running on http://0.0.0.0:6677
[W 210907 14:50:23 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210907 14:50:38 app:231] Server Config file: localhost.yml
[W 210907 14:50:38 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210907 14:50:38 app:233] Server Running on http://0.0.0.0:6677
[W 210907 14:50:40 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210907 14:56:10 app:231] Server Config file: localhost.yml
[W 210907 14:56:10 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210907 14:56:10 app:233] Server Running on http://0.0.0.0:6677
[W 210907 14:56:11 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210907 14:57:04 base:99] 200 GET /demo?a=1 (127.0.0.1) 37116.20ms
[W 210907 14:58:06 app:231] Server Config file: localhost.yml
[W 210907 14:58:06 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210907 14:58:06 app:233] Server Running on http://0.0.0.0:6677
[W 210907 14:58:08 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210907 15:01:46 app:231] Server Config file: localhost.yml
[W 210907 15:01:46 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210907 15:01:46 app:233] Server Running on http://0.0.0.0:6677
[W 210907 15:01:48 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210907 15:02:09 app:244] Stopping http server
[W 210907 15:02:13 app:231] Server Config file: localhost.yml
[W 210907 15:02:13 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210907 15:02:13 app:233] Server Running on http://0.0.0.0:6677
[W 210907 15:02:14 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210907 15:02:31 base:99] 200 GET /demo?a=1 (127.0.0.1) 15205.86ms
[W 210908 17:57:10 app:231] Server Config file: localhost.yml
[W 210908 17:57:10 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 17:57:10 app:233] Server Running on http://0.0.0.0:6677
[W 210908 17:57:11 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210908 17:59:26 app:231] Server Config file: localhost.yml
[W 210908 17:59:26 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 17:59:26 app:233] Server Running on http://0.0.0.0:6677
[W 210908 17:59:28 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210908 18:00:05 base:99] 200 GET /demo?a=1 (127.0.0.1) 37054.50ms
[W 210908 18:34:01 app:231] Server Config file: localhost.yml
[W 210908 18:34:01 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 18:34:01 app:233] Server Running on http://0.0.0.0:6677
[W 210908 18:34:03 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210908 18:35:42 base:99] 200 GET /demo?a=1 (127.0.0.1) 97727.84ms
[W 210908 18:35:42 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (100.45s), closing
[W 210908 18:35:42 writer:247] [127.0.0.1:4150] connection closed
[E 210908 18:35:42 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210908 18:35:42 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210908 18:35:42 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210908 18:35:57 app:244] Stopping http server
[W 210908 18:36:00 app:231] Server Config file: localhost.yml
[W 210908 18:36:00 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 18:36:00 app:233] Server Running on http://0.0.0.0:6677
[W 210908 18:36:02 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210908 18:37:12 app:231] Server Config file: localhost.yml
[W 210908 18:37:12 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 18:37:12 app:233] Server Running on http://0.0.0.0:6677
[W 210908 18:37:13 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210908 18:39:57 app:231] Server Config file: localhost.yml
[W 210908 18:39:57 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 18:39:57 app:233] Server Running on http://0.0.0.0:6677
[W 210908 18:39:59 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210908 18:40:03 base:99] 200 GET /demo?a=1 (127.0.0.1) 3743.84ms
[W 210908 18:42:06 app:231] Server Config file: localhost.yml
[W 210908 18:42:06 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 18:42:06 app:233] Server Running on http://0.0.0.0:6677
[W 210908 18:42:08 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210908 18:43:45 app:231] Server Config file: localhost.yml
[W 210908 18:43:45 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 18:43:45 app:233] Server Running on http://0.0.0.0:6677
[W 210908 18:43:46 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210908 18:48:31 app:231] Server Config file: localhost.yml
[W 210908 18:48:31 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 18:48:31 app:233] Server Running on http://0.0.0.0:6677
[W 210908 18:48:33 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210908 18:52:49 app:231] Server Config file: localhost.yml
[W 210908 18:52:49 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 18:52:49 app:233] Server Running on http://0.0.0.0:6677
[W 210908 18:52:51 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210908 19:00:00 app:231] Server Config file: localhost.yml
[W 210908 19:00:00 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 19:00:00 app:233] Server Running on http://0.0.0.0:6677
[W 210908 19:00:02 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210908 19:00:34 app:231] Server Config file: localhost.yml
[W 210908 19:00:34 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 19:00:34 app:233] Server Running on http://0.0.0.0:6677
[W 210908 19:03:19 app:231] Server Config file: localhost.yml
[W 210908 19:03:19 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 19:03:19 app:233] Server Running on http://0.0.0.0:6677
[W 210908 19:03:42 app:231] Server Config file: localhost.yml
[W 210908 19:03:42 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 19:03:42 app:233] Server Running on http://0.0.0.0:6677
[W 210908 19:04:10 base:99] 200 GET /demo?a=1 (127.0.0.1) 23621.63ms
[W 210908 19:05:23 base:99] 200 GET /demo?a=1 (127.0.0.1) 71006.09ms
[W 210908 19:05:23 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (101.03s), closing
[W 210908 19:05:23 writer:247] [127.0.0.1:4150] connection closed
[E 210908 19:05:23 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210908 19:05:23 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210908 19:05:23 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210908 19:05:25 base:99] 200 GET /demo?a=1 (127.0.0.1) 1282.79ms
[W 210908 19:13:55 app:231] Server Config file: localhost.yml
[W 210908 19:13:55 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 19:13:55 app:233] Server Running on http://0.0.0.0:6677
[W 210908 19:14:39 app:231] Server Config file: localhost.yml
[W 210908 19:14:39 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 19:14:39 app:233] Server Running on http://0.0.0.0:6677
[W 210908 19:14:49 base:99] 200 GET /demo?a=1 (127.0.0.1) 6947.60ms
[W 210908 19:24:29 app:231] Server Config file: localhost.yml
[W 210908 19:24:29 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 19:24:29 app:233] Server Running on http://0.0.0.0:6677
[W 210908 19:25:39 app:231] Server Config file: localhost.yml
[W 210908 19:25:39 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 19:25:39 app:233] Server Running on http://0.0.0.0:6677
[E 210908 19:27:36 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 95, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 36, in get_demo
        datas = cls.find({"uid": 102}, fields={"uid": 1}, skip=1, limit=10, sort={"uid": 1})
      File "/Users/lcylln/www/lcyframepy3/lcyframe/base.py", line 443, in find
        cursor = cursor.sort(sort)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/cursor.py", line 762, in sort
        keys = helpers._index_list(key_or_list, direction)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/helpers.py", line 74, in _index_list
        raise TypeError("if no direction is specified, "
    TypeError: if no direction is specified, key_or_list must be an instance of list
[W 210908 19:27:36 base:81] 时间：2021-09-08 19:27:36
[W 210908 19:27:36 base:87] if no direction is specified, key_or_list must be an instance of list
[E 210908 19:27:36 web:2105] 500 GET /demo?a=1 (127.0.0.1) 113833.11ms
[W 210908 19:27:38 app:231] Server Config file: localhost.yml
[W 210908 19:27:38 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 19:27:38 app:233] Server Running on http://0.0.0.0:6677
[W 210908 19:27:43 app:231] Server Config file: localhost.yml
[W 210908 19:27:43 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 19:27:43 app:233] Server Running on http://0.0.0.0:6677
[W 210908 19:28:50 base:99] 200 GET /demo?a=1 (127.0.0.1) 64106.28ms
[W 210908 19:28:50 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (66.40s), closing
[W 210908 19:28:50 writer:247] [127.0.0.1:4150] connection closed
[E 210908 19:28:50 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210908 19:28:50 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210908 19:28:50 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210908 19:35:00 app:231] Server Config file: localhost.yml
[W 210908 19:35:00 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 19:35:00 app:233] Server Running on http://0.0.0.0:6677
[W 210908 19:35:58 base:99] 200 GET /demo?a=1 (127.0.0.1) 55523.27ms
[W 210908 19:56:28 app:231] Server Config file: localhost.yml
[W 210908 19:56:28 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 19:56:28 app:233] Server Running on http://0.0.0.0:6677
[W 210908 20:05:44 app:231] Server Config file: localhost.yml
[W 210908 20:05:44 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:05:44 app:233] Server Running on http://0.0.0.0:6677
[W 210908 20:09:01 base:99] 200 GET /demo?a=1 (127.0.0.1) 194314.87ms
[W 210908 20:09:58 app:231] Server Config file: localhost.yml
[W 210908 20:09:58 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:09:58 app:233] Server Running on http://0.0.0.0:6677
[W 210908 20:11:14 base:99] 200 GET /demo?a=1 (127.0.0.1) 65558.10ms
[W 210908 20:11:14 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (75.20s), closing
[W 210908 20:11:14 writer:247] [127.0.0.1:4150] connection closed
[E 210908 20:11:14 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210908 20:11:14 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210908 20:11:14 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210908 20:11:46 base:99] 200 GET /demo?a=1 (127.0.0.1) 29351.88ms
[W 210908 20:11:46 app:244] Stopping http server
[W 210908 20:11:50 app:231] Server Config file: localhost.yml
[W 210908 20:11:50 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:11:50 app:233] Server Running on http://0.0.0.0:6677
[W 210908 20:12:46 base:99] 200 GET /demo?a=1 (127.0.0.1) 55155.98ms
[W 210908 20:12:48 app:231] Server Config file: localhost.yml
[W 210908 20:12:48 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:12:48 app:233] Server Running on http://0.0.0.0:6677
[W 210908 20:12:52 app:231] Server Config file: localhost.yml
[W 210908 20:12:52 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:12:52 app:233] Server Running on http://0.0.0.0:6677
[W 210908 20:13:54 base:99] 200 GET /demo?a=1 (127.0.0.1) 60530.91ms
[W 210908 20:13:57 app:231] Server Config file: localhost.yml
[W 210908 20:13:57 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:13:57 app:233] Server Running on http://0.0.0.0:6677
[W 210908 20:14:04 app:231] Server Config file: localhost.yml
[W 210908 20:14:04 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:14:04 app:233] Server Running on http://0.0.0.0:6677
[W 210908 20:25:56 app:231] Server Config file: localhost.yml
[W 210908 20:25:56 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:25:56 app:233] Server Running on http://0.0.0.0:6677
[W 210908 20:26:33 app:231] Server Config file: localhost.yml
[W 210908 20:26:33 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:26:33 app:233] Server Running on http://0.0.0.0:6677
[W 210908 20:28:11 app:231] Server Config file: localhost.yml
[W 210908 20:28:11 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:28:11 app:233] Server Running on http://0.0.0.0:6677
[W 210908 20:30:51 base:99] 200 GET /demo?a=1 (127.0.0.1) 148200.52ms
[W 210908 20:30:51 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (159.77s), closing
[W 210908 20:30:51 writer:247] [127.0.0.1:4150] connection closed
[E 210908 20:30:51 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210908 20:30:51 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210908 20:30:51 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210908 20:31:27 app:244] Stopping http server
[W 210908 20:31:31 app:231] Server Config file: localhost.yml
[W 210908 20:31:31 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:31:31 app:233] Server Running on http://0.0.0.0:6677
[W 210908 20:31:50 app:244] Stopping http server
[W 210908 20:31:53 app:231] Server Config file: localhost.yml
[W 210908 20:31:53 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:31:53 app:233] Server Running on http://0.0.0.0:6677
[W 210908 20:32:05 base:99] 200 GET /demo?a=1 (127.0.0.1) 9553.45ms
[W 210908 20:32:56 app:231] Server Config file: localhost.yml
[W 210908 20:32:56 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:32:56 app:233] Server Running on http://0.0.0.0:6677
[W 210908 20:33:18 app:231] Server Config file: localhost.yml
[W 210908 20:33:18 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:33:18 app:233] Server Running on http://0.0.0.0:6677
[E 210908 20:34:12 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 95, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 51, in get_demo
        update_state = cls.update({"yyy": 203}, {"$inc": {"xxx": 1}})
      File "/Users/lcylln/www/lcyframepy3/lcyframe/base.py", line 551, in update
        return result.get('nModified') if check_updated_state else result
    AttributeError: 'UpdateResult' object has no attribute 'get'
[W 210908 20:34:12 base:81] 时间：2021-09-08 20:34:12
[W 210908 20:34:12 base:87] 'UpdateResult' object has no attribute 'get'
[E 210908 20:34:12 web:2105] 500 GET /demo?a=1 (127.0.0.1) 51969.96ms
[W 210908 20:36:49 app:244] Stopping http server
[W 210908 20:37:07 app:231] Server Config file: localhost.yml
[W 210908 20:37:07 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:37:07 app:233] Server Running on http://0.0.0.0:6677
[W 210908 20:38:25 base:99] 200 GET /demo?a=1 (127.0.0.1) 76149.70ms
[W 210908 20:38:27 app:231] Server Config file: localhost.yml
[W 210908 20:38:27 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:38:27 app:233] Server Running on http://0.0.0.0:6677
[W 210908 20:38:46 app:231] Server Config file: localhost.yml
[W 210908 20:38:46 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:38:46 app:233] Server Running on http://0.0.0.0:6677
[W 210908 20:39:09 base:99] 200 GET /demo?a=1 (127.0.0.1) 20595.52ms
[W 210908 20:39:23 base:99] 200 GET /demo?a=1 (127.0.0.1) 12401.42ms
[W 210908 20:57:28 app:231] Server Config file: localhost.yml
[W 210908 20:57:28 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 20:57:28 app:233] Server Running on http://0.0.0.0:6677
[W 210908 21:25:38 app:231] Server Config file: localhost.yml
[W 210908 21:25:38 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 21:25:38 app:233] Server Running on http://0.0.0.0:6677
[E 210908 21:27:46 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 95, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 55, in get_demo
        result = cls.find_one_and_replace({"yyy": 300}, {"xxx": 1}, return_document=True)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/base.py", line 574, in find_one_and_replace
        d = cls.dbo(sql=spec, shard_key_value=shard_key_value).find_one_and_replace(spec, docs, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 3121, in find_one_and_replace
        return self.__find_and_modify(filter, projection,
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 2971, in __find_and_modify
        return self.__database.client._retryable_write(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1498, in _retryable_write
        return self._retry_with_session(retryable, func, s, None)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1384, in _retry_with_session
        return self._retry_internal(retryable, func, session, bulk)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1416, in _retry_internal
        return func(session, sock_info, retryable)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 2961, in _find_and_modify
        out = self._command(sock_info, cmd,
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 238, in _command
        return sock_info.command(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/pool.py", line 683, in command
        return command(self, dbname, spec, slave_ok,
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/network.py", line 159, in command
        helpers._check_command_response(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/helpers.py", line 164, in _check_command_response
        raise OperationFailure(errmsg, code, response, max_wire_version)
    pymongo.errors.OperationFailure: The dollar ($) prefixed field '$set' in '$set' is not valid for storage., full error: {'ok': 0.0, 'errmsg': "The dollar ($) prefixed field '$set' in '$set' is not valid for storage.", 'code': 52, 'codeName': 'DollarPrefixedFieldName'}
[W 210908 21:27:46 base:81] 时间：2021-09-08 21:27:46
[W 210908 21:27:46 base:87] The dollar ($) prefixed field '$set' in '$set' is not valid for storage., full error: {'ok': 0.0, 'errmsg': "The dollar ($) prefixed field '$set' in '$set' is not valid for storage.", 'code': 52, 'codeName': 'DollarPrefixedFieldName'}
[E 210908 21:27:46 web:2105] 500 GET /demo?a=1 (127.0.0.1) 124920.59ms
[W 210908 21:27:46 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (127.72s), closing
[W 210908 21:27:46 writer:247] [127.0.0.1:4150] connection closed
[E 210908 21:27:46 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210908 21:27:46 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210908 21:27:48 app:244] Stopping http server
[W 210908 21:27:52 app:231] Server Config file: localhost.yml
[W 210908 21:27:52 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 21:27:52 app:233] Server Running on http://0.0.0.0:6677
[W 210908 21:27:56 app:244] Stopping http server
[W 210908 21:28:00 app:231] Server Config file: localhost.yml
[W 210908 21:28:00 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 21:28:00 app:233] Server Running on http://0.0.0.0:6677
[E 210908 21:29:32 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 95, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 55, in get_demo
        result = cls.find_one_and_replace({"yyy": 300}, {"xxx": 1}, return_document=True)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/base.py", line 574, in find_one_and_replace
        d = cls.dbo(sql=spec, shard_key_value=shard_key_value).find_one_and_replace(spec, docs, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 3121, in find_one_and_replace
        return self.__find_and_modify(filter, projection,
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 2971, in __find_and_modify
        return self.__database.client._retryable_write(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1498, in _retryable_write
        return self._retry_with_session(retryable, func, s, None)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1384, in _retry_with_session
        return self._retry_internal(retryable, func, session, bulk)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1416, in _retry_internal
        return func(session, sock_info, retryable)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 2961, in _find_and_modify
        out = self._command(sock_info, cmd,
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 238, in _command
        return sock_info.command(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/pool.py", line 683, in command
        return command(self, dbname, spec, slave_ok,
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/network.py", line 159, in command
        helpers._check_command_response(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/helpers.py", line 164, in _check_command_response
        raise OperationFailure(errmsg, code, response, max_wire_version)
    pymongo.errors.OperationFailure: The dollar ($) prefixed field '$set' in '$set' is not valid for storage., full error: {'ok': 0.0, 'errmsg': "The dollar ($) prefixed field '$set' in '$set' is not valid for storage.", 'code': 52, 'codeName': 'DollarPrefixedFieldName'}
[W 210908 21:29:32 base:81] 时间：2021-09-08 21:29:32
[W 210908 21:29:32 base:87] The dollar ($) prefixed field '$set' in '$set' is not valid for storage., full error: {'ok': 0.0, 'errmsg': "The dollar ($) prefixed field '$set' in '$set' is not valid for storage.", 'code': 52, 'codeName': 'DollarPrefixedFieldName'}
[E 210908 21:29:32 web:2105] 500 GET /demo?a=1 (127.0.0.1) 91509.33ms
[W 210908 21:29:32 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (92.91s), closing
[W 210908 21:29:32 writer:247] [127.0.0.1:4150] connection closed
[E 210908 21:29:32 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210908 21:29:32 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210908 21:29:32 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210908 21:29:57 app:231] Server Config file: localhost.yml
[W 210908 21:29:57 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 21:29:57 app:233] Server Running on http://0.0.0.0:6677
[W 210908 21:33:51 base:99] 200 GET /demo?a=1 (127.0.0.1) 230335.97ms
[W 210908 21:39:14 app:231] Server Config file: localhost.yml
[W 210908 21:39:14 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 21:39:14 app:233] Server Running on http://0.0.0.0:6677
[W 210908 21:43:26 base:99] 200 GET /demo?a=1 (127.0.0.1) 248294.10ms
[W 210908 21:43:26 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (251.87s), closing
[W 210908 21:43:26 writer:247] [127.0.0.1:4150] connection closed
[E 210908 21:43:26 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210908 21:43:26 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210908 21:43:26 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210908 21:50:56 app:231] Server Config file: localhost.yml
[W 210908 21:50:56 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 21:50:56 app:233] Server Running on http://0.0.0.0:6677
[W 210908 21:52:27 app:231] Server Config file: localhost.yml
[W 210908 21:52:27 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 21:52:27 app:233] Server Running on http://0.0.0.0:6677
[W 210908 21:55:50 app:231] Server Config file: localhost.yml
[W 210908 21:55:50 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 21:55:50 app:233] Server Running on http://0.0.0.0:6677
[W 210908 21:56:28 app:231] Server Config file: localhost.yml
[W 210908 21:56:28 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 21:56:28 app:233] Server Running on http://0.0.0.0:6677
[W 210908 22:06:21 base:99] 200 GET /demo?a=1 (127.0.0.1) 590487.46ms
[W 210908 22:06:27 app:231] Server Config file: localhost.yml
[W 210908 22:06:27 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 22:06:27 app:233] Server Running on http://0.0.0.0:6677
[W 210908 22:09:37 app:231] Server Config file: localhost.yml
[W 210908 22:09:37 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 22:09:37 app:233] Server Running on http://0.0.0.0:6677
[W 210908 22:09:45 app:231] Server Config file: localhost.yml
[W 210908 22:09:45 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 22:09:45 app:233] Server Running on http://0.0.0.0:6677
[E 210908 22:09:48 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 95, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 61, in get_demo
        result = cls.find_one_and_update({"yyy": 400}, sort=[("a", 1)], return_document=True)
    TypeError: find_one_and_update() missing 1 required positional argument: 'docs'
[W 210908 22:09:48 base:81] 时间：2021-09-08 22:09:48
[W 210908 22:09:48 base:87] find_one_and_update() missing 1 required positional argument: 'docs'
[E 210908 22:09:48 web:2105] 500 GET /demo?a=1 (127.0.0.1) 10.00ms
[W 210908 22:10:04 app:244] Stopping http server
[W 210908 22:10:07 app:231] Server Config file: localhost.yml
[W 210908 22:10:07 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 22:10:07 app:233] Server Running on http://0.0.0.0:6677
[E 210908 22:10:07 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 95, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 61, in get_demo
        result = cls.find_one_and_update({"yyy": 400}, sort=[("a", 1)], return_document=True)
    TypeError: find_one_and_update() missing 1 required positional argument: 'docs'
[W 210908 22:10:07 base:81] 时间：2021-09-08 22:10:07
[W 210908 22:10:07 base:87] find_one_and_update() missing 1 required positional argument: 'docs'
[E 210908 22:10:07 web:2105] 500 GET /demo?a=1 (127.0.0.1) 8.75ms
[E 210908 22:10:10 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 95, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 61, in get_demo
        result = cls.find_one_and_update({"yyy": 400}, sort=[("a", 1)], return_document=True)
    TypeError: find_one_and_update() missing 1 required positional argument: 'docs'
[W 210908 22:10:10 base:81] 时间：2021-09-08 22:10:10
[W 210908 22:10:10 base:87] find_one_and_update() missing 1 required positional argument: 'docs'
[E 210908 22:10:10 web:2105] 500 GET /demo?a=1 (127.0.0.1) 6.46ms
[W 210908 22:10:21 app:244] Stopping http server
[W 210908 22:10:24 app:231] Server Config file: localhost.yml
[W 210908 22:10:24 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 22:10:24 app:233] Server Running on http://0.0.0.0:6677
[E 210908 22:11:20 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 95, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 61, in get_demo
        result = cls.find_one_and_delete({"yyy": 400}, sort=[("a", 1)], return_document=True)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/base.py", line 652, in find_one_and_delete
        d = cls.dbo(sql=spec, shard_key_value=shard_key_value).find_one_and_delete(spec, docs, **kwargs)
    NameError: name 'docs' is not defined
[W 210908 22:11:20 base:81] 时间：2021-09-08 22:11:20
[W 210908 22:11:20 base:87] name 'docs' is not defined
[E 210908 22:11:20 web:2105] 500 GET /demo?a=1 (127.0.0.1) 54260.86ms
[W 210908 22:11:27 app:244] Stopping http server
[W 210908 22:11:30 app:231] Server Config file: localhost.yml
[W 210908 22:11:30 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 22:11:30 app:233] Server Running on http://0.0.0.0:6677
[E 210908 22:12:01 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 95, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 61, in get_demo
        result = cls.find_one_and_delete({"yyy": 400}, sort=[("a", 1)], return_document=True)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/base.py", line 652, in find_one_and_delete
        d = cls.dbo(sql=spec, shard_key_value=shard_key_value).find_one_and_delete(spec, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 3042, in find_one_and_delete
        return self.__find_and_modify(filter, projection, sort,
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 2971, in __find_and_modify
        return self.__database.client._retryable_write(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1498, in _retryable_write
        return self._retry_with_session(retryable, func, s, None)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1384, in _retry_with_session
        return self._retry_internal(retryable, func, session, bulk)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1416, in _retry_internal
        return func(session, sock_info, retryable)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 2961, in _find_and_modify
        out = self._command(sock_info, cmd,
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 238, in _command
        return sock_info.command(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/pool.py", line 683, in command
        return command(self, dbname, spec, slave_ok,
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/network.py", line 159, in command
        helpers._check_command_response(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/helpers.py", line 164, in _check_command_response
        raise OperationFailure(errmsg, code, response, max_wire_version)
    pymongo.errors.OperationFailure: Cannot specify both new=true and remove=true; 'remove' always returns the deleted document, full error: {'ok': 0.0, 'errmsg': "Cannot specify both new=true and remove=true; 'remove' always returns the deleted document", 'code': 9, 'codeName': 'FailedToParse'}
[W 210908 22:12:01 base:81] 时间：2021-09-08 22:12:01
[W 210908 22:12:01 base:87] Cannot specify both new=true and remove=true; 'remove' always returns the deleted document, full error: {'ok': 0.0, 'errmsg': "Cannot specify both new=true and remove=true; 'remove' always returns the deleted document", 'code': 9, 'codeName': 'FailedToParse'}
[E 210908 22:12:01 web:2105] 500 GET /demo?a=1 (127.0.0.1) 22887.78ms
[E 210908 22:14:35 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 95, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 61, in get_demo
        result = cls.find_one_and_delete({"yyy": 400}, sort=[("a", 1)])
      File "/Users/lcylln/www/lcyframepy3/lcyframe/base.py", line 652, in find_one_and_delete
        d = cls.dbo(sql=spec, shard_key_value=shard_key_value).find_one_and_delete(spec, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 3042, in find_one_and_delete
        return self.__find_and_modify(filter, projection, sort,
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 2971, in __find_and_modify
        return self.__database.client._retryable_write(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1498, in _retryable_write
        return self._retry_with_session(retryable, func, s, None)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1384, in _retry_with_session
        return self._retry_internal(retryable, func, session, bulk)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1416, in _retry_internal
        return func(session, sock_info, retryable)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 2961, in _find_and_modify
        out = self._command(sock_info, cmd,
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 238, in _command
        return sock_info.command(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/pool.py", line 683, in command
        return command(self, dbname, spec, slave_ok,
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/network.py", line 159, in command
        helpers._check_command_response(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/helpers.py", line 164, in _check_command_response
        raise OperationFailure(errmsg, code, response, max_wire_version)
    pymongo.errors.OperationFailure: Cannot specify both new=true and remove=true; 'remove' always returns the deleted document, full error: {'ok': 0.0, 'errmsg': "Cannot specify both new=true and remove=true; 'remove' always returns the deleted document", 'code': 9, 'codeName': 'FailedToParse'}
[W 210908 22:14:35 base:81] 时间：2021-09-08 22:14:35
[W 210908 22:14:35 base:87] Cannot specify both new=true and remove=true; 'remove' always returns the deleted document, full error: {'ok': 0.0, 'errmsg': "Cannot specify both new=true and remove=true; 'remove' always returns the deleted document", 'code': 9, 'codeName': 'FailedToParse'}
[E 210908 22:14:35 web:2105] 500 GET /demo?a=1 (127.0.0.1) 131340.50ms
[W 210908 22:14:37 app:231] Server Config file: localhost.yml
[W 210908 22:14:37 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210908 22:14:37 app:233] Server Running on http://0.0.0.0:6677
[W 210909 11:40:21 app:231] Server Config file: localhost.yml
[W 210909 11:40:21 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 11:40:21 app:233] Server Running on http://0.0.0.0:6677
[W 210909 15:12:40 app:231] Server Config file: localhost.yml
[W 210909 15:12:40 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 15:12:40 app:233] Server Running on http://0.0.0.0:6677
[W 210909 15:19:33 app:231] Server Config file: localhost.yml
[W 210909 15:19:33 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 15:19:33 app:233] Server Running on http://0.0.0.0:6677
[W 210909 15:19:46 app:231] Server Config file: localhost.yml
[W 210909 15:19:46 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 15:19:46 app:233] Server Running on http://0.0.0.0:6677
[W 210909 15:20:01 app:231] Server Config file: localhost.yml
[W 210909 15:20:01 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 15:20:01 app:233] Server Running on http://0.0.0.0:6677
[W 210909 15:20:44 app:231] Server Config file: localhost.yml
[W 210909 15:20:44 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 15:20:44 app:233] Server Running on http://0.0.0.0:6677
[W 210909 15:20:57 app:231] Server Config file: localhost.yml
[W 210909 15:20:57 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 15:20:57 app:233] Server Running on http://0.0.0.0:6677
[W 210909 15:21:12 app:231] Server Config file: localhost.yml
[W 210909 15:21:12 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 15:21:12 app:233] Server Running on http://0.0.0.0:6677
[W 210909 15:21:27 app:231] Server Config file: localhost.yml
[W 210909 15:21:27 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 15:21:27 app:233] Server Running on http://0.0.0.0:6677
[W 210909 15:23:19 app:231] Server Config file: localhost.yml
[W 210909 15:23:19 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 15:23:19 app:233] Server Running on http://0.0.0.0:6677
[W 210909 15:24:34 app:231] Server Config file: localhost.yml
[W 210909 15:24:34 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 15:24:34 app:233] Server Running on http://0.0.0.0:6677
[W 210909 15:25:16 app:231] Server Config file: localhost.yml
[W 210909 15:25:16 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 15:25:16 app:233] Server Running on http://0.0.0.0:6677
[W 210909 15:25:54 app:231] Server Config file: localhost.yml
[W 210909 15:25:54 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 15:25:54 app:233] Server Running on http://0.0.0.0:6677
[W 210909 15:26:45 app:231] Server Config file: localhost.yml
[W 210909 15:26:45 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 15:26:45 app:233] Server Running on http://0.0.0.0:6677
[W 210909 15:58:26 app:231] Server Config file: localhost.yml
[W 210909 15:58:26 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 15:58:26 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:07:59 app:231] Server Config file: localhost.yml
[W 210909 17:07:59 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:07:59 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:08:51 app:231] Server Config file: localhost.yml
[W 210909 17:08:51 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:08:51 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:10:23 app:231] Server Config file: localhost.yml
[W 210909 17:10:23 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:10:23 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:10:54 base:99] 200 GET /demo?a=1 (127.0.0.1) 28284.49ms
[W 210909 17:11:31 app:231] Server Config file: localhost.yml
[W 210909 17:11:31 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:11:31 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:11:50 base:99] 200 GET /demo?a=1 (127.0.0.1) 16309.55ms
[W 210909 17:21:11 app:231] Server Config file: localhost.yml
[W 210909 17:21:11 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:21:11 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:29:14 app:231] Server Config file: localhost.yml
[W 210909 17:29:14 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:29:14 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:30:08 app:231] Server Config file: localhost.yml
[W 210909 17:30:08 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:30:08 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:31:16 app:231] Server Config file: localhost.yml
[W 210909 17:31:16 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:31:16 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:32:04 base:99] 200 GET /demo?a=1 (127.0.0.1) 46560.75ms
[W 210909 17:32:15 app:244] Stopping http server
[W 210909 17:32:19 app:231] Server Config file: localhost.yml
[W 210909 17:32:19 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:32:19 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:32:43 base:99] 200 GET /demo?a=1 (127.0.0.1) 22605.29ms
[W 210909 17:33:08 app:244] Stopping http server
[W 210909 17:33:11 app:231] Server Config file: localhost.yml
[W 210909 17:33:11 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:33:11 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:34:11 app:231] Server Config file: localhost.yml
[W 210909 17:34:11 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:34:11 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:35:22 base:99] 200 GET /demo?a=1 (127.0.0.1) 69842.53ms
[W 210909 17:35:22 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (71.49s), closing
[W 210909 17:35:22 writer:247] [127.0.0.1:4150] connection closed
[E 210909 17:35:22 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210909 17:35:22 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210909 17:35:22 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210909 17:36:19 app:244] Stopping http server
[W 210909 17:36:23 app:231] Server Config file: localhost.yml
[W 210909 17:36:23 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:36:23 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:38:09 app:231] Server Config file: localhost.yml
[W 210909 17:38:09 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:38:09 app:233] Server Running on http://0.0.0.0:6677
[E 210909 17:38:39 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 95, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 66, in get_demo
        result = cls.distinct({"a": 2}, "yyy", **{"maxTimeMS": 5000})
      File "/Users/lcylln/www/lcyframepy3/lcyframe/base.py", line 496, in distinct
        result = list(map(cls.__parse_oid, result))
      File "/Users/lcylln/www/lcyframepy3/lcyframe/base.py", line 774, in __parse_oid
        if d and isinstance(d.get("_id"), ObjectId):
    AttributeError: 'float' object has no attribute 'get'
[W 210909 17:38:39 base:81] 时间：2021-09-09 17:38:39
[W 210909 17:38:39 base:87] 'float' object has no attribute 'get'
[E 210909 17:38:39 web:2105] 500 GET /demo?a=1 (127.0.0.1) 4287.47ms
[W 210909 17:40:02 app:244] Stopping http server
[W 210909 17:41:45 app:231] Server Config file: localhost.yml
[W 210909 17:41:45 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:41:45 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:43:15 app:231] Server Config file: localhost.yml
[W 210909 17:43:15 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:43:15 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:44:13 base:99] 200 GET /demo?a=1 (127.0.0.1) 58095.87ms
[W 210909 17:44:38 base:99] 200 GET /demo?a=1 (127.0.0.1) 23191.86ms
[W 210909 17:46:38 app:231] Server Config file: localhost.yml
[W 210909 17:46:38 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:46:38 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:50:04 app:231] Server Config file: localhost.yml
[W 210909 17:50:04 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:50:04 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:50:53 base:99] 200 GET /demo?a=1 (127.0.0.1) 43979.65ms
[W 210909 17:51:14 app:244] Stopping http server
[W 210909 17:51:18 app:231] Server Config file: localhost.yml
[W 210909 17:51:18 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:51:18 app:233] Server Running on http://0.0.0.0:6677
[E 210909 17:51:33 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 95, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 66, in get_demo
        result = cls.distinct({"a": 2}, "_id")
      File "/Users/lcylln/www/lcyframepy3/lcyframe/base.py", line 498, in distinct
        result = [int(i) for i in result ]
      File "/Users/lcylln/www/lcyframepy3/lcyframe/base.py", line 498, in <listcomp>
        result = [int(i) for i in result ]
    TypeError: int() argument must be a string, a bytes-like object or a number, not 'ObjectId'
[W 210909 17:51:33 base:81] 时间：2021-09-09 17:51:33
[W 210909 17:51:33 base:87] int() argument must be a string, a bytes-like object or a number, not 'ObjectId'
[E 210909 17:51:33 web:2105] 500 GET /demo?a=1 (127.0.0.1) 9926.26ms
[W 210909 17:51:42 app:244] Stopping http server
[W 210909 17:51:45 app:231] Server Config file: localhost.yml
[W 210909 17:51:45 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 17:51:45 app:233] Server Running on http://0.0.0.0:6677
[W 210909 17:52:15 base:99] 200 GET /demo?a=1 (127.0.0.1) 28157.45ms
[W 210909 17:52:29 base:99] 200 GET /demo?a=1 (127.0.0.1) 13572.92ms
[W 210909 18:17:25 app:231] Server Config file: localhost.yml
[W 210909 18:17:25 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 18:17:25 app:233] Server Running on http://0.0.0.0:6677
[W 210909 18:19:28 app:231] Server Config file: localhost.yml
[W 210909 18:19:28 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210909 18:19:28 app:233] Server Running on http://0.0.0.0:6677
[W 210909 18:20:24 base:99] 200 GET /demo?a=1 (127.0.0.1) 29532.97ms
[W 210909 18:20:44 base:99] 200 GET /demo?a=1 (127.0.0.1) 9440.60ms
[W 210909 18:20:53 base:99] 200 GET /demo?a=1 (127.0.0.1) 6776.15ms
[W 210910 11:53:21 app:231] Server Config file: localhost.yml
[W 210910 11:53:21 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210910 11:53:21 app:233] Server Running on http://0.0.0.0:6677
[W 210910 11:54:17 app:244] Stopping http server
[W 210910 11:54:21 app:231] Server Config file: localhost.yml
[W 210910 11:54:21 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210910 11:54:21 app:233] Server Running on http://0.0.0.0:6677
[E 210910 11:54:28 web:1620] Uncaught exception GET /demo?a=1 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:6677', method='GET', uri='/demo?a=1', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/lcylln/www/lcyframepy3/lcyframe/base.py", line 346, in insert
        data = cls.insert_one(doc_or_docs[0], shard_key_value=None, **kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/base.py", line 364, in insert_one
        data = cls.dbo(sql=docs, shard_key_value=shard_key_value).insert_one(docs, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 698, in insert_one
        self._insert(document,
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 613, in _insert
        return self._insert_one(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 602, in _insert_one
        self.__database.client._retryable_write(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1498, in _retryable_write
        return self._retry_with_session(retryable, func, s, None)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1384, in _retry_with_session
        return self._retry_internal(retryable, func, session, bulk)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1416, in _retry_internal
        return func(session, sock_info, retryable)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 590, in _insert_command
        result = sock_info.command(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/pool.py", line 699, in command
        self._raise_connection_failure(error)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/pool.py", line 683, in command
        return command(self, dbname, spec, slave_ok,
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/network.py", line 159, in command
        helpers._check_command_response(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/helpers.py", line 151, in _check_command_response
        raise NotMasterError(errmsg, response)
    pymongo.errors.NotMasterError: not master, full error: {'topologyVersion': {'processId': ObjectId('613ad0d37a7b95c8d9121f5a'), 'counter': 4}, 'operationTime': Timestamp(1631246068, 235), 'ok': 0.0, 'errmsg': 'not master', 'code': 10107, 'codeName': 'NotWritablePrimary', '$gleStats': {'lastOpTime': Timestamp(0, 0), 'electionId': ObjectId('000000000000000000000000')}, 'lastCommittedOpTime': Timestamp(1631246068, 193), '$configServerState': {'opTime': {'ts': Timestamp(1631246064, 317), 't': 1}}, '$clusterTime': {'clusterTime': Timestamp(1631246068, 235), 'signature': {'hash': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'keyId': 0}}}
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/web.py", line 1541, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/lcylln/www/lcyframepy3/lcyframe/libs/funts.py", line 72, in has_role
        return method(self, *args, **kwargs)
      File "/Users/lcylln/www/lcyframe3-demo/handler/demo_handler.py", line 95, in get
        data = self.model.DemoModel.get_demo(self.params.get("_id", ""))
      File "/Users/lcylln/www/lcyframe3-demo/model/demo_model.py", line 22, in get_demo
        id = cls.insert({"uid": 102})
      File "/Users/lcylln/www/lcyframepy3/lcyframe/base.py", line 350, in insert
        data = cls.dbo(sql=docs, shard_key_value=shard_key_value).insert(doc_or_docs, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 3293, in insert
        return self._insert(doc_or_docs, not continue_on_error,
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/collection.py", line 649, in _insert
        blk.execute(write_concern, session=session)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/bulk.py", line 528, in execute
        return self.execute_command(generator, write_concern, session)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/bulk.py", line 359, in execute_command
        client._retry_with_session(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1384, in _retry_with_session
        return self._retry_internal(retryable, func, session, bulk)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1416, in _retry_internal
        return func(session, sock_info, retryable)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/bulk.py", line 353, in retryable_bulk
        self._execute_command(
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/bulk.py", line 309, in _execute_command
        result, to_send = bwc.execute(ops, client)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/message.py", line 907, in execute
        result = self.write_command(request_id, msg, to_send)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/message.py", line 999, in write_command
        reply = self.sock_info.write_command(request_id, msg)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/pool.py", line 771, in write_command
        helpers._check_command_response(result, self.max_wire_version)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pymongo/helpers.py", line 151, in _check_command_response
        raise NotMasterError(errmsg, response)
    pymongo.errors.NotMasterError: not master, full error: {'topologyVersion': {'processId': ObjectId('613ad0d37a7b95c8d9121f5a'), 'counter': 4}, 'operationTime': Timestamp(1631246068, 235), 'ok': 0.0, 'errmsg': 'not master', 'code': 10107, 'codeName': 'NotWritablePrimary', '$gleStats': {'lastOpTime': Timestamp(0, 0), 'electionId': ObjectId('000000000000000000000000')}, 'lastCommittedOpTime': Timestamp(1631246068, 193), '$configServerState': {'opTime': {'ts': Timestamp(1631246064, 317), 't': 1}}, '$clusterTime': {'clusterTime': Timestamp(1631246068, 239), 'signature': {'hash': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'keyId': 0}}}
[W 210910 11:54:28 base:81] 时间：2021-09-10 11:54:28
[W 210910 11:54:28 base:87] not master, full error: {'topologyVersion': {'processId': ObjectId('613ad0d37a7b95c8d9121f5a'), 'counter': 4}, 'operationTime': Timestamp(1631246068, 235), 'ok': 0.0, 'errmsg': 'not master', 'code': 10107, 'codeName': 'NotWritablePrimary', '$gleStats': {'lastOpTime': Timestamp(0, 0), 'electionId': ObjectId('000000000000000000000000')}, 'lastCommittedOpTime': Timestamp(1631246068, 193), '$configServerState': {'opTime': {'ts': Timestamp(1631246064, 317), 't': 1}}, '$clusterTime': {'clusterTime': Timestamp(1631246068, 239), 'signature': {'hash': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'keyId': 0}}}
[E 210910 11:54:28 web:2105] 500 GET /demo?a=1 (127.0.0.1) 19.51ms
[W 210910 11:55:28 app:244] Stopping http server
[W 210910 11:55:35 app:231] Server Config file: localhost.yml
[W 210910 11:55:35 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210910 11:55:35 app:233] Server Running on http://0.0.0.0:6677
[W 210910 13:39:46 app:244] Stopping http server
[W 210910 13:39:56 app:231] Server Config file: localhost.yml
[W 210910 13:39:56 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210910 13:39:56 app:233] Server Running on http://0.0.0.0:6677
[W 210910 13:41:40 app:231] Server Config file: localhost.yml
[W 210910 13:41:40 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210910 13:41:40 app:233] Server Running on http://0.0.0.0:6677
[W 210910 13:46:34 app:231] Server Config file: localhost.yml
[W 210910 13:46:34 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210910 13:46:34 app:233] Server Running on http://0.0.0.0:6677
[W 210910 13:47:15 app:231] Server Config file: localhost.yml
[W 210910 13:47:15 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210910 13:47:15 app:233] Server Running on http://0.0.0.0:6677
[W 210910 13:47:41 app:231] Server Config file: localhost.yml
[W 210910 13:47:41 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210910 13:47:41 app:233] Server Running on http://0.0.0.0:6677
[W 210910 13:50:50 app:231] Server Config file: localhost.yml
[W 210910 13:50:50 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210910 13:50:50 app:233] Server Running on http://0.0.0.0:6677
[W 210910 13:51:27 base:99] 200 GET /demo?a=1 (127.0.0.1) 26537.13ms
[W 210910 13:53:16 app:244] Stopping http server
[W 210910 13:53:20 app:231] Server Config file: localhost.yml
[W 210910 13:53:20 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210910 13:53:20 app:233] Server Running on http://0.0.0.0:6677
[W 210910 13:54:56 base:99] 200 GET /demo?a=1 (127.0.0.1) 83513.33ms
[W 210910 13:54:57 client:60] [127.0.0.1:4150:127.0.0.1:4150] connection is stale (96.70s), closing
[W 210910 13:54:57 writer:247] [127.0.0.1:4150] connection closed
[E 210910 13:54:57 conn:291] uncaught exception in data event
    Traceback (most recent call last):
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 289, in _read_body
        self.trigger(event.DATA, conn=self, data=data)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/event.py", line 84, in trigger
        ev(*args, **kwargs)
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 504, in _on_data
        self.send(protocol.nop())
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/pynsq-0.9.0-py3.9.egg/nsq/conn.py", line 295, in send
        return self.stream.write(self.encoder.encode(data))
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 525, in write
        self._check_closed()
      File "/Users/lcylln/www/.venv/python3.9/lib/python3.9/site-packages/tornado/iostream.py", line 1058, in _check_closed
        raise StreamClosedError(real_error=self.error)
    tornado.iostream.StreamClosedError: Stream is closed
[E 210910 13:54:57 client:44] [127.0.0.1:4150:127.0.0.1:4150] ERROR: ConnectionClosedError('Stream is closed')
[W 210910 13:55:05 app:244] Stopping http server
[W 210910 13:55:08 app:231] Server Config file: localhost.yml
[W 210910 13:55:08 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210910 13:55:08 app:233] Server Running on http://0.0.0.0:6677
[W 210910 13:55:55 base:99] 200 GET /demo?a=1 (127.0.0.1) 44819.36ms
[W 210910 16:08:23 app:231] Server Config file: localhost.yml
[W 210910 16:08:23 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210910 16:08:23 app:233] Server Running on http://0.0.0.0:6677
[W 210910 16:08:25 <frozen template>:56] Docs Running on http://0.0.0.0:6677/docs
[W 210910 16:09:04 app:231] Server Config file: localhost.yml
[W 210910 16:09:04 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210910 16:09:04 app:233] Server Running on http://0.0.0.0:6677
[W 210910 16:09:06 template:56] Docs Running on http://0.0.0.0:6677/docs
[W 210910 16:11:46 app:244] Stopping http server
[W 210910 16:11:51 app:231] Server Config file: localhost.yml
[W 210910 16:11:51 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210910 16:11:51 app:233] Server Running on http://0.0.0.0:6677
[W 210910 16:11:53 template:56] Docs Running on http://0.0.0.0:6677/docs
[W 210910 16:12:13 app:244] Stopping http server
[W 210910 16:12:29 app:231] Server Config file: localhost.yml
[W 210910 16:12:29 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210910 16:12:29 app:233] Server Running on http://0.0.0.0:6677
[W 210910 16:12:31 template:56] Docs Running on http://0.0.0.0:6677/docs
[W 210910 16:16:29 app:231] Server Config file: localhost.yml
[W 210910 16:16:29 app:232] Server ROOT path: /Users/lcylln/www/lcyframe3-demo
[W 210910 16:16:29 app:233] Server Running on http://0.0.0.0:6677
[W 210910 16:16:30 template:56] Docs Running on http://0.0.0.0:6677/docs
