When trying to push and deploy my app to cloudControlled PaaS:
$ cctrlapp MY_APP/default push
I get the following error (reduced output):
remote: -----> Receiving push
remote: /srv/www/buildpacks/php/bin/compile: line 81: /srv/tmp/builddir/code/composer.phar: Permission denied
remote: ! cloudControl push rejected, failed to compile php app
remote: !
remote: error: hook declined to update refs/heads/master
To ssh://MY_APP#cloudcontrolled.com/repository.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://MY_APP#cloudcontrolled.com/repository.git'
Command '['PATH_TO_GIT', 'push', u'ssh://MY_APP#cloudcontrolled.com/repository.git', 'master']'
returned non-zero exit status 1
Anyone has any idea?
I found out I have to remove the composer.phar file from the root directory of my repository. Too keep it in my local filesystem, I did
git rm --cached composer.phar
# then commit, push, deploy
Related
I recently changed my Personal Access Token on GitHub, and I think I've put the new token in all the right places... but maybe I am missing a place?
The problem:
$ git push staging my_cool_branch:master
...
...
...
remote: -----> Installing dependencies using bundler 2.2.33
remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
remote: Fetching gem metadata from https://rubygems.org/.......
remote: Fetching gem metadata from https://rubygems.pkg.github.com/private_org/.
remote:
remote:
remote: Bad username or password for https://bart_simpson#rubygems.pkg.github.com/private_org/.
remote: Please double-check your credentials and correct them.
remote: Bundler Output: Fetching gem metadata from https://rubygems.org/.......
remote: Fetching gem metadata from https://rubygems.pkg.github.com/private_org/.
remote:
remote:
remote: Bad username or password for https://bart_simpson#rubygems.pkg.github.com/private_org/.
remote: Please double-check your credentials and correct them.
remote:
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
...
...
...
Files (that I am aware of) with Personal Access Token:
$ cat ~/.bundle/config
---
BUNDLE_RUBYGEMS__PKG__GITHUB__COM: "bart_simpson:ghp_nJabIP9JjPe7KOwgDrkiJextJggm114MZh7f"
BUNDLE_HTTPS://RUBYGEMS__PKG__GITHUB__COM/PRIVATE_ORG/: "bart_simpson:ghp_nJabIP9JjPe7KOwgDrkiJextJggm114MZh7f"
and
$ cat ~/.gem/credentials
---
:github: Bearer ghp_nJabIP9JjPe7KOwgDrkiJextJggm114MZh7f
and
$ cat ~/.gemrc
---
:backtrace: false
:bulk_threshold: 1000
:sources:
- https://rubygems.org/
- https://bart_simpson:ghp_nJabIP9JjPe7KOwgDrkiJextJggm114MZh7f#rubygems.pkg.github.com/private_org/
:update_sources: true
:verbose: true
Ah, see ~/.bundle/config above?
The solution was that I also had to set BUNDLE_RUBYGEMS__PKG__GITHUB__COM to the new token in staging:
heroku config:set BUNDLE_RUBYGEMS__PKG__GITHUB__COM=bart_simpson:ghp_nJabIP9JjPe7KOwgDrkiJextJggm114MZh7f
...which, btw, means that you must also set it in .env:
BUNDLE_RUBYGEMS__PKG__GITHUB__COM=bart_simpson:ghp_nJabIP9JjPe7KOwgDrkiJextJggm114MZh7f
BUNDLE_GITHUB__COM=x-access-token:ghp_nJabIP9JjPe7KOwgDrkiJextJggm114MZh7f
I'm following this page https://learntocodewith.me/tutorials/github-pages/ to create GitHub pages on MacBook Air (El Capitan) but when I do the last step I get this error:
$ git remote add origin
https://github.com/azg357/azg357.github.io.git
$ GitHubPageTest a$ git push -u origin master
remote: Permission to azg357/azg357.github.io.git denied to zeynel1.
fatal: unable to access
'https://github.com/azg357/azg357.github.io.git/': The requested URL returned error: 403
$
It looks like permission to access the repository is denied to "zeynel1". I use names like "zeynel" or "zeynel1" because it is my first name, but in this case, I haven't used it! I don't know where this is coming from.
Just before this error, OSX asks permission to give permission to GitHub to access "osxkeychain". Is this related to this? The message says something like "git-credential-osxkeychain" cannot be verified.
This is the copy of the entire session:
as-MacBook-Air:azeynel a$ cd /Users/a/GitHubPageTest
as-MacBook-Air:GitHubPageTest a$ git init
Initialized empty Git repository in /Users/a/GitHubPageTest/.git/
as-MacBook-Air:GitHubPageTest a$ git add .
as-MacBook-Air:GitHubPageTest a$ git commit -m "first commit"
[master (root-commit) ad86580] first commit
1 file changed, 7 insertions(+)
create mode 100644 index.html
as-MacBook-Air:GitHubPageTest a$ git remote add origin
https://github.com/azg357/azg357.github.io.git
as-MacBook-Air:GitHubPageTest a$ git push -u origin master
remote: Permission to azg357/azg357.github.io.git denied to zeynel1.
fatal: unable to access
'https://github.com/azg357/azg357.github.io.git/': The requested URL returned error: 403
as-MacBook-Air:GitHubPageTest a$
Thanks!
.
This was a problem caused by the cache on Key chain app. I deleted the stored GitHub items and it worked.
While cloning the restbed repo, we are getting below error and is taking a lot of time.
$ git submodule update --init --recursive
Submodule 'dependency/asio' (https://github.com/corvusoft/asio-dependency) registered for path 'dependency/asio'
Submodule 'dependency/catch' (https://github.com/corvusoft/catch-dependency) registered for path 'dependency/catch'
Submodule 'dependency/openssl' (https://github.com/corvusoft/openssl-dependency) registered for path 'dependency/openssl'
Cloning into '${HOME}/restbed/dependency/asio'...
error: RPC failed; curl 56 SSL read: errno -5961
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
fatal: clone of 'https://github.com/corvusoft/asio-dependency' into submodule path '${HOME}/restbed/dependency/asio' failed
Failed to clone 'dependency/asio'. Retry scheduled
Is there something wrong with the repo?
Thanks,
What occurs when you run git clone --recursive https://github.com/corvusoft/restbed.git
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.
I have enabled history for xcdatamodel file.From the xcode it appears to be one file
from terminal its a set of folders
my.xcdatamodeld/
my 2.xcdatamodel
my.xcdatamodel
I am unable to deliver this to my remote git repository due to this error
indmacsunelama$ git push
Counting objects: 19, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (13/13), done.
Writing objects: 100% (14/14), 34.11 KiB, done.
Total 14 (delta 5), reused 7 (delta 1)
remote: usage: git cat-file (-t|-s|-e|-p|<type>|--textconv) <object>
remote: or: git cat-file (--batch|--batch-check) < <list_of_objects>
remote: <type> can be one of: blob, tree, commit, tag
remote: -t show object type
remote: -s show object size
remote: -e exit with zero when there's no error
remote: -p pretty-print object's content
remote: --textconv for blob objects, run textconv on object's content
remote: --batch show info and content of object standard input
remote: --batch-check show info about objects fed from the standard input
remote: error: hook declined to update refs/heads/master
To git://mylinuxbox.us.spec.com/mobile.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'git://mylinuxbox.us.spec.com/mobile.git'
Those errors indicate that you have a buggy hook installed in your remote repository. Check the hooks subdirectory in mobile.git on your remote server and look at the hooks that are enabled. It seems that the hook is misusing git cat-file at some point.