question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] boost-1.69 source download fails (403, forbidden) - was working last week

See original GitHub issue

This was working fine until today. Now I’m getting a HTTP 403 (Forbidden) error when attempting to conan install. Logs below.

Environment Details (include every applicable attribute)

  • Operating System+version: Docker / Ubuntu 20.04
  • Compiler+version: gcc 9.3.0
  • Conan version: 1.36.0
  • Python version: 3.7.1

Steps to reproduce (Include if Applicable)

Attempting to install

My conanfile:

[requires]
boost/1.69.0@conan/stable

[options]
boost:shared=False

[generators]
cmake_find_package
cmake_paths

My remotes.json:

{
 "remotes": [
  {
   "name": "conan-center",
   "url": "https://conan.bintray.com",
   "verify_ssl": true
  },
  {
   "name": "community",
   "url": "https://api.bintray.com/conan/conan-community/conan",
   "verify_ssl": true
  }
 ]
}

Logs (Executed commands with output) (Include/Attach if Applicable)

$ conan install --build=missing --install-folder build . -s compiler=gcc -s compiler.libcxx=libstdc++11
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=9.3
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

boost/1.69.0@conan/stable: WARN: Package binary is corrupted, removing: 1fa79ac8869f5511932708f9413be3223e8aa98b
conanfile.txt: Installing package
Requirements
    boost/1.69.0@conan/stable from 'conan-center' - Cache
    bzip2/1.0.8 from 'conan-center' - Cache
    zlib/1.2.11 from 'conan-center' - Cache
Packages
    boost/1.69.0@conan/stable:1fa79ac8869f5511932708f9413be3223e8aa98b - Build
    bzip2/1.0.8:ac48fbe81a58f9445f80c07076de04c18aef1ced - Cache
    zlib/1.2.11:c9f99894de7cd0d22d0bdedcf23221ef3d5c6f04 - Cache

Installing (downloading, building) binaries...
bzip2/1.0.8: Already installed!
bzip2/1.0.8: Appending PATH environment variable: /home/david/.conan/data/bzip2/1.0.8/_/_/package/ac48fbe81a58f9445f80c07076de04c18aef1ced/bin
zlib/1.2.11: Already installed!
boost/1.69.0@conan/stable: WARN: Build folder is dirty, removing it: /home/david/.conan/data/boost/1.69.0/conan/stable/build/1fa79ac8869f5511932708f9413be3223e8aa98b
boost/1.69.0@conan/stable: WARN: Trying to remove corrupted source folder
boost/1.69.0@conan/stable: WARN: This can take a while for big packages
boost/1.69.0@conan/stable: Configuring sources in /home/david/.conan/data/boost/1.69.0/conan/stable/source
ERROR: boost/1.69.0@conan/stable: Error in source() method, line 131
	tools.get(url, sha256=sha256)
	AuthenticationException: Forbidden!

Setting CONAN_TRACE_FILE=/tmp/conan.log results in:

