Comments (3)
I commented out the lines 99 and 212 of /providers/default.rb
and received the following output:
* directory[/Users/root/agents/osx_osx-basic-10105_01] action create
- create new directory /Users/root/agents/osx_osx-basic-10105_01
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'staff'
* execute[Move osx_osx-basic-10105_01 agent from intermidiate folder] action run
- execute cp -r /tmp/kitchen/cache/unpack_agent/vsts_agent/* /Users/root/agents/osx_osx-basic-10105_01
* execute[Configuring agent 'osx_osx-basic-10105_01'] action run
================================================================================
Error executing action `run` on resource 'execute[Configuring agent 'osx_osx-basic-10105_01']'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of ./Agent.Listener configure --unattended --replace --url "office.visualstudio.com" --pool "OXO Hub Eng Mac Pool" --agent "osx_osx-basic-10105_01" --work "_work" --runasservice --auth "PAT" --token "****************************************************" ----
STDOUT: >> End User License Agreements:
Building sources from a TFVC repository requires accepting the Team Explorer Everywhere End User License Agreement. This step is not required for building sources from Git repositories.
A copy of the Team Explorer Everywhere license agreement can be found at:
/Users/root/agents/osx_osx-basic-10105_01/externals/tee/license.html
>> Connect:
STDERR: Invalid configuration provided for url. Terminating unattended configuration.
---- End output of ./Agent.Listener configure --unattended --replace --url "office.visualstudio.com" --pool "OXO Hub Eng Mac Pool" --agent "osx_osx-basic-10105_01" --work "_work" --runasservice --auth "PAT" --token "****************************************************" ----
Ran ./Agent.Listener configure --unattended --replace --url "office.visualstudio.com" --pool "OXO Hub Eng Mac Pool" --agent "osx_osx-basic-10105_01" --work "_work" --runasservice --auth "PAT" --token "****************************************************" returned 1
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/vsts_agent/providers/default.rb
97: execute "Configuring agent '#{new_resource.agent_name}'" do
98: cwd "#{new_resource.install_dir}/bin"
99: # sensitive true if respond_to?(:sensitive)
100: command vsagentexec(args)
101: action :run
102: end
103:
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cache/cookbooks/vsts_agent/providers/default.rb:97:in `block (2 levels) in class_from_file'
execute("Configuring agent 'osx_osx-basic-10105_01'") do
action [:run]
default_guard_interpreter :execute
command "./Agent.Listener configure --unattended --replace --url \"office.visualstudio.com\" --pool \"OXO Hub Eng Mac Pool\" --agent \"osx_osx-basic-10105_01\" --work \"_work\" --runasservice --auth \"PAT\" --token \"****************************************************\" "
backup 5
cwd "/Users/root/agents/osx_osx-basic-10105_01/bin"
returns 0
user nil
declared_type :execute
cookbook_name "osx-basic"
domain nil
end
System Info:
------------
chef_version=13.0.118
platform=mac_os_x
platform_version=10.10.5
ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin14]
program_name=chef-client worker: ppid=731;start=13:29:13;
executable=/opt/chef/bin/chef-client
================================================================================
Error executing action `install` on resource 'vsts_agent[osx_osx-basic-10105_01]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
execute[Configuring agent 'osx_osx-basic-10105_01'] (/tmp/kitchen/cache/cookbooks/vsts_agent/providers/default.rb line 97) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of ./Agent.Listener configure --unattended --replace --url "office.visualstudio.com" --pool "OXO Hub Eng Mac Pool" --agent "osx_osx-basic-10105_01" --work "_work" --runasservice --auth "PAT" --token "****************************************************" ----
STDOUT: >> End User License Agreements:
Building sources from a TFVC repository requires accepting the Team Explorer Everywhere End User License Agreement. This step is not required for building sources from Git repositories.
A copy of the Team Explorer Everywhere license agreement can be found at:
/Users/root/agents/osx_osx-basic-10105_01/externals/tee/license.html
>> Connect:
STDERR: Invalid configuration provided for url. Terminating unattended configuration.
---- End output of ./Agent.Listener configure --unattended --replace --url "office.visualstudio.com" --pool "OXO Hub Eng Mac Pool" --agent "osx_osx-basic-10105_01" --work "_work" --runasservice --auth "PAT" --token "****************************************************" ----
Ran ./Agent.Listener configure --unattended --replace --url "office.visualstudio.com" --pool "OXO Hub Eng Mac Pool" --agent "osx_osx-basic-10105_01" --work "_work" --runasservice --auth "PAT" --token "****************************************************" returned 1
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/osx-basic/recipes/default.rb
19: vsts_agent agent1_name do
20: install_dir "#{agents_dir}/#{agent1_name}"
21: user "#{ENV['USER']}"
22: group 'staff'
23: vsts_url node['vsts_agent_test']['vsts_url']
24: vsts_pool node['vsts_agent_test']['vsts_pool']
25: vsts_token node['vsts_agent_test']['vsts_token']
26: action :install
27: end
28:
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cache/cookbooks/osx-basic/recipes/default.rb:19:in `from_file'
vsts_agent("osx_osx-basic-10105_01") do
action [:install]
updated true
updated_by_last_action true
default_guard_interpreter :default
declared_type :vsts_agent
cookbook_name "osx-basic"
recipe_name "default"
vsts_token "****************************************************"
install_dir "/Users/root/agents/osx_osx-basic-10105_01"
user "root"
group "staff"
vsts_url "office.visualstudio.com"
vsts_pool "OXO Hub Eng Mac Pool"
agent_name "osx_osx-basic-10105_01"
end
System Info:
------------
chef_version=13.0.118
platform=mac_os_x
platform_version=10.10.5
ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin14]
program_name=chef-client worker: ppid=731;start=13:29:13;
executable=/opt/chef/bin/chef-client
Running handlers:
[2017-05-04T13:32:55-07:00] ERROR: Running exception handlers
[2017-05-04T13:32:55-07:00] ERROR: Running exception handlers
Running handlers complete
[2017-05-04T13:32:55-07:00] ERROR: Exception handlers complete
[2017-05-04T13:32:55-07:00] ERROR: Exception handlers complete
Chef Client failed. 13 resources updated in 03 minutes 41 seconds
[2017-05-04T13:32:55-07:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
[2017-05-04T13:32:55-07:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
[2017-05-04T13:32:55-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-05-04T13:32:55-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-05-04T13:32:55-07:00] ERROR: vsts_agent[osx_osx-basic-10105_01] (osx-basic::default line 19) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[Configuring agent 'osx_osx-basic-10105_01'] (/tmp/kitchen/cache/cookbooks/vsts_agent/providers/default.rb line 97) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of ./Agent.Listener configure --unattended --replace --url "office.visualstudio.com" --pool "OXO Hub Eng Mac Pool" --agent "osx_osx-basic-10105_01" --work "_work" --runasservice --auth "PAT" --token "****************************************************" ----
STDOUT: >> End User License Agreements:
Building sources from a TFVC repository requires accepting the Team Explorer Everywhere End User License Agreement. This step is not required for building sources from Git repositories.
A copy of the Team Explorer Everywhere license agreement can be found at:
/Users/root/agents/osx_osx-basic-10105_01/externals/tee/license.html
>> Connect:
STDERR: Invalid configuration provided for url. Terminating unattended configuration.
---- End output of ./Agent.Listener configure --unattended --replace --url "office.visualstudio.com" --pool "OXO Hub Eng Mac Pool" --agent "osx_osx-basic-10105_01" --work "_work" --runasservice --auth "PAT" --token "****************************************************" ----
Ran ./Agent.Listener configure --unattended --replace --url "office.visualstudio.com" --pool "OXO Hub Eng Mac Pool" --agent "osx_osx-basic-10105_01" --work "_work" --runasservice --auth "PAT" --token "****************************************************" returned 1
[2017-05-04T13:32:55-07:00] ERROR: vsts_agent[osx_osx-basic-10105_01] (osx-basic::default line 19) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[Configuring agent 'osx_osx-basic-10105_01'] (/tmp/kitchen/cache/cookbooks/vsts_agent/providers/default.rb line 97) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of ./Agent.Listener configure --unattended --replace --url "office.visualstudio.com" --pool "OXO Hub Eng Mac Pool" --agent "osx_osx-basic-10105_01" --work "_work" --runasservice --auth "PAT" --token "****************************************************" ----
STDOUT: >> End User License Agreements:
Building sources from a TFVC repository requires accepting the Team Explorer Everywhere End User License Agreement. This step is not required for building sources from Git repositories.
A copy of the Team Explorer Everywhere license agreement can be found at:
/Users/root/agents/osx_osx-basic-10105_01/externals/tee/license.html
>> Connect:
STDERR: Invalid configuration provided for url. Terminating unattended configuration.
---- End output of ./Agent.Listener configure --unattended --replace --url "office.visualstudio.com" --pool "OXO Hub Eng Mac Pool" --agent "osx_osx-basic-10105_01" --work "_work" --runasservice --auth "PAT" --token "****************************************************" ----
Ran ./Agent.Listener configure --unattended --replace --url "office.visualstudio.com" --pool "OXO Hub Eng Mac Pool" --agent "osx_osx-basic-10105_01" --work "_work" --runasservice --auth "PAT" --token "****************************************************" returned 1
[2017-05-04T13:32:55-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
[2017-05-04T13:32:55-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Converge failed on instance <osx-basic-10105>. Please see .kitchen/logs/osx-basic-10105.log for more details
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
erichanko apex35erhank-touchbar vsts-agent-cookboo```
from azure-pipelines-agent-cookbook.
This time it looks like it's the URL. I am going to test using https://office.visualstudio.com
Edit: Fixing the URL resolved the above issue, so that may need to be added to the README. Other than that, there just needs to be a fix for the sensitive data output.
from azure-pipelines-agent-cookbook.
#8 fixed this issue. Closed.
from azure-pipelines-agent-cookbook.
Related Issues (20)
- Missing .service file on Windows 2012R2 HOT 2
- Cookbook doesn't install service properly on Chef 13 HOT 13
- Add UnitTests for travis-ci builds HOT 1
- Improve integration testing HOT 1
- Authentication error HOT 3
- On-Prem compatibility? HOT 3
- Default agent version? HOT 8
- username and password arguments should not be led with '--'
- No need to convert environment to string. HOT 1
- On macOS, launchd service does not work over ssh. HOT 1
- Pinning of seven_zip dependency using ~> prevents users from selecting version 3.0.0 HOT 1
- Add CHANGELOG.md file to repo
- Feature Request: Add support for deployment groups HOT 4
- chef 14 error: cannot load such file -- chef/mixin/language HOT 2
- Bug: NoMethodError: undefined method `win_friendly_path' HOT 2
- Version is not a state value HOT 1
- Cookbook throws an error when we specify new agent pool HOT 3
- Add proxy Support for vsts agent HOT 2
- Test kitchen fails on macOS using Chef Client 13.0.118 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-pipelines-agent-cookbook.