Skip to content
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

Failed to extract files. Try to run the application with admin permission #405

Closed
DamienCassou opened this issue Oct 26, 2021 · 4 comments · Fixed by #406 or #407
Closed

Failed to extract files. Try to run the application with admin permission #405

DamienCassou opened this issue Oct 26, 2021 · 4 comments · Fixed by #406 or #407
Labels

Comments

@DamienCassou
Copy link

Describe the bug

I get this error message when trying to download translations:

❌ Failed to extract files. Try to run the application with admin permission

I'm not sure what this error means. The api_token in the configuration file usually works fine.

To Reproduce

"project_identifier" : "xxx"
"api_key" : ""
"preserve_hierarchy": true
"project_id" : "372541"
"api_token" : "xxx"

files: [
 {
  "source" : "/translations-client/en-US.json",
  "dest": /Client.json,
  "translation" : "/translations-client/%locale%.json",
  "update_option" : "update_as_unapproved"
 },
 {
  "source" : "/translations-server/Translations.en-US.resx",
  "dest": /Server.resx,
  "translation" : "/translations-server/Translations.%locale%.resx",
  "update_option" : "update_as_unapproved"
 }
]
$ crowdin --version
3.7.0
$ crowdin download -b master --language=nb
✔️  Fetching project info     
✔️  Building ZIP archive with the latest translations for 'nb'
✔️  Building translation (100%)
✔️  Downloading translation     
❌ Extracting archive     
❌ Failed to extract files. Try to run the application with admin permission
❌ Failed to extract the '/home/cassou/Documents/projects/ftgp/monitor/CrowdinTranslations_82948866561.zip' archive. Try to run the command once again

Expected behavior

I was expecting the Norwegian translations to be downloaded to the translations-server directory.

Environment:

  • OS: Fedora
  • Version 34
@DamienCassou
Copy link
Author

DamienCassou commented Oct 26, 2021

I think this is due to this Crowdin setting:

2021-10-26-161445

  • setting activated with checkbox checked: the error message above appears
  • setting deactivated with checkbox unchecked: seems to work fine

@ira-sem
Copy link

ira-sem commented Oct 26, 2021

Hi @DamienCassou ! Yes, already had a talk with a colleague and indeed, the files for Norwegian (from master branch) weren't exported since they are not fully translated/approved and the option was enabled

@DamienCassou
Copy link
Author

Would it be possible to improve the error message?

@ira-sem
Copy link

ira-sem commented Oct 26, 2021

@DamienCassou as I was informed, this is a default message when something unexpected is happening. I've already passed this to the team so hopefully will improve the message in the future

@andrii-bodnar andrii-bodnar linked a pull request Nov 19, 2021 that will close this issue
@andrii-bodnar andrii-bodnar linked a pull request Nov 19, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants