Comments (5)
明了,在提供了 connectString 时应跳过 MongoDB 检测。
from docker-yapi.
等待 ci 构建镜像。
from docker-yapi.
好了,重新拉取镜像再试。
from docker-yapi.
新问题。。 @fjc0k
启动引导服务...
写入配置...
{
"plugins": [
{
"name": "add-user",
"options": {}
}
],
"adminAccount": "**",
"adminPassword": "**",
"closeRegister": false,
"port": 3000,
"db": {
"DATABASE": "yapi",
"user": "**",
"pass": "**",
"connectString": "mongodb+srv://**:**@mongo-cluster1-rs0.psmdb.svc.cluster.local/yapi?replicaSet=rs0&ssl=false&slaveOk=true"
},
"mail": {
"enable": false,
"auth": {}
},
"ldapLogin": {
"enable": false
}
}
等待 MongoDB 服务可用...
安装 YApi 插件...
尝试安装 YApi...
+ node '--unhandled-rejections=strict' /yapi/vendors/server/install.js
/yapi/vendors/node_modules/mongoose/lib/error/validation.js:31
Error.captureStackTrace(this);
^
Error [ValidationError]: user validation failed: username: Path `username` is required.
at ValidationError.inspect (/yapi/vendors/node_modules/mongoose/lib/error/validation.js:61:24)
at formatValue (internal/util/inspect.js:703:31)
at inspect (internal/util/inspect.js:272:10)
at afterInspector (internal/errors.js:681:14)
at processPromiseRejections (internal/process/promises.js:194:9)
at processTicksAndRejections (internal/process/task_queues.js:98:32) {
errors: {
username: MongooseError [ValidatorError]: Path `username` is required.
at new ValidatorError (/yapi/vendors/node_modules/mongoose/lib/error/validator.js:29:11)
at validate (/yapi/vendors/node_modules/mongoose/lib/schematype.js:1055:13)
at /yapi/vendors/node_modules/mongoose/lib/schematype.js:1109:11
at Array.forEach (<anonymous>)
at SchemaString.SchemaType.doValidate (/yapi/vendors/node_modules/mongoose/lib/schematype.js:1064:14)
at /yapi/vendors/node_modules/mongoose/lib/document.js:2190:9
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
properties: [Object],
kind: 'required',
path: 'username',
value: '',
reason: undefined,
[Symbol(mongoose:validatorError)]: true
}
},
_message: 'user validation failed'
}
关闭引导服务...
尝试启动 YApi...
log: -------------------------------------swaggerSyncUtils constructor-----------------------------------------------
log: 服务已启动,请打开下面链接访问:
http://127.0.0.1:3000/
log: mongodb load success...
from docker-yapi.
登入账号设置为邮箱格式,就可以通过 db 的校验了。
from docker-yapi.
Related Issues (20)
- 不能运行
- 设置YAPI_DB_USER、YAPI_DB_PASS之后,yapi-web运行报错
- 设置YAPI_DB_USER、YAPI_DB_PASS之后,yapi-web运行报错 HOT 2
- yapi-plugin-qsso 登录按钮不显示
- 无法上传postman json数据更新
- yapi-mongo exited HOT 2
- 您的CI挂了,导致dockerhub推送失败 HOT 3
- 更新不了,最新版本是1.10.2而不是1.20,在docker hub查询也是1.10.2 HOT 1
- 1.12.0 漏洞修复,镜像未更新成功 HOT 11
- 数据迁移重新部署后提示 等待 mongodb
- 登陆报504
- 该用户不存在
- 插件安装不了
- 增加内置插件
- yapi-mongo 的数据是一值存在吗
- 高级Mock保存不了
- 能不能给一个配置登录 MongoDB 服务的用户名和密码的docker-compose.yml啊 HOT 1
- 找不到插件 HOT 4
- Error: EROFS: read-only file system, mkdir '/sys/fs/cgroup/cpu/safeify' 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 docker-yapi.