drpbier
-
Posts
10 -
Joined
-
Last visited
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by drpbier
-
-
Just now, vitor said:
You’ll have to ask 1Password about it. It’s their tool having the issue, which as you can attest happens even outside the Workflow. I did a quick search online and haven’t found anyone else affected with that exact problem.
ok - thanks Vitor
-
53 minutes ago, vitor said:
The issue is that the 1Password command-line tool, op, is unable to create the configuration directory:
Can you (in the Terminal) /usr/local/bin/op signin --force?
Terminal says:
iMac:~ davidbier$ /usr/local/bin/op signin --force
[ERROR] 2022/07/21 19:16:23 cannot create directory "/Users/davidbier/.config/op" and the parent directories: mkdir /Users/davidbier/.config/op: permission denied
-
54 minutes ago, vitor said:
I mean the the debugger output (open it and perform the failing action). Also, whatever output the Terminal shows, if that’s the case. I don’t know if the issue you’re facing is still the same.
OK. the issue I'm facing is that when I open the Alfred dialogue and use the 1P command to 'Sign in and update items' I get the terminal saying I'm running an old version of the CLI despite having updated it (I thought)
See Terminal output:
Last login: Thu Jul 21 17:56:24 on ttys000
You have mail.
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
iMac:~ davidbier$ /bin/zsh /var/folders/mt/6hsg69gn461by0hg349zgz6c0000gn/T/tmp.7Yirk0rH
[ERROR] 2022/07/21 18:02:57 cannot create directory "/Users/davidbier/.config/op" and the parent directories: mkdir /Users/davidbier/.config/op: permission denied
./1password.js: execution error: Error: SyntaxError: JSON Parse error: Unexpected EOF (-2700)
[ERROR] 2022/07/21 18:02:57 cannot create directory "/Users/davidbier/.config/op" and the parent directories: mkdir /Users/davidbier/.config/op: permission denied
./1password.js: execution error: Error: SyntaxError: JSON Parse error: Unexpected EOF (-2700)
/Users/davidbier/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.2188584F-CC60-49F0-8525-BAB76ADBC925/signin.zsh:16: command not found: ''
------------------------- IMPORTANT -------------------------
You have an old version of the 1Password command-line tool.
Install the latest version from:
https://1password.com/downloads/command-line/
Then run the Workflow again.
You may close the terminal.
-------------------------------------------------------------
Here is the Alfred debugger output:
[18:02:13.251] Logging Started...
[18:02:51.694] 1Password[Script Filter] Queuing argument '(null)'
[18:02:51.710] 1Password[Script Filter] Script with argv '(null)' finished
[18:02:51.712] 1Password[Script Filter] { "items": [{
"title": "Sign in and update items",
"subtitle": "Your terminal will open with instructions",
"arg": "update_items"
}] }
[18:02:56.624] 1Password[Script Filter] Processing complete
[18:02:56.626] 1Password[Script Filter] Passing output 'update_items' to Conditional
[18:02:56.627] 1Password[Conditional] Processing complete
[18:02:56.628] 1Password[Conditional] Passing output 'update_items' to Run Script
[18:02:56.638] 1Password[Run Script] Processing complete
[18:02:56.638] 1Password[Run Script] Passing output '/var/folders/mt/6hsg69gn461by0hg349zgz6c0000gn/T/tmp.7Yirk0rH' to Terminal Command
[18:02:57.414] 1Password[Terminal Command] Processing complete
[18:02:57.419] 1Password[Terminal Command] Passing output '/var/folders/mt/6hsg69gn461by0hg349zgz6c0000gn/T/tmp.7Yirk0rH' to Run Script
-
6 minutes ago, vitor said:
You are a version behind and it’s been over a month since you last posted on this thread. Please update, do the command, and paste the new debugger output.
Yes, I thought I'd come back and try again. Apologies. New output below
### Workflow version
2022.13### Alfred version
4.7### macOS version
12.4### Architecture
i386### Workflow environment variables
Dict {
auto_refresh = 1
logins_only = 0
hostnames_only = 1
}### 1Password version
8.8.0### op version
In Workflow: 2.2.0
In /usr/local: 2.5.1### Biometric unlock
NOT enabled### Custom terminal feature
NOT enabled### Launchd job
Loaded: - 0 com.alfredapp.1password
Installed
-
3 minutes ago, vitor said:
@drpbier You run it in Alfred, not the Terminal.
Aah.
### Workflow version
2022.12### Alfred version
4.7### macOS version
12.4### Architecture
i386### Workflow environment variables
Dict {
auto_refresh = 1
logins_only = 0
hostnames_only = 1
}### 1Password version
8.8.0### op version
In Workflow: 2.2.0
In /usr/local: 2.5.1### Biometric unlock
NOT enabled### Custom terminal feature
NOT enabled### Launchd job
Loaded: - 0 com.alfredapp.1password
Installed
-
On 6/10/2022 at 6:08 PM, vitor said:
@drpbier Please provide the output of !1pdiagnostics.
iMac:~ davidbier$ !1pdiagnostics
defaultspdiagnostics
-bash: defaultspdiagnostics: command not found
iMac:~ davidbier$
-
Hi, I can't log in as I get the following in Terminal:
[ERROR] 2022/06/10 17:41:26 cannot create directory "/Users/davidbier/.config/op" and the parent directories: mkdir /Users/davidbier/.config/op: permission denied
./1password.js: execution error: Error: SyntaxError: JSON Parse error: Unexpected EOF (-2700)
[ERROR] 2022/06/10 17:41:26 cannot create directory "/Users/davidbier/.config/op" and the parent directories: mkdir /Users/davidbier/.config/op: permission denied
./1password.js: execution error: Error: SyntaxError: JSON Parse error: Unexpected EOF (-2700)
/Users/davidbier/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.2188584F-CC60-49F0-8525-BAB76ADBC925/signin.zsh:16: command not found: ''
------------------------- IMPORTANT -------------------------
You have an old version of the 1Password command-line tool.
Install the latest version from:
https://1password.com/downloads/command-line/
Then run the Workflow again.
You may close the terminal.
-------------------------------------------------------------
I have visited the URL and updated the CLI.
-
Are you searching for bookmarks that are specifically listed in Alfred's preferences? For a bookmark to be valid, it needs to contain a URL beginning with http:// or https:// in 1Password.
Typing "1p" followed by your bookmark name should bring up any bookmark listed in Alfred's preferences. If you've also checked the box for "Show in default results without keyword", then simply type the bookmark name without "1p".
If you're still encountering issues, please pop an email to info@alfredapp com with more details and I'll be happy to help.
Ah...error between user and chair.... Thanks
-
Hi - I followed this thread and have performed all the steps, plus restarted Alfred, but I still can't search for 1P logins, though I can see them in the Alfred preferences
1Password — Search and open 1Password items
in Share your Workflows
Posted
?Hi all. A helpful person on the 1password forum solved the issue for me:
I had this exact same issue. Ended up being because the .config directory in my home folder was owned by root rather than me.
Confirm by running
ls -la ~ | grep .config
Mine was:
drwxr-xr-x 4 root staff 128 Jul 27 22:54 .config
This means that directory is owned by
root
and grouped tostaff
To resolve:
sudo chown username ~/.config
where "username" is your actual username. You can find that by running the commandwhoami