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

[gui error report] Error: Initializing daemon... #2164

Closed
ri3tn opened this issue Jun 3, 2022 · 11 comments
Closed

[gui error report] Error: Initializing daemon... #2164

ri3tn opened this issue Jun 3, 2022 · 11 comments
Labels
kind/stale need/author-input Needs input from the original author topic/windows Windows specific

Comments

@ri3tn
Copy link

ri3tn commented Jun 3, 2022

👉️ Please describe what you were doing when this error happened.

Specifications

  • OS: win32
  • IPFS Desktop Version: 0.20.6
  • Electron Version: 18.0.3
  • Chrome Version: 100.0.4896.75

Error

Error: Initializing daemon...
go-ipfs version: 0.12.2
Repo version: 12
System version: amd64/windows
Golang version: go1.16.15
Error: open C:\Users\Robert Ta\.ipfs\datastore\CURRENT.bak: Access is denied.


    at errorTemplate (C:\Users\Robert Ta\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\migration-prompt.js:78:49)
    at Object.loadWindow (C:\Users\Robert Ta\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\migration-prompt.js:115:26)
    at startIpfsWithLogs (C:\Users\Robert Ta\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\daemon.js:163:25)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async module.exports (C:\Users\Robert Ta\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\daemon.js:194:17)
    at async startIpfs (C:\Users\Robert Ta\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\index.js:46:17)
    at async module.exports (C:\Users\Robert Ta\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\index.js:114:3)
    at async run (C:\Users\Robert Ta\AppData\Local\Programs\IPFS Desktop\reso
@ri3tn ri3tn added kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization labels Jun 3, 2022
@welcome
Copy link

welcome bot commented Jun 3, 2022

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.

@ri3tn
Copy link
Author

ri3tn commented Jun 3, 2022

  1. I just installed IPFS
  2. Tried uploading one file, it worked
  3. 5 minutes later, got this issue
  4. Tried restarting computer, running as admin, etc. - doesn't work
  5. Now exploring this:Error writing block to datastore: Access is denied. kubo#3971

@SgtPooki
Copy link
Member

Hi @ri3tn , thanks for submitting this issue.

The error itself is easy to fix -- simply delete the files with the invalid permissions -- but how we got to that state is a more difficult problem.

When exactly does this error pop up? What is it preventing you from doing?

I have a few questions to attempt to figure out how the permissions issues began:

  1. Can you clarify whether you ran any commands via the command line separately from the IPFS desktop application?
  2. Did you run IPFS-desktop as admin when you first started it? (you shouldn't need to run IPFS desktop as admin)
  3. If you stop IPFS desktop, delete C:\Users\Robert Ta\.ipfs\datastore\CURRENT.bak, and then restart the app, does the error still pop up?

@SgtPooki SgtPooki added status/blocked Unable to be worked further until needs are met need/author-input Needs input from the original author topic/windows Windows specific and removed need/triage Needs initial labeling and prioritization labels Jun 13, 2022
@github-actions
Copy link
Contributor

Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.

@ri3tn
Copy link
Author

ri3tn commented Jun 20, 2022

Hey there, thanks for the help. See my responses below.

When exactly does this error pop up? What is it preventing you from doing?
It pops up whenever I start the IPFS desktop app. It's preventing me from checking on files / uploading files. It says it "Could not connect to the IPFS API".

I have a few questions to attempt to figure out how the permissions issues began:

Can you clarify whether you ran any commands via the command line separately from the IPFS desktop application?
Did you run IPFS-desktop as admin when you first started it? (you shouldn't need to run IPFS desktop as admin)
If you stop IPFS desktop, delete C:\Users\Robert Ta.ipfs\datastore\CURRENT.bak, and then restart the app, does the error still pop up?

I did not run any commands via the command line separately from the desktop app. After I got this error, I tried running as admin and saw the same error. I then tried reinstalling the application, and ran into the same error. I tried deleting the CURRENT.bak file, but it is not there. I double checked via terminal (ran admin) and it wasn't there. I then tried to open the app again, and I receive the same error.

@Twerewolf
Copy link

same problem.

Initializing daemon...
go-ipfs version: 0.13.0
Repo version: 12
System version: amd64/windows
Golang version: go1.18.3

Error: open C:\Users\ubuntu.ipfs\datastore\CURRENT.bak: Access is denied.

that's all I got, btw my user name is "ubuntu". :0)

@lidel lidel added need/author-input Needs input from the original author need/analysis Needs further analysis before proceeding and removed need/author-input Needs input from the original author kind/stale labels Jun 20, 2022
@SgtPooki
Copy link
Member

@Twerewolf what is the IPFS desktop version you're using?

@SgtPooki SgtPooki added status/ready Ready to be worked and removed status/blocked Unable to be worked further until needs are met need/author-input Needs input from the original author labels Jun 20, 2022
@SgtPooki
Copy link
Member

SgtPooki commented Jun 20, 2022

@ri3tn

Thanks for the answers, we're very confused by this error but we're going to try to reproduce on our end and will attempt to assist you as best we can. To that effect, here are a few more questions and troubleshooting steps:

  1. What windows version are you on? 7/8/10/11?
  2. list permissions for the following directories and provide in response:
    • C:\Users\Robert Ta.ipfs
    • C:\Users\Robert Ta.ipfs\datastore
  3. check free space available on the C drive
  4. run disk scan to ensure disk is fine (check out ttps://neosmart.net/wiki/chkdsk/#How_to_run_CHKDSK_in_Windows) and please provide CLI output, or screenshot of results

@SgtPooki SgtPooki added need/author-input Needs input from the original author and removed status/ready Ready to be worked labels Jun 20, 2022
@Twerewolf
Copy link

Initializing daemon...
go-ipfs version: 0.13.0
Repo version: 12
System version: amd64/windows
Golang version: go1.18.3
@SgtPooki
ipfs-desktop 0.21.0

@SgtPooki SgtPooki added need/author-input Needs input from the original author and removed need/author-input Needs input from the original author need/analysis Needs further analysis before proceeding labels Jun 27, 2022
@SgtPooki SgtPooki removed the kind/bug A bug in existing code (including security flaws) label Jun 27, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2022

Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.

@github-actions
Copy link
Contributor

This issue was closed because it is missing author input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/stale need/author-input Needs input from the original author topic/windows Windows specific
Projects
None yet
Development

No branches or pull requests

4 participants