appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.63k stars 3.74k forks source link

[Bug]: appsmith backup fails while taking backup #34996

Closed pratapaprasanna closed 3 months ago

pratapaprasanna commented 4 months ago

Is there an existing issue for this?

Description

When we try to take a backup of appsmith we see that it fails.

However, when we try

export APPSMITH_DB_URL=mongodb://appsmith:YQrNSIqBadOHG@localhost:27017/appsmith

root@ee240a85f275:/opt/appsmith# appsmithctl backup
.
.
Finished taking an encrypted backup archive at /appsmith-stacks/data/backup/appsmith-backup-2024-07-17T11-38-20.213Z.tar.gz.enc
Starting the cleanup task after taking a backup.
Cleanup task completed.

the value into APPSMITH_DB_URL as mentioned here is not computed correctly

Steps To Reproduce

login to a container using

sudo docker exec -it -u root ee240a85f275 bash

and do

root@ee240a85f275:/opt/appsmith# appsmithctl backup
Available free space at /appsmith-stacks
4349689856

Exporting database
2024-07-17T11:41:40.201+0000    error parsing command line options: error parsing uri: scheme must be "mongodb" or "mongodb+srv"
2024-07-17T11:41:40.201+0000    try 'mongodump --help' for more information
Starting the cleanup task after taking a backup.
Cleanup task completed.

Public Sample App

No response

Environment

Production

Severity

High (Blocker to building or releasing)

Issue video log

No response

Version

selfhosted

alfonsoasenjo commented 3 months ago

the issue starts on 1.29, previous versions working fine