elective-stereophonic
elective-stereophonic
[blog] Nxt-in-a-box: How to setup a dedicated Nxt node on a Raspberry Pi 2
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.11.15 | Latest Experimental Nxt Client: Nxt 1.12.0e

Pages: 1 2 [3] 4  All

Author Topic: [blog] Nxt-in-a-box: How to setup a dedicated Nxt node on a Raspberry Pi 2  (Read 23642 times)

shugo

  • Jr. Member
  • **
  • Karma: +5/-0
  • Offline Offline
  • Posts: 75
    • View Profile

I have a problem with my node after trying to hallmark it and then backing up my config.

Now my Status on localhost Client is "forging" but when I use peerexplorer my node is not listed anymore.

Is there a way to fix this? How can I shut down my nxt Server completely on Linux? i restarted and did not start my node again but my localhost Client is still working which means that there's something running in the Background right?

Thanks for your help
Logged

gh

  • Full Member
  • ***
  • Karma: +19/-2
  • Offline Offline
  • Posts: 202
    • View Profile
    • NXT Chart
« Last Edit: February 05, 2017, 01:08:00 pm by gh »
Logged

lurker10

  • Hero Member
  • *****
  • Karma: +168/-33
  • Offline Offline
  • Posts: 1334
    • View Profile

How can I shut down my nxt Server completely on Linux?
Try: ps xua | grep java
If there is a Java process listed with id-number, for example 8050, stop it with: kill -9 8050

Just a suggestion, use kill -15 to stop processes. the -9 switch will kill it off instantly, -15 allows the program time to save data, resulting in a good database afterwards vs sometimes corrupt database using -9.
Logged
Run a node - win a prize! "Lucky node" project jar: NXT-8F28-EDVE-LPPX-HY4E7

shugo

  • Jr. Member
  • **
  • Karma: +5/-0
  • Offline Offline
  • Posts: 75
    • View Profile

It didnt fix my Problem. the Node is still not showing on peerexplorer and if I try to acces from the Internet with my external IP, i cannot Access the node (it worked earlier).
Port 7874 is forwarded for my IP.

Any ideas?

edit:
Ok, my Firewall says, the the port is closed but I opened it, its just suddendly not working anymore:(
« Last Edit: July 07, 2016, 12:46:26 pm by shugo »
Logged

gh

  • Full Member
  • ***
  • Karma: +19/-2
  • Offline Offline
  • Posts: 202
    • View Profile
    • NXT Chart
« Last Edit: February 05, 2017, 01:07:47 pm by gh »
Logged

shugo

  • Jr. Member
  • **
  • Karma: +5/-0
  • Offline Offline
  • Posts: 75
    • View Profile

yes my raspi has an internal IP, same since beginning, and it worked with it.

what I changed once is that I openend port 7874-7876 instead of only 7874 but i changed i back and now the port is not open anymore altough it should be open in my router Settings?! I already restarted the router.

Do you think changing the internal IP of my raspi could work?
Logged

gh

  • Full Member
  • ***
  • Karma: +19/-2
  • Offline Offline
  • Posts: 202
    • View Profile
    • NXT Chart
« Last Edit: February 05, 2017, 01:04:45 pm by gh »
Logged

shugo

  • Jr. Member
  • **
  • Karma: +5/-0
  • Offline Offline
  • Posts: 75
    • View Profile

Do you think changing the internal IP of my raspi could work?
No, it should work with any internal IP, typically 192.168.x.x. In my router I have two port mappings, one for 7874 and one for 7876. Try with a port scanner, for example this one:
If you enter port 7874, it should return with a message: x.x.x.x is responding on port 7874, where x.x.x.x is your external IP address, see for example:

the port is closed while others i forwarded are open. Same Settings on router, one works, the other not. somethings wrong here:(


EDIT:
The port Problem is now fixed. Port checker says the ports are open (they had to many pings or so?!). But I Still do not appear on peerexplorer(dot)com ? this is important for a working node, right?

Edit 2:

I did hallmark my Nxt Node and now everything is working fine! Finally:)
« Last Edit: July 07, 2016, 02:24:09 pm by shugo »
Logged

beammeup

  • Jr. Member
  • **
  • Karma: +0/-0
  • Offline Offline
  • Posts: 24
    • View Profile

Hi all I am new here. I am setting up a pi2.  I have changed the swapfile to 1024 but when I try to restart the service I get an error 'No doemon to (force-)re[start load on dphys-swapfile' Will it restart if I reboot? oris this a problem?
Logged

beammeup

  • Jr. Member
  • **
  • Karma: +0/-0
  • Offline Offline
  • Posts: 24
    • View Profile

One more thing , my ISP used dynamic ip addresses. Will that make a difference? will this run OK? It seems to be working so far
Logged

lurker10

  • Hero Member
  • *****
  • Karma: +168/-33
  • Offline Offline
  • Posts: 1334
    • View Profile

One more thing , my ISP used dynamic ip addresses. Will that make a difference? will this run OK? It seems to be working so far

Is your intent to run a public node?
If so, you must do two things:
a) open port 7874 on your router to the world;
b) sing up with a dynamic dns service like http://freeddns.noip.com/ and announce your dns address in the nxt.myAddress property.

