Cannot deploy sample GOLang application to Heroku - deployment

I tried deploying the sample GO application to Heroku listed here
But when I run the command:
git push heroku master
I get the following error:
Counting objects: 28, done.
Compressing objects: 100% (21/21), done. Writing objects: 100%
(28/28), 3.08 KiB, done. Total 28 (delta 6), reused 0 (delta 0)
! Heroku push rejected, no Cedar-supported app detected
To git#heroku.com:mysterious-refuge-1227.git ! [remote rejected]
master -> master (pre-receive hook declined) error: failed to push
some refs to 'git#heroku.com:mysterious-refuge-1227.git'
The sample code might be out-of-date so I created a simple hello world GO App but from the same git push command I got the following error:
Counting objects: 10, done.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (10/10), 1.16 MiB | 690 KiB/s, done.
Total 10 (delta 1), reused 0 (delta 0)
-----> Fetching custom git buildpack... done
-----> Go app detected
-----> Installing Go 1.1... done
Installing Virtualenv... done
Installing Mercurial... done
Installing Bazaar... done
-----> Running: go get -tags heroku ./...
package echo/...: unrecognized import path "echo/..."
! Heroku push rejected, failed to compile Go app
To git#heroku.com:evening-reef-1503.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:evening-reef-1503.git'
Any ideas on how I can resolve this issue?
Here is my system info:
GoLang version: go version go1.1 linux/386
Kubuntu version: 12.10

I suspect your original error is because you created the application with heroku create. You're using Go, which is supported through a buildpack, so you should create the application with something like heroku create -b https://github.com/kr/heroku-buildpack-go.git. I believe the demo app makes the same mistake - my fork fixes it - and I've submitted a pull request too.

Related

i have pushed my website locally on github after creating an empty repository but the repository is still blank

I have a folder with codes, i pushed it on github after creating a repository but the process was successful but i can not see any file in the repository, any help guys, this is my cli codes
SydoTech#DESKTOP-PUHK97G MINGW64 /d/james/ict-specialists (master)
$ git remote add origin https://github.com/Kato669/ict-specialist-website.git
SydoTech#DESKTOP-PUHK97G MINGW64 /d/james/ict-specialists (master)
$ git push origin main
error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/Kato669/ict-specialist-website.git'
SydoTech#DESKTOP-PUHK97G MINGW64 /d/james/ict-specialists (master)
$ git push origin master
Enumerating objects: 1383, done.
Counting objects: 100% (1383/1383), done.
Delta compression using up to 4 threads
Compressing objects: 100% (1380/1380), done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (1383/1383), 35.93 MiB | 323.00 KiB/s, done.
Total 1383 (delta 181), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
SydoTech#DESKTOP-PUHK97G MINGW64 /d/james/ict-specialists (master)
$

Azure DevOps Git Repo SSH failed to download lfs files while https works fine

So I'm trying to clone my Azure DevOps Git repo. If I use SSH, I get the following error:
$ git clone <ssh-url> az-lynx
Cloning into 'az-lynx'...
remote: Azure Repos
remote: Found 177467 objects to send. (371 ms)
Receiving objects: 100% (177467/177467), 395.46 MiB | 7.01 MiB/s, done.
Resolving deltas: 100% (130228/130228), done.
Updating files: 100% (13436/13436), done.
Downloading /jquery-1.10.2.min.map (140 KB)
Error downloading object: /jquery-1.10.2.min.map (3b5c544): Smudge error: Error downloading /jquery-1.10.2.min.map (3b5c544e238a129e2b7296ad731f8963ea092843967a4bbc2d748e471ae115b9): batch request: unexpected end of JSON input
Errors logged to C:\projects\az-lynx\.git\lfs\logs\20210926T085414.2333448.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: /jquery-1.10.2.min.map: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
Now, if I use HTTPS instead, it works just fine with the file downloaded correctly
got clone <https-url>
Cloning into 'az-lynx'...
remote: Azure Repos
remote: Found 177467 objects to send. (428 ms)
Receiving objects: 100% (177467/177467), 395.46 MiB | 8.64 MiB/s, done.
Resolving deltas: 100% (130228/130228), done.
Updating files: 100% (13436/13436), done.
Filtering content: 100% (4253/4253), 263.01 MiB | 7.52 MiB/s, done.
Aren't both SSH and HTTPS pointing to the same repo? Why SSH is complaining missing files while HTTPS works just fine?

