Incorrect application version found on all instances. Expected version - laravel

Good day, I hosted my Laravel application on AWS Beanstalk, through the console, the earlier versions are working because I have deployed other versions before and they worked, however, I deployed today and my health check is reading degraded, when I opened the health check, I am seeing
Incorrect application version "Sample Application-10" (deployment 9). Expected version "Sample Application-14" (deployment 17).
please, is there a way to resolve this without rebooting my environment

If you are using the NodeJS app, delete the package-lock.json file and node_modules folder. Reinstall all packages with "npm i" and redeploy with "eb deploy".

Related

Moving Google Firebase Project from Old PC to New PC

I had configured my old laptop with firebase-cli to upload my website to Google Cloud Hosting.
Now I got the new laptop and trying to configure the new laptop with firebase-cli. I have installed all required tools for firebase. I transferred the source code from my old laptop to new laptop.
But when I try to deploy code from new laptop by using following command:
firebase deploy --only hosting:myfirstproject
there is an error that myproject is not found in firebase.json
I changed firebase.json from myproject to myfirstproject.
but it is still not working.
I tried using the following command
firebase -P project-id init hosting
This command responds that make sure you have permission to access it.
Can someone guide what is to be done for moving project from old pc to new pc.
Thanks.
I changed firebase.json file as per project name showing in google console. but it is not working and giving the same error that myproject is not in firebase.json
After Lot of testing, I am able to resolve my issue. There was an error that myproject was listed in firebase.json.
So, I made changes to firebase.json outside "public" directory of my project.
I added
"site": "myproject",
to my firebase.json and restarted the laptop.
Then issued command
firebase deploy --only hosting:myproject
and
It worked flawlessly.
Thanks everyone.

Problem with deploying Go app to Google App Engine

I developed my first Go app and decided to deploy it to Google Cloud (App Engine). It was running perfectly fine locally but I run into a few issues during the deployment (I'm using Cloud SDK).
I eventually got to the point where I was able to successfully deploy it to GCP but I keep getting
when trying to access the app.
I cannot do any local development either because every time I run go run main.go, go get -u, go build I'm getting:
go: finding module for package github.com/GoogleCloudPlatform/cloudsql-proxy/proxy/dialers/mysql
go: found github.com/GoogleCloudPlatform/cloudsql-proxy/proxy/dialers/mysql in github.com/GoogleCloudPlatform/cloudsql-proxy v0.0.0-20200513164142-a9864b03c326
go: github.com/GoogleCloudPlatform/cloudsql-proxy#v0.0.0-20200513164142-a9864b03c326 requires
cloud.google.com/go#v0.56.0 requires
cloud.google.com/go/bigquery#v1.4.0 requires
cloud.google.com/go#v0.52.0 requires
cloud.google.com/go/bigquery#v1.0.1/go.mod: verifying module: cloud.google.com/go/bigquery#v1.0.1/go.mod: cannot authenticate record data in server response
My go.mod file looks like this:
module swanson
go 1.14
require github.com/gorilla/mux v1.7.4
and this is the structure of my app (main.go, models, and router are 3 different packages):
I'm new to Go development and never deployed a Go app to GCP so feeling quite lost, any help would be much appreciated.
I have tried deploying a go application in app engine and also running it locally and both worked.
I used
this application
in github, which you can clone with the command:
git clone https://github.com/GoogleCloudPlatform/golang-samples
The command I have used for running the application locally is :
go run helloworld.go
And the command returned the following message:
2020/05/22 11:34:16 Defaulting to port 8080
2020/05/22 11:34:16 Listening on port 8080
Then in the Cloud Shell I have opened the web preview in the port 8080 and it was working as expected.
For more information about the deployment, you can check this documentation.

ADB0000 error: Why doesn't my Xamarin.Android project deploy anymore?

I used to be able to deploy my Xamarin.Android project to devices but for some reason I can't anymore. I can still successfully deploy UWP and iOS.
I get the error:
ADB0000: Could not determine the installation path for package com.my_pro.proj. `adb shell pm path com.my_pro.proj` returned ''.
Running adb shell pm uninstall com.my_pro.proj via the command prompt is the only thing that works for me whenever I have this error.
My hypothesis is that this error happens when the app gets installed for one user of the device manually but not for all users of it.
Well, the problem is that the application is not fully uninstalled and hence the package already exists in your device/emulator,
This, in turn, causes an issue while again installing the application.
How to fix this?
In your device/emulator, go to Settings>Installed Apps>AppName and delete this application and try deploying again, Also note that sometimes in place of AppName the package name is displayed here so in case you do not find your app, look for the package name.
Revert in case of queries

How can I see the changes I make to a Go app running in Heroku local?

I admit I'm a GoLang newbie. In an attempt to learn Go, I developed an app about a year ago (based on the Heroku Getting started repository) and deployed it to Heroku. I used the heroku local server to develop it locally and deployed it successfully. Now I want to make some changes but I don't have the original source, so I have cloned the app from the Heroku repository.
I have got it running locally with the following steps:
export GOPATH=~/project_path
export GOBIN=$GOPATH/bin
go get
go install
heroku local
So far, so good. The problem is that when I make a simple change to the code in main.go, it doesn't show up in the browser. I've tried running go install and restarting the server after making the change but it makes no difference.
I've noticed that the file name in the Procfile is now incorrect (go-getting-started instead of the name of my project folder) but the server still runs and changing the name doesn't make any difference, locally at least. Same goes for the Dockerfile.
What am I doing wrong please?
Every time you make a change to a Go file in the project you need to run go install and stop and restart the heroku local server.
You might want to just run the server yourself with PORT=5000 go run main.go so that you only have to restart one thing. Or you can check out something like https://github.com/pilu/fresh which will listen to filesystem changes and restart your server for you.

Xcode Server - Bot Integration does not create IPA file

In summary of integration I see a link to ipa file
Environment: xcode7, mac os server 5.0.4
I can't find ipa file after success integration in post integration script.
Log from post build script:
submit Crashlytics: Crashlytics.framework/submit 1.3.5 (15)
submit Crashlytics: No file found at path /Library/Developer/XcodeServer/Integrations/Integration-54550b26ed9ba94f644c10b0691a1634/CIT.ipa
I try used the env var, like this -ipaPath "${XCS_OUTPUT_DIR}/${XCS_PRODUCT}" and got the next error
submit Crashlytics: Crashlytics.framework/submit 1.3.5 (15)
submit Crashlytics: Path must be to an .ipa file. To create an .ipa distribute an archive (ad-hoc) using Xcode.
Try this
"${XCS_OUTPUT_DIR}/ExportedProduct/Apps/${XCS_BOT_NAME}.ipa"
It's the only thing working for me.
According to this wwdc 2015 presentation, XCS_PRODUCT should produce:
Path to an .ipa or .app, if the bot produced one
But it's not working right now...
In the latest Xcode Server 5.1 version just use
"${XCS_PRODUCT}"
In Mac Server 5.2 + XCode 8.2, you have to use
"${XCS_PRODUCT}"
The path is temporary path. It will get deleted once integration complete which means finish the last post-script. So you won't be able to find anything in that path after bot completion.

Resources