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

Trying to deploy BIMserver to remote linux server #239

Closed
px3l opened this issue Sep 10, 2015 · 23 comments
Closed

Trying to deploy BIMserver to remote linux server #239

px3l opened this issue Sep 10, 2015 · 23 comments

Comments

@px3l
Copy link

px3l commented Sep 10, 2015

Hi,

I've been trying to deploy the latest BIMserver 1.4 (final release) to a Digital Ocean box running Ubuntu 14.04 through Tomcat 8. Every time I deploy the war file through tomcat, once it has finished unpacking and deploying I lose the connection to the port and seem to be unable to see either the BIMserver or tomcat splash page. Every time the connection is now refused. All config files in tomcat seem to be pointing correctly and netstat doesn't show anything unusual on the ports...

Has anyone successfully deployed the latest bimserver on the latest tomcat with ubuntu 14.04? Will there be any updates to the wiki or developers guide?

I followed the guide for the older versions of BIMserver and tomcat and even that consistently failed. Help would be appreciated.

@rubendel
Copy link
Member

I have had problems with Tomcat 8, can you try Tomcat 7? Also, what's in the log files?

@px3l
Copy link
Author

px3l commented Sep 10, 2015

I can try tomcat 7 yes, I will give it a go. I have managed to get everything working up until the BIMserver setup page now (I was running out of memory before and had to change the web.xml) however it only works for a bit and if I try and set it up i have a websocket error. Is this the problem you were getting?

Log files aren't saying anything I can find... the only thing is a json package isnt being delivered I can see from chromes developer window

@rubendel
Copy link
Member

Well the running out of memory was in the log files right? Yes the websocket error probably is being caused by a broken Tomcat8 build, will have a look at that soon.

@px3l
Copy link
Author

px3l commented Sep 11, 2015

Yeah the memory error was in logs, I meant about this websocket error sorry.. Ok I'll try tomcat 7 today. Thanks for your help!

@px3l
Copy link
Author

px3l commented Sep 11, 2015

i am getting the same issue with the websocket with tomcat 7 as well. I'm guessing something within the BIMserver is conflicting with the websocket API that comes with tomcat? Can you shed any light on this?

@rubendel
Copy link
Member

Did you use the Tomcat7-specific build? I'll release a working Tomcat8 version today.

@px3l
Copy link
Author

px3l commented Sep 11, 2015

Hey, yeah I used the bimserver build with tomcat7 in the title. I can try with another one? Ideally I want to be using the latest tomcat and bimserver, of course. That is fantastic you're releasing the tomcat8 ver. today :) what sort of time? Should I wait around for it today?

@px3l
Copy link
Author

px3l commented Sep 11, 2015

I've seen you've updated for websockets fix :D - will you be creating a new release compilation today too? or should I clone the repo?

@rubendel
Copy link
Member

Still working on it, github seems to have updated their releases API, so can't do an automated build... will be after the weekend I guess...

@px3l
Copy link
Author

px3l commented Sep 11, 2015

ahhh ok that's cool man, thanks for your efforts! I have been persisting with the ubuntu14.04 + tomcat8 + bimserver 1.4.0 builds to try and sort it out. Had a brief bit of luck writing a new ENV for a tomcat classpath but didn't succeed. Currently the only error I'm getting in logs is (hence writing the classpath in):

11-Sep-2015 15:29:29.142 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath

maybe this might help?

@rubendel
Copy link
Member

You should not have to do anything with ENV, the latest build works with both Tomcat 8 and Tomcat 7.0.47. That's not an error, it says "INFO".

@bb14521
Copy link

bb14521 commented Sep 30, 2015

Is it working on Ubuntu 14.04 ?
I am also trying to deploy the BIMserver on ubuntu 14.04. i have problem with tomcat config file server.xml and startup script. after downloading WAR file, it should be automatically extracted acc. to startup script but it doesn't happen.
any body can tell me where is the problem ?

/opt/tomcat7/conf/server.xml http://pastebin.com/tGkaT1vW

/etc/init.d/tomcat7 http://pastebin.com/w5ttwVrx

@rubendel
Copy link
Member

It is working on Ubuntu 14.04. Did you have a look at the Tomcat log file? Is it even running? As I told you in another issue you created about the exact same problem, these are all Tomcat related issues, read the documentation/search the internet to get it working.

@px3l
Copy link
Author

px3l commented Sep 30, 2015

I have made a Dockerfile to install the BIMserver inside a docker container which sets everything up for you.
https://github.com/BIMscript/docker-bimserver
https://hub.docker.com/r/bimscript/docker-bimserver/
If you just install ubuntu 14.04 and docker then run the code in the description whilst ssh'd into the server it should have BIMServer and tomcat8 set up.

@rubendel
Copy link
Member

Nice!

@px3l
Copy link
Author

px3l commented Oct 2, 2015

spin up a new server with ubuntu14.04, then update and install docker with

$ curl -sSL https://get.docker.com/ | sh

then, with docker installed (check with $ docker ps) run:

$ docker run -d
-e TOMCAT_USER=xxx
-e TOMCAT_PASSWORD=xxx
-p 8080:8080
bimscript/docker-bimserver

either leaving the 'xxx' as is or replace the 'xxx' on the username and password with whatever username and password you want for tomcat (not your IP which is what you've put in)

Then in a browser go to: IP:8080/BIMserver and it will load it up. (you will have to wait for 5 mins whilst tomcat installs and deploys itself and bimserver)

@bb14521
Copy link

bb14521 commented Oct 12, 2015

How to remove it completely from the server. i want to install fresh copy of it in my server.

@rubendel
Copy link
Member

Remove the .war file. If you defined your BIMserver home directory, also remove that.

@px3l
Copy link
Author

px3l commented Oct 12, 2015

If you have installed it with the dockerfile you can see the docker container and docker image with

$ docker ps
$ docker images

then remove them with $ docker rm XXXX or $ docker rmi XXXX where XXXX is the container/image

see the docker documentation for details

@bb14521
Copy link

bb14521 commented Oct 13, 2015

On Mon, Oct 12, 2015 at 1:48 PM, Connor Alexander
notifications@github.com wrote:

If you have installed it with the dockerfile you can see the docker container and docker image with

$ docker ps
$ docker images

then remove them with $ docker rm XXXX or $ docker rmi XXXX where XXXX is the container/image

see the docker documentation for details

Got it, thank you


@bb14521
Copy link

bb14521 commented Oct 17, 2015

i have install BIMserver on ubuntu 14.04 using tomcat 8

https://bhushanbharat.wordpress.com/2015/10/13/install-bimserver-on-ubuntu-14-04/

@rubendel
Copy link
Member

Cool, thanks, added to the wiki: https://github.com/opensourceBIM/BIMserver/wiki/Install-on-Ubuntu

@bb14521
Copy link

bb14521 commented Oct 18, 2015

Thank you very much Mr. Ruben de Laat.

On Sun, Oct 18, 2015 at 12:20 PM, Ruben de Laat notifications@github.com
wrote:

Cool, thanks, added to the wiki:
https://github.com/opensourceBIM/BIMserver/wiki/Install-on-Ubuntu


Reply to this email directly or view it on GitHub
#239 (comment)
.


Bharat Bhushan Rathore
http://bhushanbharat.wordpress.com/
http://techbbr.blogspot.in/
https://github.com/bb14521

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