Problem deploying mi .NET Backend
Hi Railway Team, I'm having a problem while trying to deploy my backend on your application.
The message days BuildImage timeout, Retrying...
How I can solve this issue? I wait for your response.
Thanks!
Matías
#12 [8/9] RUN dotnet run #12 0.561 Building... #12 4.935 /app/Models/Jwt/JwtSettings.cs(2,17): warning CS8618: Non-nullable property 'securitykey' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [/app/API.csproj] #12 5.645 warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] #12 5.645 No XML encryptor configured. Key {44aaf67f-46a4-419e-b735-14565db021de} may be persisted to storage in unencrypted form. #12 5.818 info: Microsoft.Hosting.Lifetime[14] #12 5.818 Now listening on: https://localhost:7069 #12 5.819 info: Microsoft.Hosting.Lifetime[14] #12 5.819 Now listening on: http://localhost:5263 #12 5.820 info: Microsoft.Hosting.Lifetime[0] #12 5.820 Application started. Press Ctrl+C to shut down. #12 5.821 info: Microsoft.Hosting.Lifetime[0] #12 5.821 Hosting environment: Development #12 5.821 info: Microsoft.Hosting.Lifetime[0] #12 5.821 Content root path: /app/ #12 ... #10 [4/9] RUN nix-env -if .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix && nix-collect-garbage -d #10 CACHED #12 [8/9] RUN dotnet run BuildImage timeout, Retrying...
#12 [8/9] RUN dotnet run #12 0.561 Building... #12 4.935 /app/Models/Jwt/JwtSettings.cs(2,17): warning CS8618: Non-nullable property 'securitykey' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [/app/API.csproj] #12 5.645 warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] #12 5.645 No XML encryptor configured. Key {44aaf67f-46a4-419e-b735-14565db021de} may be persisted to storage in unencrypted form. #12 5.818 info: Microsoft.Hosting.Lifetime[14] #12 5.818 Now listening on: https://localhost:7069 #12 5.819 info: Microsoft.Hosting.Lifetime[14] #12 5.819 Now listening on: http://localhost:5263 #12 5.820 info: Microsoft.Hosting.Lifetime[0] #12 5.820 Application started. Press Ctrl+C to shut down. #12 5.821 info: Microsoft.Hosting.Lifetime[0] #12 5.821 Hosting environment: Development #12 5.821 info: Microsoft.Hosting.Lifetime[0] #12 5.821 Content root path: /app/ #12 ... #10 [4/9] RUN nix-env -if .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix && nix-collect-garbage -d #10 CACHED #12 [8/9] RUN dotnet run BuildImage timeout, Retrying...
12 Replies
Project ID:
44aaf67f-46a4-419e-b735-14565db021de
⚠️ experimental feature
not usefull for me 😦
are you using a Dockerfile?
no, im not using docker
no, a dockerfile
do you have one in your project
Please send your full logs and your repo
Docker is the system that runs dockerfiles. Saying they're not using Docker is the same as saying they don't have a dockerfile
I have helped someone who said they don't use docker but still had a dockerfile in their project, since you might have a dockerfile for running your app on railway but don't use docker (when developing locally)
That person's wrong though, they are using Docker. They just aren't using it locally
How do i know if i have a dockerfile on my backend?
There will be a file called Dockerfile in your folder structure/repo
@Matías ^^
I solved it, my problem was because i didnt add dotnet build command. thanks for the help!