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

Failed : Install NVRAppDevOps and navcontainerhelper PowerShell modules #4

Closed
chavansachin20 opened this issue Dec 3, 2019 · 9 comments

Comments

@chavansachin20
Copy link

Hi @kine ,

we have installed NaverticAL from DevOps and while running agent we are getting below error

I think inside Build pipeline, Agent job is not running Powershell as Run as admin.

can you help here to pass this agent job?

Error details :
##[error]Administrator rights are required to install packages in 'C:\Program Files\PackageManagement\ProviderAssemblies'. Log on to the computer with an account that has Administrator rights, and then try again, or install in 'C:\WINDOWS\ServiceProfiles\NetworkService\AppData\Local\PackageManagement\ProviderAssemblies' by adding "-Scope CurrentUser" to your command. You can also try running the Windows PowerShell session with elevated rights (Run as Administrator).

image

Thanks in Advance!

@kine
Copy link
Owner

kine commented Dec 3, 2019

Hi @chavansachin20
you need to setup the agent to run as admin. If you set it to run in console, run it as admin after you login. If you set it as service (I never tried this), check that the user under which it is running, is admin.

@chavansachin20
Copy link
Author

also, we receive an error related to TestLibraryOnly parameter while executing "Create container".

##[error]A parameter cannot be found that matches parameter name 'TestLibraryOnly'.

image

@kine
Copy link
Owner

kine commented Dec 5, 2019

Hi @chavansachin20,
please, keep one issue per one problem. If you have another, open new issue. It will help to track better the progress. I have created new issue for the TestLibraryOnly error.

Can you confirm that the Install or update scripts task is running ok now, when the Agent is running as admin?

@chavansachin20
Copy link
Author

it still giving me the same message.

image

image

@kine
Copy link
Owner

kine commented Dec 5, 2019

How is your agent running? As service or in console?

@chavansachin20
Copy link
Author

chavansachin20 commented Dec 5, 2019

in console.
image

@kine
Copy link
Owner

kine commented Dec 5, 2019

It is not enough, you need to make it run as admin. I am running the agent manually, you can try to check "Run as admin" property on the agent or something.

@kine
Copy link
Owner

kine commented Dec 5, 2019

See e.g. https://stackoverflow.com/questions/54144386/azure-devops-vsts-start-build-agent-as-an-administrator-interactive-mode-i

@chavansachin20
Copy link
Author

Thanks, @kine this works for me!

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

No branches or pull requests

2 participants