Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IPFS Desktop] TypeError: Cannot destructure property 'stopIpfs' of 'undefined' as it is undefined. #2577

Closed
Tracked by #2600
ZeroCool22 opened this issue Aug 12, 2023 · 7 comments · Fixed by #2593
Closed
Tracked by #2600
Assignees
Labels
area/macos MacOS area/windows Windows effort/hours Estimated to take one or several hours exp/expert Having worked on the specific codebase is important kind/bug A bug in existing code (including security flaws) need/maintainers-input Needs input from the current maintainer(s) P0 Critical: Tackled by core team ASAP status/ready Ready to be worked topic/macos MacOS specific topic/windows Windows specific

Comments

@ZeroCool22
Copy link

ZeroCool22 commented Aug 12, 2023

👉️ After the last update i start getting this error happens when i try to move the Repository Location:

2023-08-12.02-16-43.mp4

Specifications

  • OS: Windows 10 Pro Versión 10.0.19045 Compilación 19045
  • IPFS Desktop Version: 0.30.0
  • Electron Version: I don't know?
  • Chrome Version: It's IPFS Desktop

Error

Initializing daemon...
Kubo version: 0.21.0
Repo version: 14
System version: amd64/windows
Golang version: go1.19.10 


    at makeError (C:\Users\ZeroCool22\AppData\Local\Programs\IPFS Desktop\resources\app.asar\node_modules\execa\lib\error.js:60:11)
    at handlePromise (C:\Users\ZeroCool22\AppData\Local\Programs\IPFS Desktop\resources\app.asar\node_modules\execa\index.js:118:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
2023-08-12T05:11:09.756Z error: Cannot destructure property 'stopIpfs' of 'undefined' as it is undefined.
2023-08-12T05:11:38.169Z error: Cannot destructure property 'stopIpfs' of 'undefined' as it is undefined.
2023-08-12T05:15:09.295Z error: Cannot destructure property 'stopIpfs' of 'undefined' as it is undefined.
2023-08-12T05:16:52.074Z error: Cannot destructure property 'stopIpfs' of 'undefined' as it is undefined.

Should i uninstall and resintall IPFS Desktop?

@ZeroCool22 ZeroCool22 added kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization labels Aug 12, 2023
@welcome
Copy link

welcome bot commented Aug 12, 2023

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment.
Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

  • "Priority" labels will show how urgent this is for the team.
  • "Status" labels will show if this is ready to be worked on, blocked, or in progress.
  • "Need" labels will indicate if additional input or analysis is required.

Finally, remember to use https://discuss.ipfs.io if you just need general support.

@yatounoneko
Copy link

yatounoneko commented Aug 12, 2023

Have a same problem, also GUI is broken...
I tried going back to 0.29.0 and everything works fine.
image

@ZeroCool22
Copy link
Author

Have a same problem, also GUI is broken... I tried going back to 0.29.0 and everything works fine. image

How i make a downgrade without losing anything?

@yatounoneko
Copy link

Have a same problem, also GUI is broken... I tried going back to 0.29.0 and everything works fine. image

How i make a downgrade without losing anything?

Just download 0.29.0 and install again? I suggest back-up your /.ipfs folder and IPFS config first.

@whizzzkid
Copy link
Contributor

Thanks for submitting a detailed report @ZeroCool22 and @yatounoneko for confirming. I too can confirm this error on macOS:

  • OS: darwin 22.6.0
  • IPFS Desktop Version: 0.30.0
  • Electron Version: 19.1.9
  • Chrome Version: 102.0.5005.167

Error

TypeError: Cannot destructure property 'stopIpfs' of 'undefined' as it is undefined.
    at module.exports (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/move-repository-location.js:10:30)
    at click (/Applications/IPFS Desktop.app/Contents/Resources/app.asar/src/tray.js:169:26)
    at MenuItem.click (node:electron/js2c/browser_init:73:1908)
    at a._executeCommand (node:electron/js2c/browser_init:81:2453)

@SgtPooki a quick glance through https://github.com/ipfs/ipfs-desktop/pull/2378/files#diff-1e21cb865e345e2dfb1124c0d74cd1fe42d7f1985346c5814d1bef9bee6e8b9aR39 this could be the root cause of this issue.

@whizzzkid whizzzkid added exp/expert Having worked on the specific codebase is important P0 Critical: Tackled by core team ASAP area/macos MacOS area/windows Windows need/maintainers-input Needs input from the current maintainer(s) topic/windows Windows specific topic/macos MacOS specific effort/hours Estimated to take one or several hours status/ready Ready to be worked and removed need/triage Needs initial labeling and prioritization labels Aug 17, 2023
@ZeroCool22
Copy link
Author

ZeroCool22 commented Aug 17, 2023

I just installed again the 0.29.0 version, without uninstall anything.

All looks fine, but this could break the downloads?

Because i'm getting 504 Gateway timeout on my download links, and those are very little size files.

And my node is up and running.

@whizzzkid whizzzkid self-assigned this Aug 22, 2023
@whizzzkid whizzzkid moved this from Needs Grooming to In Progress in IPFS-GUI (PL EngRes) Aug 22, 2023
@whizzzkid whizzzkid moved this from In Progress to In Review in IPFS-GUI (PL EngRes) Aug 22, 2023
@SgtPooki
Copy link
Member

@ZeroCool22 IPFS-Desktop is just a GUI for Kubo running in the background, so running an old version should not impact anything as long as the IPFS Repository verison is the same. we have a fix coming out shortly

@github-project-automation github-project-automation bot moved this from In Review to Done in IPFS-GUI (PL EngRes) Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/macos MacOS area/windows Windows effort/hours Estimated to take one or several hours exp/expert Having worked on the specific codebase is important kind/bug A bug in existing code (including security flaws) need/maintainers-input Needs input from the current maintainer(s) P0 Critical: Tackled by core team ASAP status/ready Ready to be worked topic/macos MacOS specific topic/windows Windows specific
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants