kine / navertical_tasks

GNU General Public License v3.0
9 stars 4 forks source link

Failed : Install NVRAppDevOps and navcontainerhelper PowerShell modules #4

Closed chavansachin20 closed 4 years ago

chavansachin20 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

it still giving me the same message.

image

image

kine commented 4 years ago

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

chavansachin20 commented 4 years ago

in console. image

kine commented 4 years ago

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 commented 4 years ago

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

chavansachin20 commented 4 years ago

Thanks, @kine this works for me!