-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Error after password change #127
Comments
You're supposed to recreate a container when you change environment variable, this is a normal docker behaviour. Restarting it would have "fixed your issue" as your expected behaviour is handled at init (Both by Docker and JDownloader). You also could have used the |
docker-compose automatically recreates the container when the .yml file changed. was using command so as of now env variables are just useless after first creation maybe this helps for further understanding: on a fresh created docker container. |
As stated previously, you should use the Line 8 in 56e9836
This, nonetheless, could be considered as a bug as the |
after updating the docker image to the latest version I tried after debugging that behaviour this is my conclusion: my suggestion. use something superior in order to alter .json files other than |
Thank you for reporting and for your support. The fix I deployed wasn't supposed to change the I will not install Your RegExp is better for handling the change. This will reintroduce the initial password configuration bug but I'll handle it |
Configure tool will now surround parameters by double quotes to avoid commas in password or email or devicename to break JSON format. With this change, spaces before and after the semicolumn separator in MyJDownloader configuration JSON file are forbidden (therefore, changed in the dist default file). This new behaviour, however, is buggy with double quotes in password. This is a limitation of sed that does not allow non greedy regexp. This means if a password contains a double quote, it will be correctly handle the first time only and will break everything on password change. Same for devicename or email. Let's pray for JDownloader to NOT change back with the space on the semicolumn separator or everything will be broken again. I know this is not perfect but fixes 99% of issues to avoid recompiling the universe or adding a thousand dependencies.
In my case the org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json has repeated password entries and a lot full of \n\n\n\n\n\n\n\n\n I edited it, rebooted the container and it worked. Thanks |
Not really an issue for me but after trying out the docker secrets I would like to point you to the fact that User and Password are stored in the org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json file in the config volume
Therefore the values are persistent. Using env variables for these values seems unnecessary.
So once set you don't need the env variables for user and password anymore.
On a fresh docker container installation without any config files -> just configure user and password one time. That's it.
That said if you ever change your password you have to change It in the json file cause the docker container always crashes with this error then (although I added the correct user and password as env variables in the docker-compose file. but it seems that the wrong password in org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json won't be altered anymore after first set):
TL;DR:
if you ever change your user or password. make sure to alter the org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json file accordingly. That seems the easiest way at the moment.
The text was updated successfully, but these errors were encountered: