trufflesuite / ganache-ui

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

System Error when running Ganache 2.4.0 on win32 #1885

Open Snorn opened 4 years ago

Snorn commented 4 years ago

PLATFORM: win32 GANACHE VERSION: 2.4.0

EXCEPTION:

Error: EPERM: operation not permitted, rename 'C:\Users\i016968\AppData\Roaming\Ganache\workspaces\temporary-deer\Settings.604208053' -> 'C:\Users\i016968\AppData\Roaming\Ganache\workspaces\temporary-deer\Settings'
    at Object.renameSync (fs.js:643:3)
    at writeFileSync (C:\Program Files\WindowsApps\GanacheUI_2.4.0.0_x64__5dg5pnz03psnj\app\resources\app.asar\node_modules\write-file-atomic\index.js:124:8)
    at LocalStorage.setItem (C:\Program Files\WindowsApps\GanacheUI_2.4.0.0_x64__5dg5pnz03psnj\app\resources\app.asar\node_modules\node-localstorage\LocalStorage.js:188:7)
    at JsonStorage_JsonStorage.setToStorage (C:\Program Files\WindowsApps\GanacheUI_2.4.0.0_x64__5dg5pnz03psnj\app\resources\app.asar\webpack:\src\main\types\json\JsonStorage.js:48:18)
    at JsonStorage_JsonStorage.set (C:\Program Files\WindowsApps\GanacheUI_2.4.0.0_x64__5dg5pnz03psnj\app\resources\app.asar\webpack:\src\main\types\json\JsonStorage.js:53:10)
    at WorkspaceSettings_WorkspaceSettings.set (C:\Program Files\WindowsApps\GanacheUI_2.4.0.0_x64__5dg5pnz03psnj\app\resources\app.asar\webpack:\src\main\types\settings\Settings.js:59:19)
    at Workspace_Workspace.saveAs (C:\Program Files\WindowsApps\GanacheUI_2.4.0.0_x64__5dg5pnz03psnj\app\resources\app.asar\webpack:\src\main\types\workspaces\Workspace.js:110:19)
    at IpcMainImpl.<anonymous> (C:\Program Files\WindowsApps\GanacheUI_2.4.0.0_x64__5dg5pnz03psnj\app\resources\app.asar\webpack:\src\main\index.js:503:24)
Snorn commented 4 years ago

Workaround, create a new workspace, an error will occur, you will need to relaunch Ganache. When relaunched , edit the settings of the new workspace and select > Advanced > enable Google Analytics. Your local blockchain will now relaunch.

@Ganache - if this is a genuine bug fair enough, however is this is a ploy to ensure google analytics is enabled, well that is a poor show...!