[Paraview-developers] Facing Problem with Server in ParaView 4.1 Web Version
Sebastien Jourdain
sebastien.jourdain at kitware.com
Thu Jan 8 08:20:54 EST 2015
Yes, but in 4.2 we bumped the version of twisted and autobahn which induced some weird native dependency on Windows.
Hence we don't build that part by default on windows anymore.
> On Jan 8, 2015, at 08:14, Debanshu Saha <debanshu at 2pirad.com> wrote:
>
> Ok. But in 4.1 using integrated it in Web without rebuilding it.
>
> Regards
> Debanshu
> 2PiRad
> Contact: +91-8981409005
>
>> On Thu, Jan 8, 2015 at 6:40 PM, Sebastien Jourdain <sebastien.jourdain at kitware.com> wrote:
>> On windows you will need to build PV yourself to have the web part.
>>
>> Seb
>>
>>
>>
>>> On Jan 8, 2015, at 00:55, Debanshu Saha <debanshu at 2pirad.com> wrote:
>>>
>>> Hey Seb,
>>>
>>> Which version of ParaView is in the sample showcase (http://paraviewweb.kitware.com/apps/Visualizer/)? And how can we integrate the ParaView 4.2 or 4.3 in Web as there is no files like pv_web_data_prober.py, pv_web_file_loader.py or pv_web_visualizer.py in the package, which we need to mention in pw-config.properties file. Please suggest.
>>>
>>> Regards
>>> Debanshu
>>> 2PiRad
>>> Contact: +91-8981409005
>>>
>>> ---------- Forwarded message ----------
>>> From: Sebastien Jourdain <sebastien.jourdain at kitware.com>
>>> Date: Tue, Jan 6, 2015 at 6:55 PM
>>> Subject: Re: [Paraview-developers] Facing Problem with Server in ParaView 4.1 Web Version
>>> To: Debanshu Saha <debanshu at 2pirad.com>
>>>
>>>
>>>
>>>
>>>> On Jan 6, 2015, at 03:33, Debanshu Saha <debanshu at 2pirad.com> wrote:
>>>>
>>>> Hi Seb,
>>>>
>>>> Thanks for your help and advice. Everything is running fine now.
>>>>
>>>> But there are some concerns that we need to address:-
>>>>
>>>> 1) Whenever a new session is opened, a Visualization Tool-Kit WebGL Console Window is opened. Like, if 10 clients hit the ParaView Web URL, the 10 such window is opened. Can we avoid displaying that window, and run the same in background process?
>>>
>>> Yes that's expected. This is the only way to leverage the gpu. Otherwise you can build ParaView with OSMesa but I'm not sure you can do such a thing on windows.
>>>
>>>>
>>>> 2) Is there a limit to how many clients can be allowed to connect to a particular ParaView server? If yes, then where is it specified and how can we make sure that unlimited number of user can connect to a particular ParaView Server?
>>>
>>> Yes there is a property in the launcher configure.
>>>
>>>>
>>>> Regards
>>>> Debanshu
>>>> 2PiRad
>>>> Contact: +91-8981409005
>>>>
>>>>> On Mon, Jan 5, 2015 at 7:51 PM, Sebastien Jourdain <sebastien.jourdain at kitware.com> wrote:
>>>>> You are forcing each session to run on port 8080, hence the problem.
>>>>>
>>>>> The documentation state:
>>>>>
>>>>> --port PORT
>>>>> And on your config you have "--port 8080"
>>>>>
>>>>> Should I assume you've read the documentation?
>>>>>
>>>>> Seb
>>>>>
>>>>>
>>>>>> On Mon, Jan 5, 2015 at 8:51 AM, Debanshu Saha <debanshu at 2pirad.com> wrote:
>>>>>> Hi Seb,
>>>>>>
>>>>>> We have gone through the documentation but we are facing issues while jetty is trying to access ParaViewWeb components. Though standalone ParaViewWeb is running fine.
>>>>>>
>>>>>> Our Setup is as follows:-
>>>>>> OS: Windows 7 64 Bit
>>>>>> ParaViewWeb Folder: C:/Paraview/ParaView-4.1.0-Windows-64bit/
>>>>>> Jetty Running Port: 9000
>>>>>> ParaViewWeb Running Port: 8080
>>>>>>
>>>>>> Files Attached:-
>>>>>> pw-config.properties: The config file for Jetty Session Manager
>>>>>> fe04f1fa-02f1-4435-9ac2-d2c4b4203485.txt: Log File generated while running Jetty Server
>>>>>> Client_Side_Error.txt: Error showing in browser while loading ParaView Web on Jetty Server
>>>>>> WebSocket Error.PNG: Error showing in console while loading ParaView Web on Jetty Server
>>>>>>
>>>>>> Kindly help us to solve this issue.
>>>>>>
>>>>>> One more thing Seb, if you are comfortable can we have a meeting in Skype to identify this issue? It can be solved quickly then.
>>>>>>
>>>>>>
>>>>>> Regards
>>>>>> Debanshu
>>>>>> 2PiRad
>>>>>> Contact: +91-8981409005
>>>>>>
>>>>>>> On Mon, Jan 5, 2015 at 6:34 PM, Sebastien Jourdain <sebastien.jourdain at kitware.com> wrote:
>>>>>>> The online documentation should be able to help. And please fix the path accordingly to your platform.
>>>>>>>
>>>>>>> Sent from my iPad
>>>>>>>
>>>>>>>> On Jan 5, 2015, at 02:14, Debanshu Saha <debanshu at 2pirad.com> wrote:
>>>>>>>>
>>>>>>>> Hi Seb,
>>>>>>>>
>>>>>>>> Thanks for the info. I am now using Jetty Launcher in my computer. I have downloaded the JettySessionManager-Server-1.0.jar file and the sample pw-config.properties file. While running this jar we are getting this error:-
>>>>>>>>
>>>>>>>> ==== Starting ParaViewWeb multi-user front-end ====
>>>>>>>> Configuration: C:\pw-config.properties
>>>>>>>> WebContent: /.../paraview-build/www
>>>>>>>> Port: 9000
>>>>>>>> ===================================================
>>>>>>>> Jan 05, 2015 12:33:48 PM com.kitware.paraviewweb.util.Config getProxyConnectionAdapter
>>>>>>>> INFO: No class defined for ProxyConnectionAdapter
>>>>>>>> 2015-01-05 12:33:48.591:WARN:oejsh.ResourceHandler:java.net.MalformedURLException: no protocol: /.../paraview-build/www
>>>>>>>> Exception in thread "main" java.lang.IllegalArgumentException: /.../paraview-build/www
>>>>>>>> at org.eclipse.jetty.server.handler.ResourceHandler.setResourceBase(ResourceHandler.java:194)
>>>>>>>> at com.kitware.paraviewweb.handler.ParaViewWebHandler.<init>(ParaViewWebHandler.java:57)
>>>>>>>> at com.kitware.paraviewweb.handler.WebSocketForwarderHandler.main(WebSocketForwarderHandler.java:104)
>>>>>>>>
>>>>>>>> Also, while studying the configuration file I am seeing that file locations are as follows. I cannot find the files there.:-
>>>>>>>> pw.data_prober.cmd=./bin/pvpython ../src/Web/Python/data_prober.py --data-dir /Data --port PORT -f --authKey SECRET
>>>>>>>> pw.loader.cmd=./bin/pvpython ../src/Web/Python/file_loader.py --data-dir /Data --port PORT -f --authKey SECRET
>>>>>>>> pw.pipeline.cmd=./bin/pvpython ../src/Web/Python/pipeline_manager.py --data-dir /Data --port PORT -f --authKey SECRET
>>>>>>>>
>>>>>>>> Instead I found the below mentioned files:-
>>>>>>>> /lib/site-packages/paraview/web/pv_web_visualizer.py
>>>>>>>> /lib/site-packages/paraview/web/pv_web_data_prober.py
>>>>>>>> /lib/site-packages/paraview/web/pv_web_file_loader.py
>>>>>>>>
>>>>>>>> Also, in the configuration file, I found the following values blank. What should be the values of this file and where can I get that?:-
>>>>>>>> pw.factory.proxy.adapter=
>>>>>>>> pw.factory.proxy.adapter.file=
>>>>>>>>
>>>>>>>> Please suggest!
>>>>>>>>
>>>>>>>> Regards
>>>>>>>> Debanshu
>>>>>>>> 2PiRad
>>>>>>>> Contact: +91-8981409005
>>>>>>>>
>>>>>>>>> On Fri, Jan 2, 2015 at 9:55 PM, Sebastien Jourdain <sebastien.jourdain at kitware.com> wrote:
>>>>>>>>> ..\share\paraview-4.1\www\index.html
>>>>>>>>>
>>>>>>>>> it might b right if your plan is to have a single instance of Paraview for all the usage you want to do. Otherwise, you can achieve the same thing using the launcher but this time each user will have its own instance.
>>>>>>>>>
>>>>>>>>> Seb
>>>>>>>>>
>>>>>>>>>> On Thu, Jan 1, 2015 at 11:35 PM, Debanshu Saha <debanshu at 2pirad.com> wrote:
>>>>>>>>>> Great then.
>>>>>>>>>>
>>>>>>>>>> Where can I find this Unload part of the HTML code? I mean in while file and directory?
>>>>>>>>>>
>>>>>>>>>> We just want to invoke the ParaView Web from another Web Application. For this, I am just starting the ParaView Server along with the Server of the Web Application and giving a link of ParaView URL from the Web Application. Are we going the right way?
>>>>>>>>>>
>>>>>>>>>> Regards
>>>>>>>>>> Debanshu
>>>>>>>>>> 2PiRad
>>>>>>>>>> Contact: +91-8981409005
>>>>>>>>>>
>>>>>>>>>>> On Fri, Jan 2, 2015 at 11:59 AM, Sebastien Jourdain <sebastien.jourdain at kitware.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> On Jan 1, 2015, at 23:24, Debanshu Saha <debanshu at 2pirad.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Hi Seb,
>>>>>>>>>>>>
>>>>>>>>>>>> Can you please clarify the following points:-
>>>>>>>>>>>>
>>>>>>>>>>>> 1) Then anybody hitting refresh(knowingly/unknowingly) after opening the server will make the server stop again. Is it an expected behavior?
>>>>>>>>>>>
>>>>>>>>>>> Yes but if you comment the unload= part of the html code, that behavior will disappear.
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> 2) Is ParaView Web not supported in Windows? If No, then how can we make sure that it works on Windows?
>>>>>>>>>>>
>>>>>>>>>>> The issue was related to Python and some native api not available by default. But if you managed to get the server running, the ParaView side will just work.
>>>>>>>>>>>
>>>>>>>>>>> Seb
>>>>>>>>>>>
>>>>>>>>>>> Ps: try to keep the mailing list in the loop
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Regards
>>>>>>>>>>>> Debanshu
>>>>>>>>>>>> 2PiRad
>>>>>>>>>>>> Contact: +91-8981409005
>>>>>>>>>>>>
>>>>>>>>>>>>> On Fri, Jan 2, 2015 at 11:06 AM, Sebastien Jourdain <sebastien.jourdain at kitware.com> wrote:
>>>>>>>>>>>>> Hi Debanshu,
>>>>>>>>>>>>>
>>>>>>>>>>>>> what you are seeing is exactly expected. For multiple user, we expect to start one server per client. Hence we use a launcher to automate that task and use apache to serve everything on the same port.
>>>>>>>>>>>>>
>>>>>>>>>>>>> What you just did was to validate that ParaViewWeb does work on your computer.
>>>>>>>>>>>>> (Which is impressive considering that Windows is not officially supported.)
>>>>>>>>>>>>>
>>>>>>>>>>>>> You can read more here: http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/multi_user_setup
>>>>>>>>>>>>>
>>>>>>>>>>>>> Seb
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Thu, Jan 1, 2015 at 10:08 PM, Debanshu Saha <debanshu at 2pirad.com> wrote:
>>>>>>>>>>>>>> Hello,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I have followed the below mentioned steps while installing ParaView Web:-
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> 1) We have downloaded the ParaView-4.1.0-Windows-64bit.zip from ParaView website.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> 2) We have downloaded the same data like can.ex2 and disk_out_ref.ex2 from ParaView website.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> 3) Then we executed the below code in a batch file:-
>>>>>>>>>>>>>> $ unzip ParaView-4.1.0-Windows-64bit.exe
>>>>>>>>>>>>>> $ cd ParaView-4.1.0-Windows-64bit\bin
>>>>>>>>>>>>>> $ pvpython.exe ..\lib\paraview-4.1\site-packages\paraview\web\pv_web_visualizer.py --content ..\share\paraview-4.1\www --data-dir .\path-to-share --port 8080
>>>>>>>>>>>>>> So, the ParaView server is started.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> 4) Started the application by hitting the URL http://localhost:8080/apps/Visualizer/
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Now, we facing the below problems:-
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> 1) When we again hit the same URL in the same browser window, the server stops. It does not happen when we hit the same URL in different browser.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Kindly advice what is wrong with it.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Regards
>>>>>>>>>>>>>> Debanshu
>>>>>>>>>>>>>> 2PiRad
>>>>>>>>>>>>>> Contact: +91-8981409005
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Paraview-developers mailing list
>>>>>>>>>>>>>> Paraview-developers at paraview.org
>>>>>>>>>>>>>> http://public.kitware.com/mailman/listinfo/paraview-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150108/7b9761a5/attachment-0001.html>
More information about the Paraview-developers
mailing list