Guild icon
S3Drive
Community / support / Importing rclone crypt configs not working
Avatar
nourshobier 8/4/2025 9:59 PM
Dear S3Drive team I recently installed the latest version d the app and noticed that when i export and import my rclone configs to my new device, the crypt Volume no longer displays my existing encrypted files and folders. Is there something I need to consider when exporting/importing the configs? I tried importing the configs to round sync and it was working fine
Avatar
Avatar
nourshobier
Dear S3Drive team I recently installed the latest version d the app and noticed that when i export and import my rclone configs to my new device, the crypt Volume no longer displays my existing encrypted files and folders. Is there something I need to consider when exporting/importing the configs? I tried importing the configs to round sync and it was working fine
Thanks for your bug report. When you import configs into new device, are your endpoints appearing in the Accounts tab? Can you try toggling off/on the Mount in the Settings?
Avatar
Avatar
Tom
Thanks for your bug report. When you import configs into new device, are your endpoints appearing in the Accounts tab? Can you try toggling off/on the Mount in the Settings?
nourshobier 8/5/2025 1:51 PM
Hi Tom, yes they appear in the accounts tab, i tried toggling mount as well but unfortunately with no luck
Avatar
Hi again, Thanks for your feedback. We're already investigating the issue, however just to clarify things.
the crypt Volume no longer displays my existing encrypted files and folders.
Does it display anything, is it empty or it doesn't appear on the mount list at all? Do you have any other mounts appearing correctly? Are they encrypted/unencrypted? What's your Android version?
(edited)
Avatar
nourshobier 8/5/2025 8:04 PM
I have both encrypted and unencrypted for gdrive, the unencrypted one works fine. But the encrypted one doesn't show old files, however, new encrypted files are displayed fine with no issue My android version is 16 on pixel phone
8:06 PM
The encrypted one is displayed in the mount list as well as the unencrypted one
Avatar
Unlawful Cactus 8/6/2025 6:42 PM
Do those new files also show up in RoundSync? It sounds like the keys used to encrypt/decrypt the files weren't successfully imported in S3Drive, maybe it didn't parse some special character correctly or something. So essentially it's now using different keys. With these keys it can't decrypt your existing files, and files created using these keys can't be decrypted when using the original keys. So in RoundSync, where you said importing the configs worked as expected, you would see your existing files, but those new files wouldn't show up.
Avatar
I exported the rclone configs from s3drive on my pc and imported them to my phone. That said, i tested out ur theory and u are right, i don't see the files created from s3drive. Do u maybe know how to resolve the situation on my phone? Btw, the s3drive on pc works fine with no issue
Avatar
Thanks for the hint @Unlawful Cactus What’s your backend that crypt points to? Having said that, we’ll double check if password gets properly serialised/deserialised during import export. (edited)
Avatar
nourshobier 8/7/2025 8:31 AM
This is what my config file endpoints looklike [gdrive] type = drive ... [gcrypt] type = crypt remote = gdrive:encrypted-folder ...
Avatar
Avatar
nourshobier
This is what my config file endpoints looklike [gdrive] type = drive ... [gcrypt] type = crypt remote = gdrive:encrypted-folder ...
But the encrypted one doesn't show old files, however, new encrypted files are displayed fine with no issue
a) Are pre-existing encrypted files displayed correctly in the S3Drive UI (not the Android mount)? Does it work on both devices? b) Are pre-existing encrypted files displayed correctly in the origin device (the one from which you exported config) in the Android mount? c) If your files were encrypted with S3Drive to start with. Can you double check if your gcrypt also contain: filename_encoding = base64? It is setting used by S3Drive and crucial for the filepath/name decryption. Bear in mind that if filepath decryption fails (either due to incorrect password or/and settings) these files will appear with mangled name in the S3Drive UI listing, but won't appear anywhere were Rclone is involved (mounts, sync etc.). The other important fact is that if you have existing unencrypted files and then enable encryption, similar side-effect will kick in, that is your unencrypted files will no longer be visible in the mount/sync, but will appear in the S3Drive listing. You can verify if file is encrypted by using Properties (check attached screenshot). d) Can you take your password and use rclone reveal command to double check if it's the one that you've set it to and that it matches the E.g. for: password = Aoyfgxb_7wZbm-kQ_PoOupZrqjd50A line, you type: rclone reveal Aoyfgxb_7wZbm-kQ_PoOupZrqjd50A (you need https://rclone.org/install/ installed on one of your machines). I hope we can get to this eventually.
(edited)
Rclone Installation
Avatar
Avatar
nourshobier
I exported the rclone configs from s3drive on my pc and imported them to my phone. That said, i tested out ur theory and u are right, i don't see the files created from s3drive. Do u maybe know how to resolve the situation on my phone? Btw, the s3drive on pc works fine with no issue
Unlawful Cactus 8/7/2025 5:24 PM
Since you asked: You basically want to make sure the config of your crypt looks exactly the same on your phone as it does on your PC (especially the passwords). You can view the config from the Accounts screen > context menu of the crypt > Show .ini config. If they look different, and [on your phone] reinstalling S3Drive and re-importing your config didn't solve the issue, I would try adding the crypt through Accounts > + > Custom provider and paste the correct config there. Of course, with everything you do, be careful not to permanently lose any data. I don't think you need rclone reveal, as identical obfuscated passwords from the config file will reveal identical passwords, so checking if the configs match exactly should be good enough and save you the hassle of installing rclone. To be clear, I'm not affiliated with S3Drive, just a fellow user. I'm going to shut up now because I'm just interfering with Tom's approach to solve this and that might just annoy him and confuse you 😅 Good luck!
Avatar
Avatar
Unlawful Cactus
Since you asked: You basically want to make sure the config of your crypt looks exactly the same on your phone as it does on your PC (especially the passwords). You can view the config from the Accounts screen > context menu of the crypt > Show .ini config. If they look different, and [on your phone] reinstalling S3Drive and re-importing your config didn't solve the issue, I would try adding the crypt through Accounts > + > Custom provider and paste the correct config there. Of course, with everything you do, be careful not to permanently lose any data. I don't think you need rclone reveal, as identical obfuscated passwords from the config file will reveal identical passwords, so checking if the configs match exactly should be good enough and save you the hassle of installing rclone. To be clear, I'm not affiliated with S3Drive, just a fellow user. I'm going to shut up now because I'm just interfering with Tom's approach to solve this and that might just annoy him and confuse you 😅 Good luck!
I very much agree with what @Unlawful Cactus said. Using: Show .ini config on both ends shall reveal any discrepancies, whereas using Custom provider is an alternative way to import .ini where config can be pasted in instead of requiring to create a file first. Regarding:
I don't think you need rclone reveal, as identical obfuscated passwords from the config file will reveal identical passwords
At the moment only reveal will show the exact password, and two seemingly different obscured passwords might point to the same password. Usually during Rclone import we tell it to wrap (aka obscure) password, as we've thought that some users may want the ability of to provide it as plaintext (even though it is technically wrong from the format standpoint of view). This works fine, however for already obscured passwords this would end up in "double" wrap, which doesn't work. ... so what we do, is we always try to reveal / unwrap and then wrap it again with Rclone. This allows us to import both obscured and unobscured passwords, however it always changes as wrapping nonce is changing as well. Perhaps we could find a way to preserve existing obscure version.
(edited)
Avatar
Unlawful Cactus 8/7/2025 6:42 PM
O, thanks for correcting me Tom, I wasn't aware the obfuscation mechanism uses a nonce “stored verbatim at the beginning of the obscured password” as I've now read in rclone's documentation. Nice to learn something new!
Avatar
Avatar
Tom
But the encrypted one doesn't show old files, however, new encrypted files are displayed fine with no issue
a) Are pre-existing encrypted files displayed correctly in the S3Drive UI (not the Android mount)? Does it work on both devices? b) Are pre-existing encrypted files displayed correctly in the origin device (the one from which you exported config) in the Android mount? c) If your files were encrypted with S3Drive to start with. Can you double check if your gcrypt also contain: filename_encoding = base64? It is setting used by S3Drive and crucial for the filepath/name decryption. Bear in mind that if filepath decryption fails (either due to incorrect password or/and settings) these files will appear with mangled name in the S3Drive UI listing, but won't appear anywhere were Rclone is involved (mounts, sync etc.). The other important fact is that if you have existing unencrypted files and then enable encryption, similar side-effect will kick in, that is your unencrypted files will no longer be visible in the mount/sync, but will appear in the S3Drive listing. You can verify if file is encrypted by using Properties (check attached screenshot). d) Can you take your password and use rclone reveal command to double check if it's the one that you've set it to and that it matches the E.g. for: password = Aoyfgxb_7wZbm-kQ_PoOupZrqjd50A line, you type: rclone reveal Aoyfgxb_7wZbm-kQ_PoOupZrqjd50A (you need https://rclone.org/install/ installed on one of your machines). I hope we can get to this eventually.
(edited)
Hi @nourshobier, I thought to ask how it's going. I was wondering if these instructions were any useful for you or perhaps you got stuck somewhere? Thanks!
Avatar
nourshobier 8/9/2025 9:18 AM
Hey Tom, apologies for the late reply a) Are pre-existing encrypted files displayed correctly in the S3Drive UI (not the Android mount)? Does it work on both devices?
Yes it works fine on my pc
b) Are pre-existing encrypted files displayed correctly in the origin device (the one from which you exported config) in the Android mount?
Yes they are working fine on that PC. However, when installed s3drive on a different PC and imported the exported configs, i faced the same issue on my phone till I configured everything with rclone cli, only then s3 drive started to work fine again.
c) If your files were encrypted with S3Drive to start with. Can you double check if your gcrypt also contain: filename_encoding = base64? It is setting used by S3Drive and crucial for the filepath/name decryption.
No, everything was configured before s3drive using rclone cli before
d) Can you take your password and use rclone reveal command to double check if it's the one that you've set it to and that it matches the
Yes the passwords look good as well
Avatar
Avatar
nourshobier
Hey Tom, apologies for the late reply a) Are pre-existing encrypted files displayed correctly in the S3Drive UI (not the Android mount)? Does it work on both devices?
Yes it works fine on my pc
b) Are pre-existing encrypted files displayed correctly in the origin device (the one from which you exported config) in the Android mount?
Yes they are working fine on that PC. However, when installed s3drive on a different PC and imported the exported configs, i faced the same issue on my phone till I configured everything with rclone cli, only then s3 drive started to work fine again.
c) If your files were encrypted with S3Drive to start with. Can you double check if your gcrypt also contain: filename_encoding = base64? It is setting used by S3Drive and crucial for the filepath/name decryption.
No, everything was configured before s3drive using rclone cli before
d) Can you take your password and use rclone reveal command to double check if it's the one that you've set it to and that it matches the
Yes the passwords look good as well
Sorry I am sort of getting lost in it. I am failing to understand if issue lies solely in import function or something to do with Android mount or perhaps some config incompatibility between S3Drive and Rclone CLI since you've said:
No, everything was configured before s3drive using rclone cli before
Can we start again? Is this issue reproducible if you set up new back-end (e.g. gdrive), then crypt, and then use export/import? In such case can you provide Minimal Reproducible Example, that is mention step by step how to reproduce the issue? Much appreciated!
Avatar
Few months ago before i install s3drive, i already had my rclone cli installed and the crypt mount was configured already. Later i found s3drive and installed it on my pc first then on my phone and exported the rclone configs using cli to my phone. Now when i do the same thing my phone doesn't show the crypt mount pre-existing files anymore
Avatar
nourshobier 8/9/2025 4:42 PM
Dear Tom, I have an update from my side. I tried to run rclone dump and import the configs as json to s3drive and it worked 🎉 I didn't expect it to be so simple
👍 1
Avatar
Avatar
nourshobier
Dear Tom, I have an update from my side. I tried to run rclone dump and import the configs as json to s3drive and it worked 🎉 I didn't expect it to be so simple
That's great news! You're right, we support both formats, be it JSON or INI, but in principle there shouldn't be any difference in importing either. Do you think that S3Drive has some issues with importing .INI? Did you use import function for JSON or perhaps used: Custom provider button where you can paste config as text?
Exported 20 message(s)
Timezone: UTC+0