Giter Site home page Giter Site logo

Comments (6)

YvesDev avatar YvesDev commented on July 20, 2024 3

检查mongodb的账号及密码,检查yapi的config.json的"user":"pass":是否正确,并且"authSource": "admin"

from docker-yapi.

fjc0k avatar fjc0k commented on July 20, 2024

自身配置问题,自行解决。

from docker-yapi.

greper avatar greper commented on July 20, 2024

自身配置问题,自行解决。

我也遇到同样的问题
我查看源码发现,并不是我们配置问题,而是config.json生成的位置不对
生成的config.json 位于/yapi/config.json目录下
而执行install时,/yapi/vendors/server/yapi.js 读取的是 /yapi/vendors/config.json
所以实际问题是config.json生成的位置错了

from docker-yapi.

fjc0k avatar fjc0k commented on July 20, 2024

@greper install 的 config 来自 yapi,yapi 的 config 来自 /yapi/config.json,如果生成位置不对,那么大部分人都会出现问题,而不是个别人出现问题。
https://github.com/fjc0k/YApi-X/blob/master/server/yapi.js#L4

from docker-yapi.

greper avatar greper commented on July 20, 2024

@greper install 的 config 来自 yapi,yapi 的 config 来自 /yapi/config.json,如果生成位置不对,那么大部分人都会出现问题,而不是个别人出现问题。
https://github.com/fjc0k/YApi-X/blob/master/server/yapi.js#L4
不好意思,搞错了,我再看看

from docker-yapi.

qiusheng2011 avatar qiusheng2011 commented on July 20, 2024

mongo 账号和密码都对, 命令行能登录进去, config.json 也对,但是就是启动失败啊

from docker-yapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.