AWS Lambdas: “Process exited before completing request”

While testing a React frontend for my SudokuSolver Lambda, I kept getting this error when calling the Lambda using superagent from React:

RequestId: 35934232-xxx Process exited before completing request

Testing from Postman it completed as expected.

This error message means what it says, the Lambda quit before it completed executing.

There are 2 possible paths through my SudokuSolver:

  1. The input puzzle has a single, unique solution
  2. The input has more than one possible solution

If there is more than one solution, the Solver finds the first solution and then exits. Yes, it does a System.exit(). There’s the cause of my problem. I was testing from Postman with a puzzle with a single solution, but the test from my React app only had a couple of values in the grid.

Lessons learned:

  • read and understand what the error message means. Once you understand what it’s telling you, ask how and where this applies to your code
  • when changing variable aspects of your test, don’t change too many at one time. If possible only make one change, so if something is unexpected you’ll know it’s as a result of that change (in my case I changed my test data from Postman to the React app and so wasn’t comparing the results with the same inputs. The issue was unrelated to React or superagent, it was completely related to my test data)

Will the upcoming ‘modular’ Mac Pro be easily expandable?

It’s been rumored for a while now that a new upcoming Mac Pro, likely to be announced at WWDC 2019, will be ‘modular’. The last generation Mac Pro, usually referred to as the ‘trashcan’ because it looks just like a trash can, is anything but modular compared to previous generations.

This is what my 2008 Mac Pro looks like in the inside:

I have a mix of SSDs and HDDs in there, and I boot MacOS, Windows 10, Linux and run Proxmox to virtualize the hardware. I have 2 GPUs, one Mac native AMD and one generic nvidia .

I don’t think ‘modular’ means the same as expandable. My 2008 Mac Pro does everything I need as a daily driver desktop, and if I need it to do something different I can easily pull parts out and put new parts in.

I want the new Mac Pro to be as expandable as this, but I think ‘modular’ more likely refers to an ability to link multiple units together to add capacity and features, but that sounds like an expensive approach, and nowhere near as flexible as the expandability of prior generation Mac Pros. Fingers crossed, I’m looking forward to see what will be announced, but I don’t think the new Mac Pro will be as expandable as the previous generations.

Weblogic 12c (12.1.3) Datasource for MySQL 8.0.15 getting error: Unable to load authentication plugin ‘caching_sha2_password’

When creating a new Datasource on Weblogic 12.1.3 to MySQL 8.0.15, I got this error:

Unable to load authentication plugin 'caching_sha2_password'.
com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)

A quick search found this question, and the solution is to switch the password encryption back to the approach used in prior MySQL versions with:

ALTER USER 'youruserid'@'localhost' IDENTIFIED WITH mysql_native_password BY 'newpassword';