trufflesuite / ganache-ui

Personal blockchain for Ethereum development
https://www.trufflesuite.com/ganache
MIT License
4.67k stars 806 forks source link

System Error when running Ganache 2.1.0 on win32 #1633

Closed Donaldhan closed 4 years ago

Donaldhan commented 4 years ago

PLATFORM: win32 GANACHE VERSION: 2.1.0

EXCEPTION:

Error: EPERM: operation not permitted, rename 'C:\Users\hanshaoqing\AppData\Roaming\Ganache\workspaces\shivering-boat\Settings.2488898242' -> 'C:\Users\hanshaoqing\AppData\Roaming\Ganache\workspaces\shivering-boat\Settings'
    at Object.fs.renameSync (fs.js:772:18)
    at writeFileSync (C:\Program Files\WindowsApps\Ganache_2.1.0.0_x64__zh355ej5cj694\app\resources\app.asar\node_modules\write-file-atomic\index.js:124:8)
    at LocalStorage.setItem (C:\Program Files\WindowsApps\Ganache_2.1.0.0_x64__zh355ej5cj694\app\resources\app.asar\node_modules\node-localstorage\LocalStorage.js:188:7)
    at JsonStorage.setToStorage (C:\Program Files\WindowsApps\Ganache_2.1.0.0_x64__zh355ej5cj694\app\resources\app.asar\src\main\types\json\JsonStorage.js:72:20)
    at JsonStorage.set (C:\Program Files\WindowsApps\Ganache_2.1.0.0_x64__zh355ej5cj694\app\resources\app.asar\src\main\types\json\JsonStorage.js:78:12)
    at WorkspaceSettings.set (C:\Program Files\WindowsApps\Ganache_2.1.0.0_x64__zh355ej5cj694\app\resources\app.asar\src\main\types\settings\Settings.js:89:21)
    at Workspace.saveAs (C:\Program Files\WindowsApps\Ganache_2.1.0.0_x64__zh355ej5cj694\app\resources\app.asar\src\main\types\workspaces\Workspace.js:90:21)
    at EventEmitter.<anonymous> (C:\Program Files\WindowsApps\Ganache_2.1.0.0_x64__zh355ej5cj694\app\resources\app.asar\src\main\main.js:532:24)
    at Generator.next (<anonymous>)
    at step (C:\Program Files\WindowsApps\Ganache_2.1.0.0_x64__zh355ej5cj694\app\resources\app.asar\src\main\main.js:71:191)
    at C:\Program Files\WindowsApps\Ganache_2.1.0.0_x64__zh355ej5cj694\app\resources\app.asar\src\main\main.js:71:361
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
davidmurdoch commented 4 years ago

Should be fixed in https://github.com/trufflesuite/ganache/releases/tag/v2.3.0! Please let me know if you are still experiencing problems!

wbt commented 4 years ago

For those tracing through...this was not fixed in 2.3.0.