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

[BUG] Failed to cache / HTTP 403: Forbidden reading - Download file with file.managed #67087

Open
Nelson89 opened this issue Dec 4, 2024 · 1 comment
Labels
Bug broken, incorrect, or confusing behavior needs-triage

Comments

@Nelson89
Copy link

Nelson89 commented Dec 4, 2024

Description
I can't download file with state file.managed from https://downloads.tableau.com/, I get following error

Failed to cache ...: Error: HTTP 403: Forbidden reading ....

On the server I can download data from tableau with curl, wget. I have only problems, when I will do it with state file.managed.

I can with similar state download data from another servers, but I can't do it with data stored in tableau.com

I use salt in version 3006.9 on salt-minion and salt-master servers. Both server run with Debian 12. I reproduced it in docker as well.

Setup
This is my state to download file

download_tableau_setup_tool:
  file.managed:
    - name: /root/tableau-setup-tool.tar.gz
    - source: https://downloads.tableau.com/esdalt/2024.2.0/tableau-server-container-setup-tool-2024.2.0.tar.gz
    - skip_verify: true

Steps to Reproduce the behavior

  • Create state to download tableau
  • apply state on minion

This is response:

minion:
----------
              ID: download_tableau_setup_tool
    Function: file.managed
        Name: /root/tableau-setup-tool.tar.gz
        Result: False
     Comment: Failed to cache https://downloads.tableau.com/esdalt/2024.2.0/tableau-server-container-setup-tool-2024.2.0.tar.gz: Error: HTTP 403: Forbidden reading /esdalt/2024.2.0/tableau-server-container-setup-tool-2024.2.0.tar.gz
     Started: 07:53:27.669324
    Duration: 191.301 ms
     Changes:

Summary for minion
------------
Succeeded: 0
Failed:    1
------------
Total states run:     1
Total run time: 191.301 ms
ERROR: Minions returned with non-zero exit code

Expected behavior

  • it is possible to download files
@Nelson89 Nelson89 added Bug broken, incorrect, or confusing behavior needs-triage labels Dec 4, 2024
Copy link

welcome bot commented Dec 4, 2024

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at saltproject@vmware.com. We’re glad you’ve joined our community and look forward to doing awesome things with you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant