Rclone fresh install unable to login

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.

Here is how it looks like:
screenshot

Share relevant logs or error messages

İnstallation log: https://paste.yunohost.org/raw/sejevavose

Oh yeah, I think the fix to this needs to happen in the rclone-ynh repo, there’s a config setting for rclone that needs to be changed

1 Like

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

1 Like

Yes, actually.

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 :confused:

As @jarod5001 said, we can remove the http authentication and restrict the Rclone access to admins. (That was the purpose of this branch GitHub - YunoHost-Apps/rclone_ynh at without-password)

1 Like

Can you check the rclone service in tools >services >rclone

1 Like

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!

Yep, but I’ve modified the parts where there were passwords. I replaced the passwords with <entered_password>. Please see below.

Apr 04 19:18:41 systemd[1]: Started rclone.service - Rclone: WebGUI.
Apr 04 19:18:41 rclone[1321244]: ERROR : Error reading tag file at /var/www/rclone/.cache/rclone/webgui/tag
Apr 04 19:18:41 rclone[1321244]: 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 04 19:18:41 rclone[1321244]: NOTICE: Downloading webgui binary. Please wait. [Size: 4763452, Path :  /var/www/rclone/.cache/rclone/webgui/v2.0.5.zip]
Apr 04 19:18:43 rclone[1321244]: NOTICE: Unzipping webgui binary
Apr 04 19:18:43 rclone[1321244]: NOTICE: Serving Web GUI
Apr 04 19:18:43 rclone[1321244]: NOTICE: Serving remote control on http://127.0.0.1:5572/
Apr 04 19:18:43 rclone[1321244]: NOTICE: Web GUI is not automatically opening browser. Navigate to http://ismail:<entered_password>__PASSWORD__%2A@127.0.0.1:5572/?login_token=aXNtYWlsOlFJI2szczY4NmEkQV9fUEFTU1dPUkRfXyo%3D to use.
Apr 04 19:38:03 systemd[1]: Stopping rclone.service - Rclone: WebGUI...
Apr 04 19:38:03 systemd[1]: rclone.service: Main process exited, code=exited, status=143/n/a
Apr 04 19:38:03 systemd[1]: rclone.service: Failed with result 'exit-code'.
Apr 04 19:38:03 systemd[1]: Stopped rclone.service - Rclone: WebGUI.
Apr 04 19:38:03 systemd[1]: rclone.service: Consumed 1.007s CPU time.
Apr 04 19:43:21 systemd[1]: Started rclone.service - Rclone: WebGUI.
Apr 04 19:43:22 rclone[1327440]: ERROR : Error reading tag file at /var/www/rclone/.cache/rclone/webgui/tag
Apr 04 19:43:22 rclone[1327440]: 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 04 19:43:22 rclone[1327440]: NOTICE: Downloading webgui binary. Please wait. [Size: 4763452, Path :  /var/www/rclone/.cache/rclone/webgui/v2.0.5.zip]
Apr 04 19:43:23 rclone[1327440]: NOTICE: Unzipping webgui binary
Apr 04 19:43:23 rclone[1327440]: NOTICE: Serving Web GUI
Apr 04 19:43:23 rclone[1327440]: NOTICE: Serving remote control on http://127.0.0.1:5572/
Apr 04 19:43:23 rclone[1327440]: NOTICE: Web GUI is not automatically opening browser. Navigate to http://ismail:<entered_password>__PASSWORD__%2A@127.0.0.1:5572/?login_token=aXNtYWlsOlFJI2szczY4NmEkQV9fUEFTU1dPUkRfXyo%3D to use.
Apr 05 11:52:41 systemd[1]: Stopping rclone.service - Rclone: WebGUI...
Apr 05 11:52:41 systemd[1]: rclone.service: Main process exited, code=exited, status=143/n/a
Apr 05 11:52:41 systemd[1]: rclone.service: Failed with result 'exit-code'.
Apr 05 11:52:41 systemd[1]: Stopped rclone.service - Rclone: WebGUI.
Apr 05 11:52:41 systemd[1]: rclone.service: Consumed 5.641s CPU time.
-- Boot 6429c025078c4f7a927569ee26769648 --
Apr 05 11:53:12 systemd[1]: Started rclone.service - Rclone: WebGUI.
Apr 05 11:53:13 rclone[505]: ERROR : Error while fetching the latest release of Web GUI: error checking for web gui release update, skipping update: failed getting latest release of rclone-webui: Get "https://api.github.com/repos/rclone/rclone-webui-react/releases/latest": dial tcp: lookup api.github.com on [::1]:53: read udp [::1]:48064->[::1]:53: read: connection refused
Apr 05 11:53:13 rclone[505]: NOTICE: Serving Web GUI
Apr 05 11:53:13 rclone[505]: NOTICE: Serving remote control on http://127.0.0.1:5572/
Apr 05 11:53:13 rclone[505]: NOTICE: Web GUI is not automatically opening browser. Navigate to http://ismail:<entered_password>__PASSWORD__%2A@127.0.0.1:5572/?login_token=aXNtYWlsOlFJI2szczY4NmEkQV9fUEFTU1dPUkRfXyo%3D to use.

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.

1 Like

Nice. We have a direction for the way to fix it.
Thank you for taking the time to make tests and bring a draft for the solution

1 Like

Thank to you all, too :hugs: :smiling_face_with_three_hearts:. It is nice to be here, learning with the community and yunohost, though sometimes might be stressful :sleepy_face: but this makes a part of learning and progressing process :face_with_monocle:.
At the end of the day, I’m happy if I contributed even a little. :saluting_face:

Okay so it needs the without-password branch and an alphanumeric password, gotcha! Is working for me now

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.

Can you try the testing branch GitHub - YunoHost-Apps/rclone_ynh at testing and use password with special characters?

1 Like

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.

What do you think?

1 Like