Hi all. Not sure how familiar people with are with...
# troubleshooting
b
Hi all. Not sure how familiar people with are with AWS Managed Flink but running into an odd error. The
ERROR
message itself is this:
Copy code
"applicationARN": "arn:aws:kinesisanalytics:us-west-2:####:application/my-flink-app",
    "applicationVersionId": "1",
    "locationInformation": "org.apache.flink.runtime.rest.handler.AbstractHandler.handleException(AbstractHandler.java:249)",
    "logger": "org.apache.flink.runtime.rest.handler.job.JobDetailsHandler",
    "message": "Exception occurred in REST handler.",
    "messageSchemaVersion": "1",
    "messageType": "ERROR",
    "threadName": "flink-akka.actor.default-dispatcher-19",
    "throwableInformation": "org.apache.flink.runtime.rest.NotFoundException: Job ####### not found
By turning on
DEBUG
, I am then able to see the following message:
Copy code
"applicationARN": "arn:aws:kinesisanalytics:us-west-2:####:application/my-flink-app",
    "applicationVersionId": "1",
    "locationInformation": "org.apache.flink.runtime.dispatcher.FileExecutionGraphInfoStore.get(FileExecutionGraphInfoStore.java:153)",
    "logger": "org.apache.flink.runtime.dispatcher.FileExecutionGraphInfoStore",
    "message": "Could not load archived execution graph information for job id #######.",
    "messageSchemaVersion": "1",
    "messageType": "DEBUG",
    "threadName": "flink-akka.actor.default-dispatcher-18",
    "throwableInformation": "java.util.concurrent.ExecutionException: java.io.FileNotFoundException: Could not find file for archived execution graph #######. This indicates that the file either has been deleted or never written.
Finally, the application sends the following generic error message:
Copy code
"applicationARN": "arn:aws:kinesisanalytics:us-west-2:####:application/my-flink-app",
    "applicationVersionId": 1,
    "message": "Flink job did not start within a total timeout of 5 minutes for application: my-flink-app under account: ####",
    "messageType": "ERROR",
    "messageSchemaVersion": "1",
    "errorCode": "CodeError.InvalidApplicationCode"
}
The last error just means it couldn't start. We have the exact same code and configuration running properly in 3 other environments. Barring differences in this new environment, does anyone know what would cause the graph execution error in the first place? There's next to nothing online about it so just hoping to get pointed in the right direction. Thanks!
a
Hi Brian, is this the only error/warning you’re getting in logs? Alternatively, the last error might indicate that your code does some long running operation during initialization. Is this correct?
NotFoundException: Job ####### not found
error is likely because job is not yet started and checks from outside can’t get info from Flink API.
In any case, I would recommend reaching out to AWS support to get more info on what is happening here.
b
Hi Aleksandr, Yes this is the only error/warning we are getting of any kind. We do have a ticket open with AWS, but I'm also doing my due diligence to make sure it's not something on our end. Thanks for the insight into the
NotFoundException: Job ####### not found
piece, that does make sense. Initialization is just creating our input tables: one for a kafka topic (via kafka connector for Table API), one for aurora db (via JDBC connector for Table API). If you're suggesting that there is something from preventing the application from starting up, that makes sense. My the logs only mention
java.io.FileNotFoundException: Could not find file for archived execution graph #######. This indicates that the file either has been deleted or never written.
But I suspect there's probably something else causing this?
a
Since
FileNotFoundException
error is logged as
DEBUG
I would assume that this has same reason as job not found. From info here it hard to say what may prevent job from starting.
b
Ya, the CloudWatch logs aren't very helpful
I appreciate your responses, Aleksandr. I'll continue researching 🙂
a
Hope it helps 🙂
b
Just a follow up: it seems an import stack trace got buried deep in a large INFO level log. We were timing out on accessing secrets manager (missing VPC Endpoint). AWS acknowledged that their flink logging could be improved