-
Notifications
You must be signed in to change notification settings - Fork 103
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 transcrypt smudge context=default' failed 1
since version 2.2.1
#158
Comments
transcrypt smudge context=default' failed 1
since version 2.2.1
Hi @marian-finary thanks for the feedback. I suspect the damage-undoing code I added as part of the I'll try to do some testing on that Docker image you linked. Does the Android build that fails have different encrypted files? Or do you think the problem is more likely caused by the runtime environment? Apart from the original issue, I'd recommend some changes to your pipeline scripts to make it quicker and more reliable:
|
I haven't been been able to reproduce this issue after doing some basic testing in the I have made a change based on a hunch that might help, in commit 8be50df which is now the latest on It would be great if you could test this and confirm or deny the fix. |
I'm facing the same issue, I had to use the version 2.1.0 instead. is there any ETA on this fix? |
Hi @rotarur I haven't been able to reproduce this issue myself, so I'm not in a position to fix it. Could you try the version in commit 8be50df to see if it helps? And can you confirm whether you are using the official 2.2.1 release, or the latest code on the Other than that, any info you could provide to narrow down the root problem would be helpful. |
I'll try that commit hash and see if it works. I'll use the transcrypt script directly from that commit |
it worked
I've used your version |
Thanks very much for confirming that fix @rotarur and for the initial report @marian-finary. I have released a new version 2.2.2 that includes the fix from the commit mentioned above, but without the other unstable features on the I encourage everyone to use the latest official release (now 2.2.2) instead of the |
Hi, I have encountered this problem too in my Arch Linux system, with both I just cloned my dotfiles repository with transcrypt encrypted files in it, and tried to setup transcrypt.
In the error message above it fails on sqlite database, but I had it fail also on plain-text file too ( Another way to replicate the problem:
UpdateAfter further testing, I found that this issue is indeed dependent on the file. I just replicated the problem on the text file with load of URL links. I will do further testing. Update 2After some more testing, this is some seriously weird bug which is difficult to replicate. Total pain in the ass. But somehow I managed to replicate it in brand new repository with simple text file: transcrypt_bug repository Just clone the repo and try to setup transcrypt, and you should get error:
Used It might have something to do with the size of the file maybe? When I tried it on |
…bled "Salted" prefix #158 The automatic fix for mistakenly double-salted encrypted files seems to be causing file- and system-dependent failures for people, and is almost certainly not worth this hassle, or the performance overhead, since I haven't heard of anyone having a double-salted file to recover. Reverting this now as a bad idea, to return the `smudge` operation back to its original implementation which is massively simpler and hopefully no longer sometimes broken. This reverts commits: - f709d47. - b380f2c.
Hi @AtomicFS thanks so much for digging deep into this bug. As you say it's been a total pain to replicate, since it is file-dependent and the output gives no clues about the underlying problem. Worse still, it must also be system-dependent, because I followed the steps in your transcrypt_bug repository but it did not reproduce the problem on my MacOS 13.2.1 system – the lorem-ipsum.txt file decrypted without problems for me. I do have a couple of ideas for things to try next, if you're willing to continue digging?
|
Hi @jmurty Oh, so the plot thickens ... even system-dependent :/ ... this sucks. Just out of curiosity I tried to make a fresh installation of ArchLinux and I could replicate the problem on the Regarding The problem does not manifest when using commit d5b4bab. |
…bled "Salted" prefix #158 The automatic fix for mistakenly double-salted encrypted files seems to be causing file- and system-dependent failures for people, and is almost certainly not worth this hassle, or the performance overhead, since I haven't heard of anyone having a double-salted file to recover. Reverting this now as a bad idea, to return the `smudge` operation back to its original implementation which is massively simpler and hopefully no longer sometimes broken. This reverts commits: - f709d47. - b380f2c.
Thanks for following up @AtomicFS, I appreciate your effort. I have released a new version 2.2.3 based on the trial commit above which will hopefully solve this once and for all. I don't think it's worth the effort, and pain for users, to keep trying to make the problematic auto-fixing feature work across all systems for all files. If anyone does have a faulty encrypted file that could have been fixed by that feature – if/when it worked properly – they can instead ask for and get help here. |
Revert ill-judged attempt to auto-fix faulty encrypted files with doubled "Salted" prefix #158 The automatic fix for mistakenly double-salted encrypted files seems to be causing file- and system-dependent failures for people, and is almost certainly not worth this hassle, or the performance overhead, since I haven't heard of anyone having a double-salted file to recover. Reverting this now as a bad idea, to return the `smudge` operation back to its original implementation which is massively simpler and hopefully no longer sometimes broken.
@jmurty glad I can help. |
This issue has been quiet for a while now, so it looks like release 2.2.3 did finally fix the incompatibility issues. |
General Context
We are using transcrypt in our mobile app repository. This mobile app works with Expo. We use Expo pipelines to create builds. One of the step during the build process is to use transcrypt for some files
Current Behavior
Since 2.2.1, run transcrypt fails randomly but mostly all the time, but only during creation of Android build.
For the pipeline that creates iOS build, there is not the issue at all.
Context (Environment)
Expo uses this docker image: ubuntu-20.04-jdk-11-ndk-r21e in the Android pipelines
You could find more information about it here: https://docs.expo.dev/build-reference/infrastructure/#ubuntu-2004-jdk-11-ndk-r21e-alias-default
Detailed Description
We use this script to install and run transcrypt, at some point in the pipeline:
and we run it with that command:
./decryptFiles.sh my_transcrypt_password
So, since the 2.2.1 was released, we face that issue :
If we force to install the 2.2.0, by modifying our script with:
we don't have the issue at all and the trace looks like:
So for now, we have set the version to 2.2.0
The text was updated successfully, but these errors were encountered: