Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Reconfigure on OS X #21

Closed
alber70g opened this issue Jun 9, 2015 · 8 comments
Closed

Reconfigure on OS X #21

alber70g opened this issue Jun 9, 2015 · 8 comments

Comments

@alber70g
Copy link

alber70g commented Jun 9, 2015

How to reconfigure on OS X?

There seems not to be a node agent/vsoagent --help to find how to reconfigure for another Visual Studio Online URL.

@bryanmacfarlane
Copy link
Contributor

I used to have reconfigure but it was easier to simply create a new folder and install a new agent. Delete the other one if needed. Details below.

Two options:

  1. create another one in another directory and wack the current agent directory (recommended and easiest)
  2. reconfigure the existing directory:

you just have to delete the .agent file. So:
rm .agent

If you're pointing to a new url, you'll likely want to cleanup some repos on disk (stuff in _work/build)

Note: If you're running as a service on osx, you need to stop it and uninstall the service. That will remove the plist. See the readme (svc.sh stop, svc.sh uninstall)

So, it's just easier to create a new folder, install the agent and configure. delete the old agent if not needed.

I'll update the readme.

@alber70g
Copy link
Author

alber70g commented Jun 9, 2015

I also have another issue when starting an agent on OS X. I tried on both my own and from another VSO to be an agent for the build process, but on both i get the response "Forbidden 403"

##[Error] 2015-06-09T17:14:26.132Z: Could not create an agent session.  Retrying in 15 sec
##[Error] 2015-06-09T17:14:26.132Z: Failed Request: Forbidden(403) - https://xxx.visualstudio.com/_apis/distributedtask/pools/1/sessions

@bryanmacfarlane
Copy link
Contributor

That means you didn't add the account to the agent pool service accounts (403 creating session to listen to queue).

On the main readme, there's instructions. There's also a video.

@alber70g
Copy link
Author

Oh sorry, I missed that part. It's working now 👍

@bryanmacfarlane
Copy link
Contributor

np - I'll see if I can't make the error message/handling clearer. thx

@vdangwal
Copy link

Agent Started.
##[Error] 2016-08-10T17:19:23.834Z: Message Queue Error:
##[Error] 2016-08-10T17:19:23.834Z: Could not create an agent session. Retrying in 15 sec
##[Error] 2016-08-10T17:19:23.834Z: Message Queue Error:
##[Error] 2016-08-10T17:19:23.834Z: Failed Request: Forbidden(403) - Access denied. Digital Solutions needs Listen permissions for pool Default to perform the action. For more information, contact the Team Foundation Server administrator.

Could anyone please help? this is in premises Mac VM using VMWare.

@bryanmacfarlane
Copy link
Contributor

@vdangwal - create another issue and fill out the template

@vdangwal
Copy link

@bryanmacfarlane Issue #316 has been created. Please let me know if you need any information.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants