Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebSocketError #372

Closed
kilmarnock opened this issue Jul 4, 2016 · 9 comments
Closed

WebSocketError #372

kilmarnock opened this issue Jul 4, 2016 · 9 comments

Comments

@kilmarnock
Copy link

kilmarnock commented Jul 4, 2016

Hi!
I made a fresh install of BIMserver 1.5.51. In summary it doesn nothing helpful in this state.

Setting up...
Setting up admin account...
Admin account successfully setup
Setting up email...
Email successfully setup
Installing plugins...

Installing IfcPlugins...
Successfully installed IfcPlugins (org.opensourcebim:ifcplugins:0.0.14)

Installing BinarySerializers...
Successfully installed BinarySerializers (org.opensourcebim:binaryserializers:0.0.14)

Installing BIMServer JavaScript API...
Successfully installed BIMServer JavaScript API (org.opensourcebim:bimserverapi:0.0.95)

Installing Console...
Successfully installed Console (org.opensourcebim:console:0.0.3)

Installing BIMsurfer...
Successfully installed BIMsurfer (org.opensourcebim:bimsurfer:0.0.22)

Installing BIMvie.ws...
Successfully installed BIMvie.ws (org.opensourcebim:bimviews:0.0.50)

Installing IfcOpenShellPlugin...
Successfully installed IfcOpenShellPlugin (org.opensourcebim:ifcopenshellplugin:0.5.15)

All plugins successfully installed

After the install, bimviews requires login
http://bimserver.myserver/apps/bimviews/?page=Login
and does not accept my password.
http://bimserver.myserver/apps/bimserverjavascriptapi/
shows a 404
http://bimserver.myserver/apps/bimsurfer/
shows a 404
console looks good
logs are clean

@kilmarnock
Copy link
Author

edit:
login is your Administrator eMail adress. The server acepts my login now and answers with
WebSocketError
the logs are clean. Is there a way to increase verbosity?

@kilmarnock kilmarnock changed the title bimviews password bimviews installation experience Jul 4, 2016
@kilmarnock
Copy link
Author

kilmarnock commented Jul 5, 2016

I cannot get beyond the WebSocketError. I start at the initial page, press submit and it is there.
I tried the war files for 1.4 and 1.5 on tomcat7 and tomcat8. Firefox, Chrome, Chromium and IE.
I tried the docker image.
I have seen #224.
My setup is:

router -> server -> apache ProxyPass -> virtual machine -> tomcat
java8 ubuntu14.4

I run some servers (also tomcats) with this setup, no problem at all.
Is it possible to run bimserver with this setup? I can reach it, I can submit information, the WebSocketErroris the enemy. What ports do I need for the WebSockets?

Please give me some advice. I debug in the browser? Port sniffing?

@kilmarnock kilmarnock changed the title bimviews installation experience WebSocketError Jul 5, 2016
@rubendel
Copy link
Member

rubendel commented Jul 7, 2016

Just enable websockets in your apache proxy

@kilmarnock
Copy link
Author

kilmarnock commented Jul 7, 2016

Thank you for your fast reply. I thought that I could find out the rest myself but the logs do not help, the error message in the web frontend is still "WebSocket error". Below is the "Forward any WebSocket" part of the apache conf file. I enabled the mod_proxy_wstunnel after your last reply.

ProxyPass "/ws2/"  "ws://localName:7481/"
ProxyPass "/wss2/" "wss://localName:7481/"

ProxyPassReverse "/ws2/" ws://localName:7481/
ProxyPassReverse "/wss2" wss://localName:7481/

Do I have to redirectws:// traffic to another port than the http://traffic?
Do you use a (any, this?) naming scheme (I think that "/ws2/"is a naming scheme)?

@rubendel
Copy link
Member

rubendel commented Jul 8, 2016

BIMserver uses "/stream" for both http(ws) and https(wss)

@kilmarnock
Copy link
Author

kilmarnock commented Jul 13, 2016

Thank you. For the records:

<VirtualHost *:80>
        ProxyPreserveHost On
        ProxyRequests Off
        ServerName yourfancy.name
        <Location "/">
            ProxyPass "ws://localhost:7481/"
         </Location>                                                                                                                                                                                               
        ProxyPass / http://localhost:7481/
        ProxyPassReverse / http://localhost:7481/
</VirtualHost>

Using /stream as location did not do it.

@kilmarnock
Copy link
Author

There are still errors, see #384

@bbrangeo
Copy link

bbrangeo commented Jan 4, 2017

Hello I have same error with Tomcat8 WebSocketError

example of my .conf

`<virtualhost *:80>
ServerName servername
ServerAlias servername
DocumentRoot "/var/lib/tomcat8/webapps/bimserver"

    <Directory /var/lib/tomcat8/webapps/bimserver>
            AllowOverride All
            Require all granted
            Options Indexes FollowSymLinks
    </Directory>

    ProxyPreserveHost On
    ProxyRequests Off
    <Location "/">
        ProxyPass "ws://**servername**:8080/bimserver/stream"
     </Location>                                                                                                                                                               

    ProxyPass / http://**servername**:8080/
    ProxyPassReverse / http://**servername**:8080/

   # Custom log file
Loglevel warn
ErrorLog /var/log/apache2/bimserver.error.log
CustomLog /var/log/apache2/bimserver.log combined
` thank you for your assistance

Boris

@rubendel
Copy link
Member

rubendel commented Jan 5, 2017

Not sure why you have a DocumentRoot when using Apache Webserver as a proxy. You might have to a a trailing slash according to http://serverfault.com/a/554392

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants