Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in account_options during server installation #67

Open
MMartynenko opened this issue Jan 27, 2016 · 2 comments
Open

Error in account_options during server installation #67

MMartynenko opened this issue Jan 27, 2016 · 2 comments

Comments

@MMartynenko
Copy link

Recently downloaded and installed a local bipio server instance. The server started up correctly and visiting localhost:5000/status indicated that all connections were working. However, I failed to mount the server on bip.io. Likewise, requests to localhost:5000/login failed, as well as attempts to manually POST bips to the server via a REST client.

A bit of digging revealed that the server was complaining about a missing entry in the account_options collection on the bipio database. The collection was completely empty. A reinstall of the server allowed me to catch these errors during installation:

Trace: Caught exception: TypeError: this.getAccountInfo(...).testDomain is not a function
TypeError: this.getAccountInfo(...).testDomain is not a function
at model.AccountOption.entitySchema.bip_domain_id.validate.validator (/home/mark/bipio/src/models/account_option.js:150:43)
at /home/mark/bipio/node_modules/mongoose/lib/schematype.js:686:19
at Array.forEach (native)
at SchemaString.SchemaType.doValidate (/home/mark/bipio/node_modules/mongoose/lib/schematype.js:667:19)
at /home/mark/bipio/node_modules/mongoose/lib/document.js:1133:9
at doNTCallback0 (node.js:419:9)
at process._tickDomainCallback (node.js:389:13)
at Object.app.logmessage (/home/mark/bipio/src/bootstrap.js:192:15)
at process. (/home/mark/bipio/src/bootstrap.js:255:9)
at emitOne (events.js:82:20)
at process.emit (events.js:169:7)
at process._fatalException (node.js:223:26)
Trace: WORKER:PID:5378:1453918898640:Caught exception: TypeError: this.getAccountInfo(...).testDomain is not a function
TypeError: this.getAccountInfo(...).testDomain is not a function
at model.AccountOption.entitySchema.bip_domain_id.validate.validator (/home/mark/bipio/src/models/account_option.js:150:43)
at /home/mark/bipio/node_modules/mongoose/lib/schematype.js:686:19
at Array.forEach (native)
at SchemaString.SchemaType.doValidate (/home/mark/bipio/node_modules/mongoose/lib/schematype.js:667:19)
at /home/mark/bipio/node_modules/mongoose/lib/document.js:1133:9
at doNTCallback0 (node.js:419:9)
at process._tickDomainCallback (node.js:389:13)
at Object.app.logmessage (/home/mark/bipio/src/bootstrap.js:210:14)
at process. (/home/mark/bipio/src/bootstrap.js:255:9)
at emitOne (events.js:82:20)
at process.emit (events.js:169:7)
at process._fatalException (node.js:223:26)

This appears to be an issue with the commit from December 15th. Thank you in advance.

@akane-tendo
Copy link

Hi,
I have the same issue as well, so I'm unable to setup bipio server :(
Can anyone have a look at this issue? It's been 3 months already since the previous guy posted.
Thanks!

@akane-tendo
Copy link

I fixed this issue by rolling back the changes happened on 15 Dec 2015 on src/models/account_option.js file

0073614

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants