Closed nascherer closed 3 months ago
@nascherer ActiveRecord::Encryption::Errors::Decryption means that your SECRET_KEY_BASE has been changed and table rows can't be decrypted with it now.
Does your /home/docker_admin/docker/docuseal/data folder contain docuseal.env file?
hi, yes - the file exists, although the path is: /home/docker_admin/docker/docuseal/data/docuseal/
I can't remember having changed or done anything manually here.
DATABASE_URL= # keep empty to use sqlite or specify postgresql database URL
SECRET_KEY_BASE=SOME-HASHED-VERY-LONG-PASSKEY-I-DONT-KNOW
to keep DATABASE_URL commented out seems logically, since I use postgres from what Password the variable SECRET_KEY_BASE gets hashed I don't have a clue. Of course I have the password for the configured postgres-user...but I guess plain Text will not be accepted?
@nascherer could you please check when the docuseal.env file was created/modified ?
This file seems to have been automatically created when i last updated the deploy stack in portainer and pulled the latest image. Maybe it was when i restarted the docker service in ubuntu yesterday... don't remember exactly the time
docker_admin@v2202401214983252771:~/docker/docuseal/data/docuseal$ stat ./docuseal.env
File: ./docuseal.env
Size: 221 Blocks: 8 IO Block: 4096 regular file
Device: fc03h/64515d Inode: 1052220 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 1001/docker_admin) Gid: ( 1001/docker_admin)
Access: 2024-06-12 00:25:23.308720976 +0200
Modify: 2024-06-11 22:25:37.266207478 +0200
Change: 2024-06-11 23:46:28.644106795 +0200
Birth: 2024-06-11 22:25:37.266207478 +0200
@nascherer unfortunately i'm not sure how portainer updates work - but it seems like your /home/docker_admin/docker/docuseal/data folder was removed and a new one recreated with a new SECRET_KEY_BASE
Now it's not possible to decrypt encrypted configs in your database.
Try to psql into your database and remove all rows from the encrypted_configs
table - your app URL, SMTP and storage configs will be removed but you can re-configure everything via the settings UI.
thanks, this first seemd to have done the trick, but when I tried to log in and put in my credentials, i was asked for 2FA --- but when i put in my code from my 2FA App I again was thrown to the error 500 page.
I tried to reset my password, but there is no email coming -- and even if it would have, don't know if this would have changed anything with the 2FA problem?!
@nascherer your 2FA was also affected by a new SECRET KEY - try to remove 2FA from users table (clear otp_required_for_login and otp_secret columns)
thank you so much!!!
psql -h postgres -U MYUSERNAME -d docuseal
and than in the database:
UPDATE users SET otp_required_for_login = FALSE, otp_secret = NULL WHERE email = 'myemail@example.com';
finally did it! :-) Highly appreciate your help!
I had the same issue, All steps from above helped besides, i had 500 error when accessing API page. DELETE FROM public.access_tokens; Helped me out
Hello there,
I use the self-hosted docker version of docuseal and until now it worked like a charm for me. just recently updated to version 1.6.0, but when I try to open the webpage, i receive "DocuSeal: [Error] 500 - We're sorry, but somethin went wrong." I run docuseal on an ubuntu vps server. As proxy service i use traefik 2.0 and for database I use postgreSQL. I did not change any settings in my docker-compose.yml. I just stopped the docuseal stack in portainer and the "updated the stack" and hit "re-pull the image" - which leads to pulling the latest image.
This is how my docker-compose.yml for docuseal looks like. at the moment
is it necessary to put a RAILS_MASTER_KEY in the latest version of docuseal?
If i try to log into the postgres database via command line from within the docuseal container
i can reach all the tables ...
Does anyone have an idea?