cavaliercoder / alexandria Goto Github PK
View Code? Open in Web Editor NEWAlexandria CMDB
License: GNU General Public License v3.0
Alexandria CMDB
License: GNU General Public License v3.0
Hi, is implemented OU?
Thanks!
# /usr/local/go/bin/bin/alexandria $GOPATH/src/github.com/cavaliercoder/alexandria/answers.json
2015/08/05 02:47:19 Checking database schema...
2015/08/05 02:47:19 Loaded config from ./api.json
2015/08/05 02:47:19 MongoDB: Connecting to [localhost] (alexandria)...
2015/08/05 02:47:20 MongoDB: Validating connection...
2015/08/05 02:47:20 Database is not initialized but no answer file was specified.
# /usr/local/go/bin/bin/alexandria
2015/08/05 02:47:26 Checking database schema...
2015/08/05 02:47:26 Loaded config from ./api.json
2015/08/05 02:47:26 MongoDB: Connecting to [localhost] (alexandria)...
2015/08/05 02:47:26 MongoDB: Validating connection...
2015/08/05 02:47:26 Database is not initialized but no answer file was specified.
#cat $GOPATH/src/github.com/cavaliercoder/alexandria/answers.json
{
"tenant": {
"name": "Default tenant"
},
"user": {
"firstName": "wu",
"lastName": "CMDB",
"email": "root@localhost",
"password": "123456"
}
}
http://localhost:4124/login ,then Error
Runtime Panic
An error occurred communicating with backend services
In /app/controllers/controller.go (around line 138)
133:
// Submit the request
134:
revel.TRACE.Printf("API started: %s %s", method, url)
135:
start := time.Now()
136:
res, err := client.Do(req)
137:
if res == nil {
138:
revel.ERROR.Panic("An error occurred communicating with backend services")
139:
}
140:
revel.TRACE.Printf("API finished: %s in %s", res.Status, time.Since(start))
141:
142:
// Validate response
Call Stack
/usr/local/go/bin/src/github.com/cavaliercoder/alexandria-dashboard/app/controllers/controller.go:138 (0xa6454)
(*Controller).ApiRequest: revel.ERROR.Panic("An error occurred communicating with backend services")
/usr/local/go/bin/src/github.com/cavaliercoder/alexandria-dashboard/app/controllers/controller.go:225 (0xa76f3)
(*Controller).ApiPost: return c.ApiRequest("POST", path, options)
/usr/local/go/bin/src/github.com/cavaliercoder/alexandria-dashboard/app/controllers/auth.go:141 (0xa0f3b)
Auth.ValidateLogin: res, err := c.ApiPost("/apikey", ApiOptions{}, body)
<autogenerated>:136 (0xad369)
/usr/local/go/src/runtime/asm_amd64.s:403 (0x2b085)
call64: CALLFN(·call64, 64)
/usr/local/go/src/reflect/value.go:419 (0x52d25)
Value.call: call(fn, args, uint32(frametype.size), uint32(retOffset))
/usr/local/go/src/reflect/value.go:296 (0x51b1c)
Value.Call: return v.call("Call", in)
/usr/local/go/bin/src/github.com/revel/revel/invoker.go:36 (0x76424)
ActionInvoker: resultValue = methodValue.Call(methodArgs)[0]
/usr/local/go/bin/src/github.com/revel/revel/compress.go:47 (0x68402)
CompressFilter: fc[0](c, fc[1:])
/usr/local/go/bin/src/github.com/revel/revel/intercept.go:103 (0x74804)
InterceptorFilter: fc[0](c, fc[1:])
/usr/local/go/bin/src/github.com/cavaliercoder/alexandria-dashboard/app/init.go:48 (0x9f1ff)
func.001: fc[0](c, fc[1:]) // Execute the next filter stage.
/usr/local/go/bin/src/github.com/revel/revel/i18n.go:155 (0x73bd7)
I18nFilter: fc[0](c, fc[1:])
/usr/local/go/bin/src/github.com/revel/revel/validation.go:191 (0x8bad4)
ValidationFilter: fc[0](c, fc[1:])
/usr/local/go/bin/src/github.com/revel/revel/flash.go:46 (0x7076c)
FlashFilter: fc[0](c, fc[1:])
/usr/local/go/bin/src/github.com/revel/revel/session.go:149 (0x86c48)
SessionFilter: fc[0](c, fc[1:])
/usr/local/go/bin/src/github.com/revel/revel/params.go:133 (0x78209)
ParamsFilter: fc[0](c, fc[1:])
/usr/local/go/bin/src/github.com/revel/revel/filterconfig.go:208 (0x702f2)
FilterConfiguringFilter: fc[0](c, fc[1:])
/usr/local/go/bin/src/github.com/revel/revel/router.go:474 (0x840fc)
RouterFilter: fc[0](c, fc[1:])
/usr/local/go/bin/src/github.com/revel/revel/panic.go:15 (0x767f6)
PanicFilter: fc[0](c, fc[1:])
/usr/local/go/bin/src/github.com/revel/revel/watcher.go:232 (0x921de)
func.031: fc[0](c, fc[1:])
/usr/local/go/bin/src/github.com/revel/revel/server.go:50 (0x84bae)
handleInternal: Filters[0](c, Filters[1:])
/usr/local/go/bin/src/github.com/revel/revel/server.go:38 (0x84750)
handle: handleInternal(w, r, nil)
/usr/local/go/src/net/http/server.go:1265 (0x131c01)
HandlerFunc.ServeHTTP: f(w, r)
/usr/local/go/src/net/http/server.go:1703 (0x133c8a)
serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/usr/local/go/src/net/http/server.go:1204 (0x131757)
(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/usr/local/go/src/runtime/asm_amd64.s:2232 (0x2d0c1)
goexit:
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.