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

1Password App Immediately Locks After Unlocking

Fooligan
Fooligan
edited September 2011 in Mac
I am noticing a bug where my vault immediately locks after unlocking after upgrading to 3.9. Is anyone else experiencing this? This is the console line that is spit out after it locks itself.



[CODE]

9/8/11 3:44:19.048 PM [0x0-0x32032].com.agilebits.onepassword-osx: Sep 8 15:44:19 Nicks-iMac.local 1Password[453] <Debug>: [39001] <AGBonjourMonitor: 0x7fb919d46850> - -[AGBonjourMonitor stop]

[/CODE]
«1

Comments

  • botsmack
    edited September 2011
    Yes, I was just getting ready to post a topic about this. I updated to 3.9 from the MAS about 5 minutes ago. Everything went fine. However, upon unlocking the main app, it locks itself about 30 seconds later. Tried it with and without the helper menu — no luck.



    Console output:



    [CODE]

    9/8/11 5:00:10.973 PM [0x0-0x7e67e6].com.agilebits.onepassword-osx: Sep 8 17:00:10 Richards-MacBook-Pro.local 1Password[3882] <Debug>: [39001] <AGBonjourMonitor: 0x7ff11b22d6c0> - -[AGBonjourMonitor stop]

    [/CODE]



    I also received these console events when opening 1Password:



    [CODE]

    9/8/11 5:13:22.947 PM sandboxd: ([3817]) 1Password Helper(3817) deny file-issue-extension /Users/richard/Dropbox/1Password/1Password.agilekeychain

    9/8/11 5:13:22.947 PM 1Password Helper: Bookmark failed to issue extension for item /Users/richard/Dropbox/1Password/1Password.agilekeychain (depth=1): Operation not permitted

    [/CODE]



    Then here's the console output after unlocking:



    [CODE]

    9/8/11 5:17:01.721 PM 1Password: reloadAllObjects

    9/8/11 5:17:01.721 PM 1Password: [39001] reloadAllObjects

    9/8/11 5:17:01.721 PM [0x0-0x7e97e9].com.agilebits.onepassword-osx: Sep 8 17:17:01 Richards-MacBook-Pro.local 1Password[4043] <Notice>: [39001] reloadAllObjects

    9/8/11 5:17:01.790 PM 1Password: Database (OPXPCDatabase:file://localhost/Users/richard/Dropbox/1Password/1Password.agilekeychain/) load time [XPC]: 0.067+0.001 (483 objects)

    9/8/11 5:17:01.790 PM 1Password: [39001] Database (OPXPCDatabase:file://localhost/Users/richard/Dropbox/1Password/1Password.agilekeychain/) load time [XPC]: 0.067+0.001 (483 objects)

    9/8/11 5:17:01.790 PM [0x0-0x7e97e9].com.agilebits.onepassword-osx: Sep 8 17:17:01 Richards-MacBook-Pro.local 1Password[4043] <Notice>: [39001] Database (OPXPCDatabase:file://localhost/Users/richard/Dropbox/1Password/1Password.agilekeychain/) load time [XPC]: 0.067+0.001 (483 objects)

    9/8/11 5:17:01.846 PM 1Password Helper: [39001] [ES] com.apple.Safari action: syncRequest [196/1453]

    9/8/11 5:17:01.846 PM com.agilebits.onepassword-osx-helper: Sep 8 17:17:01 Richards-MacBook-Pro.local 1Password Helper[3817] <Notice>: [39001] [ES] com.apple.Safari action: syncRequest [196/1453]

    9/8/11 5:17:02.023 PM [0x0-0x7e97e9].com.agilebits.onepassword-osx: Sep 8 17:17:02 Richards-MacBook-Pro.local 1Password[4043] <Debug>: [39001] <AGBonjourMonitor: 0x7fdb72246200> - -[AGBonjourMonitor start]

    9/8/11 5:17:02.023 PM [0x0-0x7e97e9].com.agilebits.onepassword-osx: Sep 8 17:17:02 Richards-MacBook-Pro.local 1Password[4043] <Debug>: [39001] <AGBonjourMonitor: 0x7fdb72246200> - -[AGBonjourMonitor netServiceBrowserWillSearch:]

    9/8/11 5:17:03.108 PM [0x0-0x7e97e9].com.agilebits.onepassword-osx: Sep 8 17:17:03 Richards-MacBook-Pro.local 1Password[4043] <Debug>: [39001] <AGBonjourMonitor: 0x7fdb72246200> - -[AGBonjourMonitor stop]

    [/CODE]



    In this scenario it locked almost immediately after unlocking.
  • @botsmack,



    Are you using the Beta versions of the extensions or the stable?



    Thanks.
  • botsmack
    edited September 2011
    [quote name='Fooligan' timestamp='1315521023' post='45764']

    @botsmack,



    Are you using the Beta versions of the extensions or the stable?



    Thanks.

    [/quote]



    I tried both. Originally, I was running the 3.8.2 extension, but then tried 3.8.3b3. Same problem with either. Thought a Safari restart might help too, but it didn't.
  • roustem
    roustem AgileBits Founder
    edited September 2011
    What are your security settings? Do you have Lock on Screen Saver enabled?
  • Fooligan
    Fooligan
    edited September 2011
    [quote name='roustem' timestamp='1315521515' post='45773']

    What are you security settings? Do you have Lock on Screen Saver enabled?

    [/quote]



    Yes, I do have Lock on Screen Saver enabled.



    UPDATE: If Lock on Screen Saver is disabled, 1Password still locks after a few seconds.
  • roustem
    roustem AgileBits Founder
    edited September 2011
    [quote name='Fooligan' timestamp='1315521619' post='45776']



    Yes, I do have Lock on Screen Saver enabled.

    [/quote]



    Please try to turn it off and see if it changes anything.
  • [quote name='roustem' timestamp='1315521678' post='45777']



    Please try to turn it off and see if it changes anything.

    [/quote]



    I went ahead and tried that after your first post and updated mine above. I don't see any change in the behavior.
  • botsmack
    edited September 2011
    [quote name='roustem' timestamp='1315521515' post='45773']

    What are your security settings? Do you have Lock on Screen Saver enabled?

    [/quote]



    Mine are set like so: no lock on screen saver set, lock after 20 minutes of inactivity, lock when sleeping.



    As a side note, it locks at random intervals between 5-30 seconds after unlocking. It will lock while I'm even in 1Password's preferences window.
  • roustem
    roustem AgileBits Founder
    Thank you for testing the screen saver setting. It looks like the problem is somewhere else.



    Does it happen if you turn off all automatic lock settings?
  • [quote name='roustem' timestamp='1315522231' post='45792']

    Thank you for testing the screen saver setting. It looks like the problem is somewhere else.



    Does it happen if you turn off all automatic lock settings?

    [/quote]







    I disabled all security settings and the app is running normally now. I am about to head home from work, but I will test further to determine which setting is the culprit at home later this evening. Thanks for the quick help. Obviously, this is a big day for the Agile team. I understand if you get busy serving other customer issues.
  • [quote name='roustem' timestamp='1315522231' post='45792']

    Does it happen if you turn off all automatic lock settings?

    [/quote]



    After three attempts to turn off all automatic lock settings (I had the preferences window open, but every time I moved the mouse to it, 1Password locked!), I finally turned them off. And, it worked. No automatic locks yet.
  • roustem
    roustem AgileBits Founder
    [quote name='botsmack' timestamp='1315522755' post='45801']



    After three attempts to turn off all automatic lock settings (I had the preferences window open, but every time I moved the mouse to it, 1Password locked!), I finally turned them off. And, it worked. No automatic locks yet.

    [/quote]



    Wow. This is really strange. Please check the helper settings. You can do this using Terminal:



    [code] defaults read com.agilebits.onepassword-osx-helper [/code]
  • I tested those settings separately and so far it seems to be the the timeout after 20 minutes setting. I tried the sleep lock and did other stuff — no locking. I turned that off and then enabled the timeout lock — it locked on me after about 30-45 seconds.
  • botsmack
    edited September 2011
    [quote name='roustem' timestamp='1315522867' post='45804']



    Wow. This is really strange. Please check the helper settings. You can do this using Terminal:



    [code] defaults read com.agilebits.onepassword-osx-helper [/code]

    [/quote]



    Ok, I'll try this next and report back. I did want to mention that when the timeout lock is set and 1Password is unlocked, I cannot use the up-down arrows to change the time from "20". I can manually type it a number, though. Strangely, once 1Password locks, the up-down arrows become active allowing me to click them to decrease/increase the timeout while everything else is grayed out.
  • roustem
    roustem AgileBits Founder
    [quote name='botsmack' timestamp='1315522958' post='45805']

    I tested those settings separately and so far it seems to be the the timeout after 20 minutes setting. I tried the sleep lock and did other stuff — no locking. I turned that off and then enabled the timeout lock — it locked on me after about 30-45 seconds.

    [/quote]



    Thank you for the update. Please see if the LockTimeout is set to 20 when you run

    [code]

    defaults read com.agilebits.onepassword-osx-helper LockTimeout

    [/code]
  • botsmack
    edited September 2011
    [quote name='roustem' timestamp='1315522867' post='45804']



    Wow. This is really strange. Please check the helper settings. You can do this using Terminal:



    [code] defaults read com.agilebits.onepassword-osx-helper [/code]

    [/quote]



    Here's the output.



    [CODE]

    {

    ClearPasteboardAfterTimeout = 1;

    DatabasePath = "/Users/richard/Dropbox/1Password/1Password.agilekeychain";

    LockOnIdle = 1;

    LockOnScreenSaver = 0;

    LockOnSleep = 0;

    LockTimeout = 20;

    PasteboardClearTimeout = 90;

    "ShortcutRecorder bookmarks" = {

    keyChars = "\\\\";

    keyCharsIgnoringModifiers = "\\\\";

    keyCode = 42;

    modifierFlags = 1572864;

    modifiers = 2304;

    };

    "ShortcutRecorder restoreForm" = {

    keyChars = "\\\\";

    keyCharsIgnoringModifiers = "\\\\";

    keyCode = 42;

    modifierFlags = 1048576;

    modifiers = 256;

    };

    ShowStatusItem = 0;

    }

    [/CODE]
  • roustem
    roustem AgileBits Founder
    The settings look great. However, something makes 1Password think that your Mac was idle for 20 minutes. I am going to ask Chad, maybe he has an idea what could be wrong there.



    Could you please tell us more about your Mac?
  • botsmack
    edited September 2011
    [quote name='roustem' timestamp='1315523640' post='45824']

    Could you please tell us more about your Mac?

    [/quote]



    Sure. I'm on an "Early 2011" MacBook Pro (2.3GHz, 8GB, SSD+HDD) running Lion (10.7.1). I've got the standard set of apps open: Safari, Terminal, nvALT, BBEdit, Twitterrific, Reeder, Sparrow, TextExpander, Keyboard Maestro, Caffeine Default Folder X, OmniFocus, Sidekick, Yojimbo, etc.



    Inside Terminal at the moment, I'm connected to my office computer via SSH to create a tunnel for an application called [url="http://synergy-foss.org/"]Synergy[/url]. It allows you to share a keyboard and mouse between two computers over a network — in this case my MacBook Pro is running the Synergy client and my Windows 7 PC is running the server. I've been in this configuration for about 2 years now spanning to an older MacBook Pro and older versions of 1Password.



    If there's anything else you need to know, please ask. I'll be happy to help.
  • chadseld
    chadseld 1Password Developer
    Are any of you running a product called Air Display?
  • botsmack
    edited September 2011
    [quote name='chadseld' timestamp='1315524692' post='45851']

    Are any of you running a product called Air Display?

    [/quote]



    Not me.
  • [quote name='chadseld' timestamp='1315524692' post='45851']

    Are any of you running a product called Air Display?

    [/quote]



    I am not using Air Display.





    [quote name='roustem' timestamp='1315523640' post='45824']

    The settings look great. However, something makes 1Password think that your Mac was idle for 20 minutes. I am going to ask Chad, maybe he has an idea what could be wrong there.



    Could you please tell us more about your Mac?

    [/quote]



    Here is the output from Terminal.app for 1Password Helper. I changed my timeout time to 30 minutes after installation though.



    [CODE]

    {

    ClearPasteboardAfterTimeout = 1;

    DatabasePath = "/Users/nickclements/Dropbox/1Password.agilekeychain";

    LockOnIdle = 0;

    LockOnScreenSaver = 1;

    LockOnSleep = 1;

    LockTimeout = 30;

    PasteboardClearTimeout = 90;

    "ShortcutRecorder bookmarks" = {

    keyChars = "\\\\";

    keyCharsIgnoringModifiers = "\\\\";

    keyCode = 42;

    modifierFlags = 1572864;

    modifiers = 2304;

    };

    "ShortcutRecorder restoreForm" = {

    keyChars = "\\\\";

    keyCharsIgnoringModifiers = "\\\\";

    keyCode = 42;

    modifierFlags = 1048576;

    modifiers = 256;

    };

    ShowStatusItem = 1;

    }

    [/CODE]



    Here is my system info:



    [CODE]

    Hardware Overview:

    Model Name: iMac

    Model Identifier: iMac7,1

    Processor Name: Intel Core 2 Duo

    Processor Speed: 2.4 GHz

    Number of Processors: 1

    Total Number of Cores: 2

    L2 Cache: 4 MB

    Memory: 4 GB

    Bus Speed: 800 MHz

    [/CODE]
  • After disabling and re-enabling the Lock After X Minutes of Inactivity I have not seen this issue. For now, I have it set at 30 minutes. From my previous observations, this problem eventually shows up after rebooting my iMac. I will post here if I notice anything else with this problem.
  • leoofborg
    leoofborg Junior Member
    edited September 2011
    Hi Folks... I'm running 1Password 3.9 on 2 Macs, my MBP as well as a new 2011 Mini with the HDMI running straight into an HDTV...



    Could it be that 1280x720 is 'too small' a display to register? If you're checking for display sizes?



    On my MBP, I do not have the problem. On my Mac 1 second passes AND THEN the 1P app 'slams shut'. I had to be VERY QUICK with ARD to click over to the prefs and TURN OFF Autolocking.



    IMHO there's probably some bug with the Autolocking checkbox... I have both other checkboxes for 'Lock when Sleeping' (the machine never sleeps) and 'Lock When Screensaver Activated' set to on. Here are my pref settings (w Autolock OFF, all others as-is):





    [CODE]

    {

    ClearPasteboardAfterTimeout = 1;

    DatabasePath = "/Users/lmarihar/Dropbox/1PasswordSync/1Password.agilekeychain";

    LockOnIdle = 0;

    LockOnScreenSaver = 1;

    LockOnSleep = 1;

    LockTimeout = 5;

    PasteboardClearTimeout = 90;

    "ShortcutRecorder bookmarks" = {

    keyChars = "\\\\";

    keyCharsIgnoringModifiers = "\\\\";

    keyCode = 42;

    modifierFlags = 1572864;

    modifiers = 2304;

    };

    "ShortcutRecorder restoreForm" = {

    keyChars = "\\\\";

    keyCharsIgnoringModifiers = "\\\\";

    keyCode = 42;

    modifierFlags = 1048576;

    modifiers = 256;

    };

    ShowStatusItem = 1;

    autosubmit = 0;

    }[/CODE]





    In the interim, disabling that one checkbox solves my problem...





    POSTSCRIPT: Okay, this is really freaky. I was ARD'ing in (to a machine 10' away, the Mini)... So, on a whim, and after seeing things like this in my log:





    [quote]

    Sep 8 18:56:29 SAURON [0x0-0x1ad1ad].com.agilebits.onepassword-osx[24206]: Sep 8 18:56:29 SAURON.local 1Password[24206] <Debug>: [39001] <AGBonjourMonitor: 0x7f950d353d50> - -[AGBonjourMonitor start]

    Sep 8 18:56:29 SAURON [0x0-0x1ad1ad].com.agilebits.onepassword-osx[24206]: Sep 8 18:56:29 SAURON.local 1Password[24206] <Debug>: [39001] <AGBonjourMonitor: 0x7f950d353d50> - -[AGBonjourMonitor netServiceBrowserWillSearch:]

    Sep 8 18:56:30 SAURON 1Password[24206]: [39001] Refreshing Helper

    Sep 8 18:56:30 SAURON [0x0-0x1ad1ad].com.agilebits.onepassword-osx[24206]: Sep 8 18:56:30 SAURON.local 1Password[24206] <Notice>: [39001] Refreshing Helper

    [/quote]

    [left]Ummmmmm 1Password using Bonjour? To...umm..? Okay, sniffing for...? Whatever, I think. Let's try NOT remoting, I think.. so-[/left][left]I quit ARD, and then attempted to set auto-lock ON... surprise? No more locking after 1 second now..[/left][left]So 1 clicked the settings on/off a couple times..... and then 're-ARD'ed in..[/left][left]Now I don't have the problem. *sigh*, I really hate head-scratchers like this one.[/left][left]-Leo





    [/left]
  • Two things:



    1) I too changed my timeout settings from 20 to 30 (not sure why this helps), but didn't notice any auto-locking issues after that. I will do more testing tomorrow.



    2) The arrow buttons for adjusting the time in the timeout setting are disabled when unlocked and enabled when locked. Please see my screenshots.



    [img]http://img11.imageshack.us/img11/9782/20110908220337.png[/img]



    [img]http://img534.imageshack.us/img534/2664/20110908220405.png[/img]
  • roustem
    roustem AgileBits Founder
    [quote name='leoofborg' timestamp='1315533043' post='45977']

    Ummmmmm 1Password using Bonjour? To...umm..? Okay, sniffing for...? Whatever, I think. Let's try NOT remoting, I think.. so-[left]I quit ARD, and then attempted to set auto-lock ON... surprise? No more locking after 1 second now..[/left][left]So 1 clicked the settings on/off a couple times..... and then 're-ARD'ed in..[/left][left]Now I don't have the problem. *sigh*, I really hate head-scratchers like this one.[/left][left]-Leo

    [/quote]



    Thank you for the information, Leo!



    I am still not sure what's happening there.



    Re: Bonjour. 1Password is using it to find iOS devices to do the Wi-Fi sync with.

    [/left]
  • roustem
    roustem AgileBits Founder
    [quote name='botsmack' timestamp='1315538067' post='46034']

    Two things:



    1) I too changed my timeout settings from 20 to 30 (not sure why this helps), but didn't notice any auto-locking issues after that. I will do more testing tomorrow.





    [/quote]



    Wow. I am glad you found a workaround. We'll dig into this tomorrow and hopefully will figure it out.



    [quote name='botsmack' timestamp='1315538067' post='46034']

    2) The arrow buttons for adjusting the time in the timeout setting are disabled when unlocked and enabled when locked. Please see my screenshots.



    [img]http://img11.imageshack.us/img11/9782/20110908220337.png[/img]



    [img]http://img534.imageshack.us/img534/2664/20110908220405.png[/img]

    [/quote]



    Thank you for the screenshots! I got it fixed for the next update.
  • Hi, I'm also having this problem and yes I'm also running Air Display.
  • When I was having issues earlier, I was using LogMeIn to remote into my Mac from a windows machine. I do this most of the day to use certain applications. This did not occur to me at first. But, maybe that is related to the guess that Air Display was causing the problem.
  • leoofborg
    leoofborg Junior Member
    edited September 2011
    Hi Roustem... Here's another one: While ARD'ing in I did some changes to my desktop (clicking, typing)... and when I went to 1Password I *briefly* had the 'quick lock' bug again....



    But then: What I did was to quit ARD and then use the Bluetooth Keyboard directly paired to the Mini.. and didn't get the bug.



    So, is there some issue with input from remote (Or maybe ARD not using window/mouse focus) that 1Password does not expect?



    Sorry if this comes off like a shot in the dark...



    --Leo



    UPDATE: I just read the two posts above.... Seems like Screen Sharing / Remote / ARD is a commonality now? Or "input from a remote access client and/or control app?" (like these 'trackpad via your iPhone' using VNC apps)?
  • I just installed 1Password 3.9 from the MAS. It seems to work OK, and it found my 3.8.5 file on Dropbox without hassle. However, the database auto-locks itself SECONDS after unlocking it. EVen if I am in the middle of adding an object to it, it just slams shut.



    I looked in the preferences, and it it set to auto-lock after 20 MINUTES.



    C'mon guys - it's bad enough I have to buy this again, about a month after buying it the first time, but please make sure it works.



    Any help would be great. And please, PLEASE don't tell me that this is actually a "feature."



    Todd