What type of hardware are you using: VPS bought online What YunoHost version are you running: 12.0.12 What app is this about: Rclone 1.69.1~ynh2
Describe your issue
Hi, freshly installed Rclone makes it impossible to login. When I click on it from the SSO panel, a login dialog pops up but does not accept any credentials. I’ve tried with:
yunohost credentials
admin + password I set when installing
yunohost user name + password I set when installing
None of the above worked. Does this have to do with the domain setup which is sync.kozmotronik.net.tr/rclone? There is a similar post to this but without a solution.
Does your password contain special characters? Spaces?
I am not sure if rclone allows running the web ui without password but try to edit its systemd service, remove the password and admin, reload systemd and restart the service.
Use yunohost permissions system to allow the app only to the people you trust and remove it from visitors and all users
According to this post, the rclone generates a random password and a default username which is gui. This information is only visible when the command is issued with -vv option like this: rclone rcd --rc-web-gui -vv.
I think this explains the problem with the yunohost integration. When the above command is issued, rclone looks for whether a username and password specified. If none is specified, it uses a default username (gui) and a random password, and then it expects these credentials to be entered in the auth dialog. But with the yunohost setup, these credentials are unable to access making it impossible to sign in via the auth dialog.
I am not sure if the -vv command will help (the command shows a user:gui and a random password in the logs if user and password are not set), we already have --rc-user and --rc-pass to customise the user and the password. With either setting, we can’t pass http authentication
Oh, I got it. Never mind, I mentioned the -vv and its output just for information purpose, please do not see it as a suggestion. I cannot suggest because I don’t know how the yunohost manages installations (it does very well at most). But I think this kind of problem is rooted the application itself.
So I will give it a try the branch: without-password. It seems like this is the best what can be done in this situtation. Thank you!
Done. I’ve installed it from the without-password branch. I’ve selected “Only administrators” option in the installation page. I’ve also set an administrator password since the page asked it. But it still redirects me to the http auth.
Below is the latest log from the service page:
Apr 05 18:22:12 systemd[1]: Started rclone.service - Rclone: WebGUI.
Apr 05 18:22:13 rclone[71466]: ERROR : Error reading tag file at /var/www/rclone/.cache/rclone/webgui/tag
Apr 05 18:22:13 rclone[71466]: NOTICE: A new release for gui (v2.0.5) is present at https://github.com/rclone/rclone-webui-react/releases/download/v2.0.5/currentbuild.zip
Apr 05 18:22:13 rclone[71466]: NOTICE: Downloading webgui binary. Please wait. [Size: 4763452, Path : /var/www/rclone/.cache/rclone/webgui/v2.0.5.zip]
Apr 05 18:22:15 rclone[71466]: NOTICE: Unzipping webgui binary
Apr 05 18:22:16 rclone[71466]: NOTICE: Serving Web GUI
Apr 05 18:22:16 rclone[71466]: NOTICE: Serving remote control on http://127.0.0.1:5572/
Apr 05 18:22:16 rclone[71466]: NOTICE: Web GUI is not automatically opening browser. Navigate to http://ismail:J7__PASSWORD__5zCX%21__PASSWORD__Xkozmotronik.net.tr5S@127.0.0.1:5572/?login_token=aXNtYWlsOko3X19QQVNTV09SRF9fNXpDWCFfX1BBU1NXT1JEX19Ya296bW90cm9uaWsubmV0LnRyNVM%3D to use.
I haven’t modified anything this time and it seems to be a password with special characters does not go well with the app, I guess?..
Well I try installing it with a password only with alphanumeric characters and let you know right away. Then you may need to add a warning about this case to the installation page.
If I remember correctly, rclone web ui doesn’t allow access without password.
I guess that changing --rc-user __ADMIN__ --rc-pass __PASSWORD__
With --rc-user "__ADMIN__" --rc-pass "__PASSWORD__"
Could help
I confirm that this is a special characters in admin password problem.
I’ve reinstalled the rclone with an alphanumeric only admin password. When I navigated to the app, the auth popup was there again. I depressed at first but tried entering my username and admin password that had been set at the installation step, then boom! I’m finally there.
Thank to you all, too . It is nice to be here, learning with the community and yunohost, though sometimes might be stressful but this makes a part of learning and progressing process .
At the end of the day, I’m happy if I contributed even a little.
In the last time, I actually installed it from the app catalog, not from the without-password branch. I entered my yunohost username not in email form, and the admin password set at the installation page into the pop up.
The only branch that works for me is without-password, typing my username and the rclone password into that auth pop up on the testing branch still just gives a 401
Hi @jarod5001. I’ve just tested that testing branch with d&^re5qO0N4@oi as a password.
It still fails to login through http auth dialog. After the failed attemt of login I see the following messages in the rclone’s log.
Apr 09 11:12:42 rclone[2451]: NOTICE: Serving remote control on http://127.0.0.1:5572/
Apr 09 11:12:42 rclone[2451]: NOTICE: Web GUI is not automatically opening browser. Navigate to http://ismail:d__PASSWORD__%5Ere5qO0N4%40oi@127.0.0.1:5572/?login_token=aXNtYWlsOmRfX1BBU1NXT1JEX19ecmU1cU8wTjRAb2k%3D to use.
I think the character that breaks the login process is the &, as far as I see from the log. Because the other special characters ^, @ are just replaced with their corresponding codes. But the & is being replaced with a __PASSWORD__ notation.