<@U04S8PLJWMT> can you give me explanation why i h...
# ask-ai
o
@kapa.ai can you give me explanation why i have this error?
Copy code
2025-07-09 12:09:35,213 [pool-16-thread-4]	INFO	i.a.w.g.BufferedReplicationWorker(readFromSource):367 - readFromSource: source exception
io.airbyte.workers.internal.exception.SourceException: Source process exited with non-zero exit code 143
	at io.airbyte.workers.general.BufferedReplicationWorker.readFromSource(BufferedReplicationWorker.java:364)
	at io.airbyte.workers.general.BufferedReplicationWorker.lambda$runAsyncWithHeartbeatCheck$3(BufferedReplicationWorker.java:222)
	at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

2025-07-09 12:09:35,216 [pool-16-thread-4]	INFO	i.a.w.g.BufferedReplicationWorker(readFromSource):377 - readFromSource: done. (source.isFinished:true, fromSource.isClosed:false)
2025-07-09 12:09:35,730 [pool-16-thread-1]	INFO	i.a.w.g.BufferedReplicationWorker(readFromDestination):478 - Destination finished successfully — exiting read dest...
2025-07-09 12:09:35,731 [pool-16-thread-1]	INFO	i.a.w.g.BufferedReplicationWorker(readFromDestination):508 - readFromDestination: exception caught
io.airbyte.workers.internal.exception.DestinationException: Destination process exited with non-zero exit code 143
	at io.airbyte.workers.general.BufferedReplicationWorker.readFromDestination(BufferedReplicationWorker.java:502)
	at io.airbyte.workers.general.BufferedReplicationWorker.lambda$runAsync$2(BufferedReplicationWorker.java:215)
	at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

2025-07-09 12:09:35,731 [pool-16-thread-1]	INFO	i.a.w.g.BufferedReplicationWorker(readFromDestination):511 - readFromDestination: done. (writeToDestFailed:false, dest.isFinished:true)
2025-07-09 12:09:37,138 [pool-16-thread-6]	INFO	i.a.w.g.BufferedReplicationWorker(processMessage):417 - processMessage: done. (fromSource.isDone:true, forDest.isClosed:false)
2025-07-09 12:09:37,219 [pool-16-thread-7]	WARN	i.a.w.i.LocalContainerAirbyteDestination(notifyEndOfInput):104 - Attempted to close a destination which is already closed.
java.io.IOException: Broken pipe
	at java.base/sun.nio.ch.UnixFileDispatcherImpl.write0(Native Method)
	at java.base/sun.nio.ch.UnixFileDispatcherImpl.write(UnixFileDispatcherImpl.java:65)
	at java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:137)
	at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:102)
	at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:72)
	at java.base/sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:300)
	at java.base/sun.nio.ch.ChannelOutputStream.writeFully(ChannelOutputStream.java:68)
	at java.base/sun.nio.ch.ChannelOutputStream.write(ChannelOutputStream.java:105)
	at java.base/sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:309)
	at java.base/sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:405)
	at java.base/sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:410)
	at java.base/sun.nio.cs.StreamEncoder.lockedFlush(StreamEncoder.java:214)
	at java.base/sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:201)
	at java.base/java.io.OutputStreamWriter.flush(OutputStreamWriter.java:262)
	at java.base/java.io.BufferedWriter.implFlush(BufferedWriter.java:372)
	at java.base/java.io.BufferedWriter.flush(BufferedWriter.java:359)
	at io.airbyte.workers.internal.DefaultAirbyteMessageBufferedWriter.flush(DefaultAirbyteMessageBufferedWriter.java:31)
	at io.airbyte.workers.internal.LocalContainerAirbyteDestination.notifyEndOfInputWithNoTimeoutMonitor(LocalContainerAirbyteDestination.kt:147)
	at io.airbyte.workers.internal.LocalContainerAirbyteDestination.notifyEndOfInput(LocalContainerAirbyteDestination.kt:102)
	at io.airbyte.workers.general.BufferedReplicationWorker.writeToDestination(BufferedReplicationWorker.java:447)
	at io.airbyte.workers.general.BufferedReplicationWorker.lambda$runAsyncWithTimeout$5(BufferedReplicationWorker.java:243)
	at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
