欢迎您来到博客趣!
当前身份:游客 [ 登录 | 注册 ]
当前位置:首页>>站点列表>>网站信息>>www.jmw.com.cn的模拟结果

抓取结果

OperationalError at / OperationalError at / (2003, "Can't connect to MySQL server on '127.0.0.1' ([Errno 111] Connection refused)") Request Method: GET Request URL: http://www.jmw.com.cn/ Django Version: 4.2.3 Exception Type: OperationalError Exception Value: (2003, "Can't connect to MySQL server on '127.0.0.1' ([Errno 111] Connection refused)") Exception Location: /data/www/www.jmw.com.cn/venv/lib/python3.10/site-packages/pymysql/connections.py, line 711, in connect Raised during: apps.jmw.views.index.index_static Python Executable: /data/www/www.jmw.com.cn/venv/bin/uwsgi Python Version: 3.10.12 Python Path: ['.', '', '/data/program/python3/lib/python310.zip', '/data/program/python3/lib/python3.10', '/data/program/python3/lib/python3.10/lib-dynload', '/data/www/www.jmw.com.cn/venv/lib/python3.10/site-packages'] Server time: Mon, 08 Sep 2025 21:30:47 +0800 Traceback Switch to copy-and-paste view /data/www/www.jmw.com.cn/venv/lib/python3.10/site-packages/pymysql/connections.py, line 644, in connect print("connected using unix_socket") else: kwargs = {} if self.bind_address is not None: kwargs["source_address"] = (self.bind_address, 0) while True: try: sock = socket.create_connection( … (self.host, self.port), self.connect_timeout, **kwargs ) break except OSError as e: if e.errno == errno.EINTR: continue Local vars Variable Value exc OperationalError(2003, "Can't connect to MySQL server on '127.0.0.1' ([Errno 111] Connection refused)") kwargs {} self <pymysql.connections.Connection object at 0x7fc54c2cba30> sock None /data/program/python3/lib/python3.10/socket.py, line 845, in create_connection except error as _: err = _ if sock is not None: sock.close() if err is not None: try: raise err … finally: # Break explicitly a reference cycle err = None else: raise error("getaddrinfo returns an empty list") Local vars Variable Value address ('127.0.0.1', 3306) af <AddressFamily.AF_INET: 2> canonname '' err None host '127.0.0.1' port 3306 proto 6 res (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 3306)) sa ('127.0.0.1', 3306) sock <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6> socktype <SocketKind.SOCK_STREAM: 1> source_address None timeout 10 /data/program/python3/lib/python3.10/socket.py, line 833, in create_connection sock = None try: sock = socket(af, socktype, proto) if timeout is not _GLOBAL_DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address) sock.connect(sa) … # Break explicitly a reference cycle err = None return sock except error as _: err = _ Local vars Variable Value address ('127.0.0.1', 3306) af <AddressFamily.AF_INET: 2> canonname '' err None host '127.0.0.1' port 3306 proto 6 res (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 3306)) sa ('127.0.0.1', 3306) sock <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6> socktype <SocketKind.SOCK_STREAM: 1> source_address None timeout 10 During handling of the above exception ([Errno 111] Connection refused), another exception occurred: /data/www/www.jmw.com.cn/venv/lib/python3.10/site-packages/django/db/backends/base/base.py, line 289, in ensure_connection ) @async_unsafe def ensure_connection(self): """Guarantee that a connection to the database is established.""" if self.connection is None: with self.wrap_database_errors: self.connect() … # ##### Backend-specific wrappers for PEP-249 connection methods ##### def _prepare_cursor(self, cursor): """ Validate the connection is usable and perform database cursor wrapping. Local vars Variable Value self <DatabaseWrapper vendor='mysql' alias='default'> /data/www/www.jmw.com.cn/venv/lib/python3.10/site-packages/django/utils/asyncio.py, line 26, in inner get_running_loop() except RuntimeError: pass else: if not os.environ.get("DJANGO_ALLOW_ASYNC_UNSAFE"): raise SynchronousOnlyOperation(message) # Pass onward. return func(*args, **kwargs) … return inner # If the message is actually a function, then be a no-arguments decorator. if callable(message): func = message Local vars Variable Value args (<DatabaseWrapper vendor='mysql' alias='default'>,) func <function BaseDatabaseWrapper.connect at 0x7fc5513d69e0> kwargs {} message 'You cannot call this from an async context - use a thread or sync_to_async.' /data/www/www.jmw.com.cn/venv/lib/python3.10/site-packages/django/db/backends/base/base.py, line 270, in connect self.close_at = None if max_age is None else time.monotonic() + max_age self.closed_in_transaction = False self.errors_occurred = False # New connections are healthy. self.health_check_done = True # Establish the connection conn_params = self.get_connection_params() self.connection = self.get_new_connection(conn_params) … self.set_autocommit(self.settings_dict["AUTOCOMMIT"]) self.init_connection_state() connection_created.send(sender=self.__class__, connection=self) self.run_on_commit = [] Local vars Variable Value conn_params {'charset': 'utf8mb4', 'client_flag': 2, 'conv': {0: <class 'decimal.Decimal'>, 1: <class 'int'>, 2: <class 'int'>, 3: <class 'int'>, 4: <class 'float'>, 5: <class 'float'>, 7: <function convert_datetime at 0x7fc5513ee0e0>, 8: <class 'int'>, 9: <class 'int'>, 10: <function convert_date at 0x7fc5513ee290>, 11: <function typecast_time at 0x7fc5527d1fc0>, 12: <function convert_datetime at 0x7fc5513ee0e0>, 13: <class 'int'>, 15: <function through at 0x7fc5513ee320>, 16: <function through at 0x7fc5513ee320>, 246: <class 'decimal.Decimal'>, 249: <function through at 0x7fc5513ee320>, 250: <function through at 0x7fc5513ee320>, 251: <function through at 0x7fc5513ee320>, 252: <function through at 0x7fc5513ee320>, 253: <function through at 0x7fc5513ee320>, 254: <function through at 0x7fc5513ee320>, <class 'bool'>: <function escape_bool at 0x7fc5513ed870>, <class 'bytes'>: <function escape_bytes at 0x7fc5513edb40>, <class 'float'>: <function escape_float at 0x7fc5513ed990>, <class 'list'>: <function escape_sequence at 0x7fc5513ed750>, <class 'int'>: <function escape_int at 0x7fc5513ed900>, <class 'dict'>: <function escape_dict at 0x7fc5513ed6c0>, <class 'NoneType'>: <function escape_None at 0x7fc5513edc60>, <class 'frozenset'>: <function escape_sequence at 0x7fc5513ed750>, <class 'set'>: <function escape_sequence at 0x7fc5513ed750>, <class 'tuple'>: <function escape_sequence at 0x7fc5513ed750>, <class 'str'>: <function escape_str at 0x7fc5513edbd0>, <class 'time.struct_time'>: <function escape_struct_time at 0x7fc5513edf30>, <class 'decimal.Decimal'>: <function Decimal2Literal at 0x7fc5513edfc0>, <class 'datetime.time'>: <function escape_time at 0x7fc5513edd80>, <class 'datetime.timedelta'>: <function escape_timedelta at 0x7fc5513edcf0>, <class 'datetime.datetime'>: <function escape_datetime at 0x7fc5513ede10>, <class 'datetime.date'>: <function escape_date at 0x7fc5513edea0>}, 'database': 'jmw_online', 'host': '127.0.0.1', 'password': 'WEk41shFMbcIfB41', 'port': 3306, 'user': 'jmw_online'} max_age 0 self <DatabaseWrapper vendor='mysql' alias='default'> /data/www/www.jmw.com.cn/venv/lib/python3.10/site-packages/django/utils/asyncio.py, line 26, in inner get_running_loop() except RuntimeError: pass else: if not os.environ.get("DJANGO_ALLOW_ASYNC_UNSAFE"): raise SynchronousOnlyOperation(message) # Pass onward. return func(*args, **kwargs) … return inner # If the message is actually a function, then be a no-arguments decorator. if callable(message): func = message Local vars Variable Value args (<DatabaseWrapper vendor='mysql' alias='default'>, {'charset': 'utf8mb4', 'client_flag': 2, 'conv': {0: <class 'decimal.Decimal'>, 1: <class 'int'>, 2: <class 'int'>, 3: <class 'int'>, 4: <class 'float'>, 5: <class 'float'>, 7: <function convert_datetime at 0x7fc5513ee0e0>, 8: <class 'int'>, 9: <class 'int'>, 10: <function convert_date at 0x7fc5513ee290>, 11: <function typecast_time at 0x7fc5527d1fc0>, 12: <function convert_datetime at 0x7fc5513ee0e0>, 13: <class 'int'>, 15: <function through at 0x7fc5513ee320>, 16: <function through at 0x7fc5513ee320>, 246: <class 'decimal.Decimal'>, 249: <function through at 0x7fc5513ee320>, 250: <function through at 0x7fc5513ee320>, 251: <function through at 0x7fc5513ee320>, 252: <function through at 0x7fc5513ee320>, 253: <function through at 0x7fc5513ee320>, 254: <function through at 0x7fc5513ee320>, <class 'bool'>: <function escape_bool at 0x7fc5513ed870>, <class 'bytes'>: <function escape_bytes at 0x7fc5513edb40>, <class 'float'>: <function escape_float at 0x7fc5513ed990>, <class 'list'>: <function escape_sequence at 0x7fc5513ed750>, <class 'int'>: <function escape_int at 0x7fc5513ed900>, <class 'dict'>: <function escape_dict at 0x7fc5513ed6c0>, <class 'NoneType'>: <function escape_None at 0x7fc5513edc60>, <class 'frozenset'>: <function escape_sequence at 0x7fc5513ed750>, <class 'set'>: <function escape_sequence at 0x7fc5513ed750>, <class 'tuple'>: <function escape_sequence at 0x7fc5513ed750>, <class 'str'>: <function escape_str at 0x7fc5513edbd0>, <class 'time.struct_time'>: <function escape_struct_time at 0x7fc5513edf30>, <class 'decimal.Decimal'>: <function Decimal2Literal at 0x7fc5513edfc0>, <class 'datetime.time'>: <function escape_time at 0x7fc5513edd80>, <class 'datetime.timedelta'>: <function escape_timedelta at 0x7fc5513edcf0>, <class 'datetime.datetime'>: <function escape_datetime at 0x7fc5513ede10>, <class 'datetime.date'>: <function escape_date at 0x7fc5513edea0>}, 'database': 'jmw_online', 'host': '127.0.0.1', 'password': 'WEk41shFMbcIfB41', 'port': 3306, 'user': 'jmw_online'}) func <function DatabaseWrapper.get_new_connection at 0x7fc5510bdc60> kwargs {} message 'You cannot call this from an async context - use a thread or sync_to_async.' /data/www/www.jmw.com.cn/venv/lib/python3.10/site-packages/django/db/backends/mysql/base.py, line 247, in get_new_connection ) self.isolation_level = isolation_level kwargs.update(options) return kwargs @async_unsafe def get_new_connection(self, conn_params): connection = Database.connect(**conn_params) … # bytes encoder in mysqlclient doesn't work and was added only to # prevent KeyErrors in Django < 2.0. We can remove this workaround when # mysqlclient 2.1 becomes the minimal mysqlclient supported by Django. # See https://github.com/PyMySQL/mysqlclient/issues/489 if connection.encoders.get(bytes) is bytes: connection.encoders.pop(bytes) Local vars Variable Value conn_params {'charset': 'utf8mb4', 'client_flag': 2, 'conv': {0: <class 'decimal.Decimal'>, 1: <class 'int'>, 2: <class 'int'>, 3: <class 'int'>, 4: <class 'float'>, 5: <class 'float'>, 7: <function convert_datetime at 0x7fc5513ee0e0>, 8: <class 'int'>, 9: <class 'int'>, 10: <function convert_date at 0x7fc5513ee290>, 11: <function typecast_time at 0x7fc5527d1fc0>, 12: <function convert_datetime at 0x7fc5513ee0e0>, 13: <class 'int'>, 15: <function through at 0x7fc5513ee320>, 16: <function through at 0x7fc5513ee320>, 246: <class 'decimal.Decimal'>, 249: <function through at 0x7fc5513ee320>, 250: <function through at 0x7fc5513ee320>, 251: <function through at 0x7fc5513ee320>, 252: <function through at 0x7fc5513ee320>, 253: <function through at 0x7fc5513ee320>, 254: <function through at 0x7fc5513ee320>, <class 'bool'>: <function escape_bool at 0x7fc5513ed870>, <class 'bytes'>: <function escape_bytes at 0x7fc5513edb40>, <class 'float'>: <function escape_float at 0x7fc5513ed990>, <class 'list'>: <function escape_sequence at 0x7fc5513ed750>, <class 'int'>: <function escape_int at 0x7fc5513ed900>, <class 'dict'>: <function escape_dict at 0x7fc5513ed6c0>, <class 'NoneType'>: <function escape_None at 0x7fc5513edc60>, <class 'frozenset'>: <function escape_sequence at 0x7fc5513ed750>, <class 'set'>: <function escape_sequence at 0x7fc5513ed750>, <class 'tuple'>: <function escape_sequence at 0x7fc5513ed750>, <class 'str'>: <function escape_str at 0x7fc5513edbd0>, <class 'time.struct_time'>: <function escape_struct_time at 0x7fc5513edf30>, <class 'decimal.Decimal'>: <function Decimal2Literal at 0x7fc5513edfc0>, <class 'datetime.time'>: <function escape_time at 0x7fc5513edd80>, <class 'datetime.timedelta'>: <function escape_timedelta at 0x7fc5513edcf0>, <class 'datetime.datetime'>: <function escape_datetime at 0x7fc5513ede10>, <class 'datetime.date'>: <function escape_date at 0x7fc5513edea0>}, 'database': 'jmw_online', 'host': '127.0.0.1', 'password': 'WEk41shFMbcIfB41', 'port': 3306, 'user': 'jmw_online'} self <DatabaseWrapper vendor='mysql' alias='default'> /data/www/www.jmw.com.cn/venv/lib/python3.10/site-packages/pymysql/connections.py, line 358, in __init__ if program_name: self._connect_attrs["program_name"] = program_name if defer_connect: self._sock = None else: self.connect() … def __enter__(self): return self def __exit__(self, *exc_info): del exc_info Local vars Variable Value auth_plugin_map None autocommit False binary_prefix False bind_address None charset 'utf8mb4' client_flag 3842575 collation None compress None connect_timeout 10 conv {0: <class 'decimal.Decimal'>, 1: <class 'int'>, 2: <class 'int'>, 3: <class 'int'>, 4: <class 'float'>, 5: <class 'float'>, 7: <function convert_datetime at 0x7fc5513ee0e0>, 8: <class 'int'>, 9: <class 'int'>, 10: <function convert_date at 0x7fc5513ee290>, 11: <function typecast_time at 0x7fc5527d1fc0>, 12: <function convert_datetime at 0x7fc5513ee0e0>, 13: <class 'int'>, 15: <function through at 0x7fc5513ee320>, 16: <function through at 0x7fc5513ee320>, 246: <class 'decimal.Decimal'>, 249: <function through at 0x7fc5513ee320>, 250: <function through at 0x7fc5513ee320>, 251: <function through at 0x7fc5513ee320>, 252: <function through at 0x7fc5513ee320>, 253: <function through at 0x7fc5513ee320>, 254: <function through at 0x7fc5513ee320>, <class 'bool'>: <function escape_bool at 0x7fc5513ed870>, <class 'bytes'>: <function escape_bytes at 0x7fc5513edb40>, <class 'float'>: <function escape_float at 0x7fc5513ed990>, <class 'list'>: <function escape_sequence at 0x7fc5513ed750>, <class 'int'>: <function escape_int at 0x7fc5513ed900>, <class 'dict'>: <function escape_dict at 0x7fc5513ed6c0>, <class 'NoneType'>: <function escape_None at 0x7fc5513edc60>, <class 'frozenset'>: <function escape_sequence at 0x7fc5513ed750>, <class 'set'>: <function escape_sequence at 0x7fc5513ed750>, <class 'tuple'>: <function escape_sequence at 0x7fc5513ed750>, <class 'str'>: <function escape_str at 0x7fc5513edbd0>, <class 'time.struct_time'>: <function escape_struct_time at 0x7fc5513edf30>, <class 'decimal.Decimal'>: <function Decimal2Literal at 0x7fc5513edfc0>, <class 'datetime.time'>: <function escape_time at 0x7fc5513edd80>, <class 'datetime.timedelta'>: <function escape_timedelta at 0x7fc5513edcf0>, <class 'datetime.datetime'>: <function escape_datetime at 0x7fc5513ede10>, <class 'datetime.date'>: <function escape_date at 0x7fc5513edea0>} cursorclass <class 'pymysql.cursors.Cursor'> database 'jmw_online' db None defer_connect False host '127.0.0.1' init_command None local_infile False max_allowed_packet 16777216 named_pipe None passwd None password 'WEk41shFMbcIfB41' port 3306 program_name None read_default_file None read_default_group None read_timeout None self <pymysql.connections.Connection object at 0x7fc54c2cba30> server_public_key None sql_mode None ssl None ssl_ca None ssl_cert None ssl_disabled None ssl_key None ssl_verify_cert None ssl_verify_identity None unix_socket None use_unicode True user 'jmw_online' write_timeout None /data/www/www.jmw.com.cn/venv/lib/python3.10/site-packages/pymysql/connections.py, line 711, in connect f"Can't connect to MySQL server on {self.host!r} ({e})", ) # Keep original exception and traceback to investigate error. exc.original_exception = e exc.traceback = traceback.format_exc() if DEBUG: print(exc.traceback) raise exc … # If e is neither DatabaseError or IOError, It's a bug. # But raising AssertionError hides original error. # So just reraise it. raise Local vars Variable Value exc OperationalError(2003, "Can't connect to MySQL server on '127.0.0.1' ([Errno 111] Connection refused)") kwargs {} self <pymysql.connections.Connection object at 0x7fc54c2cba30> sock None The above exception ((2003, "Can't connect to MySQL server on '127.0.0.1' ([Errno 111] Connection refused)")) was the direct cause of the following exception: /data/www/www.jmw.com.cn/venv/lib/python3.10/site-packages/django/core/handlers/exception.py, line 55, in inner return inner else: @wraps(get_response) def inner(request): try: response = get_response(request) … except Exception as exc: response = response_for_exception(request, exc) return response return inner Local vars Variable Value exc OperationalError(2003, "Can't connect to MySQL server on '127.0.0.1' ([Errno 111] Connection refused)") get_response <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fc5514741c0>> request <WSGIRequest: GET '/'> /data/www/www.jmw.com.cn/venv/lib/python3.10/site-packages/django/core/handlers/base.py, line 197, in _get_response if response is None: wrapped_callback = self.make_view_atomic(callback) # If it is an asynchronous view, run it in a subthread. if iscoroutinefunction(wrapped_callback): wrapped_callback = async_to_sync(wrapped_callback) try: response = wrapped_callback(request, *callback_args, **callback_kwargs) … except Exception as e: response = self.process_exception_by_middleware(e, request) if response is None: raise # Complain if the view returned None (a common error). Local vars Variable Value callback <function index_static at 0x7fc54eea0670> callback_args () callback_kwargs {} request <WSGIRequest: GET '/'> response None self <django.core.handlers.wsgi.WSGIHandler object at 0x7fc5514741c0> wrapped_callback <function index_static at 0x7fc54eea0670> /data/www/www.jmw.com.cn/venv/lib/python3.10/site-packages/django/views/decorators/http.py, line 43, in inner "Method Not Allowed (%s): %s", request.method, request.path, response=response, request=request, ) return response return func(request, *args, **kwargs) … return inner return decorator Local vars Variable Value args () func <function index_static at 0x7fc54eea04c0> kwargs {} request <WSGIRequest: GET '/'> request_method_list ['GET'] /data/www/www.jmw.com.cn/./apps/jmw/views/index.py, line 24, in index_static from apps.jmw.views import news from apps.common.file_process import ImageUploader from core import settings @require_http_methods(['GET']) def index_static(request):

网站标题

加盟网(原中国加盟网)—品牌招商加盟连锁创业门户

关键词

加盟,连锁,创业,投资,招商,代理,找项目,创业项目,品牌招商,加盟店,加盟网,加盟网

站点描述

加盟网(原中国加盟网)作为中国加盟品牌招商连锁官方平台,十八年来已累计服务3.3亿用户,帮助260万创业者成功开店。加盟网严格遵循1831审核体系,严选头部加盟品牌。覆盖餐饮加盟、教育加盟、美容加盟、酒店加盟、服装加盟等18个大行业分类,为创业者严格把关。加盟网为创业者建立信息沟通的桥梁!