Create a file nxt/conf/nxt.properties and put:
nxt.myAddress=yourDNSAddress

See example at https://nxtportal.org/peers/
someone has announced their address nxt.noip.me

For a private forging node you needn't do any of these.

Join the lottery in my signature if you run a public node and win coins by renting out your computing resources.
« Last Edit: July 10, 2016, 04:43:21 pm by lurker10 »
Logged
Run a node - win a prize! "Lucky node" project jar: NXT-8F28-EDVE-LPPX-HY4E7

beammeup

  • Jr. Member
  • **
  • Karma: +0/-0
  • Offline Offline
  • Posts: 24
    • View Profile

my intent is just to get it working for now then do some forging. Then set up a hallmark node. I am pretty new at this. I have set it up as per the instructions, all seems OK the dashboard is almost complete downloading the blockchain. When I ./run.sh it goes for about 30 seconds the NXT server stops. Is that normal or should it be running in the background on terminal?
Logged

gh

  • Full Member
  • ***
  • Karma: +19/-2
  • Offline Offline
  • Posts: 202
    • View Profile
    • NXT Chart
« Last Edit: February 05, 2017, 03:12:11 pm by gh »
Logged

lurker10

  • Hero Member
  • *****
  • Karma: +168/-33
  • Offline Offline
  • Posts: 1334
    • View Profile

my intent is just to get it working for now then do some forging. Then set up a hallmark node. I am pretty new at this. I have set it up as per the instructions, all seems OK the dashboard is almost complete downloading the blockchain. When I ./run.sh it goes for about 30 seconds the NXT server stops. Is that normal or should it be running in the background on terminal?

When you say the NXT server stops, do you see the logged message "NXT server stopped"?
Logged
Run a node - win a prize! "Lucky node" project jar: NXT-8F28-EDVE-LPPX-HY4E7

beammeup

  • Jr. Member
  • **
  • Karma: +0/-0
  • Offline Offline
  • Posts: 24
    • View Profile

Yes it says
shutting down sendingservice
shutting down peersservice
Nxt server 1.9.2 stopped.

I had the screen set but I changed it back so I could read the log
Logged

lurker10

  • Hero Member
  • *****
  • Karma: +168/-33
  • Offline Offline
  • Posts: 1334
    • View Profile

Yes it says
shutting down sendingservice
shutting down peersservice
Nxt server 1.9.2 stopped.

I had the screen set but I changed it back so I could read the log

You should post more of the log file tail.
Logged
Run a node - win a prize! "Lucky node" project jar: NXT-8F28-EDVE-LPPX-HY4E7

beammeup

  • Jr. Member
  • **
  • Karma: +0/-0
  • Offline Offline
  • Posts: 24
    • View Profile

ok
2016-07-11 07:46:05 INFO: nxt.peerServerHost = "0.0.0.0"
2016-07-11 07:46:05 INFO: nxt.peerServerIdleTimeout = "30000"
2016-07-11 07:46:05 INFO: nxt.enablePeerServerDoSFilter = "true"
2016-07-11 07:46:05 INFO: nxt.peerServerDoSFilter.maxRequestsPerSec = "30"
2016-07-11 07:46:05 INFO: nxt.peerServerDoSFilter.delayMs = "1000"
2016-07-11 07:46:05 INFO: nxt.peerServerDoSFilter.maxRequestMs = "300000"
2016-07-11 07:46:05 INFO: shutting down sendingService
2016-07-11 07:46:05 INFO: shutting down peersService
2016-07-11 07:46:05 INFO: Nxt server 1.9.2 stopped.
It synced OK last night and was working until I installed screen and autostartup
Logged

beammeup

  • Jr. Member
  • **
  • Karma: +0/-0
  • Offline Offline
  • Posts: 24
    • View Profile

Seems to be working OK now. just rebooted again now its working.
Logged

kpstolk

  • Jr. Member
  • **
  • Karma: +2/-1
  • Offline Offline
  • Posts: 28
    • View Profile

Thanks for the nice tutorial!  :)

I guess the double wget command under the Installing Java section is a typo?

Just today a new version was released, maybe you can update the link as well.
https://nxtforum.org/nrs-releases/nrs-v1-10-2/
« Last Edit: August 29, 2016, 06:17:11 pm by kpstolk »
Logged

coretechs

  • Board Moderator
  • Sr. Member
  • ****
  • Karma: +161/-1
  • Offline Offline
  • Posts: 436
    • View Profile
Re: [blog] Nxt-in-a-box: How to setup a dedicated Nxt node on a Raspberry Pi 2
« Reply #59 on: February 11, 2017, 05:58:48 pm »

Updated links for java 1.8.0_121 and Nxt 1.11.3.
Logged
https://ardorportal.org - Ardor blockchain explorer | https://nxtportal.org - Nxt blockchain explorer | http://bitcoindoc.com - The Rise and Rise of Bitcoin
ARDOR-T43P-R2K9-8W79-9W2AL | NXT-WY9K-ZMTT-QQTT-3NBL7
Pages: 1 2 [3] 4  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly