Jérémy MARQUER
10/20/2023, 8:11 AM2023-10-20 072247 INFO i.a.c.i.LineGobbler(voidCall):149 - Checking if airbyte/source-mongodb-v2:1.0.1 exists...
2023-10-20 072247 INFO i.a.c.i.LineGobbler(voidCall):149 - airbyte/source-mongodb-v2:1.0.1 not found locally. Attempting to pull the image...
2023-10-20 072306 INFO i.a.c.i.LineGobbler(voidCall):149 - Pulled airbyte/source-mongodb-v2:1.0.1 from remote.
2023-10-20 072306 INFO i.a.w.p.DockerProcessFactory(create):140 - Creating docker container = source-mongodb-v2-check-87118d95-e431-4c67-8597-08b444398fbe-0-wopzv with resources io.airbyte.config.ResourceRequirements@3a8e6474[cpuRequest=,cpuLimit=,memoryRequest=,memoryLimit=,additionalProperties={}] and allowedHosts null
2023-10-20 072306 INFO i.a.w.p.DockerProcessFactory(create):187 - Preparing command: docker run --rm --init -i -w ...
2023-10-20 072306 INFO i.a.w.i.VersionedAirbyteStreamFactory(create):186 - Reading messages from protocol version 0.2.0
2023-10-20 072307 ERROR i.a.c.i.LineGobbler(voidCall):149 -
2023-10-20 072307 ERROR i.a.c.i.LineGobbler(voidCall):149 - ERROR: JAVA_HOME is set to an invalid directory: /usr/lib/jvm/java-17-amazon-corretto
2023-10-20 072307 ERROR i.a.c.i.LineGobbler(voidCall):149 -
2023-10-20 072307 ERROR i.a.c.i.LineGobbler(voidCall):149 - Please set the JAVA_HOME variable in your environment to match the
2023-10-20 072307 ERROR i.a.c.i.LineGobbler(voidCall):149 - location of your Java installation.
2023-10-20 072307 ERROR i.a.c.i.LineGobbler(voidCall):149 -
2023-10-20 072307 WARN i.a.w.g.DefaultCheckConnectionWorker(run):110 - Check connection job subprocess finished with exit code 1
2023-10-20 072307 ERROR i.a.w.g.DefaultCheckConnectionWorker(run):133 - Unexpected error while checking connection:
io.airbyte.workers.exception.WorkerException: Error checking connection status: no status nor failure reason were outputted
at io.airbyte.workers.WorkerUtils.throwWorkerException(WorkerUtils.java:268) ~[io.airbyte-airbyte-commons-worker-0.50.31.jar:?][10 h] so it seems to be Java related issue, anyone can help please
kapa.ai
10/20/2023, 8:11 AM/usr/lib/jvm/java-17-amazon-corretto directory, then your JAVA_HOME should be set to this directory. You can set the JAVA_HOME environment variable in your system by following these steps: 1. Open your terminal. 2. If you use bash, edit your bashrc file: nano ~/.bashrc. If you use zsh, edit your zshrc file: nano ~/.zshrc. 3. Add this line to the file: export JAVA_HOME="/path/to/your/java/installation". Replace "/path/to/your/java/installation" with the path to your actual Java installation directory. 4. Save the file and exit. 5. Run source ~/.bashrc or source ~/.zshrc to load the new environment variable. Please replace "/path/to/your/java/installation" with your actual Java installation directory. If you're unsure about the location of your Java installation, you can typically find it by running which java. After setting the JAVA_HOME environment variable, try to add MongoDB as a source in Airbyte again. If you still encounter issues, please provide more details about your setup, such as your operating system and Java version.Jérémy MARQUER
10/20/2023, 8:14 AMkapa.ai
10/20/2023, 8:14 AMbash ./gradlew :airbyte-integrations:connectors:destination-<name>:build This command compiles the Java code and builds a Docker image with the connector. The Docker image encapsulates the Java environment needed to run the connector, so you don't need to worry about Java being installed on the machine where the Docker image is run. For more details, you can refer to the [Building a Java Destination](https://docs.airbyte.com/connector-development/tutorials/building-a-java-destination) tutorial in the Airbyte documentation.Jérémy MARQUER
10/20/2023, 8:14 AMkapa.ai
10/20/2023, 8:15 AMkapa.ai
10/20/2023, 8:15 AM