Folder Sync

Options
jkbos
jkbos
Community Member

Upgrading from 3.8. I have 4.2.2 running on Mac 1 with the vault in the Documents folder. I want to set up folder sync on Mac 2 (no online sync) and am unclear from your documentation about how this should be done. Initially have used Folder Sync on Mac 2 choosing the vault on Mac 1 over the local network. This seems to work although when the network is not active 1Password on Mac 2 still displays the data. Is that right? If so where is the data stored? If I understand you Folder Sync instructions your intention is to have two file vaults, one on each computer and use something like ChronoSync to keep them in sync. Thanks for clarifying how to properly setup Folder Sync.

Comments

  • jkbos
    jkbos
    Community Member
    Options

    Follow up on my question above. My question was not clear and I did not completely understand how to set up Folder Sync. Now I have one vault on one computer, with 1Password sync set to Folder Sync that vault. I have 1Password on another computer set to Folder Sync the same vault on the first computer over the local network. It seems to be working fine except the total item count in 1Password on the two computers is different. The sync time stamp in 1Password on both computers indicates it is updating each time 1Password is launched. Examining the items it looks like the syncing is mostly correct although there seem to be some inconsistencies, again the total item count does not match. Is the above set up correct with two computers and one vault? Incidentally, wi-fi sync with an iPhone works great. Thanks.

  • Stephen_C
    Stephen_C
    Community Member
    edited April 2014
    Options

    I'm not sure I quite understand what you're doing but maybe it helps if I comment that folder sync is not really synchronisation of databases/vaults. All it does is to store a copy of your current database in a keychain which can then be accessed by another machine (or, indeed, manually transferred via iTunes to an iPhone or iPad). It doesn't actually synchronise - although, of course, if you've set up folder sync from machine one and arranged for machine two always to update from the machine one keychain you will ensure that machine two is up to date with machine one's database/vault.

    Does that help—or have I completely misunderstood you?!

    Edit: you might also watch how this thread develops.

    Stephen

  • Megan
    Megan
    1Password Alumni
    Options

    Hi @jkbos,

    It sounds to me like you've got Folder Sync set up correctly. Essentially, Folder Sync does the same thing as Dropbox sync, in that 1Password will copy your database into .agilekeychain format and store it in a location of your choice. Then you can use a secondary sync solution or a home network to keep your data up-to-date across multiple computers.

    The important thing to note when using a home network solution is that each computer must have full read/write permissions to the location that your 1Password.agilekeychain is stored in. If you are seeing inconsistencies, I suspect that one of the computers might only have read permissions and is unable to write any database changes to the folder.

    I hope this gets things sorted out for you, but if you do have any further questions, we're here for you!

  • jkbos
    jkbos
    Community Member
    Options

    Thanks for the follow up. Yes, I am thinking about the .agilekeychain file on one computer as if it was on DropBox or iCloud although being synced over the home network. I wanted to get it off DropBox and now that wi-fi is an option this seems to work. However, I'm not getting consistent syncing. When changes are made to the database on the computer where the .agilekeychain file is located, changes are not completely reflected in the database on the second computer (total count is not correct, trash not emptied, for example). I did update the permissions to include Admin and the user on the second computer (Fetching) with Read & Write. I even deleted the .agilekeychain file, launched 1Password on the second computer and it recreated the file on the first computer. Also, the database on the second machine does not seem to be backing up automatically daily. I can manually back it up but it doesn't seem to backup automatically. There are 350+ items. Any other thoughts?

  • sjk
    sjk
    1Password Alumni
    edited August 2014
    Options

    Hi @jkbos,

    It sounds like there could be a permissions issue with the Agile Keychain that's configured with folder syncing in 1Password 4 on both of your Macs. Also, which version of 1Password are you using?

    When changes are made to the database on the computer where the .agilekeychain file is located, changes are not completely reflected in the database on the second computer (total count is not correct, trash not emptied, for example).

    Is that the current behavior, after making these changes:

    I did update the permissions to include Admin and the user on the second computer (Fetching) with Read & Write. I even deleted the .agilekeychain file, launched 1Password on the second computer and it recreated the file on the first computer.

    ?

    If 1Password on Mac2 recreated the keychain it's possible that it doesn't have enough permission for 1Password on Mac1 to make updates even if the keychain is being stored there.

    To help determine if that's the reason please create and/or change items on both Macs, then look for those specific modifications in the synced keychain by using 1PasswordAnywhere keychain locally with Safari and Chrome (as @khad explains here). If you see changes made from one Mac and not the other then you know which one isn't properly syncing its local 1Password database with the keychain.

    Let us know the results of that testing and we'll have a better idea of what to suggest next for keeping 1Password data synced between your Macs.

    Also, the database on the second machine does not seem to be backing up automatically daily. I can manually back it up but it doesn't seem to backup automatically.

    This could be an issue with the 1Password mini helper process not being kept running long enough to do the automatic backups. To keep it running even when when the main application isn't running open the main app Preferences window, select the General tab, and make sure Always keep 1Password mini running is enabled:

    Also, an automatic backup is skipped if the database hasn't changed since the last backup was created. I see gaps like this:

    Sometimes gaps occur simply because the system and/or 1Password mini weren't running.

    Looking forward to hearing from you again with the sync test results. Thanks!

  • jkbos
    jkbos
    Community Member
    Options

    Version 4.2.2 on both Macs with OS 10.9.2, not beta
    The keychain is on Mac 1. Folder Sync is pointing to the keychain within Preference of 1Passsword on both Macs.
    It seems to be a permissions issue. When I look at the permissions of the file located on Mac 1 on Mac 2 the permissions do not match what is displayed from Mac 1. They are more restrictive and I can't change the permissions from Mac 2, permission denied. I think that's normal though since it is owned by the user on Mac 1.
    However, I set the file to everyone Read & Write and that permission appears on both machines and seems to have solved the problem.
    Regarding backup, preferences were already set to always keep 1Password Mini running. It is not working consistently. Sometimes it backups up when the files is changed and sometimes it does not. For example, on MAC 1 many changes today and no backup today. On MAC 2 also many changes and one backup today.
    Regarding opening the file locally, although I set Disable Local File Permissions in Safari I could not open the file. It appears in the dialog file window within Safari but is grayed out.

  • jkbos
    jkbos
    Community Member
    Options

    Thanks for your help with this issue. I've been using 1Password for a while on a couple MACS and iOS devices. I appreciate all the improvements in this version especially wi-fi sync and the ability to do the Folder Sync to avoid keeping the keychain in the cloud.

  • sjk
    sjk
    1Password Alumni
    edited April 2014
    Options

    Hi @jkbos,

    Thanks for the additional information.

    The keychain is on Mac 1.

    Which drive volume is it on and how is that mounted on Mac 2?

    When I look at the permissions of the file located on Mac 1 on Mac 2 the permissions do not match what is displayed from Mac 1. They are more restrictive and I can't change the permissions from Mac 2, permission denied. I think that's normal though since it is owned by the user on Mac 1.

    Sometimes that type of permission adjustment is avoidable. Are you using different user accounts on each Mac?

    However, I set the file to everyone Read & Write and that permission appears on both machines and seems to have solved the problem.

    An Agile Keychain (e.g. 1Password.agilekeychain) is actually a folder bundle containing multiple files/folders. If you've only changed permission on the top level keychain folder there may still be access issues with content under it. In general, 1Password folder syncing requires read/write access to all current and new data in the keychain to function properly. There can be cases when everyone is able to create/read/sync items, but only the creator has sufficient permission to modify the keychain data while non-creators are only able to modify their local database.

    By creating, modifying, and deleting items on both of your Macs you can determine if 1Password folder sync has enough keychain permission to do the syncing. If it's still troublesome we can help you fix it.

    At most one automatic backup per day is saved. If the database changes shortly after one has been done the soonest the next one will occur will be almost a full day later. We are looking at other conditions for triggering automatic backups. I'll manually create a backup before making certain types of changes (e.g. syncing reconfiguration) to ensure the database can be restored to that known state if necessary, then manually create another after confirming the changes are working as intended.

    Regarding opening the file locally, although I set Disable Local File Permissions in Safari I could not open the file. It appears in the dialog file window within Safari but is grayed out.

    Have you tried directly opening the 1Password.html file that's inside your keychain? You might also try restarting Safari after Develop > Disable Local File Restrictions is enabled.

    Thanks for your help with this issue. I've been using 1Password for a while on a couple MACS and iOS devices. I appreciate all the improvements in this version especially wi-fi sync and the ability to do the Folder Sync to avoid keeping the keychain in the cloud.

    Thank you for your support of 1Password!

    I love the combination of folder syncing with multiple vaults. :)

  • jkbos
    jkbos
    Community Member
    Options

    Just to follow up on your questions and to ask some question about multiple vaults.
    The keychain on Mac 1 is on the internal startup drive.
    There are different user accounts on each Mac, they all have Admin privelages.
    I was able to open 1Password.html directly once I had the package open. (I had not appreciated that 1Password.agilekeychain file was a package.)
    I found that the permissions for the package contents did not match the package, I set them all to match, for admin, the two users and everyone as read & write.
    Did you mean unavoidable, when you said avoidable in your statement above, "Sometimes that type of permission adjustment is avoidable. Are you using different user accounts on each Mac?"
    Not sure backup is working consistently. I need to test it further. I take you point about doing manual backups.
    Multiple vaults look like something I could really use for a other family members.
    Not sure how this is supposed to work, I created a test vault for myself and that vault is not syncing to Mac 2. Otherwise sync seems to be working fine.
    If I share items in multiple vaults are changes in the new vault automatically reflected across the data base and the sync? (They are not now, the sync is not working.) Is there a way to set share on multiple items as a group or do you have to set the share on each item? Once items are shared and in a secondary vault can that vault be opened without having any interaction with the primary vault and can it be opened across used accounts? In other words if I had a child who I wanted to only access there vault and not the primary how would that be set up?
    I wish your forum sent an email when there was as discussion response.
    It would be grew to get the multiple vault feature working. Or direct me to how to set up what I want to have subsets of shared passwords where the shared set and only the shared set can be accessed.
    Thanks!

  • jkbos
    jkbos
    Community Member
    Options

    Hi there -

    I read some of the faqs and help and I think figured this out. I didn't appreciate that when sharing items iPassword needs to create a keychain for that vault for the sync — which of course makes perfect sense.

    Created a secondary vault in my primary vault. Then in the secondary vault set up folder sync over the network to a user on Mac 2, saving the keychain in that users Documents folder. Then launched 1Password in that account, navigated to the keychain from the 1Password start up dialog and it all seems to work. I set the permissions on the package and it's contents as well although it was working even without having all the permissions match. I did have one problem creating the keychain in that user's account although it was just a normal permissions problem.

    Is this this how you intend multiple vaults to work?

    Can the name of a secondary vault be changed once created?

    Thanks.

  • sjk
    sjk
    1Password Alumni
    edited April 2014
    Options

    Hi @jkbos,

    I'm glad to hear you've made progress with your folder syncing configuration!

    I found that the permissions for the package contents did not match the package, I set them all to match, for admin, the two users and everyone as read & write.

    It's important that any individual files written in the keychain by either user will have read/write permissions for both users. Otherwise changes the non-creator makes to items in the local database won't be saved in the keychain and synced with corresponding items in the creator's local database.

    Did you mean unavoidable, when you said avoidable in your statement above, "Sometimes that type of permission adjustment is avoidable. Are you using different user accounts on each Mac?"

    I meant that both accounts might automatically have enough permission to read/write all the keychain data without explicitly changing permissions. For example, the same user account I use on different Macs can read/write data in certain shared folders on any Mac they're accessed from, locally or over the network, without making permission changes. Say, /Volumes/Space is local on Mac1 and user A has ownership permissions. Logged in as user A on Mac2, I can AFP-mount that volume and have essentially the same ownership permission to it there as on Mac1. So, folder syncing configured to an Agile Keychain stored on it "just works".

    In other words if I had a child who I wanted to only access there vault and not the primary how would that be set up?

    This guide uses Dropbox as the example, and you can also do it with folder syncing (with permissions possibly being a factor):

    How to share a non-primary vault

    With Dropbox syncing, each user has ownership permission to a local copy of the keychain. Here's a basic diagram of the data flow on two Macs between Primary vaults and the Agile Keychain that'll be stored locally and on the Dropbox site:

    • Mac1 1P4 vault <---Mac1 1P4 Dropbox sync---> Mac1 Dropbox keychain <---Mac1 Dropbox app sync---> shared Dropbox keychain (on dropbox.com) <---Mac2 Dropbox App sync ---> Mac2 Dropbox keychain <---Mac2 1P4 Dropbox sync---> Mac2 1P4 vault

    The Dropbox app sync on each Mac has permission to all the keychain data it accesses.

    With a folder syncing configuration like yours, it's simply:

    • Mac1 1P4 vault <---Mac1 1P4 folder sync---> shared folder keychain <---Mac2 1P4 folder sync---> Mac2 1P4 vault

    The 1P4 folder sync on each Mac may or may not have permission to data in the single shared folder keychain it access.

    The bold indicates where data is stored; italics indicates where syncing connections are.

    I wish your forum sent an email when there was as discussion response.

    The forum Notification Preferences page is where you can view/change your settings. To (un)bookmark a specific topic, click the star at the top of its page next to the gear and just above the POST A REPLY button. It'll be yellow when it's bookmarked:

    When unbookmarked, it's just an uncolored outline:




    I read some of the faqs and help and I think figured this out.

    Nice! :)

    I didn't appreciate that when sharing items iPassword needs to create a keychain for that vault for the sync — which of course makes perfect sense.

    Syncing is configured independently for each vault in the 1Password database.

    Created a secondary vault in my primary vault.

    Actually, you created that secondary vault in your database. :)

    The 1Password 4 glossary has some definitions for your 1Password data.

    Then in the secondary vault set up folder sync over the network to a user on Mac 2, saving the keychain in that users Documents folder.

    You had sufficient permission to create that keychain with folder syncing and you're its owner.

    Then launched 1Password in that account, navigated to the keychain from the 1Password start up dialog and it all seems to work.

    So, 1Password created a Primary vault for that user from the keychain you previously created in their Documents folder?

    I set the permissions on the package and it's contents as well although it was working even without having all the permissions match.

    To work correctly, individual files written in that keychain by any user need read/write permissions for all users accessing it.

    I did have one problem creating the keychain in that user's account although it was just a normal permissions problem.

    Not sure I understand what happened there. I thought the keychain was already created in the Documents folder, and sill being folder synced with a secondary vault in 1Password on your Mac?

    Is this this how you intend multiple vaults to work?

    Multiple vaults can be used without sharing/syncing any of them. And both are optional, i.e. 1Password can be used with the single, unsynced Primary vault.

    You might want to sync/share your secondary vault with a secondary vault on the other Mac, keeping Primary vaults on both Macs private.

    Can the name of a secondary vault be changed once created?

    Not yet but it's on our list of improvements for a future update. There's current the "hard way" described in this guide:

    Edit a vault's details

    I hope that information is helpful for any further multiple vault and syncing you're doing.

  • jkbos
    jkbos
    Community Member
    Options

    Yes, 1Password created a Primary vault for that User 2 on Mac 2 from the keychain I previously created in that users Documents folder. Is that not correct?

    At this point I think recreating the secondary vault with a new password and keychain and is quicker than editing the vaults details.

    The permissions issue occurred in first trying to save the keychain to Mac 2, one I had sufficient permissions in the user's documents folder it saved fine.

    I think I already have this set up essentially as you suggested. On Mac 1 Primary Vault and Secondary Vault synced to keychain on Mac 1. On Mac 2 User 1 syncs to that keychain over networks as I want that user to have access to the Primary and Secondary vault. Secondary Vault on Mac 1 is synced to keychain on Mac 2 User 2 (so Mac 2 User 2 only has access to secondary vault).

    BTW, backups seem to be working correctly.

    At this point I think recreating the secondary vault with a new password and keychain and is quicker than editing the vaults details.

    Thanks.

  • sjk
    sjk
    1Password Alumni
    Options

    Hi @jkbos,

    I'd like to apologize for the delay in getting back with you here. We've experienced a surge in support requests recently and are doing the best we can to get back to our usual speedy replies as soon as possible.

    1Password created a Primary vault for that User 2 on Mac 2 from the keychain I previously created in that users Documents folder. Is that not correct?

    During 1Password 4 setup on Mac 2, was that keychain automatically detected and used to populate and folder sync with the Primary vault? Regardless of how it was done, you could start over with a new database on Mac 2, create an empty Primary vault with a unique Master Password, then open the keychain in the Documents folder to create a secondary vault and sync with it.

    However, this sounds like you may first want to delete and recreate the secondary vault in your database on Mac 1, then folder sync to a new keychain that you'll use for creating and syncing with a secondary vault on Mac 2:

    At this point I think recreating the secondary vault with a new password and keychain and is quicker than editing the vaults details.

    That's quicker if you don't care about saving any data in either the vault or the keychain it's currently syncing with. :)

    Note: As long as any data you need is in a 1Password database you can always (re)create keychain data from it.

    The permissions issue occurred in first trying to save the keychain to Mac 2, one I had sufficient permissions in the user's documents folder it saved fine.

    Did you try changing any items on Mac 2 and check if they were correctly synced with secondary vault items on Mac 1?

    On Mac 1 Primary Vault and Secondary Vault synced to keychain on Mac 1.

    Each vault would have to be configured separately to sync with a different keychain. Which keychain is the Primary vault syncing with (if any) and is the secondary vault still configured to sync with the keychain stored in Documents on Mac 2?

    On Mac 2 User 1 syncs to that keychain over networks as I want that user to have access to the Primary and Secondary vault.

    It's impossible to sync both vaults with a single keychain. I'd suggested this possible configuration:

    You might want to sync/share your secondary vault with a secondary vault on the other Mac, keeping Primary vaults on both Macs private.

    Secondary Vault on Mac 1 is synced to keychain on Mac 2 User 2 (so Mac 2 User 2 only has access to secondary vault).

    That'll work. :)

    BTW, backups seem to be working correctly.

    Excellent!

    If there's anything else I can help you with or if you've got more questions please let me know.

  • jkbos
    jkbos
    Community Member
    Options

    Everything seems to be working well although I can't seem to add a secondary vault to 1Password on an iPhone via Wi-Fi. Is there a way to do that? That would be a very nice feature to have in the future. If that is not possible can you recommend a work around?

  • sjk
    sjk
    1Password Alumni
    Options

    Hi @jkbos,

    Sync with Dropbox and Import from iTunes are the sync methods available for secondary vaults in 1Password 4.5 for iOS. At the moment we're investigating an issue with Import from iTunes, currently leaving Sync with Dropbox as the only method of syncing data with a secondary vault. Wi-Fi syncing of secondary vaults and being able to copy/move items between vaults will probably be supported with a future update to 1Password for iOS.

    I'm sorry I don't have a better answer for you right now.

  • jkbos
    jkbos
    Community Member
    Options

    Thank you for that answer.

    There are a couple of issues with secondary vaults which I have questions about.

    With two vaults, primary and secondary, once the secondary vault is created there does not seem to be a way to change that password. Am I missing something?

    Also, with the secondary vault synced to a keychain on a network if the network is not available you can't open the secondary vault from the primary vault. To correct this you have to choose fix from the pop up dialog which removes the link to the synced keychain. That seems like a bug. You should be able to open the secodnary vault even if that's vault keychain sync file is not available.

    To explain my set up of a secondary vault, what I did was copy the items from the primary to a secondary vault, then synced that vault to a keychain (over a local network, the key chain is not on the machine with the primary) and then used that keychain to create a new primary vault on another machine, which is then synced to the secondary vault). This way I still have access to the secondary items in my primary vault on my mobile devices within the primary vault and I sync the two secondary vaults to the same keychain. That works the only thing that is missing is I can't sync that secondary vault to the mobile device with the primary vault via Wi-Fi. Not going back to Drop Box. We talked about this set up and it's good arrangement except for the aforementioned problem.

  • Meek
    edited May 2014
    Options

    Hi @jkbos‌,

    Thanks for the additional questions!

    Regarding your first question, you can indeed change your master password for a secondary vault. First, switch to that vault, and then go into 1Password > Preferences > Security and click Change Master Password (On Mac), or go into Settings > Security and click Change Master Password (on iOS). These settings are vault-specific, so whichever vault you currently have active will be the one that is updated.

    Well look at that! You are absolutely correct - currently there is no way to change the Master Password of a secondary vault. My mistake - sorry about that! We have this on our todo list. Thanks for adding your vote!

    Regarding your second question, have you updated 1Password for Mac to version 4.3? If not, give that a try and let us know if it works out any better.

  • jkbos
    jkbos
    Community Member
    Options

    Thanks for your answer to my questions about secondary vaults. See below.

    I just updated from 4.3 to 4.4 build 2. The problem with opening a secondary vault, which is synced to a keychain on a networked machine, persists in this version. It is not possible to open that secondary vault from within the primary vault of the original database where the secondary vault was created if that secondary vault is synced to a keychain and that keychain is not available.

    Seems like a bug, it should be possible to open that secondary vault regardless of whether the synced keychain is available.

    Let me know if you have additional questions. I'll hope for a fix in a future release to both this issue and changing the password of a secondary vault.

  • sjk
    sjk
    1Password Alumni
    Options

    Hi @jkbos,

    Here are some steps you can currently use to indirectly change the password and other details of a secondary vault: post #8.

    It is not possible to open that secondary vault from within the primary vault of the original database where the secondary vault was created if that secondary vault is synced to a keychain and that keychain is not available.

    If you wait long enough this notification should eventually appear:

    Some system errors can appear first depending on why the keychain that's configured to sync with the vault is unavailable (e.g. remote volume its on is unmounted and/or network connectivity is lost). After clicking Ignore in the notification, 1Password should switch to the vault, retain the current sync configuration, and still be able to reestablish syncing with the keychain again when it's available. After clicking Fix…, 1Password should switch to the vault and open the Sync preferences where the configuration will be disabled without being retained for future attempts to reestablish syncing.

    1Password can "beachball" for awhile, appearing to be in a hung state, if it's running when attempting to sync with a keychain on a network volume folder that's unavailable before timing out if it fails and displaying the 1Password Sync - Problem detected notification.

    That's some background on how 1Password currently responds to error conditions with network-based folder syncing configurations. I'm working with our developers to improve how this is handled.

This discussion has been closed.