Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

running test make the node crash #110

Closed
fix opened this issue May 10, 2016 · 5 comments
Closed

running test make the node crash #110

fix opened this issue May 10, 2016 · 5 comments

Comments

@fix
Copy link
Contributor

fix commented May 10, 2016

basically when registering a dapp

fatal 2016-05log 2016-05-10 12:37:30 GET /api/blocks/getHeight from 127.0.0.1 
log 2016-05-10 12:37:31 GET /api/dapps from 127.0.0.1 
log 2016-05-10 12:37:31 GET /api/dapps?category=a%20category&name=1234&type=type&link=1234&icon=1234 from 127.0.0.1 
log 2016-05-10 12:37:31 GET /api/dapps?orderBy=category:asc from 127.0.0.1 
log 2016-05-10 12:37:31 GET /api/dapps?orderBy=category:desc from 127.0.0.1 
log 2016-05-10 12:37:31 GET /api/dapps?limit=3 from 127.0.0.1 
log 2016-05-10 12:37:31 GET /api/dapps?category=Catalogs from 127.0.0.1 
log 2016-05-10 12:37:31 GET /api/dapps?name=TSxx3VA8x2KtMAltA8Q from 127.0.0.1 
log 2016-05-10 12:37:31 GET /api/dapps?type=0 from 127.0.0.1 
log 2016-05-10 12:37:31 GET /api/dapps?link=https://github.com/MaxKK/guestbookDapp/archive/master.zip from 127.0.0.1 
log 2016-05-10 12:37:31 GET /api/dapps?link=https://github.com/MaxKK/guestbookDapp/archive/master.zip from 127.0.0.1 
log 2016-05-10 12:37:31 GET /api/dapps from 127.0.0.1 
log 2016-05-10 12:37:31 GET /api/dapps/get?id=string from 127.0.0.1 
log 2016-05-10 12:37:31 GET /api/dapps/get?id= from 127.0.0.1 
log 2016-05-10 12:37:31 GET /api/dapps/get?id=2808535108646508110 from 127.0.0.1 
log 2016-05-10 12:37:31 POST /api/dapps/install from 127.0.0.1 
log 2016-05-10 12:37:31 POST /api/dapps/install from 127.0.0.1 
log 2016-05-10 12:37:31 POST /api/dapps/install from 127.0.0.1 
-10 12:37:31 System error { message: 'ENOENT, open \'/home/fix/dev/liskwork/lisk/tmp/2808535108646508110.zip\'',
  stack: 'Error: ENOENT, open \'/home/fix/dev/liskwork/lisk/tmp/2808535108646508110.zip\'\n    at Error (native)' }
info 2016-05-10 12:37:31 Cleaning up... 
info 2016-05-10 12:37:31 Cleaned up successfully 
error 2016-05-10 12:37:31 null
@mrv777
Copy link
Contributor

mrv777 commented May 10, 2016

It looks like he marked that test as not right in the code:
https://github.com/LiskHQ/lisk/blob/1f294e4c416d93274eba168ca5b369a0f516369e/test/lib/dapps.js#L934

@karmacoma karmacoma added this to the Mainnet Launch milestone May 10, 2016
@fix
Copy link
Contributor Author

fix commented May 11, 2016

well this is another issue in the test, you cannot unregister a dapp and you cannot register another dapp with a link alrready registered. so you basically need to reset the local testnet...

@fix
Copy link
Contributor Author

fix commented May 11, 2016

i would not label it as mainnet launch.

@karmacoma karmacoma modified the milestone: Mainnet Launch May 11, 2016
@karmacoma karmacoma self-assigned this May 19, 2016
@karmacoma karmacoma removed their assignment Jun 14, 2016
@m-schmoock
Copy link
Contributor

m-schmoock commented Jun 17, 2016

Do we have more details about this? As I see it, its 100% reproducible in development sources that when you:

  • register an app
  • install an app
  • enter the node's master password
  • the node crashes fatal with something like:
[log] 2016-06-17 11:41:17 | POST /api/dapps/install from 172.17.0.1
[FTL] 2016-06-17 11:41:17 | System error - { message: 'ENOENT, open \'/home/lisk/lisk/tmp/15792223144916700008.zip\'',
  stack: 'Error: ENOENT, open \'/home/lisk/lisk/tmp/15792223144916700008.zip\'\n    at Error (native)' }
[inf] 2016-06-17 11:41:17 | Cleaning up...
[inf] 2016-06-17 11:41:17 | Cleaned up successfully
[ERR] 2016-06-17 11:41:17 | null

Update: I found out that after restarting the node, uninstall dapp via the webgui, then reinstall via the webgui dapp explorer... the dapp is extracted correctly and seems to run. But then I still run into:

Debug /home/lisk/lisk/dapps/6754854530677088464/index.js: 
Dapp loading process pid 79
Debug /home/lisk/lisk/dapps/6754854530677088464/index.js: 
Dapp loaded process pid 79
Debug /home/lisk/lisk/dapps/6754854530677088464/index.js: 
FATAL ERROR: v8::HandleScope::CreateHandle() Cannot create a handle without a HandleScope

...
[inf] 2016-06-17 12:29:29 | 6754854530677088464 Extracted file 46 of 57
[inf] 2016-06-17 12:29:29 | 6754854530677088464 Extracted file 47 of 57
[inf] 2016-06-17 12:29:29 | 6754854530677088464 Extracted file 48 of 57
[inf] 2016-06-17 12:29:29 | 6754854530677088464 Finished extracting
[inf] 2016-06-17 12:29:30 | Forged new block id: 13606039746669827304 height: 15 round: 1 slot: 205737 reward: 0
[inf] 2016-06-17 12:29:40 | Forged new block id: 17958254685754358605 height: 16 round: 1 slot: 205738 reward: 0
[ERR] 2016-06-17 12:29:50 | DApps#onNewBlock error: - "Application not ready"
[inf] 2016-06-17 12:29:50 | Forged new block id: 10316901663157541388 height: 17 round: 1 slot: 205739 reward: 0
[ERR] 2016-06-17 12:30:00 | DApps#onNewBlock error: - "Application not ready"
[inf] 2016-06-17 12:30:00 | Forged new block id: 4242970291734381013 height: 18 round: 1 slot: 205740 reward: 0
[ERR] 2016-06-17 12:30:10 | DApps#onNewBlock error: - "Application not ready"
[inf] 2016-06-17 12:30:10 | Forged new block id: 4862684301062103172 height: 19 round: 1 slot: 205741 reward: 0
[ERR] 2016-06-17 12:30:20 | DApps#onNewBlock error: - "Application not ready"
[inf] 2016-06-17 12:30:20 | Forged new block id: 1315465736271556894 height: 20 round: 1 slot: 205742 reward: 0
[ERR] 2016-06-17 12:30:30 | DApps#onNewBlock error: - "Application not ready"
...

@m-schmoock
Copy link
Contributor

This should fix it: #205

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

No branches or pull requests

4 participants