janfiedler / mineiota

IOTA Faucet - Get IOTA through mining Monero and PIVX staking pool
53 stars 25 forks source link

Start problem #21

Closed 77656233 closed 6 years ago

77656233 commented 6 years ago

Hey Jan,

i have my seeds filled now with value and added them to the config.

Do i need to count the keyIndex up in the array on config or is it 0 for each enty?

Also when i start the page with: NODE_ENV=production node bin/www i get this in return: (node:30108) Warning: No such label 'balance-time' for console.timeEnd() the page loads and the faucet is up but it does not have any balance.

When i just start it with node app.js i get this return: 2017-12-07T09:56:52.265Z Checking if node is synced: isReattachable 2017-12-07T09:57:28.079Z miotaToBtc: 0.00024638iotaUSD: 0.0000036228 2017-12-07T09:57:28.081Z xmrToBtc: 0.0193565 2017-12-07T09:57:28.120Z getTotalIotaPerSecond: NaN 2017-12-07T09:57:28.120Z hashIotaRatio: NaN 2017-12-07T09:57:28.122Z payoutPer1MHashes: undefined

Problem is that the page is not reachable after i start it with that command.

Hope to hear from you soon so i can start đź‘Ť

Greetings, Chris

janfiedler commented 6 years ago

Hi, you must send keyIndex depend on how much you have already transaction done on seed.

If you get error about balance-time, it takes to much longe so you have bad setting for keyIndex or slow iota node.

Yes page dosent load until you get connection with iota iri node.

77656233 commented 6 years ago

Hey, so when i send 1 transaction into the seed to fill it i have to set all to 1? And what is the correct start command for the nodejs app? Could you please send an example here for both questions so i understand and can get started?

Do i need to set automatic withdrawals to on? What is it for and the external compute does it work and if so how?

    outputsInBundle: 10,
    reattachAfterMinutes: 10,
    automaticWithdrawal: false,
    skipWithdrawal: false,
    skipAfterMinutes: 60,
    spamming: true,
    externalCompute: false,

Else please join me 5 minutes on skype ^^ please all is up and can get started so it wont take long ;)

Greetings, Chris

77656233 commented 6 years ago

I did now a local call to the api and the balance query works well with keyIndex 0 on all addresses:

Object { appName: "IRI", appVersion: "1.4.1.2", jreAvailableProcessors: 4, jreFreeMemory: 919097032, jreVersion: "1.8.0_151", jreMaxMemory: 6681526272, jreTotalMemory: 3232235520, latestMilestone: "DLARD9KUCLVSXEMBEGFNUGXSBHSWHCT9BFKZKOSKNHJBTTXLUJBU9FCHPYLSKFWFJTLAQELEURDVA9999", latestMilestoneIndex: 297981, latestSolidSubtangleMilestone: "DLARD9KUCLVSXEMBEGFNUGXSBHSWHCT9BFKZKOSKNHJBTTXLUJBU9FCHPYLSKFWFJTLAQELEURDVA9999", … } index.html:18:17 Object { inputs: […], totalBalance: 1000000 } index.html:39:17 RESULT=1000000

So it just not works on the app?

janfiedler commented 6 years ago

If you use pm2 than call bin/www, if pure node.js call app.js KeyIndex is 0 when only receive, once you send iota index is plus for every transasction

77656233 commented 6 years ago

thanks jan :) its running! hope to see you later online there are still some open questions :)

77656233 commented 6 years ago

This is on my console all the time. And i needed to add the seeds to the cache to get it running is that normal?

0|www      | Thread Hashing...
0|www      | I: Starting search threads.
0|www      | I: Found threads. Returning.
0|www      | Getting platforms... 
0|www      | Cannot get the number of OpenCL platforms available. E:-1
0|www      | Thread Hashing...
0|www      | I: Starting search threads.
0|www      | I: Found threads. Returning.
0|www      | Getting platforms... 
0|www      | Cannot get the number of OpenCL platforms available. E:-1
0|www      | Thread Hashing...
0|www      | I: Starting search threads.
0|www      | I: Found threads. Returning.
0|www      | 2017-12-07T19:14:27.200Z Error: spammerWorker
0|www      | { error: 1, data: {} }
77656233 commented 6 years ago

I set spammer to false but still getting this when it try to make payouts? Is it normal?

0|www      | Getting platforms...                                                                    │2017/12/08 00:13:07 [error] 30096#30096: *10638 connect() failed (111: Connection refused) while con
0|www      | Cannot get the number of OpenCL platforms available. E:-1                               │necting to upstream, client: 108.162.237.71, server: iota-faucet.com, request: "GET /socket.io/?EIO=
0|www      | Thread Hashing...                                                                       │3&transport=polling&t=M0pT_Iy HTTP/1.1", upstream: "http://127.0.0.1:6868/socket.io/?EIO=3&transport
0|www      | I: Starting search threads.

Also automated withdrawals are disabled on my config. Does it mean that i need to do them manual? If so how do i do it the right way?

after that this happens

bildschirmfoto 2017-12-08 um 01 25 49

So the server try to create the bundle transaction? I was thinking the node server where i send it to does the generation? So what happened to the requested payouts now? are they gone from the users or do i double spend now?

Would be nice to have a table with created bulde addresses and the stuatus of them and the hash so the users would be able to reattach them again.

Also this error came up :/

bildschirmfoto 2017-12-08 um 01 52 58

And maybe this can help to solve some problems? Let me know please.

https://github.com/TimSamshuijzen/iotaproxy