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

Amazon.JSII.Runtime.JsiiException: EPERM #6105

Closed
OlegBoulanov opened this issue Feb 4, 2020 · 3 comments
Closed

Amazon.JSII.Runtime.JsiiException: EPERM #6105

OlegBoulanov opened this issue Feb 4, 2020 · 3 comments
Assignees
Labels
bug This issue is a bug. jsii This issue originates in jsii, or this feature must be implemented in jsii. language/dotnet Related to .NET bindings response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@OlegBoulanov
Copy link

OlegBoulanov commented Feb 4, 2020

Windows 10

C:\Users\source\repos>cdk --version

1.22.0 (build 309ac1b)

C:\Users\source\repos>mkdir cdk-test-app

C:\Users\source\repos>cd cdk-test-app

C:\Users\source\repos\cdk-test-app>cdk init app --language=csharp

Applying project template app for csharp
Project CdkTestApp\CdkTestApp.csproj added to the solution.
Initializing a new git repository...
...

C:\Users\source\repos\cdk-test-app>cdk synth

Unhandled exception. Amazon.JSII.Runtime.JsiiException: EPERM: operation not permitted, rename 'C:\Users\AppData\Local\Temp\jsii-kernel-install-staging-kwRNKQ\package' -> 'C:\Users\AppData\Local\Temp\jsii-kernel-v4uOzV\node_modules@aws-cdk\core'
at Amazon.JSII.Runtime.Services.Client.TryDeserialize[TResponse](String responseJson)
at Amazon.JSII.Runtime.Services.Client.ReceiveResponseTResponse
at Amazon.JSII.Runtime.Services.Client.Send[TRequest,TResponse](TRequest requestObject)
at Amazon.JSII.Runtime.Services.Client.Load(LoadRequest request)
at Amazon.JSII.Runtime.Services.Client.Load(String name, String version, String tarball)
at Amazon.JSII.Runtime.Services.Client.LoadPackage(String package, String version, String tarballPath)
at Amazon.JSII.Runtime.Deputy.JsiiTypeAttributeBase.Load(Assembly assembly)
at Amazon.JSII.Runtime.Deputy.JsiiTypeAttributeBase..ctor(Type nativeType, String fullyQualifiedName)
at Amazon.JSII.Runtime.Deputy.JsiiClassAttribute..ctor(Type nativeType, String fullyQualifiedName, String parametersJson)
at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, RuntimeType type, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs)
at System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module, RuntimeType type, IRuntimeMethodInfo ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs)
at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder1& attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder1 derivedAttributes)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
at System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit)
at System.Attribute.GetCustomAttributes(MemberInfo element, Type type, Boolean inherit)
at System.Attribute.GetCustomAttribute(MemberInfo element, Type attributeType, Boolean inherit)
at System.Reflection.CustomAttributeExtensions.GetCustomAttribute[T](MemberInfo element)
at Amazon.JSII.Runtime.ReflectionUtils.GetClassAttribute(Type type)
at Amazon.JSII.Runtime.Deputy.DeputyBase..ctor(DeputyProps props)
at Amazon.CDK.Construct..ctor(DeputyProps props)
at Amazon.CDK.App..ctor(IAppProps props)
at CdkTestApp.Program.Main(String[] args) in C:\Users\source\repos\cdk-test-app\src\CdkTestApp\Program.cs:line 12
Subprocess exited with error 3762504530


This is 🐛 Bug Report

@OlegBoulanov OlegBoulanov added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Feb 4, 2020
@SomayaB SomayaB added jsii This issue originates in jsii, or this feature must be implemented in jsii. language/dotnet Related to .NET bindings labels Feb 4, 2020
@SomayaB SomayaB assigned SomayaB and MrArnoldPalmer and unassigned SomayaB Feb 4, 2020
@MrArnoldPalmer
Copy link
Contributor

Hey @OlegBoulanov, what version of NodeJS are you currently running?

There is a known issue with JSII that you may be running into. Check out aws/jsii#992 for context on that.

@SomayaB SomayaB added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed needs-triage This issue or PR still needs to be triaged. labels Feb 5, 2020
@OlegBoulanov
Copy link
Author

OlegBoulanov commented Feb 5, 2020

C:\Users\source\repos\cdk-test-app>node --version

v12.7.0

And yes, due to corporate IT policies and regulations, we must have McAfee on all computers

@MrArnoldPalmer
Copy link
Contributor

Gotcha. I'm gonna close this as a duplicate of aws/jsii#992. We will track the fix there. In the meantime you can try the retry workaround mentioned in that issue, though its not ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. jsii This issue originates in jsii, or this feature must be implemented in jsii. language/dotnet Related to .NET bindings response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

3 participants