I now recreated the demo application using CookieCutter for Trame version 2
. I followed same steps again. Removed old docker image and ran build_server.sh
and it populated all the directories this time. However, while running the application it’s now showing loading image and then shows session timeout error. Moved a step ahead but now stuck on next step.
There’s no error is while I’m running script run_server.sh
.
* Restarting Apache httpd web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
[ OK ]
Starting the wslink launcher at
======== Running on http://0.0.0.0:9000 ========
(Press CTRL+C to quit)
One thing that I noticed in console logs of the browser is that it’s checking for http://localhost:8080/paraview/
URL. Unable to link current application with ParaView. Do I need to setup ParaVIEW on host ?
I also checked server log directory.
The error.log
file is empty.
The access.log
file content is
172.17.0.1 - - [06/Jun/2022:08:45:23 +0000] "GET /index.html HTTP/1.1" 200 1505 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
172.17.0.1 - - [06/Jun/2022:08:45:23 +0000] "GET /js/app.e824b0b6.js HTTP/1.1" 200 6435 "http://localhost:8080/index.html" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
172.17.0.1 - - [06/Jun/2022:08:45:23 +0000] "GET /js/chunk-vendors.b1171b04.js HTTP/1.1" 200 69138 "http://localhost:8080/index.html" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
172.17.0.1 - - [06/Jun/2022:08:45:23 +0000] "GET /js/app.e824b0b6.js.map HTTP/1.1" 404 490 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
172.17.0.1 - - [06/Jun/2022:08:45:23 +0000] "GET /js/chunk-vendors.b1171b04.js.map HTTP/1.1" 404 490 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
172.17.0.1 - - [06/Jun/2022:08:45:23 +0000] "POST /paraview/ HTTP/1.1" 503 303 "http://localhost:8080/index.html" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
172.17.0.1 - - [06/Jun/2022:08:49:20 +0000] "GET /volume-viewer.html HTTP/1.1" 200 1511 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
172.17.0.1 - - [06/Jun/2022:08:49:20 +0000] "GET /css/app.6e67310f.css HTTP/1.1" 200 829 "http://localhost:8080/volume-viewer.html" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
172.17.0.1 - - [06/Jun/2022:08:49:20 +0000] "GET /js/app.e824b0b6.js HTTP/1.1" 200 6435 "http://localhost:8080/volume-viewer.html" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
172.17.0.1 - - [06/Jun/2022:08:49:20 +0000] "GET /js/chunk-vendors.b1171b04.js HTTP/1.1" 200 69138 "http://localhost:8080/volume-viewer.html" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
172.17.0.1 - - [06/Jun/2022:08:49:20 +0000] "GET /js/app.e824b0b6.js.map HTTP/1.1" 404 490 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
172.17.0.1 - - [06/Jun/2022:08:49:20 +0000] "GET /js/chunk-vendors.b1171b04.js.map HTTP/1.1" 404 490 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
The launcherLog.log
file content is
2022-06-06 08:45:18,267:DEBUG:asyncio:Using selector: EpollSelector
2022-06-06 08:45:48,570:INFO:aiohttp.access:127.0.0.1 [06/Jun/2022:08:45:23 +0000] "POST /paraview/ HTTP/1.1" 503 252 "http://localhost:8080/index.html" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
2022-06-06 08:49:45,878:INFO:aiohttp.access:127.0.0.1 [06/Jun/2022:08:49:20 +0000] "POST /paraview/ HTTP/1.1" 503 252 "http://localhost:8080/volume-viewer.html" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
The session specific log file content is
INFO:volume_viewer.app.engine:>>> ENGINE(a): Slider updating resolution to 6
INFO:volume_viewer.app.engine:>>> ENGINE(b): Slider updating resolution to 6
INFO:volume_viewer.app.engine:>>> ENGINE(b): Server is ready {'trame__scripts': ['__trame_vuetify/trame-vuetify.umd.min.js', '__volume_viewer/vue-volume_viewer.umd.min.js', '__trame_vtk/trame-vtk.js'], 'trame__styles': ['__trame_vuetify/trame-vuetify.css', '__volume_viewer/vue-volume_viewer.css'], 'trame__vue_use': ['trame_vuetify', 'volume_viewer', 'vue_vtk'], 'trame__mousetrap': [], 'trame__client_only': ['trame__busy'], 'trame__busy': 1, 'trame__favicon': None, 'trame__title': 'volume-viewer', 'resolution': 6, 'trame__template_main': '<v-app id="app">\n<v-app-bar app>\n<v-app-bar-nav-icon />\n<v-toolbar-title >\nTrame / vtk.js\n</v-toolbar-title>\n<v-spacer />\n<your-custom-widget attribute-name="Hello" js_attr_name="World" @click="trigger(\'trigger__2\')" @change="trigger(\'trigger__3\')" />\n<v-spacer />\n<v-slider v-model="resolution" dense hide-details max="60" min="3" />\n<v-btn icon @click="trigger(\'trigger__4\')">\n<v-icon >\nmdi-crop-free\n</v-icon>\n</v-btn>\n<v-btn icon @click="trigger(\'trigger__5\')">\n<v-icon >\nmdi-undo\n</v-icon>\n</v-btn>\n</v-app-bar>\n<v-main >\n<v-container class="pa-0 fill-height" fluid>\n<vtk-view ref="view">\n<vtk-geometry-representation >\n<vtk-algorithm :state="{ resolution }" />\n</vtk-geometry-representation>\n</vtk-view>\n</v-container>\n</v-main>\n<v-footer class="my-0 py-0" app>\n<v-progress-circular class="ml-n3 mr-1" color="#04a94d" :indeterminate="trame__busy" size="16" width="3" />\n<a href="https://kitware.github.io/trame/" class="grey--text lighten-1--text text-caption text-decoration-none" target="_blank">Powered by trame</a>\n<v-spacer />\n<v-btn class="mx-2" icon x-small @click="trigger(\'trigger__1\')">\n<v-icon x-small>\nmdi-autorenew\n</v-icon>\n</v-btn>\n<v-tooltip top>\n<template v-slot:activator="{on, attrs}">\n<v-icon v-bind="attrs" v-on="on" class="mr-4" x-small>\nmdi-help-circle\n</v-icon>\n</template>\n<pre >\ntrame == 2.1.0\nvuetify == 2.0.1\nvtk == 2.0.5\nvega == 2.0.2\nserver == 2.1.0\nrouter == 2.0.1\nplotly == 2.0.1\nmatplotlib == 2.0.1\nmarkdown == 2.0.2\ndeckgl == 2.0.1\ncomponents == 2.0.1\nclient == 2.1.0\n</pre>\n</v-tooltip>\n<a href="https://www.kitware.com/" class="grey--text lighten-1--text text-caption text-decoration-none" target="_blank">© 2021 Kitware Inc.</a>\n</v-footer>\n</v-app>'}
App running at:
- Local: http://0.0.0.0:9500/
- Network: http://172.17.0.2:9500/
Note that for multi-users you need to use and configure a launcher.