# GSOC 2025 PBM SDK and Backup Throttling Projects

**URL:** <https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593>\
**Category:** Percona Backup for MongoDB\
**Tags:** pbm, gsoc\
**Created:** [February 7, 2025, 7:18pm UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593 "2025-02-07T19:18:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yash\_Pal](https://avatars.discourse-cdn.com/v4/letter/y/a87d85/32.png) [@Yash\_Pal](https://forums.percona.com/u/Yash_Pal)\
**Post date:** [February 7, 2025, 7:18pm UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/1 "2025-02-07T19:18:41Z")

</div>

Hello everyone,  
How do I move forward with setting up and contributions, I have selected PBM sdk and PBM backup throttling for GSOC 25 I will be going for 1 of them after setting up the PMM server dashboard on localhost/IP address How do I move forward?  
I am still yet to setup PMM client I have set up and running PBM agent and PMM server and in the process of PMM client for MongoDB. Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![Yash\_Pal](https://avatars.discourse-cdn.com/v4/letter/y/a87d85/32.png) [@Yash\_Pal](https://forums.percona.com/u/Yash_Pal)\
**Post date:** [February 8, 2025, 9:42am UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/2 "2025-02-08T09:42:35Z")

</div>

```auto
root@yodaone:~# systemctl status mongod.service
× mongod.service - High-performance, schema-free document-oriented database
     Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; preset: e>
     Active: failed (Result: exit-code) since Sat 2025-02-08 15:00:10 IST; 24s >
   Duration: 1d 43min 16.967s
    Process: 530442 ExecStartPre=/usr/bin/percona-server-mongodb-helper.sh (cod>
    Process: 530462 ExecStart=/usr/bin/env bash -c ${NUMACTL} /usr/bin/mongod $>
        CPU: 116ms

Feb 08 15:00:10 yodaone systemd[1]: Starting mongod.service - High-performance,>
Feb 08 15:00:10 yodaone systemd[1]: mongod.service: Control process exited, cod>
Feb 08 15:00:10 yodaone systemd[1]: mongod.service: Failed with result 'exit-co>
Feb 08 15:00:10 yodaone systemd[1]: Failed to start mongod.service - High-perfo>
lines 1-12/12 (END)...skipping...
× mongod.service - High-performance, schema-free document-oriented database
     Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Sat 2025-02-08 15:00:10 IST; 24s ago
   Duration: 1d 43min 16.967s
    Process: 530442 ExecStartPre=/usr/bin/percona-server-mongodb-helper.sh (code=exited, status=0/SUCCESS)
    Process: 530462 ExecStart=/usr/bin/env bash -c ${NUMACTL} /usr/bin/mongod ${OPTIONS} > ${STDOUT} 2> ${STDERR} (code=exited, status=1/FAILURE)
        CPU: 116ms

Feb 08 15:00:10 yodaone systemd[1]: Starting mongod.service - High-performance, schema-free document-oriented database...
Feb 08 15:00:10 yodaone systemd[1]: mongod.service: Control process exited, code=exited, status=1/FAILURE
Feb 08 15:00:10 yodaone systemd[1]: mongod.service: Failed with result 'exit-code'.
Feb 08 15:00:10 yodaone systemd[1]: Failed to start mongod.service - High-performance, schema-free document-oriented database.

```

I’m exploring PBM and PMM and have already set up the dashboard. I want to ensure I’ve completed the necessary setup so I can focus on understanding the codebase and contributing. Right now, I’m deep in the docs, but I’d appreciate guidance on what I might be missing and which components are essential. If someone with experience could help me finalize the setup, I can shift my focus to learning and contributing effectively.  
And I am not able to clone pmm repo

```auto
yoshi@yodaone:~/VSCode$ git clone https://github.com/yashpal2104/pmm.git
Cloning into 'pmm'...
remote: Enumerating objects: 58990, done.
remote: Counting objects: 100% (222/222), done.
remote: Compressing objects: 100% (156/156), done.
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 12235 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

```

---

<div class="post-metadata">

**Author:** ![daniil.bazhenov](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/daniil.bazhenov/32/62_2.png) [@daniil.bazhenov](https://forums.percona.com/u/daniil.bazhenov)\
**Post date:** [February 8, 2025, 7:51pm UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/3 "2025-02-08T19:51:54Z")

</div>

> [@Yash\_Pal](#):
>
> `https://github.com/yashpal2104/pmm.git`

Try git clone over ssh, it’s more convenient than https

```auto
git clone git@github.com:yashpal2104/pmm.git

```

You will most likely need to add your computer’s SSH key to your GitHub profile settings, there are instructions there.

---

<div class="post-metadata">

**Author:** ![Yash\_Pal](https://avatars.discourse-cdn.com/v4/letter/y/a87d85/32.png) [@Yash\_Pal](https://forums.percona.com/u/Yash_Pal)\
**Post date:** [February 9, 2025, 9:32am UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/4 "2025-02-09T09:32:55Z")

</div>

> Try git clone over ssh, it’s more convenient than https
> 
> ```auto
> git clone git@github.com:yashpal2104/pmm.git
> 
> ```
> 
> You will most likely need to add your computer’s SSH key to your GitHub profile settings, there are instructions there.

This worked thanks!

---

<div class="post-metadata">

**Author:** ![Yash\_Pal](https://avatars.discourse-cdn.com/v4/letter/y/a87d85/32.png) [@Yash\_Pal](https://forums.percona.com/u/Yash_Pal)\
**Post date:** [February 10, 2025, 9:58am UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/5 "2025-02-10T09:58:26Z")

</div>

hey @daniil.bazhenov any suggestions on why my mongod.service is not starting up

```auto
× mongod.service - High-performance, schema-free document-oriented database
     Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Mon 2025-02-10 15:27:02 IST; 4s ago
   Duration: 6.387s
    Process: 272228 ExecStartPre=/usr/bin/percona-server-mongodb-helper.sh (code=exited, status=0/SUCCESS)
    Process: 272251 ExecStart=/usr/bin/env bash -c ${NUMACTL} /usr/bin/mongod ${OPTIONS} > ${STDOUT} 2> ${STDERR} (code=exited, status=1/FAILURE)
        CPU: 80ms

Feb 10 15:27:02 yodaone systemd[1]: Starting mongod.service - High-performance, schema-free document-oriented database...
Feb 10 15:27:02 yodaone systemd[1]: mongod.service: Control process exited, code=exited, status=1/FAILURE
Feb 10 15:27:02 yodaone systemd[1]: mongod.service: Failed with result 'exit-code'.
Feb 10 15:27:02 yodaone systemd[1]: Failed to start mongod.service - High-performance, schema-free document-oriented database.

```

---

<div class="post-metadata">

**Author:** ![radoslaw.szulgo](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/radoslaw.szulgo/32/17315_2.png) [@radoslaw.szulgo](https://forums.percona.com/u/radoslaw.szulgo)\
**Post date:** [February 10, 2025, 10:05am UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/6 "2025-02-10T10:05:08Z")

</div>

How have you installed MongoDB? What CPU/Memory and OS do you use?  
I recommend to start on Docker - as it’s the easiest setup.

---

<div class="post-metadata">

**Author:** ![Yash\_Pal](https://avatars.discourse-cdn.com/v4/letter/y/a87d85/32.png) [@Yash\_Pal](https://forums.percona.com/u/Yash_Pal)\
**Post date:** [February 10, 2025, 10:07am UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/7 "2025-02-10T10:07:52Z")

</div>

is this it?

```auto
yoshi@yodaone:~$ mongod --version
db version v7.0.15-9
Build Info: {
    "version": "7.0.15-9",
    "gitVersion": "7afe11d727f2344fc88fa42dae98c01eccbd14b7",
    "openSSLVersion": "OpenSSL 3.0.13 30 Jan 2024",
    "modules": [],
    "proFeatures": [],
    "allocator": "tcmalloc",
    "environment": {
        "distarch": "x86_64",
        "target_arch": "x86_64"
    }
}

```

ok I’ll run it on docker

---

<div class="post-metadata">

**Author:** ![Yash\_Pal](https://avatars.discourse-cdn.com/v4/letter/y/a87d85/32.png) [@Yash\_Pal](https://forums.percona.com/u/Yash_Pal)\
**Post date:** [February 10, 2025, 10:27am UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/8 "2025-02-10T10:27:03Z")

</div>

This is the error log with docker

```auto
root@yodaone:~ docker run -d --name psmdb -p 27017:27017 --restart always percona/percona-server-mongodb:latest
661c581c8e565a52b2e4bf84114890f96c9fe9f2affbee99ca3b8a368127fa0c
docker: Error response from daemon: driver failed programming external connectivity on endpoint psmdb (d7079edfb687e5d7e777c0df75078d52d539880f775ac3ae98e3e89fb7a911cb): Bind for 0.0.0.0:27017 failed: port is already allocated.
root@yodaone:~# 

```

I have done `docker container rm /psmdb` still same problem and when I do `docker container ls` I can’t see “psmdb” name container

```auto
root@yodaone:~# docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bd3f5fb8219c percona/percona-server-mongodb:8.0 "/entrypoint.sh --po…" 12 minutes ago Up 12 minutes 27017/tcp, 0.0.0.0:29017->29017/tcp, :::29017->29017/tcp rs103
b3a1919f2848 percona/percona-server-mongodb:8.0 "/entrypoint.sh --po…" 12 minutes ago Up 12 minutes 27017/tcp, 0.0.0.0:28017->28017/tcp, :::28017->28017/tcp rs102
0ed0d6638f16 percona/percona-server-mongodb:8.0 "/entrypoint.sh --po…" 12 minutes ago Up 12 minutes 0.0.0.0:27017->27017/tcp, :::27017->27017/tcp rs101
0fbc3a4b6777 percona/watchtower "/watchtower --clean…" 3 days ago Up 20 hours (healthy) 8080/tcp watchtower
b1da17a68786 percona/pmm-server:3.0.0 "/opt/entrypoint.sh" 3 days ago Up 20 hours (healthy) 8080/tcp, 0.0.0.0:443->8443/tcp, [::]:443->8443/tcp pmm-server
root@yodaone:~# 

```

Not trying to be annoying but I am still not able to understand what the problem is and what am I trying to install like the components are too advanced I am reading the docs but I am not able to navigate and get to a conclusion. Can I get an idea about what are the necessary components or the minimum things like server, dashboard, etc that I need as starting out so that I can start analysing the codebase of PBM projects and start analysing and reading code to understand what needs improvement?

---

<div class="post-metadata">

**Author:** ![radoslaw.szulgo](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/radoslaw.szulgo/32/17315_2.png) [@radoslaw.szulgo](https://forums.percona.com/u/radoslaw.szulgo)\
**Post date:** [February 10, 2025, 10:29am UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/9 "2025-02-10T10:29:53Z")

</div>

`Bind for [0.0.0.0:27017](http://0.0.0.0:27017/) failed: port is already allocated.`

What else might be running on that port?

---

<div class="post-metadata">

**Author:** ![Yash\_Pal](https://avatars.discourse-cdn.com/v4/letter/y/a87d85/32.png) [@Yash\_Pal](https://forums.percona.com/u/Yash_Pal)\
**Post date:** [February 10, 2025, 10:32am UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/10 "2025-02-10T10:32:01Z")

</div>

Please refer the above message I have edited it out

---

<div class="post-metadata">

**Author:** ![radoslaw.szulgo](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/radoslaw.szulgo/32/17315_2.png) [@radoslaw.szulgo](https://forums.percona.com/u/radoslaw.szulgo)\
**Post date:** [February 10, 2025, 10:34am UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/11 "2025-02-10T10:34:46Z")

</div>

Have you followed this procedure? [Run in Docker - Percona Server for MongoDB 8.0](https://docs.percona.com/percona-server-for-mongodb/8.0/install/docker.html)

---

<div class="post-metadata">

**Author:** ![Yash\_Pal](https://avatars.discourse-cdn.com/v4/letter/y/a87d85/32.png) [@Yash\_Pal](https://forums.percona.com/u/Yash_Pal)\
**Post date:** [February 10, 2025, 10:42am UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/12 "2025-02-10T10:42:25Z")

</div>

Yes but trouble connecting with `mongosh` shell

```auto
root@yodaone:~# docker run -it --link psmdb --rm percona/percona-server-mongodb:8.0 mongosh mongodb://172.17.0.2:27017/DB_NAME
docker: Error response from daemon: Cannot link to a non running container: /psmdb AS /sad_goldberg/psmdb.
root@yodaone:~# docker run -it --link psmdb --rm percona/percona-server-mongodb:8.0 mongosh mongodb://172.17.0.2:27017/YASH
docker: Error response from daemon: Cannot link to a non running container: /psmdb AS /intelligent_swanson/psmdb.
root@yodaone:~# 

```

and using this command  
`docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' psmdb`  
there is blank/no output

---

<div class="post-metadata">

**Author:** ![radoslaw.szulgo](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/radoslaw.szulgo/32/17315_2.png) [@radoslaw.szulgo](https://forums.percona.com/u/radoslaw.szulgo)\
**Post date:** [February 10, 2025, 11:44am UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/13 "2025-02-10T11:44:08Z")

</div>

I guess because the container does not start. Have you checked container logs?

---

<div class="post-metadata">

**Author:** ![Yash\_Pal](https://avatars.discourse-cdn.com/v4/letter/y/a87d85/32.png) [@Yash\_Pal](https://forums.percona.com/u/Yash_Pal)\
**Post date:** [February 10, 2025, 11:53am UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/14 "2025-02-10T11:53:38Z")

</div>

```auto
root@yodaone:~# docker logs --tail 5 0ed0d6638f16
{"t":{"$date":"2025-02-10T11:52:22.056+00:00"},"s":"I", "c":"WTCHKPT", "id":22430, "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":{"ts_sec":1739188342,"ts_usec":56869,"thread":"1:0x70c359e00700","session_name":"WT_SESSION.checkpoint","category":"WT_VERB_CHECKPOINT_PROGRESS","category_id":7,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"saving checkpoint snapshot min: 822, snapshot max: 822 snapshot count: 0, oldest timestamp: (1739188041, 1) , meta checkpoint timestamp: (1739188341, 1) base write gen: 1"}}}
{"t":{"$date":"2025-02-10T11:52:41.484+00:00"},"s":"I", "c":"CONNPOOL", "id":22576, "ctx":"ReplCoordExternNetwork","msg":"Connecting","attr":{"hostAndPort":"172.17.0.3:28017"}}
{"t":{"$date":"2025-02-10T11:52:48.015+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.17.0.3:54048","uuid":{"uuid":{"$uuid":"0dc77512-3dcc-4219-9b9b-5019cf27ada9"}},"connectionId":100,"connectionCount":7}}
{"t":{"$date":"2025-02-10T11:52:48.016+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn100","msg":"client metadata","attr":{"remote":"172.17.0.3:54048","client":"conn100","negotiatedCompressors":["snappy","zstd","zlib"],"doc":{"driver":{"name":"NetworkInterfaceTL-ReplNetwork","version":"8.0.4-1"},"os":{"type":"Linux","name":"Oracle Linux Server release 8.10","architecture":"x86_64","version":"Kernel 6.8.0-52-generic"}}}}
{"t":{"$date":"2025-02-10T11:52:50.015+00:00"},"s":"I", "c":"NETWORK", "id":6788700, "ctx":"conn100","msg":"Received first command on ingress connection since session start or auth handshake","attr":{"elapsedMillis":1999}}
root@yodaone:~# docker logs --tail 10 0ed0d6638f16
{"t":{"$date":"2025-02-10T11:51:22.040+00:00"},"s":"I", "c":"WTCHKPT", "id":22430, "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":{"ts_sec":1739188282,"ts_usec":40636,"thread":"1:0x70c359e00700","session_name":"WT_SESSION.checkpoint","category":"WT_VERB_CHECKPOINT_PROGRESS","category_id":7,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"saving checkpoint snapshot min: 814, snapshot max: 814 snapshot count: 0, oldest timestamp: (1739187981, 1) , meta checkpoint timestamp: (1739188281, 1) base write gen: 1"}}}
{"t":{"$date":"2025-02-10T11:51:26.012+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn77","msg":"Connection ended","attr":{"remote":"172.17.0.3:37478","uuid":{"uuid":{"$uuid":"6672c37c-7724-4233-89d4-768292d740ca"}},"connectionId":77,"connectionCount":6}}
{"t":{"$date":"2025-02-10T11:51:26.012+00:00"},"s":"I", "c":"ACCESS", "id":5286307, "ctx":"conn77","msg":"Failed to authenticate","attr":{"client":"172.17.0.3:37478","isSpeculative":false,"isClusterMember":false,"mechanism":"","user":"","db":"","error":"AuthenticationAbandoned: Authentication session abandoned, client has likely disconnected","result":337,"metrics":{"conversation_duration":{"micros":2256412163,"summary":{}}},"extraInfo":{}}}
{"t":{"$date":"2025-02-10T11:52:22.056+00:00"},"s":"I", "c":"WTCHKPT", "id":22430, "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":{"ts_sec":1739188342,"ts_usec":56869,"thread":"1:0x70c359e00700","session_name":"WT_SESSION.checkpoint","category":"WT_VERB_CHECKPOINT_PROGRESS","category_id":7,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"saving checkpoint snapshot min: 822, snapshot max: 822 snapshot count: 0, oldest timestamp: (1739188041, 1) , meta checkpoint timestamp: (1739188341, 1) base write gen: 1"}}}
{"t":{"$date":"2025-02-10T11:52:41.484+00:00"},"s":"I", "c":"CONNPOOL", "id":22576, "ctx":"ReplCoordExternNetwork","msg":"Connecting","attr":{"hostAndPort":"172.17.0.3:28017"}}
{"t":{"$date":"2025-02-10T11:52:48.015+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.17.0.3:54048","uuid":{"uuid":{"$uuid":"0dc77512-3dcc-4219-9b9b-5019cf27ada9"}},"connectionId":100,"connectionCount":7}}
{"t":{"$date":"2025-02-10T11:52:48.016+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn100","msg":"client metadata","attr":{"remote":"172.17.0.3:54048","client":"conn100","negotiatedCompressors":["snappy","zstd","zlib"],"doc":{"driver":{"name":"NetworkInterfaceTL-ReplNetwork","version":"8.0.4-1"},"os":{"type":"Linux","name":"Oracle Linux Server release 8.10","architecture":"x86_64","version":"Kernel 6.8.0-52-generic"}}}}
{"t":{"$date":"2025-02-10T11:52:50.015+00:00"},"s":"I", "c":"NETWORK", "id":6788700, "ctx":"conn100","msg":"Received first command on ingress connection since session start or auth handshake","attr":{"elapsedMillis":1999}}
{"t":{"$date":"2025-02-10T11:53:22.075+00:00"},"s":"I", "c":"WTCHKPT", "id":22430, "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":{"ts_sec":1739188402,"ts_usec":75410,"thread":"1:0x70c359e00700","session_name":"WT_SESSION.checkpoint","category":"WT_VERB_CHECKPOINT_PROGRESS","category_id":7,"verbose_level":"DEBUG_1","verbose_level_id":1,"msg":"saving checkpoint snapshot min: 830, snapshot max: 830 snapshot count: 0, oldest timestamp: (1739188101, 1) , meta checkpoint timestamp: (1739188401, 1) base write gen: 1"}}}
{"t":{"$date":"2025-02-10T11:54:01.485+00:00"},"s":"I", "c":"CONNPOOL", "id":22567, "ctx":"ReplCoordExternNetwork","msg":"Ending idle connection because the pool meets constraints","attr":{"hostAndPort":"172.17.0.3:28017","numOpenConns":1}}
root@yodaone:~# 

```

should I go further back like 20 lines?

```auto
root@yodaone:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bd3f5fb8219c percona/percona-server-mongodb:8.0 "/entrypoint.sh --po…" 2 hours ago Up 2 hours 27017/tcp, 0.0.0.0:29017->29017/tcp, :::29017->29017/tcp rs103
b3a1919f2848 percona/percona-server-mongodb:8.0 "/entrypoint.sh --po…" 2 hours ago Up 2 hours 27017/tcp, 0.0.0.0:28017->28017/tcp, :::28017->28017/tcp rs102
0ed0d6638f16 percona/percona-server-mongodb:8.0 "/entrypoint.sh --po…" 2 hours ago Up 2 hours 0.0.0.0:27017->27017/tcp, :::27017->27017/tcp rs101
0fbc3a4b6777 percona/watchtower "/watchtower --clean…" 3 days ago Up 21 hours (healthy) 8080/tcp watchtower
b1da17a68786 percona/pmm-server:3.0.0 "/opt/entrypoint.sh" 3 days ago Up 21 hours (healthy) 8080/tcp, 0.0.0.0:443->8443/tcp, [::]:443->8443/tcp pmm-server
root@yodaone:~# 

```

---

<div class="post-metadata">

**Author:** ![radoslaw.szulgo](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/radoslaw.szulgo/32/17315_2.png) [@radoslaw.szulgo](https://forums.percona.com/u/radoslaw.szulgo)\
**Post date:** [February 10, 2025, 11:57am UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/15 "2025-02-10T11:57:05Z")

</div>

That log looks proper. Any errors you can see in the log?

---

<div class="post-metadata">

**Author:** ![Yash\_Pal](https://avatars.discourse-cdn.com/v4/letter/y/a87d85/32.png) [@Yash\_Pal](https://forums.percona.com/u/Yash_Pal)\
**Post date:** [February 10, 2025, 12:07pm UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/16 "2025-02-10T12:07:08Z")

</div>

Some sort of authentication error, is this might be associated with docker desktop sign-in?

```auto
"172.17.0.3:45984","isSpeculative":false,"isClusterMember":false,"mechanism":"","user":"","db":"","error":"AuthenticationAbandoned: Authentication session abandoned, client has likely disconnected","result":337,"metrics":{"conversation_duration":{"micros":300022155,"summary":{}}},"extraInfo":{}}}
{"t":{"$date":"2025-02-10T10:44:43.322+00:00"},"s":"I", "c":"ACCESS", "id":5286307, "ctx":"conn40","msg":"Failed to authenticate","attr":{"client":"172.17.0.3:60768","isSpeculative":false,"isClusterMember":false,"mechanism":"","user":"","db":"","error":"AuthenticationAbandoned: Authentication session abandoned, client has likely disconnected","result":337,"metrics":{"conversation_duration":{"micros":372059241,"summary":{}}},"extraInfo":{}}}
{"t":{"$date":"2025-02-10T10:59:51.484+00:00"},"s":"I", "c":"ACCESS", "id":5286307, "ctx":"conn46","msg":"Failed to authenticate","attr":{"client":"172.17.0.3:60232","isSpeculative":false,"isClusterMember":false,"mechanism":"","user":"","db":"","error":"AuthenticationAbandoned: Authentication session abandoned, client has likely disconnected","result":337,"metrics":{"conversation_duration":{"micros":1266212520,"summary":{}}},"extraInfo":{}}}
{"t":{"$date":"2025-02-10T11:01:29.492+00:00"},"s":"I", "c":"ACCESS", "id":5286307, "ctx":"conn62","msg":"Failed to authenticate","attr":{"client":"172.17.0.3:34228","isSpeculative":false,"isClusterMember":false,"mechanism":"","user":"","db":"","error":"AuthenticationAbandoned: Authentication session abandoned, client has likely disconnected","result":337,"metrics":{"conversation_duration":{"micros":990168719,"summary":{}}},"extraInfo":{}}}
{"t":{"$date":"2025-02-10T11:04:03.501+00:00"},"s":"I", "c":"ACCESS", "id":5286307, "ctx":"conn69","msg":"Failed to authenticate","attr":{"client":"172.17.0.3:51418","isSpeculative":false,"isClusterMember":false,"mechanism":"","user":"","db":"","error":"AuthenticationAbandoned: Authentication session abandoned, client has likely disconnected","result":337,"metrics":{"conversation_duration":{"micros":238013962,"summary":{}}},"extraInfo":{}}}
{"t":{"$date":"2025-02-10T11:10:23.584+00:00"},"s":"I", "c":"ACCESS", "id":5286307, "ctx":"conn73","msg":"Failed to authenticate","attr":{"client":"172.17.0.3:43918","isSpeculative":false,"isClusterMember":false,"mechanism":"","user":"","db":"","error":"AuthenticationAbandoned: Authentication session abandoned, client has likely disconnected","result":337,"metrics":{"conversation_duration":{"micros":378080870,"summary":{}}},"extraInfo":{}}}
{"t":{"$date":"2025-02-10T11:13:35.598+00:00"},"s":"I", "c":"ACCESS", "id":5286307, "ctx":"conn75","msg":"Failed to authenticate","attr":{"client":"172.17.0.3:44226","isSpeculative":false,"isClusterMember":false,"mechanism":"","user":"","db":"","error":"AuthenticationAbandoned: Authentication session abandoned, client has likely disconnected","result":337,"metrics":{"conversation_duration":{"micros":152010175,"summary":{}}},"extraInfo":{}}}
{"t":{"$date":"2025-02-10T11:17:55.608+00:00"},"s":"I", "c":"ACCESS", "id":5286307, "ctx":"conn71","msg":"Failed to authenticate","attr":{"client":"172.17.0.3:41540","isSpeculative":false,"isClusterMember":false,"mechanism":"","user":"","db":"","error":"AuthenticationAbandoned: Authentication session abandoned, client has likely disconnected","result":337,"metrics":{"conversation_duration":{"micros":954113779,"summary":{}}},"extraInfo":{}}}
{"t":{"$date":"2025-02-10T11:42:22.008+00:00"},"s":"I", "c":"ACCESS", "id":5286307, "ctx":"conn79","msg":"Failed to authenticate","attr":{"client":"172.17.0.3:50406","isSpeculative":false,"isClusterMember":false,"mechanism":"","user":"","db":"","error":"AuthenticationAbandoned: Authentication session abandoned, client has likely disconnected","result":337,"metrics":{"conversation_duration":{"micros":1406398303,"summary":{}}},"extraInfo":{}}}
{"t":{"$date":"2025-02-10T11:51:26.012+00:00"},"s":"I", "c":"ACCESS", "id":5286307, "ctx":"conn77","msg":"Failed to authenticate","attr":{"client":"172.17.0.3:37478","isSpeculative":false,"isClusterMember":false,"mechanism":"","user":"","db":"","error":"AuthenticationAbandoned: Authentication session abandoned, client has likely disconnected","result":337,"metrics":{"conversation_duration":{"micros":2256412163,"summary":{}}},"extraInfo":{}}}

```

It is more than this(errors) but I copied the last ones.

I dont know if this information is required but maybe firewall might be active although I checked it is not right now but sometimes it is because I am using my college’s LAN network, but this problem was before when I was on windows after I switched to Linux there has not been any problem running Docker(previously it was problematic to run docker desktop on windows)

---

<div class="post-metadata">

**Author:** ![radoslaw.szulgo](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/radoslaw.szulgo/32/17315_2.png) [@radoslaw.szulgo](https://forums.percona.com/u/radoslaw.szulgo)\
**Post date:** [February 10, 2025, 12:16pm UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/17 "2025-02-10T12:16:46Z")

</div>

No I don’t think they are relevant. But from your previous message I can see you have 3 instances already running:  
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES  
bd3f5fb8219c percona/percona-server-mongodb:8.0 “/entrypoint.sh --po…” 2 hours ago Up 2 hours 27017/tcp, 0.0.0.0:29017-\>29017/tcp, :::29017-\>29017/tcp rs103  
b3a1919f2848 percona/percona-server-mongodb:8.0 “/entrypoint.sh --po…” 2 hours ago Up 2 hours 27017/tcp, 0.0.0.0:28017-\>28017/tcp, :::28017-\>28017/tcp rs102  
0ed0d6638f16 percona/percona-server-mongodb:8.0 “/entrypoint.sh --po…” 2 hours ago Up 2 hours 0.0.0.0:27017-\>27017/tcp, :::27017-\>27017/tcp rs101

have you tried to run `mongosh` inside the container?

---

<div class="post-metadata">

**Author:** ![Yash\_Pal](https://avatars.discourse-cdn.com/v4/letter/y/a87d85/32.png) [@Yash\_Pal](https://forums.percona.com/u/Yash_Pal)\
**Post date:** [February 10, 2025, 12:22pm UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/18 "2025-02-10T12:22:47Z")

</div>

Yes this time I ran inside container bash shell

```auto
root@yodaone:~ docker exec -it 0ed0d6638f16 bash
Error response from daemon: container fa113cae97f77962197e3830a05c8c38f3bd992aed95c4c8b9d90f0e820a6408 is not running
root@yodaone:~ docker start 0ed0d6638f16
Error response from daemon: driver failed programming external connectivity on endpoint 0ed0d6638f16 (72fdb9e942365fc22d3b724c4fc06717f5295530ebaf38a2c3398dcf090681c4): Bind for 0.0.0.0:27017 failed: port is already allocated
Error: failed to start containers: 0ed0d6638f16
root@yodaone:~ docker start bd3f5fb8219c
bd3f5fb8219c
root@yodaone:~ docker exec -it bd3f5fb8219c bash
[mongodb@bd3f5fb8219c /]$ mongosh
Current Mongosh Log ID: 67a9ef517f1303ecfe656a8c
Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.3.2
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
[mongodb@bd3f5fb8219c /]$ 

```

Also I tried to check if mongod is there

```auto
[mongodb@bd3f5fb8219c /]$ ps aux | grep mongod
mongodb 1 1.5 1.0 4118128 163448 ? Ssl 10:13 2:04 mongod --port=29017 --replSet rs --bind_ip_all
mongodb 16 0.0 0.0 12000 2560 ? S 10:13 0:00 /bin/bash /usr/bin/telemetry-agent-supervisor.sh
mongodb 110 0.0 0.0 1237968 640 ? Sl 10:13 0:00 /usr/bin/percona-telemetry-agent
mongodb 215 0.0 0.0 12132 3072 pts/0 Ss 12:21 0:00 bash
mongodb 251 0.0 0.0 44792 3200 pts/0 R+ 12:24 0:00 ps aux
mongodb 252 0.0 0.0 9292 1664 pts/0 S+ 12:24 0:00 grep --color=auto mongod
[mongodb@bd3f5fb8219c /]$ mongod --fork --logpath /var/log/mongodb.log
about to fork child process, waiting until server is ready for connections.
forked process: 255
ERROR: child process failed, exited with 1
To see additional information in this output, start without the "--fork" option.

```

---

<div class="post-metadata">

**Author:** ![radoslaw.szulgo](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/radoslaw.szulgo/32/17315_2.png) [@radoslaw.szulgo](https://forums.percona.com/u/radoslaw.szulgo)\
**Post date:** [February 10, 2025, 12:41pm UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/19 "2025-02-10T12:41:06Z")

</div>

Can you try `mongosh` on a container that is running on port `27017` ? Or use `mongosh` with a different connection string to use appropriate port. See: [https://www.mongodb.com/docs/manual/reference/connection-string-options/](https://www.mongodb.com/docs/manual/reference/connection-string-options/)

All in all - you get `ECONNREFUSED` because on that address there’s no `mongod` that is running.

---

<div class="post-metadata">

**Author:** ![Yash\_Pal](https://avatars.discourse-cdn.com/v4/letter/y/a87d85/32.png) [@Yash\_Pal](https://forums.percona.com/u/Yash_Pal)\
**Post date:** [February 11, 2025, 1:49pm UTC](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593/20 "2025-02-11T13:49:54Z")

</div>

@radoslaw.szulgo  
I got to know the problem but not the solution I have the pesmdb container but it is showing 0bytes in it and it is not binded to a port because rs101 is taking its place since both have same port.  
Attached screenshot below and this is the tag I downloaded is this correct? `percona/percona-server-mongodb:8.0.4-1-multi`  
Let me know if more information to provide  
Also what do I put instead of **DB\_NAME** I have not created a database `docker run -it --link psmdb --rm percona/percona-server-mongodb:8.0 mongosh mongodb://MONGODB_SERVER:PORT/DB_NAME`

 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/0/e/0e1f80144d8b7a07a188124feecb4319ce6ee693.png)

[Next page](https://forums.percona.com/t/gsoc-2025-pbm-sdk-and-backup-throttling-projects/36593.md?page=2)
