Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error executing action create on resource 'jenkins_job[build_radar]'" #36

Open
diraol opened this issue Jul 9, 2016 · 0 comments
Open
Labels

Comments

@diraol
Copy link
Member

diraol commented Jul 9, 2016

Erro na execução do script bootstrap.sh.

* remote_file[/var/chef/cache/update-center.json] action create_if_missing (up to date)

================================================================================
Error executing action `create` on resource 'jenkins_job[build_radar]'
================================================================================

Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '255'
---- Begin output of java -jar /var/chef/cache/jenkins-cli.jar -s http://localhost:8080 create-job build_radar < /var/chef/cache/jobRadar_config.xml ----
STDOUT: 
STDERR: hudson.security.AccessDeniedException2: anonymous is missing the Overall/Read permission
    at hudson.security.ACL.checkPermission(ACL.java:63)
    at hudson.model.Node.checkPermission(Node.java:441)
    at hudson.cli.CLICommand.main(CLICommand.java:236)
    at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:326)
    at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:301)
    at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:260)
    at hudson.remoting.UserRequest.perform(UserRequest.java:121)
    at hudson.remoting.UserRequest.perform(UserRequest.java:49)
    at hudson.remoting.Request$2.run(Request.java:325)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    at hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63)
    at hudson.remoting.CallableDecoratorAdapter.call(CallableDecoratorAdapter.java:18)
    at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
    at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
---- End output of java -jar /var/chef/cache/jenkins-cli.jar -s http://localhost:8080 create-job build_radar < /var/chef/cache/jobRadar_config.xml ----
Ran java -jar /var/chef/cache/jenkins-cli.jar -s http://localhost:8080 create-job build_radar < /var/chef/cache/jobRadar_config.xml returned 255

Cookbook Trace:
---------------
/home/leofl/implantacao/cookbooks/jenkins/libraries/_executor.rb:79:in `execute!'
/home/leofl/implantacao/cookbooks/jenkins/libraries/job.rb:125:in `block (2 levels) in <class:JenkinsJob>'
/home/leofl/implantacao/cookbooks/jenkins/libraries/job.rb:124:in `block in <class:JenkinsJob>'

Resource Declaration:
---------------------
# In /home/leofl/implantacao/cookbooks/radar/recipes/jenkins.rb

 46: jenkins_job 'build_radar' do
 47:   config xml_build
 48:   action :create
 49: end
 50: 

Compiled Resource:
------------------
# Declared in /home/leofl/implantacao/cookbooks/radar/recipes/jenkins.rb:46:in `from_file'

jenkins_job("build_radar") do
  action [:create]
  retries 0
  retry_delay 2
  guard_interpreter :default
  cookbook_name :radar
  recipe_name "jenkins"
  config "/var/chef/cache/jobRadar_config.xml"
end


Running handlers:
[2016-07-09T17:16:07-03:00] ERROR: Running exception handlers
Running handlers complete
[2016-07-09T17:16:07-03:00] ERROR: Exception handlers complete
[2016-07-09T17:16:07-03:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 1 resources updated in 39.837987145 seconds
[2016-07-09T17:16:07-03:00] ERROR: jenkins_job[build_radar] (radar::jenkins line 46) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '255'
---- Begin output of java -jar /var/chef/cache/jenkins-cli.jar -s http://localhost:8080 create-job build_radar < /var/chef/cache/jobRadar_config.xml ----
STDOUT: 
STDERR: hudson.security.AccessDeniedException2: anonymous is missing the Overall/Read permission
        at hudson.security.ACL.checkPermission(ACL.java:63)
        at hudson.model.Node.checkPermission(Node.java:441)
        at hudson.cli.CLICommand.main(CLICommand.java:236)
        at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:326)
        at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:301)
        at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:260)
        at hudson.remoting.UserRequest.perform(UserRequest.java:121)
        at hudson.remoting.UserRequest.perform(UserRequest.java:49)
        at hudson.remoting.Request$2.run(Request.java:325)
        at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
        at hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63)
        at hudson.remoting.CallableDecoratorAdapter.call(CallableDecoratorAdapter.java:18)
        at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
        at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
---- End output of java -jar /var/chef/cache/jenkins-cli.jar -s http://localhost:8080 create-job build_radar < /var/chef/cache/jobRadar_config.xml ----
Ran java -jar /var/chef/cache/jenkins-cli.jar -s http://localhost:8080 create-job build_radar < /var/chef/cache/jobRadar_config.xml returned 255
[2016-07-09T17:16:08-03:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
@diraol diraol added the bug label Jul 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant