unable to get credentials and initialize API ... read /home/opuser/.op/1password-credentials.json:
I am trying to spin up a basic 1password connect server. I have created my Access Token and Credentials file, spun up a fresh server, loaded the 1password-credentials.json file onto the directory ~/1pass, and placed the example docker-compose.yml file there, then ran docker-compose up (leaving off the -d to see logs). The result is that the API server begins advertizing, but gives a 500 error when we try to perform a basic GET, and the sync server gives the following errors on repeat:
1pass-op-connect-sync-1 | {"log_message":"(I) ### syncer credentials bootstrap ### ","timestamp":"2021-10-22T01:38:10.855503326Z","level":3}
1pass-op-connect-sync-1 | {"log_message":"(E) Server: (unable to get credentials and initialize API, retrying in 30s), Wrapped: (failed to FindCredentialsUniqueKey), Wrapped: (failed to loadCredentialsFile), Wrapped: (LoadLocalAuthV2 failed to credentialsDataFromDisk), read /home/opuser/.op/1password-credentials.json: is a directory","timestamp":"2021-10-22T01:38:10.855634306Z","level":1}
I have seen an error like this before, it appears to think this file is a directory if I'm interpreting it correctly. Looks like that is the directory inside of the container. I have not seen this behavior when searching google for errors pertaining to 1Password Connect server. Any ideas? It's also strange to me that the API server wouldn't be giving similar logs regarding the same file. Here is the docker-compose.yml example provided to me by the getting started page:
```
version: "3.4"
services:
op-connect-api:
image: 1password/connect-api:latest
ports:
- "8080:8080"
volumes:
- "./1password-credentials.json:/home/opuser/.op/1password-credentials.json"
- "data:/home/opuser/.op/data"
op-connect-sync:
image: 1password/connect-sync:latest
ports:
- "8081:8080"
volumes:
- "./1password-credentials.json:/home/opuser/.op/1password-credentials.json"
- "data:/home/opuser/.op/data"
volumes:
data:
```
Indeed, I executed into the container and see that this IS a directory. Why is the example container configuration written this way?
opuser@963a30dfde8c:~/.op$ ls -l
total 0
drwxr-xr-x 2 root root 6 Oct 22 00:53 1password-credentials.json
drwx------ 3 opuser root 99 Oct 22 00:53 data
I got the file from this page https://support.1password.com/connect-deploy-docker/#step-2-deploy-a-1password-connect-server
specifically this link https://i.1password.com/media/1password-connect/docker-compose.yaml
These docker volume configurations will mount the file, not the directory, to a path called /home/opuser/.op/1password-credentials.json/ inside the container. There is no file inside of /home/opuser/.op/1password-credentials.json/
On https://github.com/1Password/connect/blob/main/README.md, the docker-compose instructions point to an empty file.
I am getting very lost. Someone please explain why the container is configured to mount a file as a directory, and what a legitimate docker-compose.yml would look like in order to properly build this container, or otherwise where I have gone astray.
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Amazon_Linux
