Я обращаюсь к удаленному серверу для установки frappe-framework. На самом деле он правильно установлен с правильной конфигурацией базы данных и всем остальным. Но когда я создал сайт и пытался получить к нему доступ, он выдает следующую ошибку:
OperationalError: (2003, "Не удается подключиться к серверу MySQL на
u 'http://10.33.255.161:8000' ([Errno -2] Имя или служба неизвестна) ")
И, дав мне длинный трекбак, которого я не понимаю. Может кто-нибудь помочь, что мне не хватает?
Это мой статус соединения:
mysql Ver 15.1 Distrib 10.3.14-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
Connection id: 73
Current database: 5767dd9ad659b88b
Current user: 5767dd9ad659b88b@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server: MariaDB
Server version: 10.3.14-MariaDB-1:10.3.14+maria~xenial-log mariadb.org binary distribution
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: utf8mb4
Db characterset: utf8mb4
Client characterset: utf8mb4
Conn. characterset: utf8mb4
UNIX socket: /var/run/mysqld/mysqld.sock
Uptime: 19 hours 59 min 5 sec
Вот трассировка:
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/middlewares.py", line 15, in __call__
return super(StaticDataMiddleware, self).__call__(environ, start_response)
File "/home/naztech/erpNext/frappe-bench/env/lib/python2.7/site-packages/werkzeug/middleware/shared_data.py", line 227, in __call__
return self.app(environ, start_response)
File "/home/naztech/erpNext/frappe-bench/env/lib/python2.7/site-packages/werkzeug/middleware/shared_data.py", line 227, in __call__
return self.app(environ, start_response)
File "/home/naztech/erpNext/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py", line 231, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File "/home/naztech/erpNext/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wrappers/base_request.py", line 235, in application
resp = f(*args[:-2] + (request,))
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/app.py", line 87, in application
response = handle_exception(e)
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/app.py", line 193, in handle_exception
http_status_code=http_status_code)
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/website/render.py", line 34, in render
path = resolve_path(path)
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/website/render.py", line 217, in resolve_path
path = resolve_from_map(path)
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/website/render.py", line 223, in resolve_from_map
for r in get_website_rules()])
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/website/render.py", line 248, in get_website_rules
return frappe.cache().get_value('website_route_rules', _get)
File "/home/naztech/erpNext/frappe-
bench/apps/frappe/frappe/utils/redis_wrapper.py", line 79, in get_value
val = generator()
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/website/render.py", line 242, in _get
for d in frappe.get_all('DocType', 'name, route', dict(has_web_view=1)):
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/__init__.py", line 1282, in get_all
return get_list(doctype, *args, **kwargs)
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/__init__.py", line 1255, in get_list
return frappe.model.db_query.DatabaseQuery(doctype).execute(None, *args, **kwargs)
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/model/db_query.py", line 93, in execute
result = self.build_and_run()
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/model/db_query.py", line 105, in build_and_run
args = self.prepare_args()
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/model/db_query.py", line 123, in prepare_args
self.set_optional_columns()
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/model/db_query.py", line 275, in set_optional_columns
columns = frappe.db.get_table_columns(self.doctype)
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/database.py", line 903, in get_table_columns
return self.get_db_table_columns('tab' + doctype)
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/database.py", line 899, in get_db_table_columns
return [r[0] for r in self.sql("DESC `%s`" % table)]
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/database.py", line 165, in sql
self.connect()
File "/home/naztech/erpNext/frappe-bench/apps/frappe/frappe/database.py", line 115, in connect
charset='utf8mb4', use_unicode = True, conv = conversions, local_infile = self.local_infile)
File "/home/naztech/erpNext/frappe-bench/env/lib/python2.7/site-packages/pymysql/__init__.py", line 94, in Connect
return Connection(*args, **kwargs)
File "/home/naztech/erpNext/frappe-bench/env/lib/python2.7/site-packages/pymysql/connections.py", line 325, in __init__
self.connect()
File "/home/naztech/erpNext/frappe-bench/env/lib/python2.7/site-packages/pymysql/connections.py", line 630, in connect
Open an interactive python shell in this frameraise exc