Error in Motherduck adaptor (cannot import?)

Hi all. @aseidas-vera reported this failed to import module @openfn/language-motherduck error. Any ideas?

@aseidas-vera , is this running on app.openfn.org or another instance of OpenFn? Thanks!

Hi @taylordowns2000, This is running on app.openfn.org, thanks !

I’m seeing the problem locally too.

It says the built file is “not defined” - which is a lie, I’m looking right at it.

I’ll investigate and get back to you

Wait, I stand corrected. Switched my node version and it works great.

Looking closely at that error it’s like something has filed to compile in the adaptor’s c bindings

It looks like we’re missing dependencies in the worker’s docker build. Investigating further

Struggling here tbh. I’ve reproduced locally and added the likely dependencies needed by motherduck’s c bindings. The install goes through quite happily. But my run blows up without reason - the process just exits. Can’t find any explanation at all in the logs.

Presumably there’s still a dependency missing. Just trying to pin it down or at least find a decent error message

@aseidas-vera Turns out this a deceptively tricky problem. Our worker - our runtime execution platform - uses a node:alpine image. But that doesn’t appear to be compatible with DuckDB. So we’re a little stuck

I’ve built a little gist which shows the problem in a minimal docker build. I’ll have to and speak to the team about possible solutions