Deployment failed on codeship due to shallow clone

Codeship pulls a clone with a depth of 50 to speed up the build process. We had a pull request that was over 50 commits (uncommon but happens) and our deployment to catalyze failed with the following error:
Warning: Permanently added '<deployment host>
to the list of known hosts.
Counting objects: 6551, done.
Delta compression using up to 32 threads.
Compressing objects: 100% (2626/2626), done.
Writing objects: 100% (6551/6551), 23.57 MiB | 16.37 MiB/s, done.
Total 6551 (delta 3843), reused 6551 (delta 3843)
To <>.git
! [remote rejected] dev -> master (shallow update not allowed)
error: failed to push some refs to '<>.git'
After squashing a few commits we were able to deploy but we ran into an issue when we had a rather large PR that needed to be merged. To avoid the error
' ! [remote rejected] dev -> master (shallow update not allowed) '
We added the following script to our deployment pipeline and everything worked fine.
if [ -f ${HOME}/clone/.git/shallow ]; then git fetch --unshallow; fi
We added the following script to our deployment pipeline and everything worked fine.
if [ -f ${HOME}/clone/.git/shallow ]; then git fetch --unshallow; fi

Heroku error on scala application

Any idea what may cause the following error?
sinan#ThinkPad-X1-Carbon:~/dev/heroku/kumbaraci50$ git push heroku master
Counting objects: 4390, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2419/2419), done.
Writing objects: 100% (4390/4390), 4.11 MiB | 79.00 KiB/s, done.
Total 4390 (delta 1552), reused 4338 (delta 1520)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Scala app detected
remote:
remote: gzip: stdin: unexpected end of file
remote: tar: Child returned status 1
remote: tar: Error is not recoverable: exiting now
remote:
remote: ! Push rejected, failed to compile Scala app
remote:
remote: Verifying deploy....
remote:
remote: ! Push rejected to kumbaraci50-tiyatrosever.
remote:
To https://git.heroku.com/kumbaraci50-tiyatrosever.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/kumbaraci50-tiyatrosever.git'
I was able to push this app couple of days ago with no problem, however something may have changed on my local with package updates.
Is there way to increase verbosity of the logging while deploying the app?
This application uses Scalatra framework 2.3 and scala version 2.11.1 on Java 1.8.0_45.
Check that your LANG config var is not set to "tr_TR.UTF-8". You can confirm this by running:
$ heroku config:unset LANG
Certain LANG values result in certificate errors on Heroku. Instead, you may be able to use -Dfile.encoding by running this:
$ heroku config:set JAVA_OPTS="-Dfile.encoding=tr_TR.UTF-8"
Hope that helps.

Heroku push: gzip stdin not in gzip format

When I try to push an update to Heroku in one of my PHP apps I get the following problem:
Counting objects: 25, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (13/13), 1.20 KiB, done.
Total 13 (delta 10), reused 0 (delta 0)
-----> Heroku receiving push
-----> Fetching custom buildpack... done
-----> PHP app detected
-----> Run Sitebase buildpack
-----> Bundling Apache version 2.2.22
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Exiting with failure status due to previous errors
! Heroku push rejected, failed to compile Php app
To git#heroku.com:x
! [remote rejected] feature-removeapi -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:x'
Never had this problem before so I totally don't have a clue what the problem can be.
Is it possible that this is a bug on Heroku's side?
If I look in the Heroku logs I also see the following line:
Slug compilation failed: failed to compile Php app
All help is welcome.
I my cases that I had this problem it seemed to be a Heroku problem. Just waiting 10 minutes or so did the trick for me.
After so many years and still, this issue occurs.
Btw: My fix was to pin to a specific version as mentioned here:
heroku buildpacks:set https://github.com/heroku/heroku-buildpack-nodejs#v75 -a my-app
Same issue had occurred for my Java application which was built with Maven.
It got fixed by configuring Java buildpack provided by Heroku (Earlier I was using custom buildpack which used to work on heroku for same application).