Connection failed: 404 – Not Found

scmuser created the topic: standalone-pom: Connection failed: 404 – Not Found

Error –

[ERROR] Failed to execute goal org.sonatype.plugins:nexus-m2settings-maven-plugin:1.6.6:download (default-cli) on projec
t standalone-pom: Connection failed: 404 - Not Found -> [Help 1]
[ERROR]

Solution –

Works as expected (only pro 2.7+) allowed.
Tagged :

Nexus – Deployment failed: repository element was not specified in the

scmuser created the topic: Nexus – Deployment failed: repository element was not specified in the

I am facing following error…

Downloaded: repo.maven.apache.org/maven2/org/codehau...exus-utils-1.5.6.jar (245 KB a
t 573.0 KB/sec)
[INFO]
[INFO] BUILD FAILURE
[INFO]
[INFO] Total time: 9.923 s
[INFO] Finished at: 2015-09-05T16:32:03+05:30
[INFO] Final Memory: 21M/205M
[INFO]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project my-ma
ven: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -Dal
tDeploymentRepository=id::layout::url parameter -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] cwiki.apache.org/confluence/display/MAVE...joExecutionException
Tagged :

Nexus – Failed to deploy artifacts: Could not transfer artifact

scmuser created the topic: Nexus – Failed to deploy artifacts: Could not transfer artifact

[INFO]
[INFO] BUILD FAILURE
[INFO]
[INFO] Total time: 6.457 s
[INFO] Finished at: 2015-09-05T16:44:40+05:30
[INFO] Final Memory: 11M/165M
[INFO]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project my-maven: Failed to deploy artifacts: Could not transfer artifact com.scmgalaxy.mavensample:my-maven:jar:3.0 from/to deployment ( uvo193bnk02rz2cuv74.vm.cld.sr:8081/nexus...positories/releases/ ): Failed to transfer file: uvo193bnk02rz2cuv74.vm.cld.sr:8081/nexus...3.0/my-maven-3.0.jar . Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] cwiki.apache.org/confluence/display/MAVE...joExecutionException
Tagged :

Difference between Jfrog and Nexus

pasupuleti2 created the topic: difference between Jfrog and Nexus

What are the difference between Jfrog and Nexus?
Which Artifact is good to Jenkins, C#, .Net, C and Java technologies?

-Saritha

rajeshkumar replied the topic: difference between Jfrog and Nexus

I guess you question was difference between Nexus and Artifactory. Jfrog is the company name who developed the software called Artifactory.

Please check it out google to find the diff between Nexus n Artifcatory
www.jfrog.com/blog/artifactory-vs-nexus-integration-matrix/
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

How to generate the pre populated information in metadata.rb in chef?

rajeshkumar created the topic: How to generate the pre populated information in metadata.rb in chef?

How to generate the pre populated information in metadata.rb in chef

You can configure the values in my knife.rb:

cookbookcopyright “Rajesh Kumar”
cookbooklicense “apachev2”
cookbook_email “rajesh@scmgalaxy.com”

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Error: Could not find cookbook cookbooks_test in your cookbook path, sk

rajeshkumar created the topic: ERROR: Could not find cookbook cookbooks_test in your cookbook path, sk

Error while uploading the cookbooks….

> knife cookbook upload cookbooks_test
ERROR: Could not find cookbook cookbooks_test in your cookbook path, skipping it
ERROR: Failed to upload 1 cookbook.

Solution:

You can pass path of the cookbooks via commend line using…

knife cookbook upload cookbooks_test -o /path/to/cookbook

Also, you can set the path in .chef/knife.rb. If .chef/knife.rb is missing, you can following commands…

knife configure --initial

But if you install the startter kit from manage.chef.io, you just need to replace all the files including .knife.rb

if you cookbooks files many places then you can set your .knife.rb like as below;

cookbook_path [ '.', '..', './cookbooks', '~/git/chef' ]

If you are still getting this error, make sure the metadata.rb has same name which you using to upload the cookbooks.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Fatal: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully

rajeshkumar created the topic: FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully

FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully

> knife bootstrap uvo1t75faaktzc532w6.vm.cld.sr -x root -P Br356YS0iy --sudo

Doing old-style registration with the validation key at /Users/rajesh.kumar/chef-repo/.chef/scmgalaxy-validator.pem...
Delete your validation key in order to use your user credentials instead

Connecting to uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr
> Existing Chef installation detected
uvo1t75faaktzc532w6.vm.cld.sr Starting first Chef Client run...
uvo1t75faaktzc532w6.vm.cld.sr [2015-08-20T12:01:37-04:00] WARN:
uvo1t75faaktzc532w6.vm.cld.sr * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
uvo1t75faaktzc532w6.vm.cld.sr SSL validation of HTTPS requests is disabled. HTTPS connections are still
uvo1t75faaktzc532w6.vm.cld.sr encrypted, but chef is not able to detect forged replies or man in the middle
uvo1t75faaktzc532w6.vm.cld.sr attacks.
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr To fix this issue add an entry like this to your configuration file:
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr ```
uvo1t75faaktzc532w6.vm.cld.sr # Verify all HTTPS connections (recommended)
uvo1t75faaktzc532w6.vm.cld.sr ssl_verify_mode :verify_peer
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr # OR, Verify only connections to chef-server
uvo1t75faaktzc532w6.vm.cld.sr verify_api_cert true
uvo1t75faaktzc532w6.vm.cld.sr ```
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr To check your SSL configuration, or troubleshoot errors, you can use the
uvo1t75faaktzc532w6.vm.cld.sr `knife ssl check` command like so:
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr ```
uvo1t75faaktzc532w6.vm.cld.sr knife ssl check -c /etc/chef/client.rb
uvo1t75faaktzc532w6.vm.cld.sr ```
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr Starting Chef Client, version 11.16.2
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr ================================================================================
uvo1t75faaktzc532w6.vm.cld.sr Chef encountered an error attempting to load the node data for "C2445575914.domain"
uvo1t75faaktzc532w6.vm.cld.sr ================================================================================
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr Authentication Error:
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr Failed to authenticate to the chef server (http 401).
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr Server Response:
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr Failed to authenticate as 'C2445575914.domain'. Ensure that your node_name and client key are correct.
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr Relevant Config Settings:
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr chef_server_url " api.opscode.com/organizations/scmgalaxy "
uvo1t75faaktzc532w6.vm.cld.sr node_name "C2445575914.domain"
uvo1t75faaktzc532w6.vm.cld.sr client_key "/etc/chef/client.pem"
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr If these settings are correct, your client_key may be invalid, or
uvo1t75faaktzc532w6.vm.cld.sr you may have a chef user with the same client name as this node.
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr [2015-08-20T12:01:41-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
uvo1t75faaktzc532w6.vm.cld.sr Chef Client failed. 0 resources updated in 3.598799916 seconds
uvo1t75faaktzc532w6.vm.cld.sr [2015-08-20T12:01:41-04:00] ERROR: 401 "Unauthorized"
uvo1t75faaktzc532w6.vm.cld.sr [2015-08-20T12:01:41-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

rajeshkumar replied the topic: FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited u

I just login to the nodes and deleted all files under /etc/chef/ and rerun the commands and worked like charm.

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Error: Network Error: getaddrinfo: nodename nor servname provided, or

rajeshkumar created the topic: ERROR: Network Error: getaddrinfo: nodename nor servname provided, or

Issues –

knife bootstrap uvo1t75faaktzc532w6.vm.cld.sr -x root -P Br356YS0iy --sudo --node-name firefox
Doing old-style registration with the validation key at /Users/rajesh.kumar/.chef/scmgalaxy-validator.pem...
Delete your validation key in order to use your user credentials instead

Connecting to uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr
> Existing Chef installation detected
uvo1t75faaktzc532w6.vm.cld.sr Starting first Chef Client run...
uvo1t75faaktzc532w6.vm.cld.sr [2015-08-20T12:10:17-04:00] WARN:
uvo1t75faaktzc532w6.vm.cld.sr * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
uvo1t75faaktzc532w6.vm.cld.sr SSL validation of HTTPS requests is disabled. HTTPS connections are still
uvo1t75faaktzc532w6.vm.cld.sr encrypted, but chef is not able to detect forged replies or man in the middle
uvo1t75faaktzc532w6.vm.cld.sr attacks.
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr To fix this issue add an entry like this to your configuration file:
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr ```
uvo1t75faaktzc532w6.vm.cld.sr # Verify all HTTPS connections (recommended)
uvo1t75faaktzc532w6.vm.cld.sr ssl_verify_mode :verify_peer
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr # OR, Verify only connections to chef-server
uvo1t75faaktzc532w6.vm.cld.sr verify_api_cert true
uvo1t75faaktzc532w6.vm.cld.sr ```
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr To check your SSL configuration, or troubleshoot errors, you can use the
uvo1t75faaktzc532w6.vm.cld.sr `knife ssl check` command like so:
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr ```
uvo1t75faaktzc532w6.vm.cld.sr knife ssl check -c /etc/chef/client.rb
uvo1t75faaktzc532w6.vm.cld.sr ```
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr Starting Chef Client, version 11.16.2
uvo1t75faaktzc532w6.vm.cld.sr Creating a new client identity for firefox using the validator key.
uvo1t75faaktzc532w6.vm.cld.sr resolving cookbooks for run list: []
uvo1t75faaktzc532w6.vm.cld.sr Synchronizing Cookbooks:
uvo1t75faaktzc532w6.vm.cld.sr Compiling Cookbooks...
uvo1t75faaktzc532w6.vm.cld.sr [2015-08-20T12:10:21-04:00] WARN: Node firefox has an empty run list.
uvo1t75faaktzc532w6.vm.cld.sr Converging 0 resources
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr Running handlers:
uvo1t75faaktzc532w6.vm.cld.sr Running handlers complete
uvo1t75faaktzc532w6.vm.cld.sr Chef Client finished, 0/0 resources updated in 4.732276995 seconds
MAMSIT1026467:.chef rajesh.kumar$ knife bootstrap {{uvo1t75faaktzc532w6.vm.cld.sr}} --ssh-user {{root}} --ssh-password '{{Br356YS0iy}}' --sudo --use-sudo-password --node-name firefox1
Doing old-style registration with the validation key at /Users/rajesh.kumar/.chef/scmgalaxy-validator.pem...
Delete your validation key in order to use your user credentials instead

Connecting to {{uvo1t75faaktzc532w6.vm.cld.sr}}
ERROR: Network Error: getaddrinfo: nodename nor servname provided, or not known
Check your knife configuration and network settings

Solution –

I am not able to find the problem with the above commands but following commands is working perfectly....
knife bootstrap uvo1t75faaktzc532w6.vm.cld.sr -x root -P Br356YS0iy --sudo --node-name firefox

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

You must set your EDITOR environment variable or configure your editor

rajeshkumar created the topic: You must set your EDITOR environment variable or configure your editor

Error

knife node edit firefox
ERROR: You must set your EDITOR environment variable or configure your editor via knife.rb

Solution:

export EDITOR=$(which vi)
To persist this, add it to ~/.bashrc or ~/.bash_profile.
or
knife[:editor] = "vi" in knife.rb

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Waiting for remote response before bootstrap in windows

rajeshkumar created the topic: Waiting for remote response before bootstrap in windows

When i bootstrap windows node, i get following error..

knife bootstrap windows winrm uvo1eak9a5geec05f7z.vm.cld.sr --winrm-user administrator --winrm-password 'Rx4m7W4PQu' --node-name firefox_win --run-list 'recipe[snc_firefox]'

Waiting for remote response before bootstrap./opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/session.rb:48: warning: epoll is not supported on this platform
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/server.rb:45: warning: epoll is not supported on this platform
../opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/session.rb:48: warning: epoll is not supported on this platform
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/server.rb:45: warning: epoll is not supported on this platform
../opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/session.rb:48: warning: epoll is not supported on this platform
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/server.rb:45: warning: epoll is not supported on this platform
../opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/session.rb:48: warning: epoll is not supported on this platform
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/server.rb:45: warning: epoll is not supported on this platform
../opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/session.rb:48: warning: epoll is not supported on this platform
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/server.rb:45: warning: epoll is not supported on this platform
../opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/session.rb:48: warning: epoll is not supported on this platform
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/server.rb:45: warning: epoll is not supported on this platform
../opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/session.rb:48: warning: epoll is not supported on this platform
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/server.rb:45: warning: epoll is not supported on this platform
../opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/session.rb:48: warning: epoll is not supported on this platform
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/server.rb:45: warning: epoll is not supported on this platform
../opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/session.rb:48: warning: epoll is not supported on this platform
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/server.rb:45: warning: epoll is not supported on this platform
../opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/session.rb:48: warning: epoll is not supported on this platform
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/server.rb:45: warning: epoll is not supported on this platform
../opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/session.rb:48: warning: epoll is not supported on this platform
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/server.rb:45: warning: epoll is not supported on this platform
../opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/session.rb:48: warning: epoll is not supported on this platform
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/em-winrm-0.7.0/lib/em-winrm/server.rb:45: warning: epoll is not supported on this platform
ERROR: No response received from remote node after 1.98 minutes, giving up.
ERROR: WinRM::WinRMAuthorizationError: WinRM::WinRMAuthorizationError

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :