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

Can not create a local-only vault #2008

Open
3 tasks done
TheFriendlyCoder opened this issue Jan 13, 2025 · 8 comments
Open
3 tasks done

Can not create a local-only vault #2008

TheFriendlyCoder opened this issue Jan 13, 2025 · 8 comments
Labels
bug Something isn't working

Comments

@TheFriendlyCoder
Copy link

TheFriendlyCoder commented Jan 13, 2025

Have you read a contributing guide?

  • I have read CONTRIBUTING.md
  • I have searched the existing issues and didn't find any that were similar
  • I have considered creating a pull request with fixes instead of a bug report and want to proceed

Current Behavior

It is currently not possible to create a local-only vault

Expected Behavior

It should be possible to create a local-only vault

Steps To Reproduce

  1. open AnyType
  2. click the cog icon in the top right corner
  3. select "local-only" mode under "network" option
  4. (amended) click "change" next to the "Vault Data Location" field and select an empty folder (ie: /Users/johndoe/Documents/anytype)
  5. click "save" and accept the prompt that appears
  6. click "new vault"
  7. click "get my key" on the first page of the setup wizard
  8. result: error is produced, stating "failed to create local repo mkdir : no such file or directory

Environment

- OS: macOS 15.2
- Version: 0.44.0
- MacBook Pro 16 (amd64 architecture)

Anything else?

No response

@TheFriendlyCoder TheFriendlyCoder added the bug Something isn't working label Jan 13, 2025
@ra3orblade
Copy link
Contributor

Add a screenshot with an error please

@TheFriendlyCoder
Copy link
Author

I just did a quick double check and apparently there was one step in my steps to reproduce that is needed. You must select a non-default path for the local vault. In my case I pointed it to a new, empty folder I created at /Users/johndoe/Documents/anytype.

That small caveat aside, here's a screenshot of the error as requested:
Screenshot 2025-01-12 at 9 55 06 PM

@TheFriendlyCoder
Copy link
Author

I updated my steps to reproduce to include the missing step.

@TheFriendlyCoder
Copy link
Author

Here are a few other interesting anecdotes.

The following steps actually work as expected:

  1. open AnyType
  2. click the cog icon in the top right corner
  3. select "local-only" mode under "network" option
  4. click "change" next to the "Vault Data Location" field and select an empty folder (ie: /Users/johndoe/Documents/anytype)
  5. click "save" and accept the prompt that appears
  6. exit the application and launch it again
  7. click "new vault"
  8. click "get my key" on the first page of the setup wizard
  9. result: a new key is displayed, and the rest of the initialization wizard finishes as expected, and a new vault is created

Also, the following steps actually don't work:

  1. open AnyType
  2. click the cog icon in the top right corner
  3. select "local-only" mode under "network" option
  4. click "change" next to the "Vault Data Location" field and select an empty folder (ie: /Users/johndoe/Documents/anytype)
  5. click "save" and accept the prompt that appears
  6. click the cog icon again
  7. click the "reset" button next to "Vault Data Location"
  8. click "save"
  9. click "new vault"
  10. click "get my key" on the first page of the setup wizard
  11. result: same error as I reported before

These findings are leading me to believe there is something weird with the way the options dialog is saving the value contained in the vault data location field any time that it is modified.

Hopefully this helps isolate the root cause.

@ra3orblade
Copy link
Contributor

Check permissions on the folder, it may have restricted permissions.

@TheFriendlyCoder
Copy link
Author

If this were a folder permission problem then restarting the app would not rectify the problem.

@ra3orblade ra3orblade transferred this issue from anyproto/anytype-ts Jan 14, 2025
@MrLogiousBanana
Copy link

The same problem. When I try add local repo in any directory outside the
C:\Users\User\AppData\Roaming\Anytype appears that error

In your first case (when you close anytype and start it again) it just resets the link to the folder :_)

@MrLogiousBanana
Copy link

MrLogiousBanana commented Feb 20, 2025

And.... No, there is no permissions problem. I allow any operations with (my vault) folder. No results

But.... If use not a local repo app gives me the key ^^/

Strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants