I:
-do some random changes
-git add them, commit and push
Then, the push goes somewhere like this
Counting objects: 13, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 825 bytes | 0 bytes/s, done.
Total 8 (delta 6), reused 0 (delta 0)
remote: : command not found
remote: An error occurred executing 'gear prereceive' (exit code: 127)
remote: Error message: CLIENT_ERROR: Failed to execute: 'control stop' for /var/lib/openshift/***/ruby
remote:
remote: For more details about the problem, try running the command again with the '--trace' option.
To ssh://***#treasurehunt-arakkun.rhcloud.com/~/git/treasurehunt.git/
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://***#treasurehunt-arakkun.rhcloud.com/~/git/treasurehunt.git/'
I tried to stop, force-stop, start and restart the app, with those results:
Failed to execute: 'control stop' for /var/lib/openshift/***/ruby< though the app actually Stopped
RESULT:
treasurehunt force stopped
Failed to execute: 'control start' for /var/lib/openshift/***/ruby < though the app actually Started
RESULT:
treasurehunt restarted
Then I created a jenkins app, and added a Jenkins client to the main app.
I do the same(random changes, add, commit, push), then it answer:
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 351 bytes | 0 bytes/s, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: Executing Jenkins build.
remote:
remote: You can track your build at https://jenkins-arakkun.rhcloud.com/job/treasurehunt-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/55f02e560c1e66355f000028/jenkins-client
remote:
remote: For more details about the problem, try running the command again with the '--trace' option.
To ssh://***#treasurehunt-arakkun.rhcloud.com/~/git/treasurehunt.git/
8a2c901..3481731 master -> master
This is the Jenkins log
Started by user Jenkins System Builder
Building remotely on treasurehuntbldr (treasurehunt-build) in workspace /var/lib/openshift/560fd2162d5271d21d00002a/app-root/runtime/repo
Checkout:repo / /var/lib/openshift/560fd2162d5271d21d00002a/app-root/runtime/repo - hudson.remoting.Channel#11e523:treasurehuntbldr
Using strategy: Default
Last Built Revision: Revision 8a2c90189bf2c4418fca52c612463d9334b68a37 (origin/HEAD, origin/master)
Checkout:repo / /var/lib/openshift/560fd2162d5271d21d00002a/app-root/runtime/repo - hudson.remoting.LocalChannel#6c5712
Wiping out workspace first.
Cloning the remote Git repository
Cloning repository origin
Fetching upstream changes from ssh://55f02e560c1e66355f000028#treasurehunt-arakkun.rhcloud.com/~/git/treasurehunt.git
Seen branch in repository origin/HEAD
Seen branch in repository origin/master
Commencing build of Revision a64bb56a363ac16c041d9908091be57dc7583f31 (origin/HEAD, origin/master)
Checking out Revision a64bb56a363ac16c041d9908091be57dc7583f31 (origin/HEAD, origin/master)
Warning : There are multiple branch changesets here
[repo] $ /bin/sh -xe /tmp/hudson5827404008790235239.sh
+ source /usr/lib/openshift/cartridge_sdk/bash/sdk
++ '[' false == true ']'
++ OO_BASH_SDK=true
+ alias 'rsync=rsync --delete-after -azS -e '\''/usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh'\'''
+ upstream_ssh=***#treasurehunt-arakkun.rhcloud.com
+ rm -f /var/lib/openshift/560fd2162d5271d21d00002a//app-deployments/current/metadata.json
+ marker_present force_clean_build
+ '[' -f /var/lib/openshift/560fd2162d5271d21d00002a/app-root/runtime/repo//.openshift/markers/force_clean_build ']'
+ set +e
+ rsync --delete-after -azS -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh '***#treasurehunt-arakkun.rhcloud.com:$OPENSHIFT_BUILD_DEPENDENCIES_DIR' /var/lib/openshift/560fd2162d5271d21d00002a/app-root/runtime/build-dependencies/
Warning: Permanently added 'treasurehunt-arakkun.rhcloud.com,172.16.4.63' (RSA) to the list of known hosts.
+ rsync --delete-after -azS -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh '***#treasurehunt-arakkun.rhcloud.com:$OPENSHIFT_DEPENDENCIES_DIR' /var/lib/openshift/560fd2162d5271d21d00002a/app-root/runtime/dependencies/
Warning: Permanently added 'treasurehunt-arakkun.rhcloud.com,172.16.4.63' (RSA) to the list of known hosts.
+ set -e
+ gear build
Building git ref 'origin/HEAD', commit a64bb56
No such file or directory - /var/lib/openshift/560fd2162d5271d21d00002a/app-root/runtime/repo/.openshift/action_hooks/pre_build
Build step 'Execute shell' marked build as failure
Archiving artifacts
Finished: FAILURE
Related
I do a tap and give me this error, I update brew and ruby and nothing.
Somebody can help me please?
> brew tap blackfireio/homebrew-blackfire
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Tapping blackfireio/blackfire
Cloning into '/usr/local/Homebrew/Library/Taps/blackfireio/homebrew-blackfire'...
remote: Enumerating objects: 23, done.
remote: Counting objects: 100% (23/23), done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 23 (delta 15), reused 4 (delta 0), pack-reused 0
Unpacking objects: 100% (23/23), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/blackfireio/homebrew-blackfire/Formula/blackfire-agent.rb
blackfire-agent: undefined method `prefer_64_bit?' for OS::Mac:Module
Error: Cannot tap blackfireio/blackfire: invalid syntax in tap!
I get the same error for a different formula https://github.com/GRASS-GIS/homebrew-grass-dev/issues/6 . I guess something it is a bug in home-brew as it is defined in homebrerw https://www.rubydoc.info/github/Homebrew/brew/OS%2FMac:prefer_64_bit%3F - just started the build again...
It was a bug in home-brew - working again
I am trying pod installation and pod setup in my new mac. But I got following issues on terminal. Anybody please could help me ?
$ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --progress
Cloning into 'master'...
remote: Counting objects: 2131130, done.
remote: Compressing objects: 100% (503/503), done.
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
There are two ways to do :-
1. It is related to your connections.If your connection isn't proper then you can get this error.So, whenever it happens you should again try to follow the same procedure of installation.
2. I dont think this is a cocoapods library issue.
Try to clone repo manually https://github.com/CocoaPods/Specs and then place it in ~/.cocoapods/repos/master
I am trying to pull the latest code pushed from another developer to the heroku deployed to my local system:
I executed following:
$ git pull heroku master failed
But I am getting the following error:
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 8 (delta 5), reused 1 (delta 0)
Unpacking objects: 100% (8/8), done.
From https://git.heroku.com/titan-demo
* branch master -> FETCH_HEAD
* [new branch] master -> heroku/master
Auto-merging db/schema.rb
CONFLICT (content): Merge conflict in db/schema.rb
Automatic merge failed; fix conflicts and then commit the result.
CONFLICT occurs in following file at that time the git could not auto merge the CONFLICT so you will remove the conflict in manually in this file db/schema.rb. the file conflict location is denoted as below syntax so you will remove unnecessary code and after you push the code.
// CONFLICT Example
<<<<<<<<<<<< HEAD *code from develop*
>>>>>>>>>>develop *code form your's*
I have a Java maven project that i deploy to Bluemix using cf push. Works like a charm. It has this manifest:
applications:
- services:
- Monitoring and Analytics-gm
- somedb
disk_quota: 1024M
hosts:
- someapp
name: someapp
path: target/someapp-0.0.2.war
domain: mybluemix.net
instances: 1
memory: 512M
However when I push my repository to hub.jazz.net and kick off build and deploy, the deploy step fails. I checked the artifacts in the build step and the war file got created.
The error message is:
Server error, status code: 400, error code: 170004, message: App staging failed in the buildpack compile phase
What do I miss?
Update
The last lines from the successful build script:
[INFO] Packaging webapp
[INFO] Assembling webapp [someapp] in [/home/jenkins/workspace/8c791c21-d195-9b03-f3ab-1c2cb5a8a9b4/0d82aa76-8fb2-463b-b1d6-6ec80a763706/target/someapp-0.0.2]
[INFO] Processing war project
[INFO] Copying webapp resources [/home/jenkins/workspace/8c791c21-d195-9b03-f3ab-1c2cb5a8a9b4/0d82aa76-8fb2-463b-b1d6-6ec80a763706/src/main/webapp]
[INFO] Webapp assembled in [56 msecs]
[INFO] Building war: /home/jenkins/workspace/8c791c21-d195-9b03-f3ab-1c2cb5a8a9b4/0d82aa76-8fb2-463b-b1d6-6ec80a763706/target/someapp-0.0.2.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.424 s
[INFO] Finished at: 2015-09-15T10:59:52+00:00
[INFO] Final Memory: 17M/27M
[INFO] ------------------------------------------------------------------------
Uploading artifacts ...
UPLOAD SUCCESSFUL
Total time: 2 seconds
Finished: SUCCESS
As you can see the target/someapp-0.0.2.war is build which is the one referred to in the deploy script
The last lines from the failed deploy script
cf --version
/usr/bin/cf-orig/cf version 6.7.0-IDS-2014-12-04T10:56:46+00:00
+ echo 'Target: https://api.ng.bluemix.net'
Target: https://api.ng.bluemix.net
+ source _deploy.sh
++ cf push someapp
Updating app someapp in org someuser#ibm.com / space somespace as someuser#ibm.com...
OK
Uploading someapp...
Uploading app files from: /home/jenkins/workspace/8c791c21-d195-9b03-f3ab-1c2cb5a8a9b4/7c0cd4a8-8ecf-4020-ae82-fc567dd666e9
Uploading 1.9M, 37 files
Done uploading
OK
Stopping app app someapp in org someuser#ibm.com / space somespace as someuser#ibm.com...
OK
Starting app someapp in org someuser#ibm.com / space somespace as someuser#ibm.com...
-----> Downloaded app package (3.9M)
-----> Downloaded app buildpack cache (4.0K)
FAILED
Server error, status code: 400, error code: 170004, message: App staging failed in the buildpack compile phase
TIP: use 'cf logs someapp --recent' for more information
Build step 'Execute shell' marked build as failure
Finished: FAILURE
log from cf logs someapp --recent
2015-09-15T22:53:49.75+0800 [API/5] OUT Updated app with guid 0ac55e94-12b6-490c-99a9-22dfd96ef293 ({"name"=>"someapp"})
2015-09-15T22:54:06.06+0800 [API/5] OUT Updated app with guid 0ac55e94-12b6-490c-99a9-22dfd96ef293 ({"state"=>"STOPPED"})
2015-09-15T22:54:09.68+0800 [DEA/3] OUT Got staging request for app with id 0ac55e94-12b6-490c-99a9-22dfd96ef293
2015-09-15T22:54:15.04+0800 [API/6] OUT Updated app with guid 0ac55e94-12b6-490c-99a9-22dfd96ef293 ({"state"=>"STARTED"})
2015-09-15T22:54:15.22+0800 [STG/3] OUT -----> Downloaded app package (3.9M)
2015-09-15T22:54:15.40+0800 [STG/3] OUT -----> Downloaded app buildpack cache (4.0K)
2015-09-15T22:54:15.84+0800 [STG/0] OUT -----> Liberty Buildpack Version: v1.22-20150824-1104
2015-09-15T22:54:15.84+0800 [STG/0] ERR E, [2015-09-15T14:54:15.846523 #56] ERROR -- /var/vcap/data/dea_next/admin_buildpacks/b1841a6c-5f84-4c40-ac86-9f4d5e8f0643_e788f7b61c5fadd2fec138a1417cd3e1d345df32/lib/liberty_buildpack/buildpack.rb:50:in `rescue in drive_buildpack_with_logger': Compile failed with exception #<RuntimeError: No supported application type was detected>
2015-09-15T22:54:15.84+0800 [STG/0] ERR No supported application type was detected
2015-09-15T22:54:15.85+0800 [STG/0] OUT Staging failed: Buildpack compilation step failed
2015-09-15T22:54:16.70+0800 [API/6] ERR encountered error: App staging failed in the buildpack compile phase
I tried:
no path: in manifest.yml
path: target/someapp-0.0.2.war (that works on local cf push)
path: someapp-0.0.2.war
None of them worked
Aaarrgghh..... 5 hours of my life gone.
I deleted the project and recreated it. When checking the Build Archive Directory it had the entry target (seems to get added when you select mvn). Despite the fact that I tried with path: someapp-0.0.2.war, that didn't work.
Only after removing target and setting path: target/someapp-0.0.2.war the now clean project did build.
So lesson learned: When switching to a mvn build, remove the target from the Build Archive Directory
Yeah usually the error you got means if wasn't able to find the source for your app or the source for the app is wrong... You could also try adding the following line to manifest.yml.
buildpack: liberty-for-java
Your new manifest would be.
applications:
- services:
- Monitoring and Analytics-gm
- somedb
disk_quota: 1024M
hosts:
- someapp
name: someapp
path: target/someapp-0.0.2.war
buildpack: liberty-for-java
domain: mybluemix.net
instances: 1
memory: 512M
I tried adding the three/three.dart package from their Git repository to my project. I did that as mentioned here. But running pub get from the editor gives the following error:
Pub get failed, [1] Resolving dependencies... (0.1s)
Git error. Command: git fetch
fatal: Not a git repository (or any of the parent directories): .git
../../../../../../mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/git.dart 47 run.<fn>
dart:isolate _RawReceivePortImpl._handleMessage
This is an unexpected error. Please run
pub --trace 'get'
and include the results in a bug report on http://dartbug.com/new.
** Warning: Application may fail to run since packages did not get installed.Try running pub get again. **
Pub get failed, [1] Resolving dependencies... (0.1s)
Git error. Command: git fetch
fatal: Not a git repository (or any of the parent directories): .git
../../../../../../mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/git.dart 47 run.<fn>
dart:isolate _RawReceivePortImpl._handleMessage
This is an unexpected error. Please run
pub --trace 'get'
and include the results in a bug report on http://dartbug.com/new.
**
Warning: Application may fail to run since packages did not get installed.Try running pub get again. **
I do have git installed on my system. I run Ubuntu 14.04 if that's relevant.
Edit:
I tried pub --trace get and got this:
Resolving dependencies...
Git error. Command: git fetch
fatal: Not a git repository (or any of the parent directories): .git
This was followed by a long log message.
Here is pubspec.yaml file:
dependencies:
browser: any
three:
git:
url: 'git://github.com/threeDart/three.dart.git'
Got it to work finally. I specified the version along with the URL to the Git repo. Here is my final pubspec:
dependencies:
browser: any
three:
git: git://github.com/threeDart/three.dart.git
version: '>=0.2.5+1 <0.3.0'
I had to specify the version range for the package along with the link to the git repository.
dependencies:
browser: any
three:
git: git://github.com/threeDart/three.dart.git
version: '>=0.2.5+1 <0.3.0'