Nxt Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client 1.11.9 - NEW RELEASE: Ardor 2.0.3e TestNet IS LAUNCHED! - The Ignis ICO is currently ongoing!!

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 9485 times)

ellave

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

Hi, thanks for a great guide it all went well for me & was able to run the server the first time.  After which i continued the guide & configured SSL, Screen & Cron task however not I cant start the server, as you can see below (it never autostarted after reboot).

Any advice?

Thanks

pi@raspberrypi:~/nxt $ ./run.sh
Error: Could not find or load main class screen
pi@raspberrypi:~/nxt $ ls
3RD-PARTY-LICENSES.txt  COPYING.txt          mint.sh             package.sh      start.sh
addons                  DEVELOPERS-GUIDE.md  nxt_db              README.md       stop.sh
AUTHORS.txt             Dockerfile           nxtdesktop.policy   README.txt      USERS-GUIDE.md
changelogs              html                 nxt.exe             resource        win-compile.sh
classes                 jar.sh               nxt.jar             run.bat         win-javadoc.sh
compact.bat             javadoc.sh           nxt.policy          run-desktop.sh  win-package.sh
compact.sh              lib                  nxtservice.exe      run.sh
compile.sh              LICENSE.txt          nxtservice.jar      run-tor.sh
conf                    logs                 NXT_Wallet.url      sign.sh
contrib                 mint.bat             OPERATORS-GUIDE.md  src
pi@raspberrypi:~/nxt $ run.sh
-bash: run.sh: command not found

lurker10

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

To automatically start Nxt after reboot, run crontab -e, enter this cronjob and save:

Code: [Select]
@reboot cd /home/pi/nxt; ./run.sh
I'd also recommend downloading the blockchain from peerexplorer.com before running Nxt on RPi, because RPi is slow to do initial sync. Once you downloaded and unzipped the blockchain into /home/pi/nxt/nxt_db, RPi can keep up with the blocks.

I just realized all this is already in the guide by coretechs, LOL
Run a node - win a prize! "Lucky node" project jar: NXT-8F28-EDVE-LPPX-HY4E7

ellave

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

I think my problem is with the install screen command.  Can someone please confirm the script once i go into - nano ~/nxt/run.sh

mine reads

screen -mS nxt java -Xmx640m -cp classes:lib/*:conf nxt.Nxt
if [ -x jre/bin/java ]; then
    JAVA=./jre/bin/java
else
    JAVA=java
fi
${JAVA} screen -mS nxt java -Xmx640m -cp classes:lib/*:conf nxt.Nxt





« Last Edit: May 08, 2017, 11:58:48 am by ellave »

lurker10

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

Does it work if you run it as:
Code: [Select]
nohup ./run.sh &
run.sh should be unmodified from the Nxt package.
Run a node - win a prize! "Lucky node" project jar: NXT-8F28-EDVE-LPPX-HY4E7

coretechs

  • Board Moderator
  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 424
    • View Profile
  • Karma: +157/-1

I updated the instructions to create a separate startup script for screen rather than modifying run.sh.  The links to the JDK and NRS downloads have been updated to the latest versions as well.
https://nxtportal.org - Nxt blockchain explorer | http://bitcoindoc.com - The Rise and Rise of Bitcoin
NXT-WY9K-ZMTT-QQTT-3NBL7

ellave

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

I got it working, I regenerated the keystore & this time it works
« Last Edit: May 09, 2017, 12:01:29 pm by ellave »

schoad

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

My node is up and running, but I can't get API SSL to show up on peerexplorer.
Additionally I'm not listed for the NSC payouts for hallmarked nodes.

Dns: nxt.ddnss.eu

Ports:
7874
7876 (SSL)
7878

Letsencrypt Cert for Port 7878.

Forging with 3750 NXT (leased balance from Mainaccount).


According to the API the following should be working:


{
    "apiProxy": false,
    "correctInvalidFees": false,
    "ledgerTrimKeep": 30000,
    "maxAPIRecords": 100,
    "blockchainState": "UP_TO_DATE",
    "currentMinRollbackHeight": 1338582,
    "numberOfBlocks": 1339383,
    "isTestnet": false,
    "includeExpiredPrunable": true,
    "isLightClient": false,
    "services": [
        "HALLMARK",
        "PRUNABLE",
        "API",
        "API_SSL",
        "CORS"
    ],
« Last Edit: June 06, 2017, 06:33:17 pm by schoad »

ellave

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

Anything else that needs to be done to update to 1.11.7, i run a wget from the console & unzipped, after a restart I am unable to connect to the gui although peerexplorer says I am up & running?
Pages: 1 2 3 [4]  All