When customers attempt to upload an image, an error is displayed. Upon investigating, it was determined that the error stems from the Heroku buildpack previously utilized. To address this, the necessary buildpacks must be installed on Render. Specifically, four buildpacks are required: AWS CLI, MiniMagic, Google Chrome, and Chrome Driver. Urgent action is needed due to our live application being affected, causing customer issues. Assistance is requested for guidance on the installation process within our Render Ruby application. Your prompt help is greatly appreciated.
Hi there,
If you use Render Ruby Native Environment, you must include a build script that adds these packages to your application. This will do the same thing the additional Heroku build packs did, as Render, like Heroku, doesnโt include these packages in our base image. See more details here: https://render.com/docs/native-runtimes#deploys
Here is one example of how you can install Chrome: https://gist.github.com/BigAlRender/41f4c4d87df3e25770e3db8db728443e. You must do something similar for AWS CLI, and the Chrome Driver.
As the build script will work similar to the Heroku buildpacks, here are the links to the buildpack scripts:
- Chrome Driver: https://github.com/heroku/heroku-buildpack-chromedriver/blob/master/bin/compile
- AWS CLI: https://github.com/heroku/heroku-buildpack-awscli/blob/master/bin/compile
MiniMagic is just a wrapper for ImageMagic, which we do include in our base image. You would need to share more details of what is missing that causes this to not work.
Regards,
Keith
Render Support, UTC+10
Greetings,
Iโve made an attempt to install both the Chrome Driver and AWS CLI by following the steps provided earlier. However, Iโm encountering the same issue. While I have verified the version of AWS and it seems to be correct, Iโm still unable to successfully upload an image to the AWS S3 bucket as intended.
This setup has been functional on Heroku in the past and on my local machine. Unfortunately, weโre encountering a roadblock on Render. If you have any suggestions or insights on how to address this, Iโd greatly appreciate your assistance.
Hi there,
It would probably be best for you to open a support ticket directly with us so we can look at your specific application to see what is going on. There shouldnโt be an issue with loading images from your service to S3 buckets on Render.
Regards,
Keith
Render Support, UTC+10
Greetings,
Iโll initiate a support ticket to establish direct contact with your team. Kindly assist me with this matter.
Hi there,
I see your open ticket. If you come to a solution to this issue that you can share publicly, please feel free to add it to your community post.
Regards,
Keith
Render Support, UTC+10
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.