Closed chris2009 closed 8 years ago
You can't keep the comments in the json file, as it will make a json file an invalid one...
"host" : "192.168.1.8:8080,
So host mean "host" not "host+port" with missing ".
"content": "/.../www",
Is that a valid path? You are lucky that property is not useful when using apache.
"sessionURL" : "ws://192.168.1.8:8080/ws"
This is wrong when used with Apache. If you read the documentation, you should find what to replace it with.
/home/christian/Escritorio/mapping-file/proxy.txt
Did you make sure that security wise Apache can read that file and the launcher can write it?
"log_dir" : "/.../viz-logs",
Is it a valid path?
"upload_dir" : "/.../uploadDirectory",
Is it a valid path?
Maybe you can help me to make things clearer. How can I write in a documentation that the field should be filled up by the user with a valid path instead of left untouched?
/.../
Please fix ALL of them with a valid path...
Hi Jourdain,
You are rigth, I'll fix all your observations and them I'll write you again.
Thank you very much.
For Apache now
ServerName
mean the name of your server not "name + port"
You should probably fix that too
${APACHE_LOG_DIR}
with a valid path.
Otherwise that seems fine.
Hi Jourdain,
Now the launcher.config looks like that:
{
## ===============================
## General launcher configuration
## ===============================
"configuration": {
"host" : "192.168.1.8, # name of network interface to bind for launcher webserver
"port" : 8080, # port to bind for launcher webserver
"endpoint": "paraview", # SessionManager Endpoint
"content": "/home/christian/Escritorio/Proyecto/build/www", # Optional: Directory shared over HTTP
"proxy_file" : "/home/christian/Escritorio/mapping-file/proxy.txt", # Proxy-Mapping file for Apache
"sessionURL" : "ws://192.168.1.8:8080/apps/Visualizer/", # ws url used by the client to connect to started process
"timeout" : 5, # Wait time in second after process start
"log_dir" : "/home/christian/Escritorio/Proyecto/build/log_dir", # Directory for log files
"upload_dir" : "/home/christian/Escritorio/Proyecto/build/upload_dir", # Start file upload server on same port as launcher
"fields" : ["file", "host", "port", "updir"] # Fields not listed are filtered from response
},
## ===============================
## Resources list for applications
## ===============================
"resources" : [ { "host" : "http://192.168.1.8:8080/apps/Visualizer/", "port_range" : [9001, 9003] } ],
## ===============================
## Set of properties for cmd line
## ===============================
"properties" : {
"build_dir" : "/home/christian/Escritorio/Proyecto/build",
"python_exec" : "/home/christian/Escritorio/Proyecto/build/bin/vtkpython",
"WWW" : "/home/christian/Escritorio/Proyecto/build/www",
"source_dir": "/home/christian/Escritorio/Proyecto/ParaView"
},
## ===============================
## Application list with cmd line
## ===============================
"apps": {
"pipeline": {
"cmd": [
],
"ready_line" : "Starting factory"
},
"visualizer": {
"cmd": [
"${python_exec}", "-dr", "${python_path}/paraview/web/pv_web_visualizer.py",
"--port", "${port}", "--data-dir", "${dataDir}", "-f", "--authKey", "${secret}"
],
"ready_line" : "Starting factory"
},
"loader": {
"cmd": [
"${python_exec}", "-dr", "${python_path}/paraview/web/pv_web_file_loader.py",
"--port", "${port}", "--data-dir", "${dataDir}", "-f", "--authKey", "${secret}"
],
"ready_line" : "Starting factory"
},
"data_prober": {
"cmd": [
"${python_exec}", "-dr", "${python_path}/paraview/web/pv_web_data_prober.py",
"--port", "${port}", "--data-dir", "${dataDir}", "-f", "--authKey", "${secret}"
],
"ready_line" : "Starting factory"
Correct for the log_dir
and upload_dir
.
But still find the issue mention earlier:
"host" : "192.168.1.8, # name ....
1) Remove comment
"host" : "192.168.1.8,
2) End the field properly
"host" : "192.168.1.8",
3) Please do the same for the other comments
Moreover sessionURL
is still wrong and also increase the timeout to 25.
The last line of that page give you the correct value:
http://kitware.github.io/paraviewweb/docs/guides/python_launcher.html
And when I putted in the command window this:
root@christian-All-Series:~/Escritorio/Proyecto/build# ./bin/pvpython lib/site-packages/vtk/web/launcher.py launcher.config
ERROR: Unable to read config file.
[Errno 2] No such file or directory: 'launcher.config'
<traceback object at 0x7fb7d3ba1d88>
I putted the file launcher.config in /home/christian/Escritorio/Proyecto/ParaView/VTK/Web/Python/vtk/web. It's correct?
The launcher.config
file can be anywhere.
In your case you will have to run
$ ./bin/pvpython lib/site-packages/vtk/web/launcher.py /home/christian/Escritorio/Proyecto/ParaView/VTK/Web/Python/vtk/web/launcher.config
The launcher looks like:
{
## ===============================
## General launcher configuration
## ===============================
"configuration": {
"host" : "192.168.1.8", # name of network interface to bind for launcher webserver
"port" : "8080", # port to bind for launcher webserver
"endpoint": "paraview", # SessionManager Endpoint
"content": "/home/christian/Escritorio/Proyecto/build/www", # Optional: Directory shared over HTTP
"proxy_file" : "/home/christian/Escritorio/mapping-file/proxy.txt", # Proxy-Mapping file for Apache
"sessionURL" : "ws://192.168.1.8:8080/ws", # ws url used by the client to connect to started process
"timeout" : "25", # Wait time in second after process start
"log_dir" : "/home/christian/Escritorio/Proyecto/build/log_dir", # Directory for log files
"upload_dir" : "/home/christian/Escritorio/Proyecto/build/upload_dir", # Start file upload server on same port as launcher
"fields" : ["file", "host", "port", "updir"] # Fields not listed are filtered from response
},
## ===============================
## Resources list for applications
## ===============================
"resources" : [ { "host" : "http://192.168.1.8:8080/apps/Visualizer/", "port_range" : [9001, 9003] } ],
## ===============================
## Set of properties for cmd line
## ===============================
"properties" : {
"build_dir" : "/home/christian/Escritorio/Proyecto/build",
"python_exec" : "/home/christian/Escritorio/Proyecto/build/bin/vtkpython",
"WWW" : "/home/christian/Escritorio/Proyecto/build/www",
"source_dir": "/home/christian/Escritorio/Proyecto/ParaView"
},
## ===============================
## Application list with cmd line
## ===============================
"apps": {
"pipeline": {
"cmd": [
],
"ready_line" : "Starting factory"
},
"visualizer": {
"cmd": [
"${python_exec}", "-dr", "${python_path}/paraview/web/pv_web_visualizer.py",
"--port", "${port}", "--data-dir", "${dataDir}", "-f", "--authKey", "${secret}"
],
"ready_line" : "Starting factory"
},
"loader": {
"cmd": [
"${python_exec}", "-dr", "${python_path}/paraview/web/pv_web_file_loader.py",
"--port", "${port}", "--data-dir", "${dataDir}", "-f", "--authKey", "${secret}"
],
"ready_line" : "Starting factory"
},
"data_prober": {
"cmd": [
"${python_exec}", "-dr", "${python_path}/paraview/web/pv_web_data_prober.py",
"--port", "${port}", "--data-dir", "${dataDir}", "-f", "--authKey", "${secret}"
],
"ready_line" : "Starting factory"
But I got the next message:
root@christian-All-Series:~/Escritorio/Proyecto/build# ./bin/pvpython lib/site-packages/vtk/web/launcher.py /home/christian/Escritorio/Proyecto/ParaView/VTK/Web/Python/vtk/web/launcher.config
ERROR: Unable to read config file.
Expecting property name: line 2 column 3 (char 4)
<traceback object at 0x7f053b44fe18>
What could be the mistake?
I think you should read my comments... All the answer are in them. As well as in the documentation. If you can't apply them, then Kitware provide support contract. Then I'll be able to write that file for you.
I'm sorry Jourdain. I haven't read with attention your advices. I removed the comments in the file launcher.config.
Now I wrote :
./bin/pvpython lib/site-packages/vtk/web/launcher.py /home/christian/Escritorio/mapping-file/launcher.config
And the terminal looks like in waiting mode. Is it good?
yes that's good. Does it work?
I am writing http://192.168.1.8:8080/apps/Visualizer/
and it stays loading.
Why don't you try to connect to http://192.168.1.8/apps/Visualizer/
instead?
In your advice:
You should probably fix that too
${APACHE_LOG_DIR} with a valid path.
should I create the APACHE_LOG_DIR by myself or I should find it inside the file /etc/apache2 because I can't find it.
Create it yourself so you can run log analyser on it if you like. Just make sure Apache can write in it.
Could you provide some background on what you are trying to do? Because most of your questions would depend on what you want to do with it.
For test, you can surely do whatever you want in term of file location. But in the real world, you should rely on some standard and get some help from an IT team to setup a web server in a secured way where you can deploy ParaViewWeb.
when I try to connect to http://192.168.1.8/apps/Visualizer/ it doesn't work. It said: Object not found.
But just FYI, this is what you try to make it work. So that should be what you should test.
Did you enabled your virtual host?
I think you should really seek for some support contract with Kitware so we could truly spend the time helping you. Because with the amount of information we have and the fact you are not always following our recommendation, it is very hard for us to help you.
I am trying to investigate the ParaviewWeb to make my thesis, I have studied Computing Science and since I read about Paraview I was very interestered in this tool. So I have could run paraviewweb in my PC, but If I wanted to show this tool to my assessor or and a work team I would have to run Paraviewweb in diferents machines and is for this reason I am giving your help Jourdain.
What is your opinion?
I see, but you seem to be missing so much background, it is very hard to help you.
If it is just for an investigation, you should just run ParaViewWeb from the command line, like you run the ParaView application. This way it will be simpler and you won't have to deal with this server setup.
Ok Jourdain, thank you anyway. I learned much about that.
Hi!,
I have been trying set up paraviewweb to work with multiple sessions in one machine but I have had problems in how configure these files: 001-pvw.conf and launcher.config. They look this: