qitan / soms Goto Github PK
View Code? Open in Web Editor NEWSaltStack自动化运维平台-SOMS
License: GNU General Public License v3.0
SaltStack自动化运维平台-SOMS
License: GNU General Public License v3.0
第一次登录用身份验证器扫描QR码,退出后,打开身份验证器里复制验证码,然后在登录页面的验证码里粘贴,就可以登录 了。
python2.7版本当中,urllib2在发起urlopen请求过程中,发生SSL: CERTIFICATE_VERIFY_FAILED错误.
系统版本:centos 7.3 python 使用系统默认安装的 版本2.7.5
yum 安装 c++ 修改为 gcc-c++
yum -y update && yum -y install mariadb mariadb-devel mariadb-server wget epel-release python-devel gcc gcc-c++ make openssl openssl-devel passwd libffi libffi-devel
后按照流程安装完
python manage.py runserver 0.0.0.0:8080后进入主机管理刷新,页面报如下错
HTTPError at /deploy/key_list_import/
HTTP Error 401: Unauthorized
Request Method: GET
Request URL: http://192.168.91.150:8080/deploy/key_list_import/
Django Version: 1.9
Exception Type: HTTPError
Exception Value:
HTTP Error 401: Unauthorized
Exception Location: /usr/lib64/python2.7/urllib2.py in http_error_default, line 558
Python Executable: /usr/bin/python
Python Version: 2.7.5
Python Path:
['/data/wwwroot/SOMS',
'/usr/lib64/python27.zip',
'/usr/lib64/python2.7',
'/usr/lib64/python2.7/plat-linux2',
'/usr/lib64/python2.7/lib-tk',
'/usr/lib64/python2.7/lib-old',
'/usr/lib64/python2.7/lib-dynload',
'/usr/lib64/python2.7/site-packages',
'/usr/lib64/python2.7/site-packages/gtk-2.0',
'/usr/lib/python2.7/site-packages']
include: /data/wwwroot/soms/saltconfig/*.conf #这个路径clone仓库中没有该目录
非常感谢您的开源奉献精神,同时也非常敬佩您的能力,但是我作为一个职场新手在遇到问题的时候,找不到合适的社区,虽然网站但是我无法立即解决我的问题。我强烈建议弄几个qq群作为讨论群。来满足下我这样的小白。
小哥,在安装完之后,我发现没有手动添加资产和资产导入呢?那么问题来了,整个资产的入库的流程是什么样的呢?能否给小弟讲解一下。
还有你的那个salt配置文件,没有其他配置吧。我自己写个配置应该也可以吧。
可以了
安全密钥: T4FIHNMIQTZNGCVFNKFP2JTUUT5NCO3W
扫描二维码:
(空白的,没有内容)
添加完后请点击
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/python35/lib/python3.5/site-packages/django/core/management/init.py", line 364, in execute_from_command_line
utility.execute()
File "/usr/local/python35/lib/python3.5/site-packages/django/core/management/init.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/python35/lib/python3.5/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/python35/lib/python3.5/site-packages/django/core/management/base.py", line 327, in execute
self.check()
File "/usr/local/python35/lib/python3.5/site-packages/django/core/management/base.py", line 359, in check
include_deployment_checks=include_deployment_checks,
File "/usr/local/python35/lib/python3.5/site-packages/django/core/management/base.py", line 346, in _run_checks
return checks.run_checks(**kwargs)
File "/usr/local/python35/lib/python3.5/site-packages/django/core/checks/registry.py", line 81, in run_checks
new_errors = check(app_configs=app_configs)
File "/usr/local/python35/lib/python3.5/site-packages/django/core/checks/urls.py", line 16, in check_url_config
return check_resolver(resolver)
File "/usr/local/python35/lib/python3.5/site-packages/django/core/checks/urls.py", line 26, in check_resolver
return check_method()
File "/usr/local/python35/lib/python3.5/site-packages/django/urls/resolvers.py", line 254, in check
for pattern in self.url_patterns:
File "/usr/local/python35/lib/python3.5/site-packages/django/utils/functional.py", line 35, in get
res = instance.dict[self.name] = self.func(instance)
File "/usr/local/python35/lib/python3.5/site-packages/django/urls/resolvers.py", line 405, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/usr/local/python35/lib/python3.5/site-packages/django/utils/functional.py", line 35, in get
res = instance.dict[self.name] = self.func(instance)
File "/usr/local/python35/lib/python3.5/site-packages/django/urls/resolvers.py", line 398, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/local/python35/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "", line 673, in exec_module
File "", line 222, in _call_with_frames_removed
File "/data/wwwroot/soms/urls.py", line 23, in
from asset import views as aviews
File "/data/wwwroot/asset/views.py", line 15, in
其中一些模块无法使用 也没有资料显示。。。。
怎么添加资产?
TypeError: int() argument must be a string or a number, not 'NoneType'
刷新资产信息过程中,在获取disk.usage过程中如果磁盘空间为None,会抛出异常进而无法导入.
因为windows磁盘有可能会是CD-ROM,无存储空间.
添加一个判断后,恢复.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.