Error: spawn pdftk ENOENT

I’m trying to deploy to an Ubuntu 16.04 server with the mup setup/mup deploy
Before I had the pdftk required it was working fine on the online server,
Now that I added this, I’m getting an error:

[139.162.133.79]=> Starting meteor app on port:80
[139.162.133.79]events.js:141
[139.162.133.79]      throw er; // Unhandled 'error' event
[139.162.133.79]      ^
[139.162.133.79]
[139.162.133.79]Error: spawn pdftk ENOENT
[139.162.133.79]    at exports._errnoException (util.js:907:11)
[139.162.133.79]    at Process.ChildProcess._handle.onexit (internal/child_process.js:189:32)
[139.162.133.79]    at onErrorNT (internal/child_process.js:363:16)
[139.162.133.79]    at nextTickCallbackWith2Args (node.js:511:9)
[139.162.133.79]    at process._tickCallback (node.js:425:17)

Anyone have any clue as to how I could fix this. Note: the meteor app works on my mac machine. And I have the pdftk installed on the server. Ant it works as expected on the server itself.

Any help would be great.

1 Like

Any possible solution on this? We encountered the same issue on galaxy server.

tp247
2018-04-16 10:27:36+08:00Error: spawn pdftk ENOENT
tp247
2018-04-16 10:27:36+08:00 at _errnoException (util.js:1022:11)
tp247
2018-04-16 10:27:36+08:00 at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
tp247
2018-04-16 10:27:36+08:00 at onErrorNT (internal/child_process.js:372:16)
tp247
2018-04-16 10:27:36+08:00 at _combinedTickCallback (internal/process/next_tick.js:138:11)
tp247
2018-04-16 10:27:36+08:00 at process._tickDomainCallback (internal/process/next_tick.js:218:9)

Yes, basically you need to install the pdftk on the server. At least that was my silly problem :slight_smile:

@mykolas
What are the steps for install the pdftk on server?