This is a staging forum for AgileBits, not an official support forum. Visit http://discussions.agilebits.com instead.

AGDatabaseError — file system permissions

<div class="IPBDescription">Cannot edit 1Password data after transfer</div>I used migration assistant to transfer 1Password to my new mac. When I open the application, all my old data is available, but when I try to edit something the following AGDatabaseError message appears:



Exception: Failed to save the object [Accounts/D69FD8D1524F43DB87F4521DD92DD7B6]: Error Domain=NSCocoaErrorDomain Code=513 UserInfo=0x11320aea0 "You don’t have permission to save the file “D69FD8D1524F43DB87F4521DD92DD7B6.1password” in the folder “default”." Underlying Error=(Error Domain=NSPOSIXErrorDomain Code=13 "The operation couldn’t be completed. Permission denied").



I transferred the 1Password keychain to my home username's library folder, but still get the same message.

Comments

  • [quote name='camac' timestamp='1288799007' post='14459']

    I used migration assistant to transfer 1Password to my new mac. When I open the application, all my old data is available, but when I try to edit something the following AGDatabaseError message appears:



    Exception: Failed to save the object [Accounts/D69FD8D1524F43DB87F4521DD92DD7B6]: Error Domain=NSCocoaErrorDomain Code=513 UserInfo=0x11320aea0 "You don’t have permission to save the file “D69FD8D1524F43DB87F4521DD92DD7B6.1password” in the folder “default”." Underlying Error=(Error Domain=NSPOSIXErrorDomain Code=13 "The operation couldn’t be completed. Permission denied").



    I transferred the 1Password keychain to my home username's library folder, but still get the same message.

    [/quote]



    Wow. That's awful. At the risk of sounding even more curmudgeonly than usual, have you tried using Disk Utility to repair permissions? <img src='http://forum.agile.ws/public/style_emoticons/<#EMO_DIR#>/sad.gif' class='bbc_emoticon' alt=':(' />
  • [quote name='brenty (toromei)' timestamp='1288855115' post='14484']

    Wow. That's awful. At the risk of sounding even more curmudgeonly than usual, have you tried using Disk Utility to repair permissions? <img src='http://forum.agile.ws/public/style_emoticons/<#EMO_DIR#>/sad.gif' class='bbc_emoticon' alt=':(' />

    [/quote]



    I just tried that (twice) and still get the same error message....
  • roustem
    roustem AgileBits Founder
    edited August 2011
    [quote name='camac' timestamp='1288885733' post='14493']

    I just tried that (twice) and still get the same error message....

    [/quote]



    This sounds like a file permissions issue. Most probably you copied the file from somewhere else and it got the permissions for a different user.



    Please try to the following:



    1. Select "1Password.agilekeychain" file in Finder.

    2. Control-click on the file to show the shortcut menu.

    3. Choose "Show Package Contents"

    4. Select "data" folder.

    5. Choose "File > Get Info menu"

    6. Make sure you have both "Read & Write" privileges under Sharing & Permissions section (at the bottom) in the info window.



    After you change the privileges to Read & Write, the important thing is to click the small gear button at the bottom of the window and choose "Apply to all enclosed items".
  • camac
    edited August 2011
    I did this but still get the error message [img]http://forum.agile.ws/public/style_emoticons/default/sad.gif[/img]
  • khad
    khad Social Choreographer
    Could you please email us your Diagnostics Report? This will help us track down the issue more quickly. You can generate the report from 1Password on your Mac by clicking the Help > Troubleshooting > Diagnostics Report... menu item and then attach the report to an e-mail to support@agile.ws



    [color="#FF0000"]Please do not post your Diagnostics Report in the forums.[/color]



    Please include a link to this thread, so we can "connect the dots."
  • [quote name='camac' timestamp='1289245434' post='14759']

    I did this but still get the error message <img src='http://forum.agile.ws/public/style_emoticons/<#EMO_DIR#>/sad.gif' class='bbc_emoticon' alt=':(' />

    [/quote]

    I had the same AGDatabaseError with a 1Password file that was the product of a conversion from another password manager Web Confidential.



    The instructions given by Roustem finally worked when I modified them to change the Permissions on the entire folder "1Password" in the User's Library/Application Support.

    Note my amendments in (ALL CAPS)



    1. Select "1Password.agilekeychain" file in Finder. (I SELECTED THE ENTIRE FOLDER "1PASSWORD")

    2. Control-click on the file to show the shortcut menu. (CONTROL CLICK ON "1PASSWORD" FOLDER)

    3. Choose "Show Package Contents" (IGNORE THIS STEP - YOU'RE MODIFYING THE "1PASSWORD" FOLDER

    4. Select "data" folder. (IGNORE THIS STEP)

    5. Choose "File > Get Info menu" ("GET INFO ON THE FOLDER "1PASSWORD"

    6. Make sure you have both "Read & Write" privileges under Sharing & Permissions section (at the bottom) in the info window.



    After you change the privileges to Read & Write, the important thing is to click the small gear button at the bottom of the window and choose "Apply to all enclosed items".
  • Thanks for the update DaleH, and for the extra tips, I'm glad you're up and running.



    [quote name='DaleH' timestamp='1299597133' post='22053']

    I had the same AGDatabaseError with a 1Password file that was the product of a conversion from another password manager Web Confidential.



    The instructions given by Roustem finally worked when I modified them to change the Permissions on the entire folder "1Password" in the User's Library/Application Support.

    Note my amendments in (ALL CAPS)



    1. Select "1Password.agilekeychain" file in Finder. (I SELECTED THE ENTIRE FOLDER "1PASSWORD")

    2. Control-click on the file to show the shortcut menu. (CONTROL CLICK ON "1PASSWORD" FOLDER)

    3. Choose "Show Package Contents" (IGNORE THIS STEP - YOU'RE MODIFYING THE "1PASSWORD" FOLDER

    4. Select "data" folder. (IGNORE THIS STEP)

    5. Choose "File > Get Info menu" ("GET INFO ON THE FOLDER "1PASSWORD"

    6. Make sure you have both "Read & Write" privileges under Sharing & Permissions section (at the bottom) in the info window.



    After you change the privileges to Read & Write, the important thing is to click the small gear button at the bottom of the window and choose "Apply to all enclosed items".

    [/quote]
  • Hi All,



    Sorry this is my first post here and it is one seeking help. But I have searched the forum and the net and can't find out how

    to fix this.



    Please see: http://content.screencast.com/users/cklinkert/folders/Jing/media/f7f2fe41-2908-48b4-ba68-272639840d8e/00000011.png



    It is saying: AGDatabase Error



    "Failed to save object" because you do not have permissions to access default in data folder.



    I searched my hard drive and all locations for those folder and file names, no luck. I have no idea how to fix it so it saves my

    passwords and also syncs with DropBox



    Any help would be awesome, thanks!
  • Can someone please help me?



    My hard drive died, so I got a new hard drive and ran this from a backup. I have tried everything to get it to work.
  • [Deleted User]
    edited June 2011
    Hello strikers and welcome to the Forums!



    I moved your topic to a similar thread.



    I'm sorry that you're having this issue, and after regrouping from a hard drive failure, I'm sure you want to end the misery as soon as possible!



    Please review the procedures mentioned above and let us know your results.



    Cheers!



    Brandt
  • khad
    khad Social Choreographer
    edited June 2011
    Without seeing your Diagnostics Report, it sounds like 1Password is trying to use a copy of your data that is stored in your Time Machine backup. 1Password will be able to read that data, but won't be able to make any changes to it.



    You will need to restore that datafile to its proper place and use the restored copy for 1Password to work properly. Please quit 1Password and Start Time Machine. Within Time Machine navigate to



    Home > Library > Application Support > 1Password



    and look for the file 1Password.agilekeychain there on your Time Machine backup. Select it (one click), but do not launch it (don't double click on it).



    Now we need to restore it. Click on the gears thing in the Time Machine "Finder" tool bar and select Restore ... You will be asked where you would like this restored to. The location to restore it to is



    Home > Library > Application Support > 1Password



    This time it should be placed where it belongs in your real Home and not in Time Machine.



    Once you have done that navigate to that restored file in its real location (not on Time Machine) and double click on it. 1Password will ask you if you want to switch to using this data file. Say "yes".



    After this, everything should be working fine, and you will be able to save changes to your data.



    The steps will be slightly different if you are not using Time Machine but essentially the same for any backup. [b]You need to restore the file before trying to use it with 1Password.[/b] If you [url="http://forum.agile.ws/index.php?/topic/2461-agdatabaseerror-%e2%80%94-file-system-permissions/page__view__findpost__p__14771"]send us a Diagnostics Report[/url] as suggested earlier in the thread, we can provide more personalized assistance. <img src='http://forum.agile.ws/public/style_emoticons/<#EMO_DIR#>/skype_smile.png' class='bbc_emoticon' alt=':-)' />



    Please let me know how it turns out.



    Thanks!
  • Salman Malik
    edited July 2011
    I'm getting the same "AGDatabaseError" reported by camac at the top of the thread when trying to create, modify, or delete login records in 1password.



    The context -- I'm using Dropbox to sync 1password data between my home and work Macs. I've verified that my account on this office-based Mac has read & write access to the 1password.agilekeychain file on dropbox, but I'm still getting the error. I performed the migration to Dropbox a few days ago and I believe that create/edit/delete *was* working at first. Seems to have stopped somewhere along the way. I've also verified that it's not an issue of my Dropbox account being over-quota, as I have over 50% of my Dropbox capacity still free.



    Can anyone help?
  • khad
    khad Social Choreographer
    Welcome to the forums, Salman. I'm sorry that you are having this problem.



    To help us track down the issue more quickly, could you please email us your Diagnostics Report from the Mac where you are having the trouble? To generate the report from 1Password on your Mac, open 1Password and select Help > Troubleshooting > Diagnostics Report. Then attach the entire file to an email to support@agilebits.com.



    Please include a link to this thread in order that we might more quickly "connect the dots" when we see your Diagnostics Report in our inbox.



    [color="#FF0000"]Please do not post your Diagnostics Report in the forums, though.[/color]



    Thanks!
  • Khad-- Thanks for the speedy response. The Diagnostics report points out that I may have an invalid Mac shortname-- it should contain only lowercase letters apparently, and mine contains an underscore. There's a link to the following help doc posted by Apple on how to change a shortname: http://support.apple.com/kb/ht1428. Let me do that first and see if it fixes.



    Salman
  • khad
    khad Social Choreographer
    I am optimistic. Please let me know how it turns out. <img src='http://forum.agile.ws/public/style_emoticons/<#EMO_DIR#>/skype_bigsmile.png' class='bbc_emoticon' alt=':-D' />



    Cheers!
  • Dude
    Dude Junior Member
    HI,

    same problem here...

    get the same AGDatabaseError.

    my 1Password.agilechain file is stored in a Dropbox folder.

    All rights are set, as far as i know.
  • [Deleted User]
    edited August 2011
    Hey Dude,



    If you've tried the other suggestions listed in this thread, and you are still having this issue, please send us a Diagnostics Report using the instructions posted by Khad: [url="http://forum.agilebits.com/index.php?/topic/2461-agdatabaseerror-%e2%80%94-file-system-permissions/page__view__findpost__p__31918"]Submit Diagnostic Report[/url]



    We look forward to helping resolve this issue for you.



    Cheers!



    Brandt