vatesfr / xen-orchestra

The global orchestration solution to manage and backup XCP-ng and XenServer.
https://xen-orchestra.com
Other
792 stars 265 forks source link

XO-Web-4.0.1 Console issue #275

Closed sjkeerthi closed 9 years ago

sjkeerthi commented 9 years ago

I could not able to view the console of VM and xenserver after I installed xo-web.

Tested Browser

Chrome Version 43.0.2357.81 (64-bit)

Firefox 38.

Do I missing anything during installation.

screenshot from 2015-06-03 23 54 04 screenshot from 2015-06-03 23 55 17

olivierlambert commented 9 years ago

Put the xo-server log when you access console, and also open your browser Console (F12) to see if you get any error messages.

sjkeerthi commented 9 years ago

Error xo-server

xo:wsProxy client closed +7ms xo:main - WebSocket connection +2s xo:main - WebSocket connection +5s xo:wsProxy client closed +1ms xo:main + WebSocket connection +1m xo:api session.signInWithToken(...) +214ms use session.signIn() instead xo:api session.signInWithToken(...) → object +4ms xo:api xo.getAllObjects(...) +17ms xo:api xo.getAllObjects(...) → object +4ms xo:api acl.getCurrent(...) +4ms xo:api acl.getCurrent(...) → object +4ms xo:api host.listMissingPatches(...) +2s xo:api Error: host.listMissingPatches(...) → TypeError: Cannot read property 'patches' of undefined +2ms TypeError: Cannot read property 'patches' of undefined at Xapi.listMissingPoolPatchesOnHost$ (/source/xapi.js:316:5) at tryCatch (/opt/xo-server/node_modules/babel-runtime/regenerator/runtime.js:67:40) at GeneratorFunctionPrototype.invoke as _invoke at GeneratorFunctionPrototype.Gp.(anonymous function) as next at tryCatch (/opt/xo-server/node_modules/babel-runtime/regenerator/runtime.js:67:40) at GeneratorFunctionPrototype.step (/opt/xo-server/node_modules/babel-runtime/regenerator/runtime.js:116:22) From previous event: at JsonRpcPeer$exec (/opt/xo-server/node_modules/@julien-f/json-rpc/index.js:121:22) From previous event: at JsonRpcPeer._write (/opt/xo-server/node_modules/@julien-f/json-rpc/index.js:56:8) at doWrite (/opt/xo-server/node_modules/@julien-f/json-rpc/node_modules/readable-stream/lib/_stream_writable.js:237:10) at writeOrBuffer (/opt/xo-server/node_modules/@julien-f/json-rpc/node_modules/readable-stream/lib/_stream_writable.js:227:5) at JsonRpcPeer.Writable.write (/opt/xo-server/node_modules/@julien-f/json-rpc/node_modules/readable-stream/lib/_stream_writable.js:194:11) at WebSocket. (/source/index.js:278:9) at WebSocket.emit (events.js:110:17) at Receiver.ontext (/opt/xo-server/node_modules/ws/lib/WebSocket.js:797:10) at /opt/xo-server/node_modules/ws/lib/Receiver.js:473:18 at /opt/xo-server/node_modules/ws/lib/Receiver.js:357:7 at /opt/xo-server/node_modules/ws/lib/PerMessageDeflate.js:217:5 at afterWrite (_stream_writable.js:361:3) at onwrite (_stream_writable.js:352:7) at WritableState.onwrite (_stream_writable.js:105:5) at afterTransform (_stream_transform.js:99:5) at TransformState.afterTransform (_stream_transform.js:74:12) at Zlib.callback (zlib.js:611:5) xo:api host.stats(...) +8ms xo:api host.stats(...) → object +1s xo:perf blocked for 846ms +0ms xo:api acl.getCurrent(...) +7s xo:api acl.getCurrent(...) → object +5ms xo:api acl.getCurrent(...) +10s xo:api acl.getCurrent(...) → object +5ms xo:api acl.getCurrent(...) +10s xo:api acl.getCurrent(...) → object +5ms

sjkeerthi commented 9 years ago

F12 Browser output

WebSocket connection to 'ws://localhost/api/updater' failed: WebSocket is closed before the connection is established

olivierlambert commented 9 years ago

On one hand, don't take any attention on the updater stuff, this is only for XOA (not the source install).

On the other hand, you have multiple errors in your xo-server. Make the same operations you made for xo-web (clean the node_modules folder etc.)

sjkeerthi commented 9 years ago

Tried it still could see the ERROR

xo:perf blocked for 776ms +1ms xo:api Error: host.listMissingPatches(...) → TypeError: Cannot read property 'patches' of undefined +2s xo:perf blocked for 149ms +12ms TypeError: Cannot read property 'patches' of undefined at Xapi.listMissingPoolPatchesOnHost$ (/source/xapi.js:316:5) at tryCatch (/opt/xo-server/node_modules/babel-runtime/regenerator/runtime.js:67:40) at GeneratorFunctionPrototype.invoke as _invoke at GeneratorFunctionPrototype.Gp.(anonymous function) as next at tryCatch (/opt/xo-server/node_modules/babel-runtime/regenerator/runtime.js:67:40) at GeneratorFunctionPrototype.step (/opt/xo-server/node_modules/babel-runtime/regenerator/runtime.js:116:22) From previous event: at JsonRpcPeer$exec (/opt/xo-server/node_modules/@julien-f/json-rpc/index.js:121:22) From previous event: at JsonRpcPeer._write (/opt/xo-server/node_modules/@julien-f/json-rpc/index.js:56:8) at doWrite (/opt/xo-server/node_modules/@julien-f/json-rpc/node_modules/readable-stream/lib/_stream_writable.js:237:10) at writeOrBuffer (/opt/xo-server/node_modules/@julien-f/json-rpc/node_modules/readable-stream/lib/_stream_writable.js:227:5) at JsonRpcPeer.Writable.write (/opt/xo-server/node_modules/@julien-f/json-rpc/node_modules/readable-stream/lib/_stream_writable.js:194:11) at WebSocket. (/source/index.js:278:9) at WebSocket.emit (events.js:110:17) at Receiver.ontext (/opt/xo-server/node_modules/ws/lib/WebSocket.js:797:10) at /opt/xo-server/node_modules/ws/lib/Receiver.js:473:18 at /opt/xo-server/node_modules/ws/lib/Receiver.js:357:7 at /opt/xo-server/node_modules/ws/lib/PerMessageDeflate.js:217:5 at afterWrite (_stream_writable.js:361:3) at onwrite (_stream_writable.js:352:7) at WritableState.onwrite (_stream_writable.js:105:5) at afterTransform (_stream_transform.js:99:5) at TransformState.afterTransform (_stream_transform.js:74:12) at Zlib.callback (zlib.js:611:5) xo:api acl.getCurrent(...) +5s xo:api acl.getCurrent(...) → object +15ms xo:api acl.getCurrent(...) +10s xo:api acl.getCurrent(...) → object +9ms

olivierlambert commented 9 years ago

Upgrade your npm version (if not already done) with npm i -g npm.

Rebuild your dependencies (just in case) with npm rebuild in your xo-server folder.

olivierlambert commented 9 years ago

Closing until further news

sjkeerthi commented 9 years ago

Still could see same issue on 4.5

olivierlambert commented 9 years ago

Patch error is "normal" with Dundee (not in the public list of patches in Citrix website), and not related to consoles.

About the console: make sure you made the cleanup in xo-web folder (node_modules)