Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Thingsboard Not building from Source

I have a new ubuntu 16.04 Virtual machine that I'm attempting to install thingsboard on using this documentation Contribution Guide and am not having any success:

This is what did did on the machine:

  1. sudo apt-get install default-jre default-jdk
  2. Export JAVA_HOME='/usr/lib/jvm/default-java'
  3. git clone https://github.com/thingsboard/thingsboard.git
  4. git checkout release-1.3
  5. cd ${TB_WORK_DIR}/application
  6. mvn clean install -DskipTests
  7. Modified cd ${TB_WORK_DIR}/application/target/bin/install/install_dev_db.sh to my user and executed script.
    I would like to use HSQLDB at the moment.
  8. cd ${TB_WORK_DIR}/application
  9. mvn clean install -DskipTests

Results:

NPM server starts but when I log onto localhost:3000 and attempt to login with [email protected] / tenant, I get the error

[Error API proxy error: Error connect ECONNREFUSED 127.0.0.1:8080]

I've triple checked that I do not have a typo.

Am I missing a step?

I'm not using a proxy and received the same error as above:

npm config set proxy null npm config set https-proxy null npm config npm config set registry http://registry.npmjs.org/

cat ~/.npmrc:

proxy=null https-proxy=null registry=http://registry.npmjs.org/ls

like image 642
risail Avatar asked Nov 08 '22 15:11

risail


1 Answers

As you noted, this is the same as thingsboard/thingsboard issue 336... with the only tip being:

I think you need the backend running in order to be able to log in.

Either you are behind a proxy

npm config set proxy http://myproxyblabla:myport
npm config set https-proxy http://myproxyblabla:myport

Or you are not, meaning your localhost thingsboard system should not use a proxy at all:

npm config set proxy null
npm config set https-proxy null

In both cases:

npm config set registry http://registry.npmjs.org/

Then try again to re-start your server and to log on.

like image 117
VonC Avatar answered Nov 20 '22 13:11

VonC