Error to deploy Rails on GAE - ruby-on-rails

I am getting this error when the deploy to GAE (RoR) is finished:
latest: digest: sha256:fae8a83d8a4503b9ca284ecfb70da5faf1b66b015804396c2282fae7fc5e4669 size: 75429
DONE
-----------------------------------------------------------------------------------------------------------------------------------------
Updating service [default]...failed.
ERROR: (gcloud.preview.app.deploy) Error Response: [13] The system encountered a fatal error
I have no idea what happens.
I checked the logs, and last register is about the docker build:
17:13:24.410
DONE
{
metadata:
{…}
textPayload:
"DONE"
insertId:
"271f3953-7ca6-4282-960a-fcb35a2261a2-316"
log:
"cloudbuild"
}
The application is running in development and production enviroment whitout errors.
Rails : 4.2.6
Ruby: 2.3.1
GCloud SDK: 108.0.0
Someone knows how to fix it?
Very thanks!

Temporally solve:
Just add --docker-build=remote option to you gcloud preview app deploy command. (Remote builds are working normally)
To debug the command use --verbosity debug option.
EDIT:
Response from google support:
Engineering is aware of an issue with the platform that would cause these errors. They are currently working on deploying a fix.

Related

Unable to deploy my rails application to fly.io

I have a rails application called gratify_me that is running on rails version 6.1.4.1 & ruby version: 2.7.2.
I want to deploy my application to fly.io and the first command I ran was fly launch and it was successfully able to create the PostgreSQL database.
Now when I run fly deploy it shows me this error:
...
...
=> ERROR [stage-4 8/8] RUN bin/rails fly:build 3.5s
------
> [stage-4 8/8] RUN bin/rails fly:build:
#25 3.411 Missing encryption key to decrypt file with. Ask your team for your master key and write it to /app/config/master.key or put it in the ENV['RAILS_MASTER_KEY'].
------
Error failed to fetch an image or build from source: error building: executor failed running [/bin/bash -o pipefail -c ${BUILD_COMMAND}]: exit code: 1
From the error, it looks like it is looking for the master key but it's unable to find it from the specified path even though I do have the master.key file in the mentioned path.
Does anyone have an idea on how I can resolve this?

Error when deploying Lambda Docker using AWS CDK

I'm following https://sbstjn.com/blog/aws-cdk-lambda-docker-container-example/ and deploying Lambda Docker using AWS CDK. On 'cdk deploy' I get the following error. Link to my github repo is https://github.com/aqilzeeshan/cdk_dockerlambda
Can anyone tell me please what is the problem ? Thanks
Do you wish to deploy these changes (y/n)? y
CdkLambdaDockerStack: deploying...
[0%] start: Publishing dcfb2f152c6c0b2ca779c90dee5d59d3b510805a3ed884b310200624e32a4b27:current
Error: write EPIPE
at afterWriteDispatched (internal/stream_base_commons.js:156:25)
at writeGeneric (internal/stream_base_commons.js:147:3)
at Socket._writeGeneric (net.js:785:11)
at Socket._write (net.js:797:8)
at writeOrBuffer (internal/streams/writable.js:358:12)
at Socket.Writable.write (internal/streams/writable.js:303:10)
at C:\Users\amuham210\AppData\Roaming\npm\node_modules\aws-cdk\node_modules\cdk-assets\lib\private\shell.ts:28:19
at new Promise (<anonymous>)
at Object.shell (C:\Users\amuham210\AppData\Roaming\npm\node_modules\aws-cdk\node_modules\cdk-assets\lib\private\shell.ts:26:10)
at Docker.execute (C:\Users\amuham210\AppData\Roaming\npm\node_modules\aws-cdk\node_modules\cdk-assets\lib\private\docker.ts:75:13)
I found the problem. Docker needs to be installed to build the image. After installing docker on machine where I run 'cdk deploy' above issue is resolved.

Can't push application to Bluemix after cflinuxfs2 removed

I encountered an problem when push application to bluemix.
When I used the following command:
bluemix app push cam-dev
It told me to define build stack:
The app is invalid: Must specify either a buildpack_url or an admin_buildpack_name
Then I use the following command to use stack cflinuxfs2:
bluemix app push cam-dev -s cflinuxfs2
It failed with following errors:
ERROR Unsupported stack
See https://docs.cloudfoundry.org/devguide/deploy-apps/stacks.html for more info
Failed to compile droplet: Failed to run all supply scripts: exit status 1
Then I see the cflinuxfs2 stack is no longer supported. The message tells me to update my app stack to cflinuxfs3 by pushing it again. I did it but it also failed with the following message:
FAILED
Stack cflinuxfs3 not found
I don't know what I can do to update it to cflinuxfs3. I used cf stacks and found there are only 2 available stacks:
lucid64 Ubuntu 10.04 on x86-64
cflinuxfs2 Ubuntu 14.04.2 trusty
This issue is caused by the bluemix has not yet upgrade to cflinuxfs3 but the build pack for cflinuxfs2 has been removed. I found a solution for it:
Add the following lines to manifest.yml:
buildpacks:
- https://github.com/cloudfoundry/nodejs-buildpack#v1.6.56
Or you can use following command:
bluemix app push cam-dev -b https://github.com/cloudfoundry/nodejs-buildpack#v1.6.56

Strange error during build docker using heroku.yml

I'm trying to build and deploy app using new feature heroku.yml https://blog.heroku.com/build-docker-images-heroku-yml
Build was successful but after pushed to registry I see error:
unsupported
=!= Build failed due to an error:
=!= push step: exit status 1
If this persists, please contact us at https://help.heroku.com/.
Source code of heroku.yml https://github.com/jincod/AspNetCoreDemoApp/blob/develop/heroku.yml
Heroku only supports Linux images.
You cannot use microsoft/dotnet:2.1-sdk-alpin, as that's a windows image.

CircleCI CLI Error on Ubuntu WSL: open .circleci/config.yml: no such file or directory

I'm trying to get the CircleCI CLI tool ( https://circleci.com/docs/2.0/local-jobs/ ) working on Ubuntu WSL on Windows 10. It appeared to install successfully -- and the file permissions appear to be correct. I have Docker for Windows installed and running, and the Linux Docker client works without issue.
But now it always errors when trying to validate a CircleCI config file.
I have tried:
circleci config validate -c .circleci/config.yml
and
circleci config validate
from the root of my repo.
But each time, it gives the error:
Error: open .circleci/config.yml: no such file or directory
Has anyone been able to get this work?
sudo worked for me to overcome this. However, I stuck with the next error.

Resources