[SOLVED] How to upgrade to 5.8.3 from 5.8.1

i’ve failed to understand from instructions on how to make the update

i currently have 5.8.1 and want to go to 5.8.3 (need to stop at 5.8.2 first?)

Hi,

Quick note: please be aware that 5.8.3 is a hotfix release (ie, packages are available only to OpenNebula Systems support subscribers). Alternatively you can build from source.

Hi, all
I try to build opennebula 5.8.3
I get error when make this step: grunt requirejs

]# grunt requirejs
Running "requirejs:compileCSS" (requirejs) task

Running "requirejs:compileJS" (requirejs) task
>> Error: ENOENT: no such file or directory, open
>> '/root/opennebula_builder/opennebula-5.8.3/src/sunstone/public/bower_componen
>> ts/no-vnc/lib/rfb.js'
>> In module tree:
>>     main
>>       tabs/provision-tab
>>         tabs/provision-tab/vms/list
>>           utils/vnc
Warning: RequireJS failed. Use --force to continue.

Aborted due to warnings.

It’s seems was deleted the patch by path:

https://github.com/OpenNebula/one/tree/release-5.8.3/src/sunstone/public/

In 5.8.2 it was:

https://github.com/OpenNebula/one/tree/release-5.8.2/src/sunstone/public/patches//bug4304-novnc.patch

Hello @telecast

That patch is no longer needed, in the 5.8.3 we have upgrade novnc version, so please use sunstone build.sh (src/sunstone/public) script to compile it.

Hi @ahuertas
Great, it’s working.
Thank you for help!

After installed i can’t find file main.js

#ll /usr/lib/one/sunstone/public/dist
rw-r--r--  1 root root   42752 jul  1 17:54 build.txt
drwxr-xr-x  2 root root    4096 jul  1 17:54 console
-rw-r--r--  1 root root  113580 jul  1 17:54 login.js
-rw-r--r--  1 root root  121200 jul  1 17:54 login.js.map
-rw-r--r--  1 root root 7227680 jul  1 17:54 main-dist.js
-rw-r--r--  1 root root 8564048 jul  1 17:54 main.js.map
drwxr-xr-x 11 root root    4096 jul  1 17:54 tabs
drwxr-xr-x  3 root root    4096 jul  1 17:53 templates

probably from this i can’t to enter to Sunstone.
Sunstone get error in console of the web-browser:
/dist/main.js?v=5.8.3 net::ERR_ABORTED 401 (Unauthorized)

Do you have this file /var/lib/one/sunstone/main.js?

Yes, I have

# ll /var/lib/one/sunstone/main.js
-rw-r----- 1 oneadmin oneadmin 7229021 jul  1 18:42 /var/lib/one/sunstone/main.js

I have been made the link:

]# ll
total 15720
-rw-r--r--  1 root root   42752 jul  1 18:38 build.txt
drwxr-xr-x  2 root root    4096 jul  1 18:38 console
-rw-r--r--  1 root root  113580 jul  1 18:38 login.js
-rw-r--r--  1 root root  121200 jul  1 18:38 login.js.map
-rw-r--r--  1 root root 7229021 jul  1 18:38 main-dist.js
lrwxrwxrwx  1 root root      29 jul  1 19:56 main.js -> /var/lib/one/sunstone/main.js
-rw-r--r--  1 root root 8565645 jul  1 18:38 main.js.map
drwxr-xr-x  2 root root    4096 jul  1 18:38 sunstone
drwxr-xr-x 11 root root    4096 jul  1 18:38 tabs
drwxr-xr-x  3 root root    4096 jul  1 18:38 templates

after restart opennebula-sunstone.
Now, ок.
But I have error with noVNC when i click on it:

VNC Failed
Something went wrong, connection is closed

I think it happened because when run “grunt requirejs” didn’t find “rfb.js” by path /src/sunstone/public/bower_components/no-vnc/lib/rfb.js

It’s seems was my local bug. Now noVNC is working correctly.
Thank you