Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Error when using appsmithctl import_db #38540

Open
1 task done
MobGG opened this issue Jan 8, 2025 · 1 comment
Open
1 task done

[Bug]: Error when using appsmithctl import_db #38540

MobGG opened this issue Jan 8, 2025 · 1 comment
Assignees
Labels
Backup & Restore Issues related to backup and restore Bug Something isn't working Community Reported issues reported by community members DevOps Pod Issues related to devops High This issue blocks a user from building or impacts a lot of users Needs Triaging Needs attention from maintainers to triage Production

Comments

@MobGG
Copy link

MobGG commented Jan 8, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Description

when restore database using appsmithctl import_db got this error

# appsmithctl import_db
Importing database
Importing database done
stop backend & rts application before import database
Stopping [ 'backend', 'rts' ]
backend: stopped
rts: stopped
Stopped [ 'backend', 'rts' ]
Failed to execute mongo command: uncaught exception: Error: listCollections failed: {
        "ok" : 0,
        "errmsg" : "command listCollections requires authentication",
        "code" : 13,
        "codeName" : "Unauthorized",
        "$clusterTime" : {
                "clusterTime" : Timestamp(1736334415, 1),
                "signature" : {
                        "hash" : BinData(0,"yyhNzrtHMWqOAYvsNQy4bC5uSIY="),
                        "keyId" : NumberLong("7457493260987006981")
                }
        },
        "operationTime" : Timestamp(1736334415, 1)
} :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
DB.prototype._getCollectionInfosCommand@src/mongo/shell/db.js:723:15
DB.prototype._getCollectionNamesInternal@src/mongo/shell/db.js:795:12
DB.prototype.getCollectionNames@src/mongo/shell/db.js:804:12
@(shell eval):1:1
exiting with code -4
uncaught exception: Error: listCollections failed: {
        "ok" : 0,
        "errmsg" : "command listCollections requires authentication",
        "code" : 13,
        "codeName" : "Unauthorized",
        "$clusterTime" : {
                "clusterTime" : Timestamp(1736334415, 1),
                "signature" : {
                        "hash" : BinData(0,"yyhNzrtHMWqOAYvsNQy4bC5uSIY="),
                        "keyId" : NumberLong("7457493260987006981")
                }
        },
        "operationTime" : Timestamp(1736334415, 1)
} :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
DB.prototype._getCollectionInfosCommand@src/mongo/shell/db.js:723:15
DB.prototype._getCollectionNamesInternal@src/mongo/shell/db.js:795:12
DB.prototype.getCollectionNames@src/mongo/shell/db.js:804:12
@(shell eval):1:1
exiting with code -4
start backend & rts application after import database
Starting [ 'backend', 'rts' ]
backend: started
rts: started
Started [ 'backend', 'rts' ]

Steps To Reproduce

  1. docker exec to appsmith
  2. appsmithctl export_db
  3. appsmithctl import_db

Public Sample App

No response

Environment

Production

Severity

High (Blocker to building or releasing)

Issue video log

No response

Version

selfhost appsmith-ce:v1.55

@MobGG MobGG added Bug Something isn't working Needs Triaging Needs attention from maintainers to triage labels Jan 8, 2025
@Nikhil-Nandagopal Nikhil-Nandagopal added Community Reported issues reported by community members High This issue blocks a user from building or impacts a lot of users Production Backup & Restore Issues related to backup and restore labels Jan 8, 2025
@github-actions github-actions bot added the DevOps Pod Issues related to devops label Jan 8, 2025
@pratapaprasanna
Copy link
Contributor

Hey can you share the output of printenv and output of cat /appsmith-stacks/configuration/docker.env ???
Also can you share if appsmith is working before doing an appsmithctl import_db .
Also any reason why we are not using appsmithctl backup , appsmithctl restore ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backup & Restore Issues related to backup and restore Bug Something isn't working Community Reported issues reported by community members DevOps Pod Issues related to devops High This issue blocks a user from building or impacts a lot of users Needs Triaging Needs attention from maintainers to triage Production
Projects
None yet
Development

No branches or pull requests

5 participants