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

Everytime I restart mydrive script, Password doesn't work #43

Open
calebdatechguy opened this issue Mar 21, 2021 · 6 comments
Open

Everytime I restart mydrive script, Password doesn't work #43

calebdatechguy opened this issue Mar 21, 2021 · 6 comments

Comments

@calebdatechguy
Copy link

Hey! So whenever i restart my server, or the myDrive script, it always has trouble with user passwords. Every time i restart, it seems to just "forget the password". I don't change anything in mongo, or anything on the file system either... so i have no clue why this could be happening...
https://gyazo.com/c549562ff5f52e85acba0b88d240da8f
There is a screenshot of the password incorrect page.

Is there any command for me to reset my password? I do not mind doing this, but I just hate to loose access to my files every time the script restarts...

Hope this can be figured out because I love this!
Thanks,
Caleb

@subnub
Copy link
Owner

subnub commented Mar 21, 2021

What an odd issue... I’ve never heard of this one before haha. Whenever the server starts does it ask you to enter an encryption key first? The only thing I can guess is the encryption key is different so it throws an error trying to decrypt the password.

@calebdatechguy
Copy link
Author

calebdatechguy commented Mar 21, 2021 via email

@calebdatechguy
Copy link
Author

calebdatechguy commented Mar 21, 2021 via email

@subnub
Copy link
Owner

subnub commented Mar 21, 2021

For some reason I cannot see the image, can you try to upload it again please?

Edit: Most likely because you tried to upload the image through a reply in your email

@calebdatechguy
Copy link
Author

calebdatechguy commented Mar 21, 2021 via email

@subnub
Copy link
Owner

subnub commented Mar 21, 2021

Okay yeah this def looks like it is caused by the encryption key. I think most likely you accidently typed in the wrong password when you first created/ran the server. Now whenever you restart the server you're putting in a different key. I probably should add some type of fail safe for this in the future.

Unfortunately you cannot recover a lost/forgotten key, unless of course you can somehow figure out what you typed in when you first created the server.

If you cannot figure it out, you will have to clear out the database and start over I'm afraid. When you run the setup again, I recommend choosing the option to enter the encryption key once instead of every time the server starts if it's causing you to much trouble. While this is less secure (anyone can check in your env file and see your key) it should be okay if you're just using it for personal use.

Let me know if you are having trouble figuring out how to reset your database, if you aren't too familiar with commands you could also manually delete them using a program like Robo3T or Compass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants