Unable to launch 1Password 8. "A JavaScript error occurred in the main process"

rogeryee
rogeryee
Community Member

After updating to 1Password 8, the application will no longer launch properly but instead shows an error saying that "A JavaScript error occurred in the main process" (screenshot shown above)

Exact error description says:

Uncaught Exception:
Error: internal error in Neon module: assertion failed: check_path_perms(&socket_dir).await?
at /Applications/1Password.app/Contents/Resources/app.asar/main.js:2:213580
at Object.679 (/Applications/1Password.app/Contents/Resources/app.asar/main.js:2:213769)
at o (/Applications/1Password.app/Contents/Resources/app.asar/main.js:2:236285)
at /Applications/1Password.app/Contents/Resources/app.asar/main.js:2:236558
at Object.<anonymous> (/Applications/1Password.app/Contents/Resources/app.asar/main.js:2:236570)
at Module._compile (node:internal/modules/cjs/loader:1116:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/

Any help is greatly appreciated!


1Password Version: 8.7.0
Extension Version: Not Provided
OS Version: macOS Monterey 12.4 (21F79)

Comments

  • Alvin.L_1P
    edited May 2022

    Hey @rogeryee:

    I'm sorry for the trouble you've experienced with installing the 1Password 8 for Mac app. Please try following these steps to see if we can get 1Password up and running properly:

    1. Restart your Mac into safe mode: Apple - How to use safe mode on your Mac.
    2. Open Terminal.
    3. Paste the following commands and press return on your keyboard:

    chmod 700 ~/Library/Group\ Containers/2BUA8C4S2C.com.1password/
    chmod 700 ~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t
    chmod 600 ~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/s.sock

    4.Try to open 1Password 8 from your Applications folder. If it is not installed, you can download it from our website and install it.

    If that allows 1Password 8 to open and you can use it normally, try restarting your Mac again and then opening it from there.

    1Password expects its folders on your Mac to have particular folder permissions, only allowing your macOS user account access to the files and folders. The particular error you're seeing is that the permissions have been set in a way that allows more access to the folders than 1Password expects (considers safe), so 1Password "crashes" the app and shows the warning.

    If the permissions are changed on the folders I've shared above, the issue will return. Do you run any apps that would manage folders on your Mac, or automate things for you across your entire Mac (backup software, Hazel, Keyboard Maestro, etc.)? Those apps may be accidentally changing the permissions of the folders 1Password uses, as well as potentially other folders.

    Let me know how you get on with that, or if you run into any trouble along the way.

    Alvin

    ref: dev/core/core#15040

  • rogeryee
    rogeryee
    Community Member

    I don't remember installing anything that could have possibly changed my permissions, but your solution did fix it!

    Thank you so much!

  • On behalf of Alvin, you're welcome.

This discussion has been closed.