CloudWise-OpenSource / OMP

OMP(Operation Management Platform)是云智慧公司自主设计、研发的轻量级、聚合型、智能运维管理平台。是一款为用户提供便捷运维能力和业务管理的综合平台。具备运维一应俱全的功能,目的是提升运维自动化、智能化,提高运维效率,提升业务连续性和安全性。
https://cloudwise.ai/omp.html
GNU General Public License v3.0
261 stars 87 forks source link

依然不行无法安装,dev_requirement.txt包都装了, #29

Open cc0411 opened 2 years ago

cc0411 commented 2 years ago

(env) [root@localhost omp]# sh scripts/install.sh 通过命令获取本机ip如下: 若选择ip: 192.168.57.129 请输入id: 0

请选择本机ip对应的id,如果ip不在上述输出中请输入N > 0 确认当前主机ip为【192.168.57.129】请输入 Y, 重新选择请输入N > y Start Update Conf! Finish Update Conf! Traceback (most recent call last): File "/data/omp/omp_server/manage.py", line 22, in main() File "/data/omp/omp_server/manage.py", line 18, in main execute_from_command_line(sys.argv) File "/data/omp/component/env/lib/python3.8/site-packages/django/core/management/init.py", line 401, in execute_from_command_line utility.execute() File "/data/omp/component/env/lib/python3.8/site-packages/django/core/management/init.py", line 395, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/data/omp/component/env/lib/python3.8/site-packages/django/core/management/base.py", line 330, in run_from_argv self.execute(*args, cmd_options) File "/data/omp/component/env/lib/python3.8/site-packages/django/core/management/base.py", line 371, in execute output = self.handle(*args, *options) File "/data/omp/component/env/lib/python3.8/site-packages/django/core/management/base.py", line 85, in wrapped res = handle_func(args, kwargs) File "/data/omp/component/env/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 75, in handle self.check(databases=[database]) File "/data/omp/component/env/lib/python3.8/site-packages/django/core/management/base.py", line 392, in check all_issues = checks.run_checks( File "/data/omp/component/env/lib/python3.8/site-packages/django/core/checks/registry.py", line 70, in run_checks new_errors = check(app_configs=app_configs, databases=databases) File "/data/omp/component/env/lib/python3.8/site-packages/django/core/checks/urls.py", line 13, in check_url_config return check_resolver(resolver) File "/data/omp/component/env/lib/python3.8/site-packages/django/core/checks/urls.py", line 23, in check_resolver return check_method() File "/data/omp/component/env/lib/python3.8/site-packages/django/urls/resolvers.py", line 408, in check for pattern in self.url_patterns: File "/data/omp/component/env/lib/python3.8/site-packages/django/utils/functional.py", line 48, in get res = instance.dict[self.name] = self.func(instance) File "/data/omp/component/env/lib/python3.8/site-packages/django/urls/resolvers.py", line 589, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/data/omp/component/env/lib/python3.8/site-packages/django/utils/functional.py", line 48, in get res = instance.dict[self.name] = self.func(instance) File "/data/omp/component/env/lib/python3.8/site-packages/django/urls/resolvers.py", line 582, in urlconf_module return import_module(self.urlconf_name) File "/usr/local/python3/lib/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 843, in exec_module File "", line 219, in _call_with_frames_removed File "/data/omp/omp_server/omp_server/urls.py", line 26, in from users.urls import router as users_router File "/data/omp/omp_server/users/urls.py", line 15, in from users.views import ( File "/data/omp/omp_server/users/views.py", line 30, in from users.users_serializers import ( File "/data/omp/omp_server/users/users_serializers.py", line 27, in from utils.plugin.crypto import decrypt_rsa File "/data/omp/omp_server/utils/plugin/crypto.py", line 3, in from Crypto.PublicKey import RSA File "/data/omp/component/env/lib/python3.8/site-packages/Crypto/PublicKey/RSA.py", line 585 except ValueError, IndexError: ^ SyntaxError: invalid syntax Traceback (most recent call last): File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 73, in execute return self.cursor.execute(query, args) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/cursors.py", line 148, in execute result = self._query(query) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/cursors.py", line 310, in _query conn.query(q) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 548, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 775, in _read_query_result result.read() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 1156, in read first_packet = self.connection._read_packet() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 725, in _read_packet packet.raise_for_error() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/protocol.py", line 221, in raise_for_error err.raise_mysql_exception(self._data) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/err.py", line 143, in raise_mysql_exception raise errorclass(errno, errval) pymysql.err.ProgrammingError: (1146, "Table 'omp.omp_user_profile' doesn't exist")

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/data/omp/scripts/source/update_data.py", line 458, in main() File "/data/omp/scripts/source/update_data.py", line 446, in main create_default_user() File "/data/omp/scripts/source/update_data.py", line 40, in create_default_user if UserProfile.objects.filter(username=username).count() != 0: File "/data/omp/component/env/lib/python3.8/site-packages/django/db/models/query.py", line 411, in count return self.query.get_count(using=self.db) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/models/sql/query.py", line 515, in get_count number = obj.get_aggregation(using, ['count'])['count'] File "/data/omp/component/env/lib/python3.8/site-packages/django/db/models/sql/query.py", line 500, in get_aggregation result = compiler.execute_sql(SINGLE) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql cursor.execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 98, in execute return super().execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers return executor(sql, params, many, context) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/utils.py", line 90, in exit raise dj_exc_value.with_traceback(traceback) from exc_value File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 73, in execute return self.cursor.execute(query, args) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/cursors.py", line 148, in execute result = self._query(query) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/cursors.py", line 310, in _query conn.query(q) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 548, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 775, in _read_query_result result.read() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 1156, in read first_packet = self.connection._read_packet() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 725, in _read_packet packet.raise_for_error() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/protocol.py", line 221, in raise_for_error err.raise_mysql_exception(self._data) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/err.py", line 143, in raise_mysql_exception raise errorclass(errno, errval) django.db.utils.ProgrammingError: (1146, "Table 'omp.omp_user_profile' doesn't exist") mysql [running] redis [running] tengine [running] uwsgi [running] worker [running] cron [running] Traceback (most recent call last): File "/data/omp/component/env/bin/salt-master", line 8, in sys.exit(salt_master()) File "/data/omp/component/env/lib/python3.8/site-packages/salt/scripts.py", line 95, in salt_master import salt.cli.daemons File "/data/omp/component/env/lib/python3.8/site-packages/salt/cli/daemons.py", line 53, in import salt.utils.parsers File "/data/omp/component/env/lib/python3.8/site-packages/salt/utils/parsers.py", line 24, in import salt.config as config File "/data/omp/component/env/lib/python3.8/site-packages/salt/config/init.py", line 103, in _DFLT_IPC_WBUFFER = _gather_buffer_space() * 0.5 File "/data/omp/component/env/lib/python3.8/site-packages/salt/config/init.py", line 91, in _gather_buffer_space import salt.grains.core File "/data/omp/component/env/lib/python3.8/site-packages/salt/grains/core.py", line 31, in import salt.modules.cmdmod File "/data/omp/component/env/lib/python3.8/site-packages/salt/modules/cmdmod.py", line 31, in import salt.utils.templates File "/data/omp/component/env/lib/python3.8/site-packages/salt/utils/templates.py", line 19, in import salt.utils.jinja File "/data/omp/component/env/lib/python3.8/site-packages/salt/utils/jinja.py", line 21, in import salt.fileclient File "/data/omp/component/env/lib/python3.8/site-packages/salt/fileclient.py", line 14, in import salt.crypt File "/data/omp/component/env/lib/python3.8/site-packages/salt/crypt.py", line 27, in import salt.utils.crypt File "/data/omp/component/env/lib/python3.8/site-packages/salt/utils/crypt.py", line 22, in import Crypto.Random File "/data/omp/component/env/lib/python3.8/site-packages/Crypto/Random/init.py", line 28, in from Crypto.Random import OSRNG File "/data/omp/component/env/lib/python3.8/site-packages/Crypto/Random/OSRNG/init.py", line 32, in from Crypto.Random.OSRNG.posix import new File "/data/omp/component/env/lib/python3.8/site-packages/Crypto/Random/OSRNG/posix.py", line 66 except IOError, e: ^ SyntaxError: invalid syntax salt [running] alertmanager [running] grafana-server [running] loki [running] prometheus [running] ntpd [running] grafana-server [running] {"message":"Logged in"} Traceback (most recent call last): File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 73, in execute return self.cursor.execute(query, args) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/cursors.py", line 148, in execute result = self._query(query) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/cursors.py", line 310, in _query conn.query(q) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 548, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 775, in _read_query_result result.read() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 1156, in read first_packet = self.connection._read_packet() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 725, in _read_packet packet.raise_for_error() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/protocol.py", line 221, in raise_for_error err.raise_mysql_exception(self._data) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/err.py", line 143, in raise_mysql_exception raise errorclass(errno, errval) pymysql.err.ProgrammingError: (1146, "Table 'omp.omp_promemonitor_url' doesn't exist")

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/data/omp/scripts/source/update_grafana.py", line 319, in synch_grafana_info() File "/data/omp/omp_server/utils/plugin/synch_grafana.py", line 37, in synch_grafana_info monitor_url = monitor_ip[0].monitor_url if len( File "/data/omp/component/env/lib/python3.8/site-packages/django/db/models/query.py", line 269, in len self._fetch_all() File "/data/omp/component/env/lib/python3.8/site-packages/django/db/models/query.py", line 1308, in _fetch_all self._result_cache = list(self._iterable_class(self)) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/models/query.py", line 53, in iter results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql cursor.execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 98, in execute return super().execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers return executor(sql, params, many, context) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/utils.py", line 90, in exit raise dj_exc_value.with_traceback(traceback) from exc_value File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 73, in execute return self.cursor.execute(query, args) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/cursors.py", line 148, in execute result = self._query(query) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/cursors.py", line 310, in _query conn.query(q) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 548, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 775, in _read_query_result result.read() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 1156, in read first_packet = self.connection._read_packet() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 725, in _read_packet packet.raise_for_error() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/protocol.py", line 221, in raise_for_error err.raise_mysql_exception(self._data) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/err.py", line 143, in raise_mysql_exception raise errorclass(errno, errval) django.db.utils.ProgrammingError: (1146, "Table 'omp.omp_promemonitor_url' doesn't exist") Grafana配置更新失败 (env) [root@localhost omp]# cd omp_server/ (env) [root@localhost omp_server]# ls app_store db_models dev_requirement.txt inspection omp_server services tests users backups dev_code.md hosts manage.py promemonitor service_upgrade tool utils (env) [root@localhost omp_server]# python manage.py shell Python 3.8.12 (default, Apr 21 2022, 00:27:40) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole)

from utils.plugin.synch_grafana import synch_grafana_info synch_grafana_info() Traceback (most recent call last): File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 73, in execute return self.cursor.execute(query, args) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/cursors.py", line 148, in execute result = self._query(query) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/cursors.py", line 310, in _query conn.query(q) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 548, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 775, in _read_query_result result.read() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 1156, in read first_packet = self.connection._read_packet() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 725, in _read_packet packet.raise_for_error() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/protocol.py", line 221, in raise_for_error err.raise_mysql_exception(self._data) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/err.py", line 143, in raise_mysql_exception raise errorclass(errno, errval) pymysql.err.ProgrammingError: (1146, "Table 'omp.omp_promemonitor_url' doesn't exist")

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "", line 1, in File "/data/omp/omp_server/utils/plugin/synch_grafana.py", line 37, in synch_grafana_info monitor_url = monitor_ip[0].monitor_url if len( File "/data/omp/component/env/lib/python3.8/site-packages/django/db/models/query.py", line 269, in len self._fetch_all() File "/data/omp/component/env/lib/python3.8/site-packages/django/db/models/query.py", line 1308, in _fetch_all self._result_cache = list(self._iterable_class(self)) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/models/query.py", line 53, in iter results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql cursor.execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 98, in execute return super().execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers return executor(sql, params, many, context) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/utils.py", line 90, in exit raise dj_exc_value.with_traceback(traceback) from exc_value File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 73, in execute return self.cursor.execute(query, args) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/cursors.py", line 148, in execute result = self._query(query) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/cursors.py", line 310, in _query conn.query(q) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 548, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 775, in _read_query_result result.read() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 1156, in read first_packet = self.connection._read_packet() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 725, in _read_packet packet.raise_for_error() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/protocol.py", line 221, in raise_for_error err.raise_mysql_exception(self._data) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/err.py", line 143, in raise_mysql_exception raise errorclass(errno, errval) django.db.utils.ProgrammingError: (1146, "Table 'omp.omp_promemonitor_url' doesn't exist")

exit()

(env) [root@localhost omp_server]# python /data/omp/scripts/source/update_grafana.py 192.168.57.129 Traceback (most recent call last): File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 73, in execute return self.cursor.execute(query, args) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/cursors.py", line 148, in execute result = self._query(query) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/cursors.py", line 310, in _query conn.query(q) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 548, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 775, in _read_query_result result.read() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 1156, in read first_packet = self.connection._read_packet() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 725, in _read_packet packet.raise_for_error() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/protocol.py", line 221, in raise_for_error err.raise_mysql_exception(self._data) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/err.py", line 143, in raise_mysql_exception raise errorclass(errno, errval) pymysql.err.ProgrammingError: (1146, "Table 'omp.omp_promemonitor_url' doesn't exist")

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/data/omp/scripts/source/update_grafana.py", line 319, in synch_grafana_info() File "/data/omp/omp_server/utils/plugin/synch_grafana.py", line 37, in synch_grafana_info monitor_url = monitor_ip[0].monitor_url if len( File "/data/omp/component/env/lib/python3.8/site-packages/django/db/models/query.py", line 269, in len self._fetch_all() File "/data/omp/component/env/lib/python3.8/site-packages/django/db/models/query.py", line 1308, in _fetch_all self._result_cache = list(self._iterable_class(self)) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/models/query.py", line 53, in iter results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql cursor.execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 98, in execute return super().execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 66, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers return executor(sql, params, many, context) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/utils.py", line 90, in exit raise dj_exc_value.with_traceback(traceback) from exc_value File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/data/omp/component/env/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 73, in execute return self.cursor.execute(query, args) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/cursors.py", line 148, in execute result = self._query(query) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/cursors.py", line 310, in _query conn.query(q) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 548, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 775, in _read_query_result result.read() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 1156, in read first_packet = self.connection._read_packet() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/connections.py", line 725, in _read_packet packet.raise_for_error() File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/protocol.py", line 221, in raise_for_error err.raise_mysql_exception(self._data) File "/data/omp/component/env/lib/python3.8/site-packages/pymysql/err.py", line 143, in raise_mysql_exception raise errorclass(errno, errval) django.db.utils.ProgrammingError: (1146, "Table 'omp.omp_promemonitor_url' doesn't exist")

cc0411 commented 2 years ago

pycryptodome包 不要装pycrypto

cc0411 commented 2 years ago

(env) [root@localhost omp]# sh scripts/install.sh 通过命令获取本机ip如下: 若选择ip: 192.168.57.129 请输入id: 0

请选择本机ip对应的id,如果ip不在上述输出中请输入N > 0 确认当前主机ip为【192.168.57.129】请输入 Y, 重新选择请输入N > y Start Update Conf! Finish Update Conf! mysql [running] redis [running] tengine [running] uwsgi [running] worker [running] cron [running] salt [running] alertmanager [running] grafana-server [running] loki [running] prometheus [running] ntpd [running] grafana-server [running] {"message":"Logged in"} omp server端保活任务添加成功

=========OMP平台访问信息================ 平台访问地址:http://192.168.57.129:19001 平台默认用户:admin 平台默认密码:Yunweiguanli@OMP_123 这次就可以了 加密包有问题,你可以更新一下req这个文件

cc0411 commented 2 years ago

还缺包uwsgi 不然api起不来,

Xiaoyuerwise commented 1 year ago

收到,非常感谢,依赖文件已更新

csyyy106 commented 1 year ago

为啥我老是 报 这个啊。。。 image