Error message 'Console contains an invalid element or attribute 'If'

Summary

The user is encountering an error message 'Console contains an invalid element or attribute ‘If’ while trying to run a server application.


Question

Hi everyone, I’m trying to run my server application but I have the following issue

Thread-1 ERROR Console contains an invalid element or attribute "If"

Do ypu have any idea what I should do?



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.

Join the conversation on Slack

["error-message", "server-application", "invalid-element", "attribute"]

I have Airbyte installed on Kubernetes and today my airbyte server component started to fail. When I watched the logs, I just find this message:

2024-06-03 14:43:44 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - 10.140.17.1 - - [03/Jun/2024:14:43:44 +0000] "GET /api/v1/health HTTP/1.1" 200 18
2024-06-03 14:43:44 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - 10.140.20.12 - - [03/Jun/2024:14:43:44 +0000] "GET /api/v1/health HTTP/1.0" 200 18
2024-06-03 14:43:53 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - 10.140.17.233 - - [03/Jun/2024:14:43:53 +0000] "GET /api/v1/health HTTP/1.0" 200 18
2024-06-03 14:43:53 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - 10.140.17.233 - - [03/Jun/2024:14:43:53 +0000] "GET /api/v1/health HTTP/1.0" 200 18
2024-06-03 14:43:54 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - 10.140.17.1 - - [03/Jun/2024:14:43:54 +0000] "GET /api/v1/health HTTP/1.1" 200 18
2024-06-03 14:43:54 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - 10.140.17.1 - - [03/Jun/2024:14:43:54 +0000] "GET /api/v1/health HTTP/1.1" 200 18
2024-06-03 14:43:57 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - 10.140.20.12 - - [03/Jun/2024:14:43:57 +0000] "GET /api/v1/health HTTP/1.0" 200 18
2024-06-03 14:44:03 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - 10.140.17.233 - - [03/Jun/2024:14:44:03 +0000] "GET /api/v1/health HTTP/1.0" 200 18
2024-06-03 14:44:04 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - 10.140.17.1 - - [03/Jun/2024:14:44:04 +0000] "GET /api/v1/health HTTP/1.1" 200 18
2024-06-03 14:44:04 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - 10.140.17.1 - - [03/Jun/2024:14:44:04 +0000] "GET /api/v1/health HTTP/1.1" 200 18
2024-06-03 14:44:04 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - 10.140.22.124 - - [03/Jun/2024:14:44:03 +0000] "GET /api/v1/health HTTP/1.0" 200 18
2024-06-03 14:44:13 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - 10.140.20.12 - - [03/Jun/2024:14:44:13 +0000] "GET /api/v1/health HTTP/1.0" 200 18
2024-06-03 14:44:14 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - 10.140.17.1 - - [03/Jun/2024:14:44:14 +0000] "GET /api/v1/health HTTP/1.1" 200 18
2024-06-03 14:44:14 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - 10.140.17.1 - - [03/Jun/2024:14:44:14 +0000] "GET /api/v1/health HTTP/1.1" 200 18
2024-06-03 14:44:14 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - 10.140.20.12 - - [03/Jun/2024:14:44:14 +0000] "GET /api/v1/health HTTP/1.0" 200 18
2024-06-03 14:44:41 WARN i.a.c.s.h.JobHistoryHandler(listJobsFor):155 - Missing stats for job 7667 attempt 0
2024-06-03 14:44:41 WARN i.a.c.s.h.JobHistoryHandler(listJobsFor):155 - Missing stats for job 7667 attempt 1
2024-06-03 14:44:41 WARN i.a.c.s.h.JobHistoryHandler(listJobsFor):155 - Missing stats for job 7667 attempt 4
2024-06-03 14:44:41 WARN i.a.c.s.h.JobHistoryHandler(listJobsFor):155 - Missing stats for job 7581 attempt 0
2024-06-03 14:44:41 WARN i.a.c.s.h.JobHistoryHandler(listJobsFor):155 - Missing stats for job 7489 attempt 0
2024-06-03 14:44:41 WARN i.a.c.s.h.JobHistoryHandler(listJobsFor):155 - Missing stats for job 7489 attempt 1
2024-06-03 14:44:41 WARN i.a.c.s.h.JobHistoryHandler(listJobsFor):155 - Missing stats for job 7489 attempt 2
2024-06-03 14:44:41 WARN i.a.c.s.h.JobHistoryHandler(listJobsFor):155 - Missing stats for job 7127 attempt 0
2024-06-03 14:44:41 WARN i.a.c.s.h.JobHistoryHandler(listJobsFor):155 - Missing stats for job 7016 attempt 2
2024-06-03 14:44:41 WARN i.a.c.s.h.JobHistoryHandler(listJobsFor):155 - Missing stats for job 6834 attempt 0
2024-06-03 14:44:45 INFO i.m.r.Micronaut(lambda$start$0):115 - Embedded Application shutting down
2024-06-03 14:44:45,401 Thread-1 ERROR Error processing element Then ([If: null]): CLASS_NOT_FOUND
2024-06-03 14:44:45,402 Thread-1 ERROR Error processing element Else ([If: null]): CLASS_NOT_FOUND
2024-06-03 14:44:45,402 Thread-1 ERROR Error processing element If ([Filters: null]): CLASS_NOT_FOUND
2024-06-03 14:44:45,407 Thread-1 ERROR Console contains an invalid element or attribute "If"
2024-06-03 14:44:45,418 Thread-1 INFO Loading mask data from '/seed/specs_secrets_mask.yaml
2024-06-03 14:44:45,438 Thread-1 WARN Unable to register Log4j shutdown hook because JVM is shutting down. Using SimpleLogger
    at reactor.core.publisher.FluxError.subscribe(FluxError.java:43) ~[reactor-core-3.5.5.jar:3.5.5]
    at reactor.core.publisher.FluxDeferContextual.subscribe(FluxDeferContextual.java:57) ~[reactor-core-3.5.5.jar:3.5.5]
    at reactor.core.publisher.InternalFluxOperator.subscribe(InternalFluxOperator.java:62) ~[reactor-core-3.5.5.jar:3.5.5]
    at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.run(FluxSubscribeOn.java:194) ~[reactor-core-3.5.5.jar:3.5.5]
    at io.micronaut.reactive.reactor.instrument.ReactorInstrumentation.lambda$init$0(ReactorInstrumentation.java:62) ~[micronaut-runtime-3.10.1.jar:3.10.1]
    at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84) ~[reactor-core-3.5.5.jar:3.5.5]
    at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37) ~[reactor-core-3.5.5.jar:3.5.5]
    at io.micronaut.scheduling.instrument.InvocationInstrumenterWrappedCallable.call(InvocationInstrumenterWrappedCallable.java:53) ~[micronaut-context-3.10.1.jar:3.10.1]
    at java.util.concurrent.FutureTask.run(FutureTask.java:317) ~[?:?]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
    at java.lang.Thread.run(Thread.java:1589) ~[?:?]
    Suppressed: org.jooq.exception.DataAccessException: SQL [SELECT DISTINCT ON (scope) * FROM jobs WHERE CAST(jobs.config_type AS VARCHAR) = ?  AND scope IN ('d375f8f8-8ef2-4e7a-8e99-3670dc3e67e7','c1d6afad-b4ee-4f73-be5d-eba7ebe5916f','dae5cf4b-b849-4ae0-91a3-399a4b3fc681','da5f5444-10c1-4646-aa37-3c5b4fe909f0','05e35d8b-f7cc-4b07-a2dd-c573791f3c8a','f3241c88-a58d-462a-8ccb-e4627bc7c827','7cc101c4-61ac-46bc-ade1-269caee8e6bb','06fec94e-898c-4be7-8b76-8ea70c7b29f6','7bde1953-821d-4933-b24e-54aeeffa6ece','d09067f6-a69e-4417-8608-22d3470626b1','bf042cc2-1f14-48c1-b894-73ac7c4b85d3','bef5b74f-9737-4e7f-82bf-48173924a239','833f8c93-fd9c-49f4-a441-8a1f49f06945','a5f3df7f-838b-46bf-a1d9-17b9ac2d5b78','921e3624-7f36-4614-88df-379b4eb0609f','9ddae195-e491-490d-bb4f-7266cb6a3144','e7be7274-10e5-42a4-ae8f-5b7570d04be3','77667e35-7756-4ac1-8bed-a6b0c0b57d34','d9a16b0a-ec24-4c93-b496-0b92b7243032','1f2d8cd7-dfc8-4a2c-b3a5-d7d529d605df','cccda37f-922f-4cfe-ad27-e66a0d9d0ddb','5d9dd041-4a6b-4db5-a299-5e986b347d23','0a74a269-4b68-4955-9d3b-a887e47979dd','1cfb36c8-d7ac-4c2a-8f6f-b1e3ff59ad38') ORDER BY scope, created_at DESC]; An I/O error occurred while sending to the backend.
        at org.jooq_3.17.8.POSTGRES.debug(Unknown Source) ~[?:?]
        at org.jooq.impl.Tools.translate(Tools.java:3313) ~[jooq-3.17.8.jar:?]
        at org.jooq.impl.DefaultExecuteContext.sqlException(DefaultExecuteContext.java:678) ~[jooq-3.17.8.jar:?]
        at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:355) ~[jooq-3.17.8.jar:?]
        at org.jooq.impl.AbstractResultQuery.fetch(AbstractResultQuery.java:290) ~[jooq-3.17.8.jar:?]
        at org.jooq.impl.DefaultDSLContext.fetch(DefaultDSLContext.java:897) ~[jooq-3.17.8.jar:?]
        at io.airbyte.persistence.job.DefaultJobPersistence.lambda$getLastSyncJobForConnections$47(DefaultJobPersistence.java:986) ~[io.airbyte.airbyte-persistence-job-persistence-0.50.34.jar:?]
        at io.airbyte.db.Database.query(Database.java:23) ~[io.airbyte.airbyte-db-db-lib-0.50.34.jar:?]
        at io.airbyte.db.ExceptionWrappingDatabase.query(ExceptionWrappingDatabase.java:31) ~[io.airbyte.airbyte-db-db-lib-0.50.34.jar:?]
        at io.airbyte.persistence.job.DefaultJobPersistence.getLastSyncJobForConnections(DefaultJobPersistence.java:985) ~[io.airbyte.airbyte-persistence-job-persistence-0.50.34.jar:?]
        at io.airbyte.commons.server.handlers.JobHistoryHandler.getLatestSyncJobsForConnections(JobHistoryHandler.java:315) ~[io.airbyte-airbyte-commons-server-0.50.34.jar:?]
        at io.airbyte.commons.server.handlers.WebBackendConnectionsHandler.getLatestJobByConnectionId(WebBackendConnectionsHandler.java:184) ~[io.airbyte-airbyte-commons-server-0.50.34.jar:?]
        at io.airbyte.commons.server.handlers.WebBackendConnectionsHandler.webBackendListConnectionsForWorkspace(WebBackendConnectionsHandler.java:160) ~[io.airbyte-airbyte-commons-server-0.50.34.jar:?]
        at io.airbyte.server.apis.WebBackendApiController.lambda$webBackendListConnectionsForWorkspace$4(WebBackendApiController.java:117) ~[io.airbyte-airbyte-server-0.50.34.jar:?]
        at io.airbyte.server.apis.ApiHelper.execute(ApiHelper.java:27) ~[io.airbyte-airbyte-server-0.50.34.jar:?]
        at io.airbyte.server.apis.WebBackendApiController.webBackendListConnectionsForWorkspace(WebBackendApiController.java:115) ~[io.airbyte-airbyte-server-0.50.34.jar:?]
        at io.airbyte.server.apis.$WebBackendApiController$Definition$Exec.dispatch(Unknown Source) ~[io.airbyte-airbyte-server-0.50.34.jar:?]
        at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invoke(AbstractExecutableMethodsDefinition.java:371) ~[micronaut-inject-3.10.1.jar:3.10.1]```