Open castos opened 10 years ago
Have you tried running any of the tests?
As you advised I have started signups-test.js Here is the whole report:
~/safewallet# node test/signups-test.js
connect: multipart: use parser (multiparty, busboy, formidable) directly
connect: limit: Restrict request size at location of read
TAP version 13
# start safewallet server
ok 1 no error
ok 2 server is returned
# signup with a new user
not ok 3 should be equal
---
file: /root/safewallet/node_modules/supertest/lib/test.js
line: 205
column: 12
stack:
- getCaller (/root/safewallet/node_modules/tap/lib/tap-assert.js:418:17)
- assert (/root/safewallet/node_modules/tap/lib/tap-assert.js:21:16)
- Function.equal (/root/safewallet/node_modules/tap/lib/tap-assert.js:162:10)
- Test._testAssert [as equal] (/root/safewallet/node_modules/tap/lib/tap-test.js:87:16)
- /root/safewallet/test/signups-test.js:31:9
- Test.assert (/root/safewallet/node_modules/supertest/lib/test.js:205:12)
- Server.assert (/root/safewallet/node_modules/supertest/lib/test.js:132:12)
- Server.g (events.js:180:16)
- Server.EventEmitter.emit (events.js:92:17)
- net.js:1276:10
found: ~
wanted:
name: Error
message: expected 301 "Moved Permanently", got 200 "OK"
type: ~
type:
found: undefined
wanted: undefined
...
not ok 4 should be equal
---
file: /root/safewallet/node_modules/supertest/lib/test.js
line: 205
column: 12
stack:
- getCaller (/root/safewallet/node_modules/tap/lib/tap-assert.js:418:17)
- assert (/root/safewallet/node_modules/tap/lib/tap-assert.js:21:16)
- Function.equal (/root/safewallet/node_modules/tap/lib/tap-assert.js:162:10)
- Test._testAssert [as equal] (/root/safewallet/node_modules/tap/lib/tap-test.js:87:16)
- /root/safewallet/test/signups-test.js:32:9
- Test.assert (/root/safewallet/node_modules/supertest/lib/test.js:205:12)
- Server.assert (/root/safewallet/node_modules/supertest/lib/test.js:132:12)
- Server.g (events.js:180:16)
- Server.EventEmitter.emit (events.js:92:17)
- net.js:1276:10
found: missing
wanted: Moved Permanently. Redirecting to /wallet
diff: |
FOUND: missing
WANTED: Moved Permanently. Redirecting to /walle
^ (at position = 0)
...
# try to get /account page while logged in ( with session from signup )
not ok 5 should be equal
---
file: /root/safewallet/node_modules/supertest/lib/test.js
line: 205
column: 12
stack:
- getCaller (/root/safewallet/node_modules/tap/lib/tap-assert.js:418:17)
- assert (/root/safewallet/node_modules/tap/lib/tap-assert.js:21:16)
- Function.equal (/root/safewallet/node_modules/tap/lib/tap-assert.js:162:10)
- Test._testAssert [as equal] (/root/safewallet/node_modules/tap/lib/tap-test.js:87:16)
- /root/safewallet/test/signups-test.js:43:9
- Test.assert (/root/safewallet/node_modules/supertest/lib/test.js:205:12)
- Server.assert (/root/safewallet/node_modules/supertest/lib/test.js:132:12)
- Server.g (events.js:180:16)
- Server.EventEmitter.emit (events.js:92:17)
- net.js:1276:10
found: ~
wanted:
name: Error
message: expected 200 "OK", got 301 "Moved Permanently"
type: ~
type:
found: undefined
wanted: undefined
...
# try to get /wallet page while logged in ( with session from signup )
not ok 6 should be equal
---
file: /root/safewallet/node_modules/supertest/lib/test.js
line: 205
column: 12
stack:
- getCaller (/root/safewallet/node_modules/tap/lib/tap-assert.js:418:17)
- assert (/root/safewallet/node_modules/tap/lib/tap-assert.js:21:16)
- Function.equal (/root/safewallet/node_modules/tap/lib/tap-assert.js:162:10)
- Test._testAssert [as equal] (/root/safewallet/node_modules/tap/lib/tap-test.js:87:16)
- /root/safewallet/test/signups-test.js:54:9
- Test.assert (/root/safewallet/node_modules/supertest/lib/test.js:205:12)
- Server.assert (/root/safewallet/node_modules/supertest/lib/test.js:132:12)
- Server.g (events.js:180:16)
- Server.EventEmitter.emit (events.js:92:17)
- net.js:1276:10
found: ~
wanted:
name: Error
message: expected 200 "OK", got 301 "Moved Permanently"
type: ~
type:
found: undefined
wanted: undefined
...
# logout of the current session
ok 7 should be equal
# try to signup another user with the same name
ok 8 should be equal
not ok 9 should be equal
---
file: /root/safewallet/test/signups-test.js
line: 77
column: 9
stack:
- getCaller (/root/safewallet/node_modules/tap/lib/tap-assert.js:418:17)
- assert (/root/safewallet/node_modules/tap/lib/tap-assert.js:21:16)
- Function.equal (/root/safewallet/node_modules/tap/lib/tap-assert.js:162:10)
- Test._testAssert [as equal] (/root/safewallet/node_modules/tap/lib/tap-test.js:87:16)
- Test.<anonymous> (/root/safewallet/test/signups-test.js:77:9)
- Test.assert (/root/safewallet/node_modules/supertest/lib/test.js:221:6)
- Server.assert (/root/safewallet/node_modules/supertest/lib/test.js:132:12)
- Server.g (events.js:180:16)
- Server.EventEmitter.emit (events.js:92:17)
- net.js:1276:10
found: missing
wanted: user name is unavailable.
diff: |
FOUND: missing
WANTED: user name is unavailable.
^ (at position = 0)
...
# try to get /account page with expired cookie
ok 10 should be equal
# try to get /wallet page with expired cookie
ok 11 should be equal
# try to log in with the first user - wrong password
ok 12 should be equal
ok 13 should be equal
# try to log in with the first user - no password
ok 14 should be equal
ok 15 should be equal
# try to log in with the first user - correct password
not ok 16 should be equal
---
file: /root/safewallet/node_modules/supertest/lib/test.js
line: 205
column: 12
stack:
- getCaller (/root/safewallet/node_modules/tap/lib/tap-assert.js:418:17)
- assert (/root/safewallet/node_modules/tap/lib/tap-assert.js:21:16)
- Function.equal (/root/safewallet/node_modules/tap/lib/tap-assert.js:162:10)
- Test._testAssert [as equal] (/root/safewallet/node_modules/tap/lib/tap-test.js:87:16)
- /root/safewallet/test/signups-test.js:135:9
- Test.assert (/root/safewallet/node_modules/supertest/lib/test.js:205:12)
- Server.assert (/root/safewallet/node_modules/supertest/lib/test.js:132:12)
- Server.g (events.js:180:16)
- Server.EventEmitter.emit (events.js:92:17)
- net.js:1276:10
found: ~
wanted:
name: Error
message: expected 301 "Moved Permanently", got 200 "OK"
type: ~
type:
found: undefined
wanted: undefined
...
TypeError: Cannot call method 'destroy' of undefined
at /root/safewallet/test/signups-test.js:142:13
at callbackWrap (/root/safewallet/node_modules/resource/lib/method.js:152:27)
at /root/safewallet/node_modules/resource/lib/datasource/find.js:36:7
at /root/safewallet/node_modules/resource/node_modules/jugglingdb/lib/model.js:453:13
at /root/safewallet/node_modules/jugglingdb-nano/lib/nano.js:280:18
at Object.exports.handle (/root/safewallet/node_modules/jugglingdb-nano/node_modules/nano/node_modules/errs/lib/errs.js:198:5)
at Request._callback (/root/safewallet/node_modules/jugglingdb-nano/node_modules/nano/nano.js:304:16)
at Request.self.callback (/root/safewallet/node_modules/jugglingdb-nano/node_modules/nano/node_modules/request/request.js:129:22)
at Request.EventEmitter.emit (events.js:98:17)
at Request.<anonymous> (/root/safewallet/node_modules/jugglingdb-nano/node_modules/nano/node_modules/request/request.js:873:14)
Maybe it is just couchdb problem? Looks like it can't create records to database (or can't create json files). I have checked the directory where json files should be created, permissions are ok but it is empty. I haven't found the solving of this via google.
Must be a misconfiguration with your local env. You'll have to dig into it.
I'll do that, thanks. Will post here the solution if I find it.
I've updated the installation instructions and have made a few code changes that might help.
If you rm
your current Safewallet folder and re-install using these instructions you should be able to get the application working. https://github.com/bigcompany/safewallet/wiki/Installation
FYI, with the most recent changes I was able to get the tests to pass on Travis, so it should be good to go. https://travis-ci.org/bigcompany/safewallet
@Marak, Great thanks, it works now. I have replaced by Feathercoin (feathercoin blockchain url, ftc/usd price counting) all other coins through the source code.
Then started Services in Production mode by startup scripts (safewallet/scripts/) at http://mensfreedom.com:8888/
Then I registered, signed and created new feathercoin address: http://explorer.feathercoin.com/address/6kQt5TkgJ8ZvgK4t5aCy9fqiPmJkxn4t2n
After sending 0.4 FTC nothing changed in frontend. But the transaction is received by coin daemon.
feathercoind getreceivedbyaddress 6kQt5TkgJ8ZvgK4t5aCy9fqiPmJkxn4t2n
0.40000000
The deposits logfile contain "error making deposit. please check blockchain balances" How many confirmations needs the deposit to be shown?
Also, I can't open http://mensfreedom.com:8888/vault
I have already installed couchdb and configured it with creating database admin user. Then have changed config file with admin's username and password. Also I have created resource database with
But when running safewallet's frontend and trying to signup something going wrong. After completing the form and pressing sign up now button the /signup page in browser shows
Please help me to find where is the problem?