Closed oOScuByOo closed 1 year ago
Hey, if you launched a first time and did not look the user is already created. For it to recreate the Admin, open a tty shell.om the mongodb container, login using mongosh and run the command:
use ctfDB; db.users.drop()
you should then restart the backEnd and see the password.
Hello Gomez0015 and thanks for your work =)
As i see the DB didn't exist ^^
use ctfDB; db.users.drop() Error: [ctfDB; db.users.drop()] is not a valid database name : Mongo.prototype.getDB@src/mongo/shell/mongo.js:63:12 getDatabase@src/mongo/shell/session.js:922:28 DB.prototype.getSiblingDB@src/mongo/shell/db.js:22:12 shellHelper.use@src/mongo/shell/utils.js:832:10 shellHelper@src/mongo/shell/utils.js:819:15 @(shellhelp2):1:1
I will try to investigate why, i've need to build the image myself cause Docker Swarm didn't have this option and you can't use the build option, only image.
EDIT :
Just found why, the DB was created initialy but volume mapping wasn't on the CTF_Cafe repository, but instead in /home/user/mongo, just delete this one, reload the container and that's make my job ^^
Thanks dor your help =)
glad you could figure it ou! Thanks for using CTFCafe ♥️
Hello there,
I'm currently trying to deploy CTF Cafe over Docker Swarm, But i cannot see the generated password for admin in backend console of my portainer.
Is there something i've forget ?