trufflesuite / ganache-ui

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

System Error when running Ganache 2.5.4 on win32 #3875

Open fansari6 opened 2 years ago

fansari6 commented 2 years ago

PLATFORM: win32 GANACHE VERSION: 2.5.4

EXCEPTION:

Error: ENOENT: no such file or directory, rename 'C:\Users\User\AppData\Roaming\Ganache\default\chaindata\ContractCache.2965650495' -> 'C:\Users\User\AppData\Roaming\Ganache\default\chaindata\ContractCache'
    at Object.renameSync (fs.js:643:3)
    at writeFileSync (C:\Program Files\WindowsApps\GanacheUI_2.5.4.0_x64__5dg5pnz03psnj\app\resources\app.asar\node_modules\write-file-atomic\index.js:124:8)
    at Proxy.setItem (C:\Program Files\WindowsApps\GanacheUI_2.5.4.0_x64__5dg5pnz03psnj\app\resources\app.asar\node_modules\node-localstorage\LocalStorage.js:217:7)
    at JsonStorage_JsonStorage.setToStorage (C:\Program Files\WindowsApps\GanacheUI_2.5.4.0_x64__5dg5pnz03psnj\app\resources\app.asar\webpack:\src\main\types\json\JsonStorage.js:48:18)
    at JsonStorage_JsonStorage.setAll (C:\Program Files\WindowsApps\GanacheUI_2.5.4.0_x64__5dg5pnz03psnj\app\resources\app.asar\webpack:\src\main\types\json\JsonStorage.js:58:10)
    at new ContractCache_ContractCache (C:\Program Files\WindowsApps\GanacheUI_2.5.4.0_x64__5dg5pnz03psnj\app\resources\app.asar\webpack:\src\integrations\ethereum\main\types\contracts\ContractCache.js:12:20)
    at new Workspace_Workspace (C:\Program Files\WindowsApps\GanacheUI_2.5.4.0_x64__5dg5pnz03psnj\app\resources\app.asar\webpack:\src\main\types\workspaces\Workspace.js:29:26)
    at WorkspaceManager_WorkspaceManager.enumerateWorkspaces (C:\Program Files\WindowsApps\GanacheUI_2.5.4.0_x64__5dg5pnz03psnj\app\resources\app.asar\webpack:\src\main\types\workspaces\WorkspaceManager.js:71:26)
    at WorkspaceManager_WorkspaceManager.bootstrap (C:\Program Files\WindowsApps\GanacheUI_2.5.4.0_x64__5dg5pnz03psnj\app\resources\app.asar\webpack:\src\main\types\workspaces\WorkspaceManager.js:76:10)
    at IpcMainImpl.<anonymous> (C:\Program Files\WindowsApps\GanacheUI_2.5.4.0_x64__5dg5pnz03psnj\app\resources\app.asar\webpack:\src\main\index.js:404:22)
fansari6 commented 2 years ago

@MicaiahReid, sorry I am new to this, what does that mean?

MicaiahReid commented 2 years ago

@fansari6, no worries! This is our bad, not yours. We had some name and repository changes with our tooling that caused the Ganache UI tool to automatically make issues in the wrong repository. I was just moving the issue to allow us to properly triage it as a Ganache UI issue.

fansari6 commented 2 years ago

@MicaiahReid so when will it get fixed? Would I need to download the install package again and reinstall? Waiting to be able to run Ganache right now.

fansari6 commented 2 years ago

I have the following installed on my computer:

Windows 11 NodeJS version - 16.13.2

fansari6 commented 2 years ago

After trying to reinstall everything, I now have:

chocolatey version 0.12.0 node version 17.4.0 npm version 8.3.1

But after reinstall Ganache, I am getting the same error,

LoveKosmos commented 2 years ago

Note from Truffle Support Team per ticket#725447:

fansari6 : tried to roll back to Windows 11 but it only allowed to roll back to the last Windows 11 update. Anyway, after that, I reinstalled NodJS and then Ganache. I am finally able to run Ganache

fansari6 commented 2 years ago

Just FYI Ganache-2.5.4-win-setup.exe is the one that worked. Just tested on my second computer also. Ganache-2.5.4-win-x64.appx did not work on either computer. I think the rollback to the previous version may not be required since I am still running on Windows 11. Ganache-2.5.4-win-x64.appx may have some issues in itself or with Windows 11.

Thank you,

From: Nataliia Riabkova @. Sent: Wednesday, January 26, 2022 12:04 PM To: trufflesuite/ganache-ui @.> Cc: fansari6 @.>; Mention @.> Subject: Re: [trufflesuite/ganache-ui] System Error when running Ganache 2.5.4 on win32 (Issue #3875)

Note from Truffle Support Team per ticket#725447:

fansari6 : tried to roll back to Windows 11 but it only allowed to roll back to the last Windows 11 update. Anyway, after that, I reinstalled NodJS and then Ganache. I am finally able to run Ganache

— Reply to this email directly, view it on GitHub https://github.com/trufflesuite/ganache-ui/issues/3875#issuecomment-1022401836 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AXOHGWQUPJWJT3SEXFVVPO3UYASPPANCNFSM5MV4357A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AXOHGWXKDCNUXLWSX6CBRULUYASPPA5CNFSM5MV4357KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHTYJ2LA.gif Message ID: @. @.> >