Build failed for Power TAC Visualizer v2 on v1.4.4

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Build failed for Power TAC Visualizer v2 on v1.4.4

Stevenshi-23
Hi, I'm trying to build PowerTAC v1.4.4 on Ubuntu 18.04. My dependencies are as following:

* JDK 1.8
* Maven 3.5.2
* git2.17.1

I downloaded source code of v.1.4.4 from release page on GitHub(). After I decompressed it, I ran

```sh
mvn clean install
```

inside powertac-server-powertac-server-1.4.4 folder.

However, the following error message poped up:

---

[ERROR] error An unexpected error occurred: "/home/ubuntu/powertac/server/powertac-server-powertac-server-1.5.0/visualizer2/node_modules/jpegtran-bin: spawn ENOMEM".
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Power TAC server modules ........................... SUCCESS [  3.377 s]
[INFO] Power TAC server interface ......................... SUCCESS [ 11.883 s]
[INFO] Power TAC accounting service ....................... SUCCESS [  4.404 s]
[INFO] Power TAC wholesale market ......................... SUCCESS [  2.637 s]
[INFO] Power TAC intra-hour market-based balancing ........ SUCCESS [  2.838 s]
[INFO] Power TAC customer models .......................... SUCCESS [  4.539 s]
[INFO] Power TAC ev customer .............................. SUCCESS [  3.383 s]
[INFO] Power TAC default broker ........................... SUCCESS [  2.501 s]
[INFO] Power TAC distribution utility ..................... SUCCESS [  2.973 s]
[INFO] Power TAC factored customer ........................ SUCCESS [  4.125 s]
[INFO] Power TAC genco .................................... SUCCESS [  4.062 s]
[INFO] Power TAC household customer ....................... SUCCESS [ 13.901 s]
[INFO] Power TAC office complex customer .................. SUCCESS [  7.706 s]
[INFO] Power TAC logtool core ............................. SUCCESS [  1.795 s]
[INFO] Power TAC server main .............................. SUCCESS [  8.946 s]
[INFO] Power TAC Visualizer v2 ............................ FAILURE [01:17 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:36 min
[INFO] Finished at: 2018-10-22T05:19:07Z
[INFO] Final Memory: 58M/164M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:yarn (yarn install) on project visualizer2: Failed to run task: 'yarn install' failed. (error code 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :visualizer2

---


Would appreciate if anyone can share some pointers. Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Build failed for Power TAC Visualizer v2 on v1.4.4

erikkemperman
Hi,

I see “ENOMEM” in your error message, meaning your machine ran out of memory while building the visualizer.

Can you try again after closing some applications?

You could also try skipping the unit tests, especially those of the visualizer might eat up quite a bit of RAM I suspect.

mvn install -DskipTests

By the way, 1.5.0 is the latest release version, 1.4.4 is slightly outdated — any particular reason you wanted that one?
Reply | Threaded
Open this post in threaded view
|

Re: Build failed for Power TAC Visualizer v2 on v1.4.4

Stevenshi-23
Hi Erik,

Thanks for your prompt reply! It perfectly solve the problem on my Mac.

I used v1.4.4. because I had another problem with running v1.5.0. The error happens when I tried to run server

$ cd powertac-server-powertac-server-1.5.0
$ mvn -P web2


------------
[INFO] Running 'bower install --no-color' in /home/ubuntu/powertac/server/powertac-server-powertac-server-1.5.0/visualizer2
[ERROR] bower bootstrap#3.3.7          EINVRES Request to https://bower.herokuapp.com/packages/bootstrap failed with 502
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Power TAC server modules ........................... SUCCESS [  1.547 s]
[INFO] Power TAC server interface ......................... SUCCESS [ 11.350 s]
[INFO] Power TAC accounting service ....................... SUCCESS [  4.270 s]
[INFO] Power TAC wholesale market ......................... SUCCESS [  2.708 s]
[INFO] Power TAC intra-hour market-based balancing ........ SUCCESS [  3.053 s]
[INFO] Power TAC customer models .......................... SUCCESS [  4.229 s]
[INFO] Power TAC ev customer .............................. SUCCESS [  3.239 s]
[INFO] Power TAC default broker ........................... SUCCESS [  2.733 s]
[INFO] Power TAC distribution utility ..................... SUCCESS [  3.029 s]
[INFO] Power TAC factored customer ........................ SUCCESS [  4.216 s]
[INFO] Power TAC genco .................................... SUCCESS [  3.789 s]
[INFO] Power TAC household customer ....................... SUCCESS [ 14.442 s]
[INFO] Power TAC office complex customer .................. SUCCESS [  8.478 s]
[INFO] Power TAC logtool core ............................. SUCCESS [  1.460 s]
[INFO] Power TAC server main .............................. SUCCESS [ 10.071 s]
[INFO] Power TAC Visualizer v2 ............................ FAILURE [  5.178 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:24 min
[INFO] Finished at: 2018-10-22T14:57:37Z
[INFO] Final Memory: 62M/171M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:bower (bower install) on project visualizer2: Failed to run task: 'bower install --no-color' failed. (error code 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :visualizer2
----

It looks like the link to https://bower.herokuapp.com/packages/bootstrap is depreciated. Should we replace it?

Thank you!

Regards,
Steven
Reply | Threaded
Open this post in threaded view
|

Re: Build failed for Power TAC Visualizer v2 on v1.4.4

Stevenshi-23
Sorry, I mean $mvn clean install
Reply | Threaded
Open this post in threaded view
|

Re: Build failed for Power TAC Visualizer v2 on v1.4.4

erikkemperman
When I visit that URL it says

"This Bower version is deprecated. Please update it: npm install -g bower. The new registry address is https://registry.bower.io"

Weird, I've not seen that before. Can you try to update your Bower, as suggested above, and try again?
Reply | Threaded
Open this post in threaded view
|

Re: Build failed for Power TAC Visualizer v2 on v1.4.4

Stevenshi-23
Thanks. I udpated bower with sudo, and an warning was displayed:

> npm WARN deprecated bower@1.8.4: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
/usr/local/bin/bower -> /usr/local/lib/node_modules/bower/bin/bower
/usr/local/lib
└── bower@1.8.4

It looks to me bower is now depreciated? Anyway, after this step, I re-ran $ mvn clean install, and same error persists...

By the way, I am running on AWS's r3.micro Ubuntu container, whose memory is limited to 1GB. I am not sure whether that will have an effect, because I was able to build and run v1.5.0 on my Mac (OS: Mojave).

Thanks!

Regards,
Ziji
Reply | Threaded
Open this post in threaded view
|

Re: Build failed for Power TAC Visualizer v2 on v1.4.4

erikkemperman
Yes it looks like it is deprecated — I don’t think we are going to be able to address that for the outdated powertac version you are trying to build, to be honest...

Anyway, strange that you get the same error. Is /usr/local/bin on your PATH? Ie, if you type “bower —version” does it report 1.8.4?
Reply | Threaded
Open this post in threaded view
|

Re: Build failed for Power TAC Visualizer v2 on v1.4.4

Stevenshi-23
Sorry for the confusion. The depreciated bower error was on v1.5.0 though.

Yes, it in in my PATH. And it did report 1.8.4. Should I start an issue on GitHub?

Best Regards,
Steven
On 24 Oct 2018, at 00:57, erikkemperman [via Power TAC Developers] <[hidden email]> wrote:

Yes it looks like it is deprecated — I don’t think we are going to be able to address that for the outdated powertac version you are trying to build, to be honest...

Anyway, strange that you get the same error. Is /usr/local/bin on your PATH? Ie, if you type “bower —version” does it report 1.8.4?


If you reply to this email, your message will be added to the discussion below:
http://power-tac-developers.975333.n3.nabble.com/Build-failed-for-Power-TAC-Visualizer-v2-on-v1-4-4-tp4026892p4026898.html
To unsubscribe from Build failed for Power TAC Visualizer v2 on v1.4.4, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Build failed for Power TAC Visualizer v2 on v1.4.4

erikkemperman
Yes, maybe it would be better to track this on an issue on github. Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Build failed for Power TAC Visualizer v2 on v1.4.4

erikkemperman
For anyone finding this thread -- it is further handled on GitHub:
https://github.com/powertac/powertac-server/issues/982