Receiving an error message on a new configuration on Ubuntu.

Options
Neophraz
Neophraz
Community Member

Hi, I am trying to get a 1password connect server set up on my Ubuntu linux machine:

Linux UsersDesktop 5.15.0-72-generic #79-Ubuntu SMP Wed Apr 19 08:22:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

I created the creds file:
op connect server list
ID NAME STATE
CHFSZBRHQ5DODC5MYUYQM27BZ4 opserver ACTIVE

I have my compose directory set up with:
ls -ld /home/user1/1pass/* /home/user1/1pass
drwxrwxrwx 2 user1 user1 4096 May 26 10:11 /home/user1/1pass
-rw-rw-rw- 1 user1 user1 1133 May 26 09:23 /home/user1/1pass/1password-credentials.json
-rw-rw-rw- 1 user1 user1 494 May 26 10:10 /home/user1/1pass/docker-compose.yaml

My docker-compose file has been updated to have:

version: "3.4"

services:
op-connect-api:
image: 1password/connect-api:latest
ports:
- "8080:8080"
volumes:
- "./1password-credentials.json:/home/user1/1pass/1password-credentials.json"
- "data:/home/user1/1pass/data"
op-connect-sync:
image: 1password/connect-sync:latest
ports:
- "8081:8080"
volumes:
- "./1password-credentials.json:/home/user1/1pass/1password-credentials.json"
- "data:/home/user1/1pass/data"

volumes:
data:

When I run the compose command I get:

~/1pass$ docker-compose up
[+] Running 3/3
✔ Network 1pass_default Created 0.3s
✔ Container 1pass-op-connect-sync-1 Created 1.7s
✔ Container 1pass-op-connect-api-1 Created 1.7s
Attaching to 1pass-op-connect-api-1, 1pass-op-connect-sync-1
1pass-op-connect-sync-1 | {"log_message":"(I) starting 1Password Connect Sync ...","timestamp":"2023-05-26T15:39:46.820240095Z","level":3}
1pass-op-connect-sync-1 | {"log_message":"(I) no existing database found, will initialize at /home/opuser/.op/data/1password.sqlite","timestamp":"2023-05-26T15:39:46.821159461Z","level":3}
1pass-op-connect-api-1 | {"log_message":"(I) no database found, will retry in 1s","timestamp":"2023-05-26T15:39:47.071836203Z","level":3}
1pass-op-connect-sync-1 | {"log_message":"(I) database initialization complete","timestamp":"2023-05-26T15:39:47.111802369Z","level":3}
1pass-op-connect-sync-1 | {"log_message":"(I) ### syncer credentials bootstrap ### ","timestamp":"2023-05-26T15:39:47.11247514Z","level":3}
1pass-op-connect-sync-1 | {"log_message":"(E) Server: (unable to get credentials and initialize API, retrying in 500ms), Wrapped: (failed to FindCredentialsUniqueKey), failed to loadCredentialsFile: Server: (LoadLocalAuthV2 failed to credentialsDataFromDisk), open /home/opuser/.op/1password-credentials.json: no such file or directory","timestamp":"2023-05-26T15:39:47.11263463Z","level":1}
1pass-op-connect-sync-1 | {"log_message":"(I) ### syncer credentials bootstrap ### ","timestamp":"2023-05-26T15:39:47.613362927Z","level":3}
1pass-op-connect-sync-1 | {"log_message":"(E) Server: (unable to get credentials and initialize API, retrying in 1s), Wrapped: (failed to FindCredentialsUniqueKey), failed to loadCredentialsFile: Server: (LoadLocalAuthV2 failed to credentialsDataFromDisk), open /home/opuser/.op/1password-credentials.json: no such file or directory","timestamp":"2023-05-26T15:39:47.613591362Z","level":1}
1pass-op-connect-api-1 | {"log_message":"(I) no database found, will retry in 1s","timestamp":"2023-05-26T15:39:48.072159173Z","level":3}
1pass-op-connect-sync-1 | {"log_message":"(I) ### syncer credentials bootstrap ### ","timestamp":"2023-05-26T15:39:48.614565597Z","level":3}
1pass-op-connect-sync-1 | {"log_message":"(E) Server: (unable to get credentials and initialize API, retrying in 2s), Wrapped: (failed to FindCredentialsUniqueKey), failed to loadCredentialsFile: Server: (LoadLocalAuthV2 failed to credentialsDataFromDisk), open /home/opuser/.op/1password-credentials.json: no such file or directory","timestamp":"2023-05-26T15:39:48.614787777Z","level":1}
^CGracefully stopping... (press Ctrl+C again to force)
Aborting on container exit...
[+] Running 2/2
✔ Container 1pass-op-connect-sync-1 Stopped 2.2s
✔ Container 1pass-op-connect-api-1 Stopped 2.2s
canceled
~/1pass$

It repeats this error indefinitely so I control-c'd to stop it for the sample output above. It looks like its trying to use /home/opuser for its composer directory? I saw other tickets here that said they were seeing the same problem, but none of them explained what the actual problem is with any details on how they actually fixed the problem. At least not in a way that I could figure out here. Any ideas on what I've done wrong on this?


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided

Comments

  • Hi there., based on the error you are seeing it looks like Connect cannot find your 1password-credentials.json file that you generated when created your connect instance. Can you confirm that your credentials file is located in the same directory as the directory you are running docker-compose up from?

  • Neophraz
    Neophraz
    Community Member
    Options

    Hi Jillian, thank you for the quick response!

    Here is the output of trying to run it from the command line, starting with the directory that I'm in and the files that are in the directory with me (the credentials file is located in the same directory as I'm running and the compose file is there as well, as you can see).

    ~/1pass$ pwd
    /home/user1/1pass
    ~/1pass$ ls -l
    total 8
    -rw-rw-rw- 1 user1 user1 1133 May 26 09:23 1password-credentials.json
    -rw-rw-rw- 1 user1 user1 494 May 26 10:10 docker-compose.yaml
    ~/1pass$ cat docker-compose.yaml
    version: "3.4"

    services:
    op-connect-api:
    image: 1password/connect-api:latest
    ports:
    - "8080:8080"
    volumes:
    - "./1password-credentials.json:/home/user1/1pass/1password-credentials.json"
    - "data:/home/user1/1pass/data"
    op-connect-sync:
    image: 1password/connect-sync:latest
    ports:
    - "8081:8080"
    volumes:
    - "./1password-credentials.json:/home/user1/1pass/1password-credentials.json"
    - "data:/home/user1/1pass/data"

    volumes:
    data:
    ~/1pass$ docker-compose up
    [+] Running 3/3
    ✔ Network 1pass_default Created 0.3s
    ✔ Container 1pass-op-connect-api-1 Created 1.6s
    ✔ Container 1pass-op-connect-sync-1 Created 1.6s
    Attaching to 1pass-op-connect-api-1, 1pass-op-connect-sync-1
    1pass-op-connect-sync-1 | {"log_message":"(I) no existing database found, will initialize at /home/opuser/.op/data/1password.sqlite","timestamp":"2023-05-26T17:11:41.357203759Z","level":3}
    1pass-op-connect-sync-1 | {"log_message":"(I) starting 1Password Connect Sync ...","timestamp":"2023-05-26T17:11:41.358970504Z","level":3}
    1pass-op-connect-api-1 | {"log_message":"(I) no database found, will retry in 1s","timestamp":"2023-05-26T17:11:41.44886205Z","level":3}
    1pass-op-connect-sync-1 | {"log_message":"(I) database initialization complete","timestamp":"2023-05-26T17:11:41.623942393Z","level":3}
    1pass-op-connect-sync-1 | {"log_message":"(I) ### syncer credentials bootstrap ### ","timestamp":"2023-05-26T17:11:41.62458989Z","level":3}
    1pass-op-connect-sync-1 | {"log_message":"(E) Server: (unable to get credentials and initialize API, retrying in 500ms), Wrapped: (failed to FindCredentialsUniqueKey), failed to loadCredentialsFile: Server: (LoadLocalAuthV2 failed to credentialsDataFromDisk), open /home/opuser/.op/1password-credentials.json: no such file or directory","timestamp":"2023-05-26T17:11:41.624796776Z","level":1}
    1pass-op-connect-sync-1 | {"log_message":"(I) ### syncer credentials bootstrap ### ","timestamp":"2023-05-26T17:11:42.125534373Z","level":3}
    1pass-op-connect-sync-1 | {"log_message":"(E) Server: (unable to get credentials and initialize API, retrying in 1s), Wrapped: (failed to FindCredentialsUniqueKey), failed to loadCredentialsFile: Server: (LoadLocalAuthV2 failed to credentialsDataFromDisk), open /home/opuser/.op/1password-credentials.json: no such file or directory","timestamp":"2023-05-26T17:11:42.125688083Z","level":1}
    1pass-op-connect-api-1 | {"log_message":"(I) no database found, will retry in 1s","timestamp":"2023-05-26T17:11:42.449427165Z","level":3}
    1pass-op-connect-sync-1 | {"log_message":"(I) ### syncer credentials bootstrap ### ","timestamp":"2023-05-26T17:11:43.126850818Z","level":3}
    1pass-op-connect-sync-1 | {"log_message":"(E) Server: (unable to get credentials and initialize API, retrying in 2s), Wrapped: (failed to FindCredentialsUniqueKey), failed to loadCredentialsFile: Server: (LoadLocalAuthV2 failed to credentialsDataFromDisk), open /home/opuser/.op/1password-credentials.json: no such file or directory","timestamp":"2023-05-26T17:11:43.127110892Z","level":1}
    ^CGracefully stopping... (press Ctrl+C again to force)
    Aborting on container exit...
    [+] Running 2/2
    ✔ Container 1pass-op-connect-sync-1 Stopped 2.2s
    ✔ Container 1pass-op-connect-api-1 Stopped 2.2s
    canceled
    ~/1pass$ op --version
    2.18.0

  • Neophraz
    Neophraz
    Community Member
    Options

    Can anyone think of any other issues that would prevent the server from working on Linux?

  • Neophraz
    Neophraz
    Community Member
    Options

    I've tried installing it on a second Ubuntu server and had the exact same issue. Is there a different distro of Linux that works better for this? I'm going to look at setting it up on a windows machine now just to see if I can get it to work, but Windows is not the solution I want to use for this even if it does work. I just want to see if it can work.

This discussion has been closed.