Questions & Answers

PNDA Release 3.4 Build Failed

0 votes
asked Jul 11 by boopalan (150 points)
edited Jul 11 by boopalan
Hi,

I am trying to build PNDA Release 3.4.  But I am able to build with BOM file.

Could some one help me to resolve this issue for release build? Am I missing some thing?
Steps:

1. Created New Instance using "ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-20160714"

2. apt-get update

3. apt-get install git

4. git clone -b master https://github.com/pndaproject/pnda.git

5. Edit install-build-tools.sh  ==> Modified the JAVA download to local http server path. [JAVA_URL="http://<ip>/software/jdk-8u74-linux-x64.tar.gz"

6. Run ./install-build-tools.sh

7. edit /etc/hosts   => 127.0.1.1 ip-172-31-40-72

8. Run ./install-build-tools.sh

9.  add the below exports in /etc/bash.basrc file and also source in the current shell.

      export JAVA_HOME=/home/ubuntu/pnda/build/jdk1.8.0_74
      export SPARK_HOME=/home/ubuntu/pnda/build/spark-1.6.0-bin-hadoop2.6
      export PATH=${JAVA_HOME}/bin:${SPARK_HOME}:${PATH}

10. echo $PATH
/home/ubuntu/pnda/build/jdk1.8.0_74/bin:/home/ubuntu/pnda/build/spark-1.6.0-bin-hadoop2.6:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

11. ./build-pnda.sh RELEASE release/3.4  while running this getting build error.

Error Log:

Running "jsdoc:dist" (jsdoc) task
>>
>> /home/ubuntu/pnda/build/pnda-stage/platform-console-backend/console-backend-data-manager/node_modules/grunt-jsdoc/node_modules/jsdoc/node_modules/babylon/lib/index.js:164
>> bleConstructorReturn(this, _TokenType2.call(this, name, { beforeExpr, binop: p
>>                                                                     ^
>> SyntaxError: Unexpected token ,
>>     at Module._compile (module.js:439:25)
>>     at Object.Module._extensions..js (module.js:474:10)
>>     at Module.load (module.js:356:32)
>>     at Object.load (/home/ubuntu/pnda/build/pnda-stage/platform-console-backend/console-backend-data-manager/node_modules/grunt-jsdoc/node_modules/jsdoc/node_modules/requizzle/lib/loader.js:112:15)
>>     at Requizzle.requizzle (/home/ubuntu/pnda/build/pnda-stage/platform-console-backend/console-backend-data-manager/node_modules/grunt-jsdoc/node_modules/jsdoc/node_modules/requizzle/lib/requizzle.js:90:24)
>>     at infectProxy (/home/ubuntu/pnda/build/pnda-stage/platform-console-backend/console-backend-data-manager/node_modules/grunt-jsdoc/node_modules/jsdoc/node_modules/requizzle/lib/loader.js:82:28)
>>     at Module.targetModule.require (/home/ubuntu/pnda/build/pnda-stage/platform-console-backend/console-backend-data-manager/node_modules/grunt-jsdoc/node_modules/jsdoc/node_modules/requizzle/lib/loader.js:101:11)
>>     at require (module.js:380:17)
>>     at Object.<anonymous> (/home/ubuntu/pnda/build/pnda-stage/platform-console-backend/console-backend-data-manager/node_modules/grunt-jsdoc/node_modules/jsdoc/lib/jsdoc/src/astbuilder.js:4:15)
>>     at Module._compile (module.js:456:26)
>>     at Object.Module._extensions..js (module.js:474:10)
>>     at Module.load (module.js:356:32)
>>     at Object.load (/home/ubuntu/pnda/build/pnda-stage/platform-console-backend/console-backend-data-manager/node_modules/grunt-jsdoc/node_modules/jsdoc/node_modules/requizzle/lib/loader.js:112:15)
>>     at Requizzle.requizzle (/home/ubuntu/pnda/build/pnda-stage/platform-console-backend/console-backend-data-manager/node_modules/grunt-jsdoc/node_modules/jsdoc/node_modules/requizzle/lib/requizzle.js:90:24)
>>     at infectProxy (/home/ubuntu/pnda/build/pnda-stage/platform-console-backend/console-backend-data-manager/node_modules/grunt-jsdoc/node_modules/jsdoc/node_modules/requizzle/lib/loader.js:82:28)
>>     at Module.targetModule.require (/home/ubuntu/pnda/build/pnda-stage/platform-console-backend/console-backend-data-manager/node_modules/grunt-jsdoc/node_modules/jsdoc/node_modules/requizzle/lib/loader.js:101:11)
Warning: jsdoc terminated with a non-zero exit code Use --force to continue.

Aborted due to warnings.
mv: cannot stat ‘console-backend-data-manager/console-backend-data-manager-0.3.0.tar.gz’: No such file or directory
sha512sum: pnda-build/console-backend-data-manager-0.3.0.tar.gz: No such file or directory
Build error
Please determine the reason for the error, correct and re-run
root@ip-172-31-40-72:/home/ubuntu/pnda/build#

1 Answer

0 votes
answered Jul 13 by admin (580 points)
 
Best answer

For anyone trying to build release/3.4 - this historical release now has at least two issues caused by third party repositories altering dependency matrices or archive locations. We've patched it so that it can continue to be used until the 3.5 release is available. The new release tag is release/3.4.1.

commented 1 day ago by Saqib Arfeen (160 points)
Hello Sir, I am getting an error while building the pnda release/3.4.1. I am getting this error:-
npm: Not Found
Please run the build dependency installer script
Build error
(however npm is installed and the $npm command works )
https://pastebin.com/fLYwwrNb
Any idea?
...