Dockerfile not used (impossible to install ffmpeg)

tvogHOBBY

a year ago

Hello,

I'm trying to install ffmpeg. I changed the Dockerfile and added entrypoint.sh and install_ffmpeg.sh. The problem is Dockerfile is not used.

Can someone check and tell me what should I try to fix the problem ?

Here's the repository: https://github.com/tvog/n8n-bonfire-final.
And project id: 3868db38-98f0-4130-88fe-df8f27e3fd44.

I tried various fix for 3 hours but can't make it. Thanks.

18 Replies

a year ago

I assume that you know it's not being used because of the nixpacks prints in the build logs, am I correct in this assumption?

Is your Dockerfile named something other than Dockerfile, if so, what's it's name?

Is your Dockerfile located somewhere else other than the root directory or somewhere other than the root directory you have set in your service settings, if so, where is it located?


tvogHOBBY

a year ago

No, you're not correct. I'm quite a beginner.

The file is named Dockerfile, I know it's importante for Railway to auto-detect it.

The file is located in the root directory and the appropriate github is being used (https://github.com/tvog/n8n-bonfire-final). Please see attached.

Thanks for your help Brody.

Attachments


a year ago


tvogHOBBY

a year ago

here are my deployments logs.
as you can see the good Dockerfile is not being used.
i don't understand why. everything seems correct (Dockerfiles, install.ffmpeg.sh and entrypoint.sh are in root folder).

Attachments


a year ago

I'm sorry but I asked for your build logs.


tvogHOBBY

a year ago

Sorry, here it is.

Attachments


a year ago

Your dockerfile is definitely being used, may I ask why you are installing ffmpeg in the first place?


tvogHOBBY

a year ago

I'm building an N8N automation that takes images to create a video.
Weird. I couldn't find the print statements in my logs. I'll check if it's working now.


a year ago

Do you have N8N listening on host 0.0.0.0 and $PORT?


tvogHOBBY

a year ago

I'm not sure.

Right now I've the error "Problem in node ‘Code‘ Cannot find module 'fs' [line 1] dans mon noeud Code." while trying to require fs, path and child_process in a Code node. Trying to fix it.

Is it somehow related?


a year ago

I'm sorry but I can't understand what you are asking.


tvogHOBBY

a year ago

Sorry. I'm trying to execute a Code node in N8N. It requires fs, path and child_process.

const fs = require('fs');
const path = require('path');
const { exec } = require('child_process');

It seems impossible to run such code cause I've this error : cannot find module 'fs' [line 1].
How can I fix that ? Is it related to what you say about listening on host 0.0.0.0 and $PORT?


a year ago

No, modules have nothing to do with Host and Port, you will need to find out why fs is missing and apply the correct solution.


tvogHOBBY

a year ago

Perfect. I guess I just have to install fs like I did with ffmpeg.
Can you please elaborate on listening on host 0.0.0.0 and $PORT?


a year ago

fs is a node module, it would not be installed the same way as ffmpeg.

https://docs.railway.app/guides/fixing-common-errors


tvogHOBBY

a year ago

I added Node.js and npm to my instance (please see attached).
But I still can't use them in N8N (error Cannot find module 'fs' [line 1]).
Do you know why?

You'll find my deploy logs attached for reference.

Attachments

build_logs_...

tvogHOBBY

a year ago

Up.


a year ago

This error would not be platform specific in any way, try looking for answered solutions on sites like stack overflow.