REE Installation - ruby

I am trying to Install Ruby EE on my machine but am not able to.
ping production.cf.rubygems.org also works. What may be the problem?
prashanth#prashanth-laptop:~/Downloads$ rvm install ree
Installing Ruby Enterprise Edition from source to: /usr/local/rvm/rubies/ree-1.8.7-2011.03
ree-1.8.7-2011.03 - #fetching (ruby-enterprise-1.8.7-2011.03)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 184 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0Warning: Failed to create the file ruby-enterprise-1.8.7-2011.03.tar.gz
0 7713k 0 16150 0 0 3108 0 0:42:21 0:00:05 0:42:16 17497
curl: (23) Failed writing body (0 != 16150)
ERROR: There was an error, please check /usr/local/rvm/log/ree-1.8.7-2011.03/*.log. Next we'll try to fetch via http.
Trying http:// URL instead.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 184 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0Warning: Failed to create the file ruby-enterprise-1.8.7-2011.03.tar.gz
0 7713k 0 16150 0 0 4375 0 0:30:05 0:00:03 0:30:02 18692
curl: (23) Failed writing body (0 != 16150)
ERROR: There was an error, please check /usr/local/rvm/log/ree-1.8.7-2011.03/*.log
ERROR: There has been an error while trying to fetch the source.
Halting the installation.
Thanks.

The message:
Warning: Failed to create the file ruby-enterprise-1.8.7-2011.03.tar.gz
Is your clue. You're running a machine-wide install of RVM, but trying to install a new ruby as a user without root access.
Try:
rvmsudo rvm install ree
Or login as root and retry the command.

Related

Trouble getting started with Spring Boot: Error: Could not find or load main class

I got this error when trying to mess around with Spring Boot. I create a new project with the initializr. Got JDK and Maven installed. I run the command ./mvnw spring-boot:run and get
./mvnw: line 280: /Users/alesh/projects/spring-boot-demo/.mvn/wrapper/maven-wrapper.properties: No such file or directory
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file
Warning: /Users/alesh/projects/spring-boot-demo/.mvn/wrapper/maven-wrapper.jar:
Warning: No such file or directory
1 58727 1 1033 0 0 4152 0 0:00:14 --:--:-- 0:00:14 4251
curl: (23) Failure writing output to destination
Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
mvn spring-boot:run
Running this worked for me. Looks like nobody else on the internet has had this problem, at least nobody for whom the solution wasn't obvious. If I'm missing anything please let me know!

All attempts to get a Google authentication bearer token failed, returning an empty token

What I need help with / What I was wondering
tfds.load failure
import tensorflow as tf
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
import tensorflow_datasets as tfds
tfds.load('glue/sst2', download=True, try_gcs=True, split="validation")
Stack trace
2021-01-09 10:57:42.393771: E tensorflow/core/platform/cloud/curl_http_request.cc:614] The transmission of request 0x7fcf41a30f60 (URI: https://www.googleapis.com/oauth2/v4/token) has been stuck at 0 of 0 bytes for 61 seconds and will be aborted. CURL timing information: lookup time: 0.001158 (No error), connect time: 0 (No error), pre-transfer time: 0 (No error), start-transfer time: 0 (No error) 2021-01-09 10:57:42.397383: W tensorflow/core/platform/cloud/google_auth_provider.cc:184] All attempts to get a Google authentication bearer token failed, returning an empty token. Retrieving token from files failed with "Unavailable: Error executing an HTTP request: libcurl code 42 meaning 'Operation was aborted by an application callback', error details: Callback aborted". Retrieving token from GCE failed with "Failed precondition: Error executing an HTTP request: libcurl code 6 meaning 'Couldn't resolve host name', error details: Couldn't resolve host 'metadata'". 2021-01-09 10:58:46.099418: E tensorflow/core/platform/cloud/curl_http_request.cc:614] The transmission of request 0x7fcf3304b4e0 (URI: https://www.googleapis.com/storage/v1/b/tfds-data/o/datasets%2Fglue?fields=size%2Cgeneration%2Cupdated) has been stuck at 0 of 0 bytes for 61 seconds and will be aborted. CURL timing information: lookup time: 0.000995 (No error), connect time: 0 (No error), pre-transfer time: 0 (No error), start-transfer time: 0 (No error) 2021-01-09 11:00:01.098669: E tensorflow/core/platform/cloud/curl_http_request.cc:614] The transmission of request 0x7fcf3304b4e0 (URI: https://www.googleapis.com/storage/v1/b/tfds-data/o/datasets%2Fglue?fields=size%2Cgeneration%2Cupdated) has been stuck at 0 of 0 bytes for 61 seconds and will be aborted. CURL timing information: lookup time: 0.00099 (No error), connect time: 0 (No error), pre-transfer time: 0 (No error), start-transfer time: 0 (No error) 2021-01-09 11:02:05.646245: E tensorflow/core/platform/cloud/curl_http_request.cc:614] The transmission of request 0x7fcf33290910 (URI: https://www.googleapis.com/storage/v1/b/tfds-data/o/datasets%2Fglue?fields=size%2Cgeneration%2Cupdated) has been stuck at 0 of 0 bytes for 61 seconds and will be aborted. CURL timing information: lookup time: 0.001604 (No error), connect time: 0 (No error), pre-transfer time: 0 (No error), start-transfer time: 0 (No error)
What I've tried so far
I use VPN, but It was useless at the time
It would be nice if...
Could we have done anything to make things better (documentation, etc.)?
Environment information
(if applicable)
Operating System: mac os 10.15.7
Python version: 3.7.9
tensorflow-datasets version: 4.2.0
tensorflow version: 2.4.0
tensorflow-metadata version: 0.26.0
Update
system information
MacOS 12.5.1
Python 3.9
tensorflow 2.9.1
tensorflow-datasets 4.6.0
Solution
from tensorflow_datasets.core.utils import gcs_utils
gcs_utils._is_gcs_disabled = True
tfds.load('glue/sst2', data_dir='path/to/somewhere', try_gcs=False)
Check #807 for more information, just a little bit simplify.
Old
If you are in the mainland of China, GCS cannot be accessed inside thanks to firewalls.
But datasets(i tried MNIST, COCO) can be downloaded without GCS authetication. Just change _is_gcs_disabled = True as stated in this issue.

New relic infra agent not restarted

We are using New Relic infrastructure agent from last 2 yrs but after 13th Nov 2019 suddenly its not working. Then I update the version of newrelic to 5.2.3.131. But the problem is not resolve. The problem is i’m unable to restart new relic infra agent.
I used below commands…
echo “license_key: ${NEW_RELIC_LICENSE_KEY}” | sudo tee /etc/newrelic-infra.yml
sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/6/x86_64/newrelic-infra.repo
sudo yum -q makecache -y --disablerepo=’*’ --enablerepo=‘newrelic-infra’
sudo yum install newrelic-infra -y
sudo initctl restart newrelic-infra
Application hosted aws elastic beanstalk.
I’m getting initctl: Unknown instance.
Deatails error are below…
INFO [7168] - [Application update pem.pem-staging.f6e105eb760.20191117-164558#668/AppDeployStage0/EbExtensionPostBuild/Infra-EmbeddedPostBuild/postbuild_1_PEM/Command 04-configure_new_relic] : Activity execution failed, because: license_key: XXXXXXXXXXXXXXXX
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
100 239 100 239 0 0 2091 0 --:–:-- --:–:-- --:–:-- 2096
Loaded plugins: priorities, update-motd, upgrade-helper
Package newrelic-infra-1.7.1-1.x86_64 already installed and latest version
Nothing to do
initctl: Unknown instance:
(ElasticBeanstalk::ExternalInvocationError)
in my case it looks:
.ebextensions/new_relic.yml
packages:
yum:
newrelic-sysmond: []
rpm:
newrelic: http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm
commands:
"01":
command: nrsysmond-config --set license_key=XXXXXXXXXXXXXXXXXXXX
"02":
command: echo hostname=$SERVER_URL >> /etc/newrelic/nrsysmond.cfg
"03":
command: /etc/init.d/newrelic-sysmond start
You might not need '02' command
Problem is new relic end. I have solved this temporarily by using below commands...
cat /etc/newrelic-infra.yml
ps aux | grep newrelic-infra
Just kill all processes returned by the ps command above with kill -9 pid1 pid2...
Then start the service with sudo initctl start newrelic-infra
It's now working fine.

how to deal "failed to connect to Kubernetes master ip"

I started learn Kubernetes, so I follow this guide https://kubernetes.io/docs/setup/turnkey/gce/
I got an error after I run "cluster/kube-up.sh"
Waiting up to 300 seconds for cluster initialization.
This will continually check to see if the API for kubernetes is reachable.
This may time out if there was some uncaught error during start up.
.........................................................................................................................................Cluster failed to initialize within 300 seconds.
Last output from querying API server follows:
% Total % Received % Xferd Average Speed Time Time Time current
             Dload Upload Total Spent Left speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to "[kubernetes-master (external IP)]"
So I tried to search about this error. And then found one solution. It said go to the "cluster/gce/config-default.sh"
secret: $(dd if=/dev/urandom iflag=fullblock bs=32 count=1 2>/dev/null | base64 | tr -d '\r\n')
And then change 'dd' to 'gdd'. So I modified config-default.sh, But it doesn't work.
I don't know how to fix it. Is there are any solution about this error ?̊̈ Also in the /var/logs there are no logs about Kubernetes. Where logs are saved ?̊̈
My Mac version: mas OS Mojave
version: 10.14.3
Looks like GDD is only available in MacOS, about the Kubernetes logs you can have a look at this other article. If you would have a Google Kubernetes Engine cluster it would be easier to check the log by looking at Stackdriver.

Server Unable to Start after deploying go app to Bluemix

We are unable to deploy our sample go web program to Bluemix. Server is trying to start and finally crashing without any error. Please let me know if any files needs modification.
View Our Code In GitHub
Build Log:-
Preparing to start the job...
Downloading build artifacts...
Target: https://api.ng.bluemix.net
Using manifest file /home/pipeline/4095d817-6887-4f7e-b317-c58c97c5afd7/manifest.yml
Creating app JoinSplit-20170529103009108 in org Subhadeep / space dev as subhadeep.bose#in.ibm.com...
OK
Creating route joinsplit-20170529103009108-anecdotal-menorah.mybluemix.net...
OK
Binding joinsplit-20170529103009108-anecdotal-menorah.mybluemix.net to JoinSplit-20170529103009108...
OK
Uploading JoinSplit-20170529103009108...
Uploading app files from: /home/pipeline/4095d817-6887-4f7e-b317-c58c97c5afd7
Uploading 165.2K, 34 files
Done uploading
OK
Starting app JoinSplit-20170529103009108 in org Subhadeep / space dev as subhadeep.bose#in.ibm.com...
Creating container
Successfully created container
Downloaded app package (437.8K)
-----> Download go 1.8.3
-----> Checking Godeps/Godeps.json file
-----> Installing godep v79
Download [https://buildpacks.cloudfoundry.org/dependencies/godep/godep-v79-linux-x64-9e37ce0f.tgz]
-----> Installing glide v0.12.3
Download [https://buildpacks.cloudfoundry.org/dependencies/glide/glide-v0.12.3-linux-x64-aa256363.tgz]
-----> Installing go 1.8.3
Download [https://buildpacks.cloudfoundry.org/dependencies/go/go1.8.3.linux-amd64-32ec5ac6.tar.gz]
-----> Running go build finalize
[31;1m**WARNING**[0m vendor/ directory does not exist.
[31;1m**WARNING**[0m Installing package '.' (default)
-----> Running: go install -tags cloudfoundry -buildmode pie .
Exit status 0
Staging complete
Uploading droplet, build artifacts cache...
Uploading build artifacts cache...
Uploading droplet...
Uploaded build artifacts cache (194B)
Uploaded droplet (2.7M)
Uploading complete
Successfully destroyed container
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 crashed
FAILED
Error restarting application: Start unsuccessful
TIP: use 'cf logs JoinSplit-20170529103009108 --recent' for more information
Finished: FAILED
Your code is listening on the hardcoded port "8081", not on the one provided by the Bluemix/Cloud Foundry environment. Try something like the following in your Main function:
err := http.ListenAndServe(":"+os.Getenv("PORT"), nil)
May be this link can help you out there are some Q&A are available on using go with Bluemix
https://developer.ibm.com/answers/questions/13591/about-using-go-with-bluemix.html

Resources