Error EPERM: operation not permitted

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

I cannot open project and got this error.

**Already delete .cache & temp folder.

After i restart kony & restart pc,

problem solved.

May i know why this happend?

Hi,

Please check any project module .js file opened in any text editor, if so close it. Or this could be problem with the npm/node, restarting the Kony Visualizer will kill the background process and restart with fresh instance.

We need complete logs file to get more details on it, please share us the vizdata logs.

is restart is the best practice or any other suggestion?

Hi,

Based on the given logs, Visualizer is trying to release or unlink the file which is getting failed.

EPERM: operation not permitted, unlink 'D:\Users\451794\KonyVizEWS\.webapps\dcpApp\codegen1521446443470\android\src\require\com\rhbgroup\dcp\core\ApplicationButton\userApplicationButtonController.js'

[2018-03-20 09:35:42.588] [ERROR] vide - Open Project Failed!

Use Process-Explorer tool which will give us information which process has holding the file.

https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer

We need to kill that process to complete the action.

How can i use the Process-Explorer tool?

i had downloaded it just now.

Hi,

  1. Open Process Explorer, running as administrator.
  2. On the toolbar, find the gunsight icon on the right
  3. Drag the icon and drop it on the open file or folder that is locked.
  4. The executable that is using the file will be highlighted in the Process Explorer main display list.

1) for open file/file is locked.. do u mean project file? or any file?

Hello,

You need to open the file "D:\Users\451794\KonyVizEWS\.webapps\dcpApp\codegen1521446443470\android\src\require\com\rhbgroup\dcp\core\ApplicationButton\userApplicationButtonController.js" to check any process holding lock on it.

is it because node.exe running background?

Hi,

Thank you for the update, can you please share us the screenshot of the process-Explorer with requested file. Also what you can do is, open the D:\Users\451794\KonyVizEWS\.webapps and delete the dcpApp folder before you open the application.

Let us know the manual delete is allowing or not. If possible please share us your project to verify the problem with Visualizer or application code.