question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System Error when running Ganache 2.4.0 on win32

See original GitHub issue

PLATFORM: win32 GANACHE VERSION: 2.4.0

EXCEPTION:

Error: EPERM: operation not permitted, rename 'C:\Users\rlwns\AppData\Roaming\Ganache\workspaces\Quickstart\Settings.299184470' -> 'C:\Users\rlwns\AppData\Roaming\Ganache\workspaces\Quickstart\Settings'
    at Object.renameSync (fs.js:643:3)
    at writeFileSync (C:\Users\rlwns\AppData\Local\Programs\Ganache\resources\app.asar\node_modules\write-file-atomic\index.js:124:8)
    at LocalStorage.setItem (C:\Users\rlwns\AppData\Local\Programs\Ganache\resources\app.asar\node_modules\node-localstorage\LocalStorage.js:188:7)
    at JsonStorage_JsonStorage.setToStorage (C:\Users\rlwns\AppData\Local\Programs\Ganache\resources\app.asar\webpack:\src\main\types\json\JsonStorage.js:48:18)
    at JsonStorage_JsonStorage.set (C:\Users\rlwns\AppData\Local\Programs\Ganache\resources\app.asar\webpack:\src\main\types\json\JsonStorage.js:53:10)
    at WorkspaceSettings_WorkspaceSettings.set (C:\Users\rlwns\AppData\Local\Programs\Ganache\resources\app.asar\webpack:\src\main\types\settings\Settings.js:59:19)
    at IpcMainImpl.<anonymous> (C:\Users\rlwns\AppData\Local\Programs\Ganache\resources\app.asar\webpack:\src\main\index.js:446:26)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
wbtcommented, Jun 25, 2020

Try these workaround steps independently and please report if any help:

  • Exclude C:\Users\rlwns\AppData\Roaming\Ganache\workspaces from any automated backup or virus-scanning system you might have running
  • Create a new workspace instead of using quickstart
  • Restart the machine (there may be some old handle to that directory/file hanging out somewhere that restarting would clear)
  • Uninstall and verify C:\Users\rlwns\AppData\Roaming\Ganache\workspaces is gone; delete it if not; then reinstall
1reaction
amitdubey26commented, Jun 24, 2020

Every single time. My windows version:

PS C:\Users\adubey\Desktop\workplace\mywork\blockchain\pvblockchain> [System.Environment]::OSVersion.Version

Major Minor Build Revision


10 0 17763 0

Read more comments on GitHub >

github_iconTop Results From Across the Web

System Error when running Ganache 2.4.0 on win32 · Issue #4967 ...
Error: EPERM: operation not permitted, rename 'C:\Users\xuyonghong_vendor\AppData\Roaming\Ganache\workspaces\superb-polish\Settings.926144903' ...
Read more >
Developers - System Error when running Ganache 2.4.0 on win32 -
System Error when running Ganache 2.4.0 on win32. ... resource busy or locked, rename 'C:\Users\User\AppData\Roaming\Ganache\default\Settings.374091581' ...
Read more >
Windows Ganache install Errors - Ethereum Stack Exchange
I'm attempting to install ganache via npm install ganache from my windows machine using PowerShell. Upon execution, a list of errors is ...
Read more >
Ganache Install File System Error Solution Windows 10
Solve File System Error while Installing Ganache in Windows 10. Use Add-AppxPackage -Path .\ Ganache - 2.4.0 -win-x64.appx command to Install ...
Read more >
Standing the Time of Test with Truffle and Ganache | Fluidity
Node v11.10.0. Ganache CLI v6.3.0 (ganache-core: 2.4.0) ... However, if the tests are run again, one of the tests fails: $ truffle test...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found