{"_action": "COMMAND", "name": "install", "parameters": {"build": ["missing"], "channel": null, "env": null, "generators": null, "install_folder": "build", "lockfile": null, "lockfile_out": null, "manifests": null, "manifests_interactive": null, "name": null, "no_imports": false, "options": null, "path": ".", "profile_build": [null, null, null, null], "profile_names": null, "remote_name": null, "settings": ["compiler=gcc", "compiler.libcxx=libstdc++11"], "update": false, "user": null, "verify": null, "version": null}, "time": 1619997718.6954093}
{"_action": "GOT_RECIPE_FROM_LOCAL_CACHE", "_id": "boost/1.69.0@conan/stable", "time": 1619997718.735457}
{"_action": "GOT_RECIPE_FROM_LOCAL_CACHE", "_id": "zlib/1.2.11", "time": 1619997718.7427695}
{"_action": "GOT_RECIPE_FROM_LOCAL_CACHE", "_id": "bzip2/1.0.8", "time": 1619997718.746706}
{"_action": "REST_API_CALL", "duration": 0.415712833404541, "headers": {"User-Agent": "Conan/1.36.0 (Python 3.7.1) python-requests/2.24.0", "X-Client-Anonymous-Id": "**********", "X-Client-Id": ""}, "method": "GET", "time": 1619997719.1685212, "url": "https://conan.bintray.com/v1/ping"}
{"_action": "REST_API_CALL", "duration": 0.043579816818237305, "headers": {"Conan-PkgID-Options": "fPIC=True;header_only=False;shared=False", "Conan-PkgID-Settings": "arch=x86_64;build_type=Release;compiler=gcc;compiler.libcxx=libstdc++11;compiler.version=9.3;os=Linux", "User-Agent": "Conan/1.36.0 (Python 3.7.1) python-requests/2.24.0", "X-Client-Anonymous-Id": "**********", "X-Client-Id": ""}, "method": "GET", "time": 1619997719.2152104, "url": "https://conan.bintray.com/v1/conans/boost/1.69.0/conan/stable/packages/1fa79ac8869f5511932708f9413be3223e8aa98b/download_urls"}
{"_action": "GOT_PACKAGE_FROM_LOCAL_CACHE", "_id": "bzip2/1.0.8:ac48fbe81a58f9445f80c07076de04c18aef1ced", "time": 1619997719.2214859}
{"_action": "GOT_PACKAGE_FROM_LOCAL_CACHE", "_id": "zlib/1.2.11:c9f99894de7cd0d22d0bdedcf23221ef3d5c6f04", "time": 1619997719.22722}
{"_action": "REST_API_CALL", "duration": 0.6913402080535889, "headers": {"User-Agent": "Conan/1.36.0 (Python 3.7.1) python-requests/2.24.0"}, "method": "GET", "time": 1619997719.930342, "url": "https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.gz"}
{"_action": "EXCEPTION", "class": "ConanExceptionInUserConanfileMethod", "message": "boost/1.69.0@conan/stable: Error in source() method, line 131\n\ttools.get(url, sha256=sha256)\n\tAuthenticationException: Forbidden!", "time": 1619997719.9355967}

I don’t understand why it’s trying to download from the sunsetted https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.gz URL? This seems to be specified in my ~/.conan/data/boost/1.69.0/conan/stable/export/conanfile.py (line 130), but this doesn’t match the recipe at https://conan.io/center/boost?version=1.69.0&tab=recipe

Also I have cleared my cache with conan remove boost - this removes the recipe at ~/.conan/data/boost/1.69.0/conan/stable/export/conanfile.py but then re-running the conan install command regenerates it, and I have no idea where it’s coming from.

More logs:

$ rm /tmp/conan.log
$ conan remove boost
Are you sure you want to delete from 'boost/1.69.0@conan/stable' (yes/no): yes
$ export CONAN_TRACE_FILE=/tmp/conan.log
$ conan install --build=missing --install-folder build . -s compiler=gcc -s compiler.libcxx=libstdc++11
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=9.3
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

boost/1.69.0@conan/stable: Not found in local cache, looking in remotes...
boost/1.69.0@conan/stable: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.30k]                                          
Downloading conanfile.py completed [37.23k]                                              
boost/1.69.0@conan/stable: Downloaded recipe revision 0
conanfile.txt: Installing package
Requirements
    boost/1.69.0@conan/stable from 'conan-center' - Downloaded
    bzip2/1.0.8 from 'conan-center' - Cache
    zlib/1.2.11 from 'conan-center' - Cache
Packages
    boost/1.69.0@conan/stable:1fa79ac8869f5511932708f9413be3223e8aa98b - Build
    bzip2/1.0.8:ac48fbe81a58f9445f80c07076de04c18aef1ced - Cache
    zlib/1.2.11:c9f99894de7cd0d22d0bdedcf23221ef3d5c6f04 - Cache

Installing (downloading, building) binaries...
bzip2/1.0.8: Already installed!
bzip2/1.0.8: Appending PATH environment variable: /home/david/.conan/data/bzip2/1.0.8/_/_/package/ac48fbe81a58f9445f80c07076de04c18aef1ced/bin
zlib/1.2.11: Already installed!
Downloading conan_sources.tgz completed [1.67k]                                          
Decompressing conan_sources.tgz completed [0.00k]                                        
boost/1.69.0@conan/stable: Configuring sources in /home/david/.conan/data/boost/1.69.0/conan/stable/source
ERROR: boost/1.69.0@conan/stable: Error in source() method, line 131
	tools.get(url, sha256=sha256)
	AuthenticationException: Forbidden!
