Pipeline works locally but fails on server

Hello,
I trying to create a workflow that will convert my *.md to *.pdf. I am using this package md-to-pdf. It worked ok (just running the md-to-pdf command) when running it locally on my machine (WIN7) so I have created the following pipeline (I had a hard time getting puppeteer to work but I have got it working at the end).

workspace:
  path: /cook-book
pipeline:
  build:
    image: node
    commands:
      - npm install
      - npm install puppeteer --only=dev
      - npm i -g md-to-pdf@latest -unsafe-perm=true
      - apt-get update
      - apt-get install -y -qq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget > /dev/null
      - cd cook-book-files
      - cat git.md | md-to-pdf --config-file config.js > git.pdf
      - ls -alh

Unfortunetally the cat git.md | md-to-pdf --config-file config.js > git.pdf never finishes. It hangs and after a while, the build process restarts,
bug

There is already one github issue here (the second commend is mine). But the solution, that helped the guy there, did not work for me.

Today I have set up the Drone Exec (Command Line Runner) on my virtual machine with Ubuntu 20.04 because the debugging while pushing to git all the time was annoying and was hoping that I can get some errors that will help me. But it works OK, the PDF is created right away, no problems…

[build:40] Reading package lists...
[build:41] + apt-get install -y -qq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget > /dev/null
[build:42] debconf: delaying package configuration, since apt-utils is not installed
[build:43] + cd cook-book-files
[build:44] + cat git.md | md-to-pdf --config-file config.js > git.pdf
[build:45] + ls -alh
[build:46] total 96K
[build:47] drwxrwxr-x 2 node node 4.0K Feb 27 14:15 .
[build:48] drwxrwxr-x 5 node node 4.0K Feb 27 14:13 ..
[build:49] -rw-rw-r-- 1 node node  554 Feb 27 13:08 config.js
[build:50] -rw-rw-r-- 1 node node 6.1K Feb 27 13:08 git.md
[build:51] -rw-r--r-- 1 root root  72K Feb 27 14:15 git.pdf
[build:52] -rw-rw-r-- 1 node node 3.0K Feb 27 13:08 used_parts.md

Now I am not sure how to continue. How can I debug this? I am using the Drone server regularly for publishing and testing my application and never got so weird error,

Thank you very much!

Hello @panvicka ,

Could you please enable and share debug level server/runner logs for our review.
https://docs.drone.io/runner/exec/configuration/logging/

Regards,
Harness Support

Hello,
thank you for the support. There was no error in the log. I have restarted docker and started up a new drone and drone runner container and it seems to be working now. Restarting only the drone+runner did not help.

No idea what happened there. Thank you anyway!