question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error using JAVA_OPS in Docker

See original GitHub issue

I have trouble running the latest Eclair from Docker (acinq/eclair:release-0.4.1). Issue is using the JAVA_OPTS parameters. v3.3 release seems to work. Using the official docker images.

It throws the following error: /bin/sh: 1: -Xmx256m: not found. But when I remove that line it throws an error on the next line withing the JAVA_OPS block.

This is when I try to run the Docker image with docker-compose up.

This is the part of the docker-compose:

eclair:
image: acinq/eclair:release-0.4.1
container_name: eclair
stop_signal: SIGINT
env_file: .env
environment:
PUBLIC_HOST: ${BW_ROOTURL}
JAVA_OPTS: |
-Xmx256m
-Declair.printToConsole
-Declair.headless
-Declair.chain=${BITCOIN_NETWORK}
-Declair.server.binding-ip=0.0.0.0
-Declair.server.public-ips.0=${BW_ROOTURL}
-Declair.server.port=9735
-Declair.api.enabled=true
-Declair.api.binding-ip=0.0.0.0
-Declair.api.port=${LIGHTNING_PORT}
-Declair.node-alias=test
-Declair.api.password=${LIGHTNING_PASS}
-Declair.bitcoind.host=bitcoind
-Declair.bitcoind.rpcport=${BITCOIN_RPCPORT}
-Declair.bitcoind.rpcuser=${BITCOIN_RPCUSERNAME}
-Declair.bitcoind.rpcpassword=${BITCOIN_RPCPASSWORD}
-Declair.bitcoind.zmqblock=tcp://bitcoind:28332
-Declair.bitcoind.zmqtx=tcp://bitcoind:28333
expose:
  - "9735" # server port
  - "${LIGHTNING_PORT}" # api port
volumes:
  - "bitcoin_datadir:/etc/bitcoin"
  - "eclair_datadir:/data"
depends_on:
  - bitcoind
restart: unless-stopped

@araspitzu Is this related to your changes to the Dockerfile?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
dariuskramercommented, Oct 13, 2020

@t-bast I’m on it

0reactions
brmdbrcommented, Oct 13, 2020

Great, thanks @dkrm0!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker and JAVA_OPTS - Veracode
While adjusting some environment variables recently, I came across an odd issue with Docker, Spring Boot and JAVA_OPTS.
Read more >
JAVA_OPTS/CATALINA_OPTS parameters not working with ...
I ended up like this: When I build the image, I specify in the Dockerfile: ENTRYPOINT exec java $JAVA_OPTS -jar /target/test.jar.
Read more >
Error passing JAVA_OPTS with spaces and quotes · Issue #213
I should use something like docker run -v ~/jenkins_home:/var/jenkins_home -p 80:8080 -p 50000:50000 -d --restart=always --env JAVA_OPTS=- ...
Read more >
Passing JAVA_OPTS to JMV in running container
I have multiple micro-services running inside containers, and I need to pass few JAVA_OPTS environment variables to one of these containers ...
Read more >
Install New Relic Java agent for Docker
We recommend that you set this argument with the JAVA_OPTS environment variable. The value of that argument must contain the location where you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found