baohuynhbk14 commited on
Commit
1444e68
·
1 Parent(s): e35bff8

Log keyboard interruption errors and stack traces for better debugging of server shutdowns

Browse files
Files changed (1) hide show
  1. logs/gradio_web_server.log +39 -0
logs/gradio_web_server.log CHANGED
@@ -107,3 +107,42 @@ Please help me analyze this picture.
107
  2025-01-16 17:14:27 | INFO | gradio_web_server | ==== AI response ====
108
  This is a test response▌
109
  2025-01-16 17:14:27 | INFO | gradio_web_server | This is a test response
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
  2025-01-16 17:14:27 | INFO | gradio_web_server | ==== AI response ====
108
  This is a test response▌
109
  2025-01-16 17:14:27 | INFO | gradio_web_server | This is a test response
110
+ 2025-01-16 18:09:23 | INFO | stdout | Keyboard interruption in main thread... closing server.
111
+ 2025-01-16 18:09:23 | ERROR | stderr | Traceback (most recent call last):
112
+ 2025-01-16 18:09:23 | ERROR | stderr | File "/Users/huynhbao/.virtualenvs/huggingface/lib/python3.9/site-packages/gradio/blocks.py", line 2664, in block_thread
113
+ 2025-01-16 18:09:23 | ERROR | stderr | time.sleep(0.1)
114
+ 2025-01-16 18:09:23 | ERROR | stderr | KeyboardInterrupt
115
+ 2025-01-16 18:09:23 | ERROR | stderr |
116
+ 2025-01-16 18:09:23 | ERROR | stderr | During handling of the above exception, another exception occurred:
117
+ 2025-01-16 18:09:23 | ERROR | stderr |
118
+ 2025-01-16 18:09:23 | ERROR | stderr | Traceback (most recent call last):
119
+ 2025-01-16 18:09:23 | ERROR | stderr | File "/Users/huynhbao/Workspace/5CD_data/huggingface/Vintern-1B/app.py", line 613, in <module>
120
+ 2025-01-16 18:09:23 | ERROR | stderr | server_name=args.host,
121
+ 2025-01-16 18:09:23 | ERROR | stderr | File "/Users/huynhbao/.virtualenvs/huggingface/lib/python3.9/site-packages/gradio/blocks.py", line 2569, in launch
122
+ 2025-01-16 18:09:23 | ERROR | stderr | self.block_thread()
123
+ 2025-01-16 18:09:23 | ERROR | stderr | File "/Users/huynhbao/.virtualenvs/huggingface/lib/python3.9/site-packages/gradio/blocks.py", line 2668, in block_thread
124
+ 2025-01-16 18:09:23 | ERROR | stderr | self.server.close()
125
+ 2025-01-16 18:09:23 | ERROR | stderr | File "/Users/huynhbao/.virtualenvs/huggingface/lib/python3.9/site-packages/gradio/http_server.py", line 68, in close
126
+ 2025-01-16 18:09:23 | ERROR | stderr | self.thread.join(timeout=5)
127
+ 2025-01-16 18:09:23 | ERROR | stderr | File "/usr/local/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 1064, in join
128
+ 2025-01-16 18:09:23 | ERROR | stderr | self._wait_for_tstate_lock(timeout=max(timeout, 0))
129
+ 2025-01-16 18:09:23 | ERROR | stderr | File "/usr/local/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 1080, in _wait_for_tstate_lock
130
+ 2025-01-16 18:09:23 | ERROR | stderr | if lock.acquire(block, timeout):
131
+ 2025-01-16 18:09:23 | ERROR | stderr | KeyboardInterrupt
132
+ 2025-01-16 18:09:23 | ERROR | stderr | Error in atexit._run_exitfuncs:
133
+ 2025-01-16 18:09:23 | ERROR | stderr | Traceback (most recent call last):
134
+ 2025-01-16 18:09:23 | ERROR | stderr | File "/usr/local/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/weakref.py", line 667, in _exitfunc
135
+ 2025-01-16 18:09:23 | ERROR | stderr | f()
136
+ 2025-01-16 18:09:23 | ERROR | stderr | File "/usr/local/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/weakref.py", line 591, in __call__
137
+ 2025-01-16 18:09:23 | ERROR | stderr | return info.func(*info.args, **(info.kwargs or {}))
138
+ 2025-01-16 18:09:23 | ERROR | stderr | File "/Users/huynhbao/.virtualenvs/huggingface/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1180, in _close_pool_connections
139
+ 2025-01-16 18:09:23 | ERROR | stderr | conn.close()
140
+ 2025-01-16 18:09:23 | ERROR | stderr | File "/Users/huynhbao/.virtualenvs/huggingface/lib/python3.9/site-packages/urllib3/connection.py", line 318, in close
141
+ 2025-01-16 18:09:23 | ERROR | stderr | super().close()
142
+ 2025-01-16 18:09:23 | ERROR | stderr | File "/usr/local/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 965, in close
143
+ 2025-01-16 18:09:23 | ERROR | stderr | sock.close() # close it manually... there may be other refs
144
+ 2025-01-16 18:09:23 | ERROR | stderr | File "/usr/local/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/socket.py", line 501, in close
145
+ 2025-01-16 18:09:23 | ERROR | stderr | self._real_close()
146
+ 2025-01-16 18:09:23 | ERROR | stderr | File "/usr/local/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ssl.py", line 1300, in _real_close
147
+ 2025-01-16 18:09:23 | ERROR | stderr | self._sslobj = None
148
+ 2025-01-16 18:09:23 | ERROR | stderr | KeyboardInterrupt