k
The error message
Source process exited with non-zero exit code 143
in Airbyte typically indicates that the source connector process was terminated by a SIGTERM signal (signal 15 in Unix/Linux systems). This is not an Airbyte-specific error, but rather a system-level signal that usually means the process was killed, often due to resource constraints such as running out of memory or a manual/automated termination. This pattern is seen in several Airbyte issues and forum posts, especially when syncing large amounts of data. For example, users have reported this error when the data volume is high (hundreds of MBs), and it is often suggested to increase the memory limits for the Airbyte job containers to resolve the issue. In Kubernetes or Docker deployments, you can try increasing the
JOB_MAIN_CONTAINER_MEMORY_LIMIT
and
JOB_MAIN_CONTAINER_MEMORY_REQUEST
environment variables to allocate more memory to the job containers. For example, setting them to
4Gi
or
8Gi
has been recommended in similar cases. If the process is killed due to memory limits, increasing these values should help prevent the error [[Source process exited with non-zero exit code 143 for a customized source](https://discuss.airbyte.io/t/2291)]. The "Broken pipe" error you see in the logs is a consequence of the process being terminated: when one end of a pipe (the source or destination process) is killed, the other end tries to write to it and gets a "Broken pipe" error. Summary: - Exit code 143 = SIGTERM (process killed, often due to memory/resource limits). - Common with large data syncs or insufficient memory allocation. - Solution: Increase memory limits for Airbyte job containers. If you continue to see this error after increasing memory, check for other system-level resource constraints or investigate if there are any automated processes (like Kubernetes OOM killer) terminating the containers [[Source process exited with non-zero exit code 143 for a customized source](https://discuss.airbyte.io/t/2291)] [[destination-bigquery][source-jira] Sync hangs forever, saying nothing to do](https://github.com/airbytehq/airbyte/issues/58082).
o
@kapa.ai i tried to Increase to limit of 4gb of memory and i still get the same 143 error
k
A message from kapa.ai
If you have already increased the memory limit to 4GB and are still seeing the exit code 143 error, this suggests that the process is still being killed—most likely due to resource constraints, but possibly for other reasons as well. From the knowledge sources, here are some additional points and troubleshooting steps: 1. Memory May Still Be Insufficient: Several users have reported that even with increased memory (sometimes up to 16GB or more), large syncs or certain connectors (like CockroachDB, DynamoDB, etc.) can still hit OOM (Out Of Memory) errors and get killed with exit code 143. This can happen if the connector or sync job is especially memory-intensive, or if there is a memory leak in the connector itself. For example, one user reported that syncing a large CockroachDB table used up to 49.7GB of RAM before failing [[CockroachDB Source Connector Failures at >10M records](https://discuss.airbyte.io/t/1261)]. 2. Connector-Specific Issues: Some connectors have been reported to have memory leaks or inefficient memory usage, which can cause OOM errors regardless of the memory limit set. In such cases, increasing memory may not help, and the issue may require a connector update or bug fix [[Source CockroachDB: OOM Issues with CockroachDB Source](https://github.com/airbytehq/airbyte/issues/32510)]. 3. Resource Limits in Kubernetes or Docker: If you are running Airbyte on Kubernetes, make sure you are setting all relevant environment variables for memory limits, not just
JOB_MAIN_CONTAINER_MEMORY_LIMIT
. For example, you may also need to set
JOB_MAIN_CONTAINER_MEMORY_REQUEST
, and for specific job types, variables like
CHECK_JOB_MAIN_CONTAINER_MEMORY_LIMIT
,
DISCOVER_JOB_MAIN_CONTAINER_MEMORY_LIMIT
, etc. If these are not set, Kubernetes may fall back to default or cluster-level limits, which could still be too low [[Cannot use Airbyte on Kubernetes due to OOM when setting up connector](https://github.com/airbytehq/airbyte/issues/48816)]. 4. Other Causes: While memory is the most common cause, exit code 143 can also occur if the process is killed for other reasons (e.g., node resource pressure, manual termination, or other system-level constraints). What you can try next: - Increase the memory limit further if possible (e.g., 8GB, 16GB, or more, depending on your data size and connector). - Double-check that all relevant memory environment variables are set, especially if you are on Kubernetes. - Check the Airbyte and system logs for any additional clues about why the process is being killed. - If the problem persists and you suspect a connector bug or memory leak, consider opening a GitHub issue with detailed logs and configuration [[Source CockroachDB: OOM Issues with CockroachDB Source](https://github.com/airbytehq/airbyte/issues/32510)]. In summary: Even after increasing to 4GB, the error can persist if the job needs more memory, if there are connector-specific issues, or if not all resource limits are set correctly. You may need to increase memory further or investigate for connector bugs or system-level constraints. If you need more targeted help, please provide details about your connector, data size, and deployment environment.