borg-hive icon indicating copy to clipboard operation
borg-hive copied to clipboard

Testing with Docker

Open r3c4ll opened this issue 1 year ago • 3 comments

Hi everybody, happy holidays to all.

Here testing the project with Docker (docker-compose). I left all the variables in the .env file as they come by default including the BORG_SSH_PORT=2222.

The web dashboard opens fine at http://localhost:8000/ and I can login with the admin user and admin password declared in the .env file.

I could create a repository but when I execute borg init --encryption=repokey-blake2 dzkch3wy@localhost:my_first_repo as the UI suggest the shell ask me for the SSH password of the user dzkch3wy. Where can I found/create that password? I'm missing something in the doc?

NOTE: I do not followed the steps in https://borg-hive.readthedocs.io/en/latest/develop.html as I think this is only for a development environment.

r3c4ll avatar Dec 25 '22 22:12 r3c4ll

Hi, You followed this "Quickstart" right? https://borg-hive.readthedocs.io/en/latest/quickstart.html Have you created an SSH-Key and linked it to the repository? (Should force you to create a new repo).

Then maybe it's related to #76

bpereto avatar Dec 27 '22 15:12 bpereto

On Tue, Dec 27, 2022 at 11:45 AM Benjamin Pereto @.***> wrote:

Hi,

Hi Benjamin,

You followed this "Quickstart" right? https://borg-hive.readthedocs.io/en/latest/quickstart.html

Yes, that's right.

Have you created an SSH-Key and linked it to the repository? (Should force you to create a new repo).

No, I add a previously created SSH-Key in the (see attachment) "SSH Keys" section (menu) see: https://www.imgpaste.net/image/KkoEyi, and then select it when creating a new repository in the "Repositories" section (menu).

Then maybe it's related to #76 https://github.com/bpereto/borg-hive/issues/76

— Reply to this email directly, view it on GitHub https://github.com/bpereto/borg-hive/issues/80#issuecomment-1366000639, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACUPONVUCNNRFAPVM4WKLTWPMFK3ANCNFSM6AAAAAATJGEFLE . You are receiving this because you authored the thread.Message ID: @.***>

This is the output when I try to initialize the repo:

$ borg init --encryption=repokey-blake2 dzkch3wy@localhost:my_first_repo 
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is SHA256:h8f2dLx5xGmM51+Z83ns592LIT7cp6kj/ljeJT5jRVw.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Remote: Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
dzkch3wy@localhost's password: 
dzkch3wy@localhost's password: Remote: Permission denied, please try again.

dzkch3wy@localhost's password: Remote: Permission denied, please try again.

Remote: Received disconnect from ::1 port 22:2: Too many authentication failures
Remote: Disconnected from ::1 port 22
Connection closed by remote host. Is borg working on the server?

I think an interesting issue is that the fingerprint showed in the command line doesn't match with the showed in the repository admin page.

See https://www.imgpaste.net/image/KkouzI

Cheers.

-- Ali Moreno https://about.me/alimoreno

r3c4ll avatar Dec 28 '22 13:12 r3c4ll

Your SSH command is wrong, as you can see, it tries to connect to port 22:

Remote: Received disconnect from ::1 port 22:2: Too many authentication failures Remote: Disconnected from ::1 port 22

Try the following: borg init --encryption=repokey-blake2 dzkch3wy@localhost:2222/./my_first_repo

Firesphere avatar Jan 01 '23 22:01 Firesphere