[eight360-3.7.1] korimako:~/..a-30-system.git master $ cat /tmp/conan.log
{"_action": "COMMAND", "name": "remove", "parameters": {"builds": null, "force": false, "outdated": false, "packages": null, "pattern": "boost", "query": null, "remote_name": null, "src": false}, "time": 1619997882.7329714}
{"_action": "COMMAND", "name": "install", "parameters": {"build": ["missing"], "channel": null, "env": null, "generators": null, "install_folder": "build", "lockfile": null, "lockfile_out": null, "manifests": null, "manifests_interactive": null, "name": null, "no_imports": false, "options": null, "path": ".", "profile_build": [null, null, null, null], "profile_names": null, "remote_name": null, "settings": ["compiler=gcc", "compiler.libcxx=libstdc++11"], "update": false, "user": null, "verify": null, "version": null}, "time": 1619997892.9792993}
{"_action": "REST_API_CALL", "duration": 0.3225212097167969, "headers": {"User-Agent": "Conan/1.36.0 (Python 3.7.1) python-requests/2.24.0", "X-Client-Anonymous-Id": "**********", "X-Client-Id": ""}, "method": "GET", "time": 1619997893.3460884, "url": "https://conan.bintray.com/v1/ping"}
{"_action": "REST_API_CALL", "duration": 0.04350137710571289, "headers": {"User-Agent": "Conan/1.36.0 (Python 3.7.1) python-requests/2.24.0", "X-Client-Anonymous-Id": "**********", "X-Client-Id": ""}, "method": "GET", "time": 1619997893.3924575, "url": "https://conan.bintray.com/v1/conans/boost/1.69.0/conan/stable/download_urls"}
{"_action": "REST_API_CALL", "duration": 0.04290461540222168, "headers": {"User-Agent": "Conan/1.36.0 (Python 3.7.1) python-requests/2.24.0"}, "method": "GET", "time": 1619997893.4371958, "url": "https://conan.bintray.com/artifactory/api/conan/conan-center-legacy/v1/files/conan/boost/1.69.0/stable/0/export/conanmanifest.txt"}
{"_action": "DOWNLOAD", "duration": 0.04988217353820801, "time": 1619997893.4441516, "url": "https://conan.bintray.com/artifactory/api/conan/conan-center-legacy/v1/files/conan/boost/1.69.0/stable/0/export/conanmanifest.txt"}
{"_action": "REST_API_CALL", "duration": 0.042447805404663086, "headers": {"User-Agent": "Conan/1.36.0 (Python 3.7.1) python-requests/2.24.0"}, "method": "GET", "time": 1619997893.487845, "url": "https://conan.bintray.com/artifactory/api/conan/conan-center-legacy/v1/files/conan/boost/1.69.0/stable/0/export/conanfile.py"}
{"_action": "DOWNLOAD", "duration": 0.0884244441986084, "time": 1619997893.533803, "url": "https://conan.bintray.com/artifactory/api/conan/conan-center-legacy/v1/files/conan/boost/1.69.0/stable/0/export/conanfile.py"}
{"_action": "DOWNLOADED_RECIPE", "_id": "boost/1.69.0@conan/stable", "duration": 0.18760395050048828, "files": [{"md5": "99168fe176bbdc19a56391e39862fe42", "name": "conanmanifest.txt", "path": "/home/david/.conan/data/boost/1.69.0/conan/stable/dl/export/conanmanifest.txt", "sha1": "8faf67aa136eb813f02fb0d62f38fc15c4a63520"}, {"md5": "db57dd4c4ff1b8e3f2a1aac4fab70925", "name": "conanfile.py", "path": "/home/david/.conan/data/boost/1.69.0/conan/stable/dl/export/conanfile.py", "sha1": "9fbf1e35f8275862856ed0aa84d40c46cc7ee527"}], "remote": "conan-center", "time": 1619997893.5357263}
{"_action": "GOT_RECIPE_FROM_LOCAL_CACHE", "_id": "zlib/1.2.11", "time": 1619997893.5629218}
{"_action": "GOT_RECIPE_FROM_LOCAL_CACHE", "_id": "bzip2/1.0.8", "time": 1619997893.5704482}
{"_action": "REST_API_CALL", "duration": 0.03783535957336426, "headers": {"Conan-PkgID-Options": "fPIC=True;header_only=False;shared=False", "Conan-PkgID-Settings": "arch=x86_64;build_type=Release;compiler=gcc;compiler.libcxx=libstdc++11;compiler.version=9.3;os=Linux", "User-Agent": "Conan/1.36.0 (Python 3.7.1) python-requests/2.24.0", "X-Client-Anonymous-Id": "**********", "X-Client-Id": ""}, "method": "GET", "time": 1619997893.6159275, "url": "https://conan.bintray.com/v1/conans/boost/1.69.0/conan/stable/packages/1fa79ac8869f5511932708f9413be3223e8aa98b/download_urls"}
{"_action": "GOT_PACKAGE_FROM_LOCAL_CACHE", "_id": "bzip2/1.0.8:ac48fbe81a58f9445f80c07076de04c18aef1ced", "time": 1619997893.618116}
{"_action": "GOT_PACKAGE_FROM_LOCAL_CACHE", "_id": "zlib/1.2.11:c9f99894de7cd0d22d0bdedcf23221ef3d5c6f04", "time": 1619997893.618779}
{"_action": "REST_API_CALL", "duration": 0.037517547607421875, "headers": {"User-Agent": "Conan/1.36.0 (Python 3.7.1) python-requests/2.24.0", "X-Client-Anonymous-Id": "**********", "X-Client-Id": ""}, "method": "GET", "time": 1619997893.6583989, "url": "https://conan.bintray.com/v1/conans/boost/1.69.0/conan/stable/download_urls"}
{"_action": "REST_API_CALL", "duration": 0.03936505317687988, "headers": {"User-Agent": "Conan/1.36.0 (Python 3.7.1) python-requests/2.24.0"}, "method": "GET", "time": 1619997893.698568, "url": "https://conan.bintray.com/artifactory/api/conan/conan-center-legacy/v1/files/conan/boost/1.69.0/stable/0/export/conan_sources.tgz"}
{"_action": "DOWNLOAD", "duration": 0.042534589767456055, "time": 1619997893.701723, "url": "https://conan.bintray.com/artifactory/api/conan/conan-center-legacy/v1/files/conan/boost/1.69.0/stable/0/export/conan_sources.tgz"}
{"_action": "DOWNLOADED_RECIPE_SOURCES", "_id": "boost/1.69.0@conan/stable", "duration": 0.08225464820861816, "files": [{"md5": "95c68fe15b835443ea50f88a3c463dd5", "name": "conan_sources.tgz", "path": "/home/david/.conan/data/boost/1.69.0/conan/stable/dl/export/conan_sources.tgz", "sha1": "86981d5f1c2029ca659d7f3c533e9760056cad3e"}], "remote": "conan-center", "time": 1619997893.7029045}
{"_action": "UNZIP", "dst": "/home/david/.conan/data/boost/1.69.0/conan/stable/export_source", "duration": 0.005906820297241211, "src": "/home/david/.conan/data/boost/1.69.0/conan/stable/dl/export/conan_sources.tgz", "time": 1619997893.7094789}
{"_action": "REST_API_CALL", "duration": 0.7521712779998779, "headers": {"User-Agent": "Conan/1.36.0 (Python 3.7.1) python-requests/2.24.0"}, "method": "GET", "time": 1619997894.4692166, "url": "https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.gz"}
{"_action": "EXCEPTION", "class": "ConanExceptionInUserConanfileMethod", "message": "boost/1.69.0@conan/stable: Error in source() method, line 131\n\ttools.get(url, sha256=sha256)\n\tAuthenticationException: Forbidden!", "time": 1619997894.4844189}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Croydoncommented, May 5, 2021
1reaction
Croydoncommented, May 3, 2021

The PR will fix the download warnings for all versions.

However, if you get an error instead of a warning, you most likely use the deprecated recipe as explained above and you need to migrate to the recipe without @conan/stable

Read more comments on GitHub >

github_iconTop Results From Across the Web

403 Forbidden error: What it is and how to fix it - Allconnect.com
It simply means that, for some predetermined reason, the website's content you're trying to access is being blocked. The reason might be within ......
Read more >
What Is the 403 Forbidden Error and How to Fix It (8 Methods ...
Can't access a website due to the 403 Forbidden error? Read this tutorial and learn 8 methods to fix this problem.
Read more >
403 Forbidden Error - What Is It and How to Fix It
The 403 Forbidden error happens when a web server denies access to a webpage to a user trying to access it trough a...
Read more >
How to Fix the 403 Forbidden Error (2 Methods That Work)
The 403 forbidden error can bar access to a website. In this post, we'll show you a few easy ways to fix this...
Read more >
How to Fix a 403 Forbidden Error on Your WordPress Site
Seeing an error on your WordPress site can be frustrating and deflating, which is why we've created this detailed guide to help you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found