One 5.8.2 sunstone fails to start

After upgrading to one-5.8.2 with our manual builds sunstone fails to start:

May 16 12:07:56 sun02 ruby: /usr/lib/one/ruby/OpenNebulaAddons.rb:29:in `initialize': No such file or directory - /usr/lib/one/sunstone/public/dist/main-dist.js (Errno::ENOENT)
May 16 12:07:56 sun02 ruby: from /usr/lib/one/ruby/OpenNebulaAddons.rb:29:in `new'
May 16 12:07:56 sun02 ruby: from /usr/lib/one/ruby/OpenNebulaAddons.rb:29:in `initialize'
May 16 12:07:56 sun02 ruby: from /usr/lib/one/sunstone/sunstone-server.rb:203:in `new'
May 16 12:07:56 sun02 ruby: from /usr/lib/one/sunstone/sunstone-server.rb:203:in `<main>'

Seems like main-dist.js is missing but we have no clue how to create it.

We have just redone all steps as described in the documentation for manual packaging (https://github.com/OpenNebula/packages) and verified that all steps were executed. But we are still failing to start sunstone.

Only sunstone is affected, all other component work great.

Is anyone else experiencing this problem?

does this help in your case?

Yes I also found it and it did help. But when compiling the sources and going through the documentation of the steps shouldn’t this be handled automatically?

There is another sub-project that handle the building of OpenNebula. https://github.com/OpenNebula/packages#create-archive

That is exactly the way we are creating our archives. But with 5.8.2 we have the problems mentioned above after installation. Strange.

Seems like the script is forgetting to build/package(?)
sunstone/public/dist/main-dist.js

If you run the ./build.sh script in src/sunstone/public/dist it is created and can be copied to the sunstone server:
/usr/lib/one/sunstone/public/dist/

Tested with a build/sunstone machine running Debian 9