Skip to content
This repository was archived by the owner on Sep 21, 2024. It is now read-only.

Latest commit

Β 

History

History
41 lines (39 loc) Β· 1.69 KB

File metadata and controls

41 lines (39 loc) Β· 1.69 KB

πŸͺ„ FAQ - Frequently Asked Questions

- πŸ“» Distube FAQ

  1. FFmpeg/avconv not found
    !! Do not install ffmpeg npm package !!
    Uninstall it if installed.
npm uninstall ffmpeg

You need to install FFmpeg first.
Windows ● Linux ● Offical

  1. Error: write EPIPE (Song ends instantly without any errors)
    This is due to ffmpeg-static is not stable.
    Solution : Fix with guild above
npm uninstall ffmpeg-static
npm ci --no-optional
npm update

If it still happens after using this workaround, delete node_modules folder and package-lock.json file then run npm install. It should work when npm ls ffmpeg-static returns (empty).

- πŸ” SSL FAQ

Don't forget to install Openssl

  1. Generate a key file used for self-signed certificate generation
openssl genrsa -out key.pem
  1. Generate a certificate service request (CSR)
openssl req -new -key key.pem -out csr.pem
  1. Generate your certificate by providing the private key created to sign it with the public key created in step two with an expiry date of 9,999 days
openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem

If you want to use certbot : certbot renew https://certbot.eff.org/

  1. run certbot certonly --manual and follow the instructions
  2. edit your cert and key in index.js
    Want to renew run certbot renew