Error on pod setup in new mac - ios

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

Related

yarn add react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context#react-native-community/masked-view

I am running the below command and getting the error Command failed.
Exit code: 128 .... I have generated SSHKey and copied it to my Github profile....
yarn add react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context#react-native-community/masked-view
yarn add v1.22.10
[1/4] 🔍 Resolving packages...
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads ssh://git#github.com/react-native-community/masked-view.git
Directory: /Users/admin/Desktop/NBNB
Output:
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Considering https://github.com/react-native-community/masked-view.git is not accessible, it must be:
a non-existent repository (hence your error message)
or a private repository, in which case double-check if your GitHub user account is indeed a member of the react-native-community organisation.
Check also if ssh -Tv git#github.com does end up with a "Welcome" message including the expected GitHub user account.

Chef - Recipe package fails to find candidate version

I am installing and configuring a very basic Jenkins installation using Chef. When i attempt to run the following recipe:
include_recipe "apt::default"
apt_repository "jenkins" do
uri "http://pkg.jenkins-ci.org/debian"
key "http://pkg.jenkins-ci.org/debian/jenkins-ci.org"
components ["binary/"]
action :add
end
package "jenkins" do
version '2.62'
end
service "jenkins" do
supports [:stop, :start, :restart]
action [:start, :enable]
end
I receive the following errors (displayed in the terminal):
192.168.9.207 [2017-05-25T10:50:58-04:00] ERROR: Running exception handlers
192.168.9.207 Running handlers complete
192.168.9.207 [2017-05-25T10:50:58-04:00] ERROR: Exception handlers complete
192.168.9.207 Chef Client failed. 2 resources updated in 20 seconds
192.168.9.207 [2017-05-25T10:50:58-04:00] INFO: Sending resource update report (run-id: 2b59b80e-b787-4e93-805b-837b4d3264fb)
192.168.9.207 [2017-05-25T10:50:58-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
192.168.9.207 [2017-05-25T10:50:58-04:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
192.168.9.207 [2017-05-25T10:50:58-04:00] ERROR: apt_package[jenkins] (jenkins-installation::default line 21) had an error: Chef::Exceptions::Package: No candidate version available for jenkins
192.168.9.207 [2017-05-25T10:50:58-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
The error explains that there is no candidate version available for Jenkins. After the run fails, if I run sudo apt-get update on the managed node I receive the following error:
Err http://pkg.jenkins-ci.org trusty/binary/ amd64 Packages
404 Not Found
Err http://pkg.jenkins-ci.org trusty/binary/ i386 Packages
404 Not Found
Ign http://pkg.jenkins-ci.org trusty/binary/ Translation-en_US
Ign http://pkg.jenkins-ci.org trusty/binary/ Translation-en
Fetched 5,976 kB in 3s (1,528 kB/s)
W: Failed to fetch http://pkg.jenkins-ci.org/debian/dists/trusty/binary//binary-amd64/Packages 404 Not Found
W: Failed to fetch http://pkg.jenkins-ci.org/debian/dists/trusty/binary//binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
I am fairly new to Chef. This error appears to be related to retrieving a Jenkins package, however I am not sure how to remedy this error. Please let me know if additional information is required to troubleshoot this issue.
Thank you to everybody in advance for any guidance you are able to provide. I have searched through the Chef documentation but haven't seen much aside from specifying the package version: https://docs.chef.io/resource_package.html.
Specify distribution 'binary/' instead of components 'binary/'. This will fix the 404s that you get because of trusty/binary/.
At least, this is what I see from the "official" Jenkins cookbook, which I btw. suggest to use.
EDIT: So the result would be:
apt_repository "jenkins" do
uri "http://pkg.jenkins-ci.org/debian"
key "http://pkg.jenkins-ci.org/debian/jenkins-ci.org"
distribution "binary/"
end

Openshift git push fails without or with jenkins

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

Installing new pod resulting in a failed attempt?

I'm trying to install a new pod, and after the terminal window displays "Analyzing Dependencies", it stays there for a good 2-5 min and then it shows the following:
[!] An error occurred while performing `git pull` on repo `master`.
[!] /usr/bin/git pull --ff-only
error: RPC failed; result=35, HTTP code = 0
fatal: The remote end hung up unexpectedly
How can I fix this?

Unable to add three.dart package from their Git repository

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'

Resources