Deployment fails due to rake issue on Rails app.

AnonymousTRIAL

2 years ago

I am getting this error when Railway is doing the build when I add the repo:

"ERROR: failed to solve: process "/bin/bash -ol pipefail -c bundle exec rake assets:precompile" did not complete successfully: exit code: 1 Error: Docker build failed"

The build is failing. anything I am missing?

0 Replies

AnonymousTRIAL

2 years ago

e4d17bb1-36cc-4fa9-9bc4-626260fb3dde


2 years ago

I'm still not able to help, but neither will anyone else with just that, please provide full build logs


AnonymousTRIAL

2 years ago


royalgiantHOBBY

a year ago

Was this resolved @Issac @Brody ? Ran into the same error.


a year ago

I dont know rails, and it seems not many other people do, so unfortunately this went unanswered


royalgiantHOBBY

a year ago

Figured it out. Told Jack it was a yarn.rake issue that I found when I scrolled higher on the stacktrace.

Now I'm kind of stuck on setting up the background worker and CRON jobs. I've been doing searches, but can't exactly find some ideal setup for a rails app.

Read https://docs.railway.app/reference/cron-jobs and not exactly how it works.

On render, I had bought 2 separate CRON tasks that would queue up tasks to be processed via sidekiq & redis.

How would I go about doing the same here @Brody ? Any insights appreciated.


a year ago

would you mind opening a new thread for those questions?


royalgiantHOBBY

a year ago

From being a Jr a decade ago to a Sr now, I wonder if i ever will stop having rubber duck moments. Solved my own problem.

A picture says 1000 words. For Rails, easiest way is to not use whenever, but to just write the command you'd run your task on "Custom Start Command" and set up the Cron Schedule (mine runs every 30 mins)

PinterestPinPost is the cronjob that runs standalone from the web server imagifyr.

I think it should be OK to enable App Sleeping on Imagifyr and disable it on PinterestPinPost according to that setup right?

@Brody if you want you can take those screenshots and write up a blog post or something, might save some people 2-3 hours. It's past my bed time because I wanted to get this done before I went to bed, but hope it helps someone.

1230754957188268000
1230754957507166200


a year ago

is PinterestPinPost a long running task? or does it do it's thing and then exit right away?


royalgiantHOBBY

a year ago

It does its thing. I think successful run last night finished in 3 mins or so. But the last two scheduled runs, it wasn't successful. I'm checking on why now.


royalgiantHOBBY

a year ago

Just needed a container for sidekiq itself..

1230964471237836800


a year ago

great!


Deployment fails due to rake issue on Rails app. - Railway Help Station