https://linen.dev logo
Title
m

Michelle Herrera

05/25/2023, 2:28 PM
good morning airbyte team! i am working on creating a custom connector for a firestore source. the code seems to work as expected locally, but when i try to build to the docker image i encounter the following error:
#0 305.5 [output clipped, log limit 1MiB reached]
#0 305.5   Running setup.py clean for grpcio
#0 306.2 Successfully built source-google-firestore genson PyYAML pendulum
#0 306.2 Failed to build grpcio
------
ERROR: failed to solve: executor failed running [/bin/sh -c pip install --prefix=/install .]: exit code: 1
trying to build with gradle results in
* What went wrong:
Execution failed for task ':airbyte-commons:compileJava'.
> error: invalid source release: 17
i have confirmed that i have openjdk-17 and python 3.11.9. has anyone else encountered these and fixed?
u

user

05/25/2023, 2:28 PM
A message from kapa.ai
u

user

05/25/2023, 2:29 PM
It seems that you are using an incorrect Java version for your project. Airbyte uses Java 17, as mentioned in the [documentation](https://docs.airbyte.com/contributing-to-airbyte/developing-locally). You should switch to Java 17 to resolve the
invalid source release: 17
error. Regarding the
Failed to build grpcio
error, it's not clear from the provided information what the exact issue is. However, one user in a [forum discussion](https://discuss.airbyte.io/t/2193) encountered a similar error and resolved it by fixing their Gradle build configuration. You can check your Gradle build file and ensure that the dependencies and configurations are correct. If you still face issues, please provide more information or refer to the [Airbyte documentation](https://docs.airbyte.com) and [forum](https://discuss.airbyte.io) for further assistance.
m

Michelle Herrera

05/25/2023, 2:31 PM
@kapa.ai i am using java 17
u

user

05/25/2023, 2:31 PM
A message from kapa.ai
u

user

05/25/2023, 2:31 PM
New message text here
m

Michelle Herrera

05/25/2023, 3:00 PM
@kapa.ai how can i resolve this error when building an airbyte docker image
#0 305.5 [output clipped, log limit 1MiB reached]
#0 305.5   Running setup.py clean for grpcio
#0 306.2 Successfully built source-google-firestore genson PyYAML pendulum
#0 306.2 Failed to build grpcio
------
ERROR: failed to solve: executor failed running [/bin/sh -c pip install --prefix=/install .]: exit code: 1
u

user

05/25/2023, 3:00 PM
A message from kapa.ai
u

user

05/25/2023, 3:00 PM
Hmm, I don't know enough to give you a confident answer yet. However, I can suggest that you ensure your system has enough memory, as building some Airbyte components may require more RAM. In a [previous Slack conversation](https://airbytehq.slack.com/archives/C021JANJ6TY/p1668624291939949), a user faced a similar issue, and the solution was to run the build on a machine with higher RAM. If you still face issues, you can reach out to the Airbyte community on [Slack](https://slack.airbyte.com/) or [Airbyte's forum](https://discuss.airbyte.io/) for further assistance.