Problem about paraviewweb configuration


(Sebastien Jourdain) #21

Every part is important but the following section is where you allow Apache to read that file assuming that file get written here /data/proxy.txt not /home/steven/ParaView/proxy.txt and by the pvw-user not steven.

$ sudo touch /data/proxy.txt
$ sudo chown pvw-user /data/proxy.txt
$ sudo chgrp www-data /data/proxy.txt
$ sudo chmod 660 /data/proxy.txt

(Sebastien Jourdain) #22

If you follow the documentation, everything is supposed to work. If not, I just need to figure out which section you skipped…


(yancheng) #23

So the key point is that, I should configure all the process in a user account but not the root user account? And then it will work as expected.


(Sebastien Jourdain) #24

yes for security reason.


(yancheng) #25

Thank you very much for your nice reply.
I have been success finally by following the doc instruction, yeah~


BHW, if I want to develop our own website for large data web visualization, I should refer to the open-source project of Visualizer, lightviz or the arcviewer in github?
That means I just need to develop a customized “visualizer” to replace the default bundled visualizer in paraview?


(yancheng) #26

Then I try to configure paraview 5.5.2 in the same way, but it does not work.
I find that in 5.5.2, there is no vtk/web/lancher.py path, so i use the wslink/lancher.py


My test screenshot is as follows:

In the development tab window of browser, there is no any error. But in the pvw/logs, there are some errors.
So it seems that there are some bug in the 5.5.2?


(yancheng) #27

I try all 5.5.X version of paraview, all failed.
Then 5.4 is OK
Can I use the lightviz and divvy in 5.4? How to use it in the launcher.json?


(Sebastien Jourdain) #28

ParaView 5.5 needs to be patched like I mentioned before on that thread by providing a link to https://kitware.github.io/visualizer/docs/compatibility.html.

The latest version use Wslink which replace our previous communication infrastructure that was based on WAMP. The new code provide better performances and mostly work the same way except that you need to make sure the client and the server are compatible. (like before too)

I would say Visualizer is currently the best one to start your app from.

The launcher configuration should remain the same. You just need to adjust the path to the script to refer to the wslink one.


(yancheng) #29

I have already patched the showBuiltin argument problem yesterday.
The problem shown in the logs of above screenshot seems like some other problems. you can have a look


(Sebastien Jourdain) #30

I don’t know what to say. I currently use my PV 5.5.2 for my current Visualizer dev without issue, but I did patch the full protocol.py to use the one from PV/master.

Since it is hard to know what you are exactly doing, I don’t know if I can help.

Try using a nightly build of ParaView. Those version should work out of the box without edit/patch.


(yancheng) #31

I try 5.5.2 again following your all patch suggestion. bu still failed.


(yancheng) #32

Your documentation show that only Chrome and Firefox support current ParaviewWeb app. I want to know why?
Do you have the plan to let other browers supporting Paraviewweb? Where is the key technique?
Additionnally, could the mobile platform (ios/andorid/pad etc.) support paraviewweb app?


(Sebastien Jourdain) #33

I guess the documentation should say any modern web browser. ParaViewWeb works well on iOS and should behave the same on Android.

The only browser that we know could have some issue would be IE. And even that could be fixed with some investigation…

I’m not sure to know what you mean by “Where is the key technique?”.

Moreover, I’ve never seen the error message you have in the console? Is it the launcher or the ParaView process?


(yancheng) #34

You can see the selected log erro information in the screenshot. It seems that some error in the websocket.py file. I have patched both the Line 195 error and replace of protocols.py.


(Sebastien Jourdain) #35

I may have seen similar error when the data directory contains files with special char. Try to point to an empty directory or else to see if that’s the issue.


(yancheng) #36

I have clear the data directory, and try again. The previous script error disappear, but another warning information come out in the develop tab of brower, as the screenshot below:


(Sebastien Jourdain) #37

At that point the server log of the given process should give you the reason why the server process died.


(yancheng) #38

So I still don’t know the reason of problem ?


(Sebastien Jourdain) #39

Did you look at the log from the launcher for the given session? That will tell you exactly what is going on… Without that information, I don’t see how I can figure out why the server disconnected.


(yancheng) #40

Yes, I see. But I still don not know how to solve the problem. Can you help me?