[Paraview-developers] Facing Problem with Server in ParaView 4.1 Web Version
Debanshu Saha
debanshu at 2pirad.com
Fri Jan 9 00:12:35 EST 2015
Hi Seb,
Please reply on the below problem. We are stuck in this.
In Data Prober, when we are not using the Jetty Launcher the data samples
(provided with ParaView) also work fine. But when we are starting it with
Jetty launcher nothing is coming in the left side, but the rendering image
on the right side is coming correctly. We are using 4.1 version.
*Regards*
Debanshu
*2PiRad*
*Contact: *+91-8981409005
On Thu, Jan 8, 2015 at 7:37 PM, Debanshu Saha <debanshu at 2pirad.com> wrote:
> When we are not using the Jetty Launcher the Data samples also work fine.
> But when we are starting it with Jetty launcher the graph is not coming,
> but the rendering image on the right side is coming correctly.
>
> Regards
> Debanshu
> 2PiRad
> Contact: +91-8981409005
>
> On Jan 8, 2015 6:47 PM, Sebastien Jourdain <sebastien.jourdain at kitware.com>
> wrote:
> >
> > What happens when you load a dataset?
> >
> > Remember those are samples that are meant to help you building your own
> application.
> >
> > Moreover Windows as a server and IE as the client, is probably the worst
> case scenario as both are not tested.
> >
> > Seb
> >
> >
> >
> > On Jan 8, 2015, at 08:09, Debanshu Saha <debanshu at 2pirad.com> wrote:
> >
> >> Hey Seb,
> >>
> >> We are facing some problem in Data Prober Module. Whenever we start the
> Data Prober module with Jetty Launcher then the graph h in the lest left
> side does not load (Attached: Figure1). But when we start it without Jetty
> Launcher, it works fine. (Attached: Figure2).
> >>
> >> With Jetty Launcher we are using the 9000 Port and without Jetty
> Launcher we are using the 8080 Port. But in both the cases the same set of
> resources are used. When we debug the problem (of Figure1), using debugger
> tool in IE, we are getting an error. (Attached: Figure3)
> >>
> >> Can you please help us to solve the problem?
> >>
> >>
> >> Regards
> >> Debanshu
> >> 2PiRad
> >> Contact: +91-8981409005
> >>
> >> On Tue, Jan 6, 2015 at 6:55 PM, Sebastien Jourdain <
> sebastien.jourdain at kitware.com> wrote:
> >>>
> >>>
> >>>
> >>> 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
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>
> >>>>>>
> >>>>>
> >>>>
> >>
> >> <Figure1.jpg>
> >>
> >> <Figure2.jpg>
> >>
> >> <Figure3.jpg>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150109/b7c741ad/attachment-0001.html>
More information about the Paraview-developers
mailing list