No such file or directory

Has anyone ever caught this error? It's a C# .Net 6 API and my endpoint that's giving an error is an OCR for reading an image, so it gives an error since local works... can I run a sudo command on the server? in the ocr documentation it says that I need to execute the command on the server, but I don't know where to do it.. 6a35db84-51a0-441e-b866-a5aadc937368https://ironsoftware.com/csharp/ocr/how-to/tesseract-ocr-setup-linux-ubuntu-debian/
No description
65 Replies
Percy
Percy14mo ago
Project ID: 6a35db84-51a0-441e-b866-a5aadc937368
Brody
Brody14mo ago
this is a primarily english speaking community, if you could, please use english
Medim
Medim14mo ago
that was fast
Brody
Brody14mo ago
what sudo command do you want to run?
trabalho6079
trabalho6079OP14mo ago
I think this one, I don't know if it will work..
No description
ThallesComH
ThallesComH14mo ago
missing dependencies it seems. use a dockerfile to install your dependencies. see if this docker image makes sense to you https://hub.docker.com/r/jitesoft/tesseract-ocr/ or use nixpacks.toml too
Brody
Brody14mo ago
add this to a nixpacks.toml file in your project
[phases.setup]
aptPkgs = ['...', 'apt-utils', 'libgdiplus', 'libc6-dev', 'tesseract-ocr']
[phases.setup]
aptPkgs = ['...', 'apt-utils', 'libgdiplus', 'libc6-dev', 'tesseract-ocr']
lol
trabalho6079
trabalho6079OP14mo ago
No description
trabalho6079
trabalho6079OP14mo ago
,-,
Brody
Brody14mo ago
add a nixpacks.toml file to your project with that in it
trabalho6079
trabalho6079OP14mo ago
add file in my project but it didn't change anything about the error... it's impossible to run sudo, right?
Brody
Brody14mo ago
correct, but that file should have done the same thing build logs please https://bookmarklets.up.railway.app/log-downloader/
trabalho6079
trabalho6079OP14mo ago
No description
Brody
Brody14mo ago
build logs please
trabalho6079
trabalho6079OP14mo ago
I don't know if it was but I put it here too
Brody
Brody14mo ago
build logs please
trabalho6079
trabalho6079OP14mo ago
Brody
Brody14mo ago
please use that tool
trabalho6079
trabalho6079OP14mo ago
I don't know if it was ...
Brody
Brody14mo ago
use the tool please
Medim
Medim14mo ago
Cara, @trabalho Salva o link escrito 'Download Logs' dentro de https://bookmarklets.up.railway.app/log-downloader/ como favorito Vai no teu serviço do railway, abre o Build Logs e clica nesse favorito que tu acabou de salvar, ele vai baixar um arquivo de Logs que é oque o @Brody está pedindo. Esse suporte é totalmente em inglês, use um tradutor ou chame algum colega que saiba (sorry for the ping brody, just explaining to him the english support)
Brody
Brody14mo ago
i translated that and its wrong lol read the 3 steps on the site please
Medim
Medim14mo ago
mb, wrote in a hurry
Brody
Brody14mo ago
all fixed
trabalho6079
trabalho6079OP14mo ago
upload
Brody
Brody14mo ago
what?
trabalho6079
trabalho6079OP14mo ago
I think it was, the screen refreshed
Brody
Brody14mo ago
what?
trabalho6079
trabalho6079OP14mo ago
does this work on chrome?
Brody
Brody14mo ago
yes
trabalho6079
trabalho6079OP14mo ago
nothing happens
Brody
Brody14mo ago
you did something wrong, remove the bookmarklets and try again
trabalho6079
trabalho6079OP14mo ago
🥵 🥵 🥵 🥵 🥵 🥵 🥵 🥵 🥵 🥵
Brody
Brody14mo ago
your build logs are too long, just show me the build table at the top
trabalho6079
trabalho6079OP14mo ago
that?
No description
Brody
Brody14mo ago
please do this
trabalho6079
trabalho6079OP14mo ago
added to the project
No description
Brody
Brody14mo ago
that says .txt
trabalho6079
trabalho6079OP14mo ago
ooohh sorry
Brody
Brody14mo ago
and so does your .json file you gotta slow down and read stuff
trabalho6079
trabalho6079OP14mo ago
Is it possible to browse the folders?
Brody
Brody14mo ago
the mass? what folders
trabalho6079
trabalho6079OP14mo ago
I wanted to see the contents of the project folder after it was compiled, see the dlls files
Brody
Brody14mo ago
compile it locally and look then
trabalho6079
trabalho6079OP14mo ago
site works normally, but the published version still has errors
No description
Brody
Brody14mo ago
^
trabalho6079
trabalho6079OP14mo ago
Have already done
No description
Brody
Brody14mo ago
then you're gonna have to move to a Dockerfile based build
trabalho6079
trabalho6079OP14mo ago
hmm ok ,I'll see, I've never touched Docker
Brody
Brody14mo ago
dockerfile*
trabalho6079
trabalho6079OP14mo ago
hey how's it going? , I created an image in docker and put it in the railway app but when it loads the url it gives the error:'Application failed to respond'
No description
trabalho6079
trabalho6079OP14mo ago
Do I have to do any more configuration? Can you tell me how to do it?
trabalho6079
trabalho6079OP14mo ago
I tested changing the PORT variable with 3000, 5000, 7007 and none of the links worked...
No description
trabalho6079
trabalho6079OP14mo ago
I'm finding it strange how long it takes to deploy, it's very quick, when you publish git repository it takes 4 minutes
trabalho6079
trabalho6079OP14mo ago
No description
Brody
Brody14mo ago
you are listing on port 80, you should be listening on the PORT environment variable, please take your time to read this page https://docs.railway.app/troubleshoot/fixing-common-errors do not just set PORT to 80
Adam
Adam14mo ago
@trabalho ^ The reason why it takes so long to deploy is because it's not just deploying. Railway is building a whole environment (nixpacks or Docker) to host your app If you look at your deployment log timestamps, the actual deployment takes 1 second
trabalho6079
trabalho6079OP14mo ago
Hi Brody, how are you? Is it possible to create two frontend projects with the same url in both projects? I wanted to leave the front login system separate and another website presenting the project 1 website would be www.myproject.com and another www.myproject.com/login
Brody
Brody14mo ago
I can't think of a straight forward way to do that, sorry it would likely not be worth the complexity
trabalho6079
trabalho6079OP14mo ago
I wanted to separate the project, but that's okay, I'll do everything in a single project
Want results from more Discord servers?
Add your server