Author Topic: FIMK 0.4.0 - Everybody update please  (Read 8323 times)

Dirk Diggler #30 on: March 30, 2015, 02:16:42 PM

  • FIMK Staff
  • *****
  • Posts: 486
    • View Profile
    • Krypto Fin ry
hello, after updating at 0.4.0 my FIMK doesn't start anymore  :-\

any ideas?

Code: [Select]
2015-03-30 03:24:59 FINE: Peer 167.160.164.21 version 0.4.0 returned error: {"ca
use":"java.io.IOException: java.util.concurrent.TimeoutException: Idle timeout e
xpired: 30000\/30000 ms","error":"Your peer is blacklisted"}, request was: {"pro
tocol":1,"requestType":"getCumulativeDifficulty"}, disconnecting
2015-03-30 03:34:33 FINE: Peer 167.160.164.21 version 0.4.0 returned error: {"ca
use":"java.io.IOException: java.util.concurrent.TimeoutException: Idle timeout e
xpired: 30000\/30000 ms","error":"Your peer is blacklisted"}, request was: {"sha
reAddress":true,"platform":"PC","protocol":1,"application":"FIMK","requestType":
"getInfo","nxtversion":"1.4.13","version":"0.4.0"}, disconnecting
2015-03-30 04:31:35 FINE: Will process a fork of 1 blocks
2015-03-30 04:31:35 FINE: Rollback from 450475 to 450474
2015-03-30 04:31:35 FINE: Switched to peer's fork
2015-03-30 04:36:08 FINE: Will process a fork of 1 blocks
2015-03-30 04:36:08 FINE: Rollback from 450480 to 450479
2015-03-30 04:36:08 FINE: Switched to peer's fork
2015-03-30 04:38:00 FINE: Will process a fork of 1 blocks
2015-03-30 04:38:00 FINE: Rollback from 450483 to 450482
2015-03-30 04:38:00 FINE: Switched to peer's fork
2015-03-30 05:04:46 FINE: Will process a fork of 1 blocks
2015-03-30 05:04:46 FINE: Rollback from 450514 to 450513
2015-03-30 05:04:46 FINE: Switched to peer's fork
2015-03-30 05:05:16 FINE: Will process a fork of 2 blocks
2015-03-30 05:05:16 FINE: Rollback from 450514 to 450513

That log looks good, nothing to see why it doesnt start there.
How do you start it?
FIMK Developer | GPG fingerprint: CEF2 7C39 43BE 6800 504E  71BC 7E87 A7B0 AC34 E2D5 | mofowallet.com | blog

OrgiOrg #31 on: March 30, 2015, 04:55:34 PM

  • Fresh Fimker
  • *
  • Posts: 31
    • View Profile
starting FIMK NRS about run.bat
try to connect to GUI via: http://127.0.0.1:7886/

Dirk Diggler #32 on: March 30, 2015, 05:35:48 PM

  • FIMK Staff
  • *****
  • Posts: 486
    • View Profile
    • Krypto Fin ry
starting FIMK NRS about run.bat
try to connect to GUI via: http://127.0.0.1:7886/

You need to create a file called nxt.properties and place it in conf/ folder next to nxt-default.properties. As is discussed a couple of posts back in this thread.

In it put:

Code: [Select]
nxt.enableAPIServer=true
Now if you start the FIMK server you have access to the UI.
The server package however is not intended for desktop use, please have a look at mofowallet for use on the desktop.
FIMK Developer | GPG fingerprint: CEF2 7C39 43BE 6800 504E  71BC 7E87 A7B0 AC34 E2D5 | mofowallet.com | blog

farcurlew #33 on: April 03, 2015, 05:54:44 AM

  • Fresh Fimker
  • *
  • Posts: 15
    • View Profile
You need to create a file called nxt.properties and place it in conf/ folder next to nxt-default.properties. As is discussed a couple of posts back in this thread.

In it put:

Code: [Select]
nxt.enableAPIServer=true
Now if you start the FIMK server you have access to the UI.
The server package however is not intended for desktop use, please have a look at mofowallet for use on the desktop.


This really sucks. I have not been able to forge since March 28. I do not have the luxury of being able to run a desktop 24/7

I tried what you suggested and have not had any success

This is the error I get
{"errorDescription":"\"secretPhrase\" not specified","errorCode":3}


Dirk Diggler #34 on: April 03, 2015, 10:18:49 AM

  • FIMK Staff
  • *****
  • Posts: 486
    • View Profile
    • Krypto Fin ry

This really sucks. I have not been able to forge since March 28. I do not have the luxury of being able to run a desktop 24/7

I tried what you suggested and have not had any success

This is the error I get
{"errorDescription":"\"secretPhrase\" not specified","errorCode":3}

Sorry to hear that. The error you get is thrown at several places in the code where a field named 'secretPhrase' (case sensitive) is expected to be in the HTTP request data. What exactly did you try to do when you got that error?
FIMK Developer | GPG fingerprint: CEF2 7C39 43BE 6800 504E  71BC 7E87 A7B0 AC34 E2D5 | mofowallet.com | blog

farcurlew #35 on: April 03, 2015, 10:25:03 AM

  • Fresh Fimker
  • *
  • Posts: 15
    • View Profile


Oops, forgot to add apiServerEnforcePOST ... 

So in nxt.properties or nxt-default.properties you need to set

nxt.apiServerEnforcePOST=false
nxt.enableAPIServer=true

Then you can enter http://localhost:7886/nxt?requestType=startForging&secretPhrase=PUT-YOUR-SECRET-PHRASE- localhost.



I did what you suggested that we do in your instructions above




Dirk Diggler #36 on: April 03, 2015, 10:28:22 AM

  • FIMK Staff
  • *****
  • Posts: 486
    • View Profile
    • Krypto Fin ry
How do you send the GET request to the FIMK server?
FIMK Developer | GPG fingerprint: CEF2 7C39 43BE 6800 504E  71BC 7E87 A7B0 AC34 E2D5 | mofowallet.com | blog

farcurlew #37 on: April 03, 2015, 09:40:47 PM

  • Fresh Fimker
  • *
  • Posts: 15
    • View Profile
Wget on the bash command line when I ssh in

kani #38 on: April 03, 2015, 11:48:50 PM

  • Senior Fimker
  • ***
  • Posts: 154
    • View Profile
Wget on the bash command line when I ssh in

The bash shell can be a problem if your passphrase has special characters or spaces in it.  There are many characters which have special meaning in bash, and many will be parsed/interpreted before being passed to the wget command.  (this includes the ampersand (&) in the GET request, which is why URL must be double quoted).

Please note: This approach is insecure since your passphrase is saved in a local file.  Use at your own risk (or see GPG approach linked in P.S.)

Try the following:
Save your passphrase to the file phrase.txt, then issue the following command:
The quotes (") and backticks (`) are very important here

Code: [Select]
$ wget "http://localhost:7886/nxt?requestType=startForging&secretPhrase=`cat phrase.txt`"

P.S. You may be interested in this encrypted approach:
 http://forum.fimk.fi/index.php?topic=316.msg963#msg963
« Last Edit: April 04, 2015, 12:07:14 AM by kani »
BitShares - Your share in the Decentralized Exchange

farcurlew #39 on: April 04, 2015, 12:09:29 AM

  • Fresh Fimker
  • *
  • Posts: 15
    • View Profile
Thank you very much.
It looks like it worked. I will check my account in a few days and see it it is forging.

Code: [Select]
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:7886... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:7886... connected.
HTTP request sent, awaiting response... 200 OK

Dirk Diggler #40 on: April 04, 2015, 09:19:02 AM

  • FIMK Staff
  • *****
  • Posts: 486
    • View Profile
    • Krypto Fin ry
CURL is another option you could for instance do this from your local machine.

Code: [Select]
ssh your.server.com -l username -C "curl 'http://localhost:7886/nxt?requestType=startForging&secretPhrase=this+is+your+secret+where+each+space+has+to+be+replaced+with+a+plus'"
FIMK Developer | GPG fingerprint: CEF2 7C39 43BE 6800 504E  71BC 7E87 A7B0 AC34 E2D5 | mofowallet.com | blog

farcurlew #41 on: April 05, 2015, 12:22:31 AM

  • Fresh Fimker
  • *
  • Posts: 15
    • View Profile
Thank you, I appreciate your help