Comments (3)
问题解决了
我下载了一个本地mysql5.6数据库 并按照本地安装教程配置 ,之后使用readme的docker容器启动步骤(不用wiki的docker-compose),只不过在docker run 那一步增加了 --network="host" 让容器使用本地网络作为主机。然后再设置中把host都设置成127.0.0.1, 可成功执行migration操作。
对于 opsmanage使用docker-compose up -d 启动,想把容器内网络变为主机的操作是修改docker-compose.yml 文件,去掉 networks:default,变成 network_mode: host,但是使用docker-compose启动我在执行start.sh脚本 - > init.sql这一步时会报 mysql_exceptions.OperationalError: (1050, "Table 'django_content_type' already exist)这个Table类型已经存在的错误。懒得解决于是删了opsmanage数据库重建,换了readme文档的部署方法。
总之 这次连接数据库失败是因为网络原因 我也不知道为啥我dockercompose起的ip‘’db‘’ 没法让同一个默认网络的 ops_web访问到。但问题总算是解决了:)
from opsmanage.
一样的报错
from opsmanage.
docker logs ops_web
报错:
Traceback (most recent call last):
File "manage.py", line 23, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.6/site-packages/django/core/management/init.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.6/site-packages/django/core/management/init.py", line 325, in execute
settings.INSTALLED_APPS
File "/usr/local/lib/python3.6/site-packages/django/conf/init.py", line 79, in getattr
self._setup(name)
File "/usr/local/lib/python3.6/site-packages/django/conf/init.py", line 66, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.6/site-packages/django/conf/init.py", line 157, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/local/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/data/apps/opsmanage/OpsManage/settings.py", line 43, in
DEBUG = true
NameError: name 'true' is not defined
Unlinking stale socket /tmp/supervisor. Sock
from opsmanage.
Related Issues (20)
- demo访问不了,请修复 HOT 1
- 删除mysql的数据导致界面接口异常 HOT 2
- 修改资产报错接口500 HOT 1
- 项目发布流程卡住一直进行中 HOT 8
- 服务器列表获取失败 HOT 1
- crontab名称,禁用时不支持“空格” HOT 1
- cron修改时,不会影响目标服务器的cron HOT 2
- 计划任务-任务配置-Crontab,命令不支持单引号 HOT 1
- 目标服务器在哪儿录入啊 HOT 2
- css 未载入,因为它的 MIME 类型 "text/html" 不是 "text/css"。 HOT 1
- 部署完毕后,系统web界面显示异常,浏览器开发工具显示各种Uncaught SyntaxError: Unexpected token '<' (at XX.js HOT 4
- 部署工具-资产配置-资产组变更,“修改主机”项出现多个undefined HOT 1
- 访问api/assets接口500 HOT 1
- You have 39 unapplied migration(s) HOT 2
- 模塊工具 使用詢問 HOT 2
- ansible 相關問題 HOT 1
- demo环境打不开 HOT 1
- A graphical operation and maintenance inspection tool 面向个人的可视化运维巡检工具,个人运维工具中的 瑞士军刀 ,无需安装,开箱即用! 目前基础功能已开发完成,基本可用,还处于完善阶段 大概功能构想为: 创建一个项目,在项目里创建资源,再创建巡检模板,模板里可选择目标主机/主机组,选择要执行的巡检命令或操作,可定时执行,执行完成后可发邮件通知 以及在线批量shell交互,shell终端支持彩色及自定义单词/字符高亮 开源地址: https://github.com/limaofu/cofable
- 部署报错 HOT 3
- 支持docker或者compose灵活编排一键部署吗?服务器要求需要多少配置 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opsmanage.