Builds failing - logs look different and I'm not sure why
tlonny
PROOP

a year ago

Hi guys, I'm trying (and failing) to deploy a service on railway. I notice the last successful deploy had completely different looking build logs. A failing deploy ID is: 6b8b1080-e3d3-4c71-afc7-ed7403c5f758, with a successful one being: ca8feb3c-166f-40db-b799-155d6ee71790. I note that the logs of the successful deploy start with: "Using Detected Dockerfile". I don't see that in the broken deploy logs… Any help would be appreciated

Solved

29 Replies

tlonny
PROOP

a year ago

I'm not sure if this is relevant - but if I google some of the logs of the successful deploy, I see they are emitted by a tool called "BuildKit". The failing logs seem to come from a tool called "Kaniko" - they both seem to do similar stuff. Have I accidentally the build process over to using this "Kaniko" tool instead?


tlonny
PROOP

a year ago

Yeah - so its not detecting the Dockerfile - even though it is in there!


tlonny
PROOP

a year ago

in the root of the github repo with the default name of "Dockerfile"


tlonny
PROOP

a year ago

I shouldn't need to define the railway dockerfile path envvar according to the docs


tlonny
PROOP

a year ago

My build configuration for failing deploys is still this:

[build]
builder = "DOCKERFILE"
dockerfilePath = "Dockerfile"
buildEnvironment = "V2"


brody
EMPLOYEE

a year ago

disable the new builder in your service settings -- the new builder is kainko, the old builder is buildkit -- the new builder is not recommended to be used for reasons that you just experienced


tlonny
PROOP

a year ago

sorry Brody, I can't seem to find an option to do this - this is the only stuff I see under "build" for the service settings:

1318224449740476400


tlonny
PROOP

a year ago

my repo doesn't have a railway.toml file - i note I can set the build version there - presumably to V1?


brody
EMPLOYEE

a year ago

oops, my bad, you should be able to disable it by removing the build environment line from your railway.toml file


tlonny
PROOP

a year ago

but we don't have a railway toml file? presumably i'll need to make one if i need to override what is now default behaviour?


brody
EMPLOYEE

a year ago

no, you shouldn't need to, I'll take a look at the service when I'm at my laptop shortly


tlonny
PROOP

a year ago

thanks Brody


tlonny
PROOP

a year ago

Love the product BTW


tlonny
PROOP

a year ago

so much nicer than dicking around in AWS, setting up VPS's security groups etc.


brody
EMPLOYEE

a year ago

thank you! that's our goal! replace DevOps


tlonny
PROOP

a year ago

Sorry to bother brother, but wanted to check if you'd had a chance to have a peek at my service?


brody
EMPLOYEE

a year ago

so sorry, got busy with monday morning stuff!


tlonny
PROOP

a year ago

no worries mate 🙂


tlonny
PROOP

a year ago

bloody Mondays


brody
EMPLOYEE

a year ago

i kicked off a new deploy, and it is using buildkit now, but your app starts and crashes without printing anything

1318265743669989400


tlonny
PROOP

a year ago

hmmm - I suppose this is an improvement from before. Prior to this it never found the built artifacts (dist/server.mjs). It doesn't seem to be complaining about that now which is good I guess


tlonny
PROOP

a year ago

will investigate further - thanks Brody


brody
EMPLOYEE

a year ago

i think ive done about all i can here, at this point its now an application issue, but let me know if you need any more platform help!


tlonny
PROOP

a year ago

of course - cheers mate


tlonny
PROOP

a year ago

how did you change it to buildkit btw?


brody
EMPLOYEE

a year ago

cheers!


brody
EMPLOYEE

a year ago

Admins can just do these kinds of things 😎

No clue why you never had the option to change it back though, sorry


tlonny
PROOP

a year ago

haha fair enough


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...