It was working before some days and now while pushing the code, I am getting following on terminal.
Counting objects: 218, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (218/218), done.
Writing objects: 100% (218/218), 485.32 KiB | 0 bytes/s, done.
Total 218 (delta 93), reused 0 (delta 0)
error: RPC failed; result=22, HTTP code = 401
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
I am not getting this why, its happening. After some googling I tried to increase buffer size and check but still having same problem.
Can somebody help here?
Thanks in advance.
Increase the Git buffer size:
git config --global http.postBuffer 157286400
Related
I got a ssh clone url from Gerrit website.
git clone "ssh://username#server:29418/code-repo"
But it's really slow and hang on for quite a while on 'Cloning into xxx'.
Thu Jul 22 09:53:47 CST 2021
Cloning into 'code'...
remote: Total 14828 (delta 0), reused 14828 (delta 0)
Receiving objects: 100% (14828/14828), 5.68 MiB | 0 bytes/s, done.
Resolving deltas: 100% (6532/6532), done.
Thu Jul 22 09:54:04 CST 2021
While on another Gerrit ,same repo is downloaded in one second.
Thu Jul 22 09:34:43 CST 2021
Cloning into 'code'...
remote: Counting objects: 14828, done
remote: Finding sources: 100% (14828/14828)
remote: Total 14828 (delta 6521), reused 14806 (delta 6521)
Receiving objects: 100% (14828/14828), 5.69 MiB | 0 bytes/s, done.
Resolving deltas: 100% (6521/6521), done.
Thu Jul 22 09:34:44 CST 2021
Why Gerrit is hanging on cloning into ... ?
How can I fix it?
Many thanks.
This is fixed by running GC.
I do not know why.
May be it is new TLS ?
fatal: unable to access 'https://user#bitbucket.org/team/ repo.git/': Received HTTP code 404 from proxy after CONNECT
I used this command.
git config --global --unset http.proxy
and it will done
$ git push > Counting objects: 17, done. Delta compression using up to 8 threads.
Compressing objects: 100% (14/14), done. Writing objects: 100%
(17/17), 9.83 KiB | 0 bytes/s, done. Total 17 (delta 8), reused 0
(delta 0) remote:
Intermittently getting error when doing bundle install for this and also on Continuous Integration server.
Retrying dependency api due to error (4/4): Bundler::HTTPError Network error while fetching https://rails-assets.org/api/v1/dependencies?gems=rails-assets-angular%2Crails-assets-bootstrap-2.3.2%2Crails-assets-bootstrap-3%2Crails-assets-jasmine%2Crails-assets-jqueryjs%2Crails-assets-rainbow%2Crails-assets-typeahead.js (too many connection resets (due to Net::ReadTimeout - Net::ReadTimeout) after 0 requests on 70190348894440, last used 22.186127 seconds ago)
It's likely maintenance happens every once and awhile (especially this late) although they have definitely had downtime before (see https://github.com/tenex/rails-assets/issues/329).
Doing a simple curl you can see they simply aren't responding to any requests:
$ curl 'https://rails-assets.org/api/v1/dependencies?gems=rails-assets-angular%2Crails-assets-bootstrap-2.3.2%2Crails-assets-bootstrap-3%2Crails-assets-jasmine%2Crails-assets-jqueryjs%2Crails-assets-rainbow%2Crails-assets-typeahead.js' -D - --max-time 10
curl: (28) Operation timed out after 10004 milliseconds with 0 bytes received
I enabled Jenkins on my openshift app today. I logged in on jenkins url, but did not change any config settings. Later today I was trying to $ git push new version of my site. But I got following error:
$ git push origin
Counting objects: 17, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 917 bytes | 0 bytes/s, done.
Total 9 (delta 7), reused 0 (delta 0)
remote: Executing Jenkins build.
remote:
remote: You can track your build at https://jenkins-namespace.rhcloud.com/job/app-build
remote:
remote: Waiting for build to schedule......
remote: **BUILD FAILED/CANCELLED**
remote: Please see the Jenkins log for more details via 'rhc tail'
remote: !!!!!!!!
remote: Deployment Halted!
remote: If the build failed before the deploy step, your previous
remote: build is still running. Otherwise, your application may be
remote: partially deployed or inaccessible.
remote: Fix the build and try again.
remote: !!!!!!!!
remote: An error occurred executing 'gear postreceive' (exit code: 1)
remote: Error message: CLIENT_ERROR: Failed to execute: 'control post-receive' for /var/lib/openshift/52UUID/jenkins-client
remote:
remote: For more details about the problem, try running the command again with the '--trace' option.
To ssh://52UUID#app-namespace.rhcloud.com/~/git/app.git/
6a9fe46..a551871 master -> master
so I ran $rhc tail jenkins:
Jul 10, 2015 2:43:45 PM hudson.plugins.openshift.OpenShiftCloud hasCapacity
INFO: No capacity remaining. Not provisioning...
Jul 10, 2015 2:43:45 PM hudson.plugins.openshift.OpenShiftCloud provisionSlave
INFO: Not provisioning new builder due to lack of capacity
Jul 10, 2015 2:43:45 PM hudson.plugins.openshift.OpenShiftCloud provision
INFO: Provisioned 0 new nodes
Jul 10, 2015 2:43:45 PM hudson.plugins.openshift.OpenShiftCloud cancelItem
INFO: Cancelling Item
Jul 10, 2015 2:43:45 PM hudson.plugins.openshift.OpenShiftCloud cancelItem
WARNING: Build app-build appbldr has been canceled
So I guess I have lack of capacity. So I check $ rhc show-app app --gears quota:
Gear Cartridges Used Limit
------------------------ --------------------------------------------------- ------ -----
52UUID python-2.7 postgresql-9.2 cron-1.4 jenkins-client-1 0.9 GB 1 GB
0.9GB out of 1GB. I already deleted logs and ran rhc tidy command. My latest db backup had 14MB (two days ago, have not tested if it's full though) and my app has 35MB in files, images, js libraries etc.
I do not want to deal with capacity problem here, rather how much does jenkins push need to be successful?
I am a student and I use openshift for a student project, so I would like to avoid upgrade at the moment. Thanks.
Well, No capacity remaining. means I have 3/3 gears, not disk usage. More info.
I am trying to deploy rails 3 application on using AWS instance. For deployment, I am using opsworks services and also accessing private github repository for deployment. When start the instance, getting following errors.
[2015-03-10T04:34:32+00:00] INFO: Running queued delayed notifications before re-raising exception
[2015-03-10T04:34:32+00:00] ERROR: Running exception handlers
[2015-03-10T04:34:32+00:00] ERROR: Exception handlers complete
[2015-03-10T04:34:32+00:00] FATAL: Stacktrace dumped to /var/lib/aws/opsworks/cache.stage1/chef-stacktrace.out
[2015-03-10T04:34:32+00:00] ERROR: git[Download Custom Cookbooks] (opsworks_custom_cookbooks::checkout line 29) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '128'
---- Begin output of git ls-remote "https://github.com/user_name/repository.git" HEAD ----
STDOUT:
STDERR: fatal: could not read Username for 'https://github.com': No such device or address
---- End output of git ls-remote "https://github.com/user_name/repository.git" HEAD ----
Ran git ls-remote "https://github.com/user_name/repository.git" HEAD returned 128
[2015-03-10T04:34:32+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Please help.
The solution for me was to edit App Repository URL in the OpsWorks stack. Change it from:
https://github.com/user_name/repository.git
to
git#github.com:user_name/repository.git