-
Notifications
You must be signed in to change notification settings - Fork 33
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
RJB freeze on Docker loading classes #84
Comments
Hi NathanReis |
hi Arton, but when we try to run it on ours tests on GithubCLI or on a Docker it get freeze like Nathan said. And now, we have to move from ec2 to fargate and ours features that depends on rjb are not working. ` Extends from the Ruby Container. This is the onlything that you need to adjust if you change theproject itself.FROM ruby:2.6.4 ENV APP_ROOT /app ENV LC_ALL C.UTF-8 https://superuser.com/questions/1423486/issue-with-fetching-http-deb-debian-org-debian-dists-jessie-updates-inreleaseRUN printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.listnodesource/distributions#1266 (comment)RUN apt-get update ENV DEBIAN_FRONTEND noninteractiveRUN apt-get update -qq && Install yarnRUN apt-get update && apt-get install -y apt-transport-https INSTALL FREE TDS 1.1.6 FOR MS SQL AdapterRUN apt-get update && ADD ORACLE INSTANT CLIENT FOR ORACLE ADAPTERRUN mkdir -p /opt/oracle && mkdir -p /opt/instantclient RUN ln -s /opt/oracle/instantclient/libclntsh.so.12.1 /opt/oracle/instantclient/libclntsh.so ENV LD_LIBRARY_PATH="/opt/oracle/instantclient" RUN echo '/opt/oracle/instantclient/' | tee -a /etc/ld.so.conf.d/oracle_instant_client.conf && ldconfig Install OpenJDK-11RUN apt-get update -q && Fix certificate issuesRUN apt-get update && Install Google ChromeRUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && ADD . $APP_ROOT RUN mkdir -p $APP_ROOT/log ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 ` version: '3' volumes: services: |
Hi victorlcampos I'm not sor familiar with fargate. |
Hi arton, but on local machine the same problem happens inside docker with this dockerfile that I send to you |
Hi victorlcampos In your case, I suppose that Rjb was not build correctly. |
Hi arton I found 2 files with this name in the container, they refer to RJB versions |
Hi NathanReis Where do they sit in ? In the same directory or separated ? Is there gem.build_complete on that directory ? |
Hi NathanReis It seems good, so there is another problem.
or wherever you think the freezing point and show me the output. Regards |
Hi NathanReis
|
Hi arton I ran your test and it passed. I got the message In the first message of this issue, I showed that the jars of the PoiSpreadsheet gem and the The freeze error occurs when I try to generate a spreadsheet using PoiSpreadsheet but nothing happens and it keeps displaying timeout logs until I display an error page in the browser. The strange thing is that if I don't call After that I tried to reproduce the error in a project from scratch to send to you, in it I used the same versions of Ruby, Rails, Java, PoiSpreadsheet and Rjb, but the error did not occur. Could it be some kind of conflict between the RJB and another gem or something? |
Hi NathanReis Thank you for the reproducing environment! I'll try it. Regards. |
Hi NathanReis When I hit 'http://localhost:3000', I got words.xlsx with foo, bar, baz. Do I need call localhost:3000 many times? Only I changed port number 3000 to 3001 (because my other developing environment already uses 3000).
BTW Docker is great! |
Hi arton Just download it once, and the error should already occur, but as seen it does not occur in this sample project. victorlcampos and I tried to discover something else, when running |
Hi NathanReis |
Hi arton I don't know how much memory is needed to use PoiSpreadsheet, but I tested it with two PCs:
In both, the problem occurs, so it shouldn't be a lack of storage, since the personal PC has plenty of space available. |
Thank you for your willingness to help me solve the problem, your gem is sensational and has already helped a lot, but we will choose to look for another alternative because we need the features that today depend on the RJB. I am available if you would like to continue investigating this issue. |
Of interest, we used to have freeze issues with:
|
Are the any updates for running in docker? I am also experiencing similar issues where the aspose cells code freezes when loading from a template and the memory it uses is never freed. Phusion Passenger Ruby 2.6 Image |
I have a project where the RJB can load Java classes locally without any problem, but when I run it in a container it freezes.
My RJB config (always work locally):
I've already tested replacing
config.to_prepare
withconfig.after_initialize
, and even loading my classes just belowRjb::load
, but it keeps freezing.My current RJB config (yet doesn't work on Docker):
My Java Settings in Container:
The text was updated successfully, but these errors were encountered: