标签:contex stat code mos nginx *args war exception 原因
浏览器显示
A server error occurred. Please contact the administrator.
linux终端显示
[-] Error: 111 connect to 192.168.137.130:22122. Connection refused. [-] Error: 111 connect to 192.168.137.130:22122. Connection refused. [-] Error: 111 connect to 192.168.137.130:22122. Connection refused. [-] Error: 111 connect to 192.168.137.130:22122. Connection refused. [-] Error: 111 connect to 192.168.137.130:22122. Connection refused. [-] Error: 111 connect to 192.168.137.130:22122. Connection refused. [-] Error: 111 connect to 192.168.137.130:22122. Connection refused. [-] Error: 111 connect to 192.168.137.130:22122. Connection refused. [-] Error: 111 connect to 192.168.137.130:22122. Connection refused. [-] Error: 111 connect to 192.168.137.130:22122. Connection refused. Traceback (most recent call last): File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/fdfs_client/connection.py", line 137, in get_connection conn = self._conns_available.pop() IndexError: pop from empty list During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.5/wsgiref/handlers.py", line 137, in run self.result = application(self.environ, self.start_response) File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/contrib/staticfiles/handlers.py", line 63, in __call__ return self.application(environ, start_response) File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/core/handlers/wsgi.py", line 189, in __call__ response = self.get_response(request) File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/contrib/admin/options.py", line 616, in wrapper return self.admin_site.admin_view(view)(*args, **kwargs) File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/utils/decorators.py", line 110, in _wrapped_view response = view_func(request, *args, **kwargs) File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func response = view_func(request, *args, **kwargs) File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/contrib/admin/sites.py", line 233, in inner return view(request, *args, **kwargs) File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/contrib/admin/options.py", line 1519, in change_view return self.changeform_view(request, object_id, form_url, extra_context) File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/utils/decorators.py", line 34, in _wrapper return bound_func(*args, **kwargs) File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/utils/decorators.py", line 110, in _wrapped_view response = view_func(request, *args, **kwargs) File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/utils/decorators.py", line 30, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/lib/python3.5/contextlib.py", line 30, in inner return func(*args, **kwds) File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/contrib/admin/options.py", line 1467, in changeform_view self.save_model(request, new_object, form, not add) File "/home/python/bj18/ttsx/dailyfresh/apps/goods/admin.py", line 10, in save_model super().save_model(request, obj, form, change) File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/contrib/admin/options.py", line 1078, in save_model obj.save() File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/db/models/base.py", line 710, in save force_update=force_update, update_fields=update_fields) File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/db/models/base.py", line 738, in save_base updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields) File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/db/models/base.py", line 800, in _save_table for f in non_pks] File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/db/models/base.py", line 800, in <listcomp> for f in non_pks] File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/db/models/fields/files.py", line 315, in pre_save file.save(file.name, file, save=False) File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/db/models/fields/files.py", line 94, in save self.name = self.storage.save(name, content, max_length=self.field.max_length) File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/core/files/storage.py", line 64, in save name = self._save(name, content) File "/home/python/bj18/ttsx/dailyfresh/utils/fdfs/storage.py", line 26, in _save res = client.upload_by_buffer(content.read()) # 返回的是一个字典格式 File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/fdfs_client/client.py", line 125, in upload_by_buffer store_serv = tc.tracker_query_storage_stor_without_group() File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/fdfs_client/tracker_client.py", line 374, in tracker_query_storage_stor_without_group conn = self.pool.get_connection() File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/fdfs_client/connection.py", line 142, in get_connection conn = self.make_conn() File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/fdfs_client/connection.py", line 122, in make_conn sys.exit() SystemExit
错误原因
没运行nginx
sudo /usr/local/nginx/sbin/nginx
标签:contex stat code mos nginx *args war exception 原因
原文地址:https://www.cnblogs.com/yifengs/p/11664841.html