My uploads from Travis to CodeCov, which were working, now fail with an error like this:
The error stack is: Error: Error uploading to https://codecov.io: FetchError: request to https://storage.googleapis.com/codecov/v4/raw/... failed, reason: connect ENETUNREACH
Hi @eeverman, I’m not too sure why this is happening. I’ve reached out to the product team to see if they have any ideas, but it looks to be more based around something with a request to googleapis.
Hi @tom , I am having a similar issue except on Jenkins. It started a couple of days ago
If I run the codecov tool locally(on in the CI) it seems to work.
17:04:08 + codecov --required --root /home/ubuntu/jenkins/workspace/bol_generated_product_puller_dev --flags optin-puller .
17:04:08 [2022-04-20T21:04:08.580Z] ['info']
17:04:08 _____ _
17:04:08 / ____| | |
17:04:08 | | ___ __| | ___ ___ _____ __
17:04:08 | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
17:04:08 | |___| (_) | (_| | __/ (_| (_) \ V /
17:04:08 \_____\___/ \__,_|\___|\___\___/ \_/
17:04:08
17:04:08 Codecov report uploader 0.1.22
17:04:08 [2022-04-20T21:04:08.586Z] ['info'] => Project root located at: /home/ubuntu/jenkins/workspace/bol_generated_product_puller_dev
17:04:08 [2022-04-20T21:04:08.589Z] ['info'] -> Token found by environment variables
17:04:08 [2022-04-20T21:04:08.594Z] ['info'] Searching for coverage files...
17:04:09 [2022-04-20T21:04:08.931Z] ['info'] Warning: Some files located via search were excluded from upload.
17:04:09 [2022-04-20T21:04:08.931Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
17:04:09 [2022-04-20T21:04:08.931Z] ['info'] => Found 3 possible coverage files:
17:04:09 codecov.yaml
17:04:09 _symbol/codecov.yaml
17:04:09 optin/puller/coverage.xml
17:04:09 [2022-04-20T21:04:08.931Z] ['info'] Processing /home/ubuntu/jenkins/workspace/bol_generated_product_puller_dev/codecov.yaml...
17:04:09 [2022-04-20T21:04:08.933Z] ['info'] Processing /home/ubuntu/jenkins/workspace/bol_generated_product_puller_dev/_symbol/codecov.yaml...
17:04:09 [2022-04-20T21:04:08.933Z] ['info'] Processing /home/ubuntu/jenkins/workspace/bol_generated_product_puller_dev/optin/puller/coverage.xml...
17:04:09 [2022-04-20T21:04:08.937Z] ['info'] Detected Jenkins CI as the CI provider.
17:04:09 [2022-04-20T21:04:08.944Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.1.22&token=*******&branch=dev&build=90&build_url=https%3A%2F%2Fjenkins.symboldev.com%2Fjob%2FSymbol%2Fjob%2Fgenerated%2Fjob%2Fproduct%2Fjob%2Fpuller%2Fjob%2Fdev%2F90%2F&commit=a32e8ec4faffda6c8dd71b89d0508ae29eac0567&job=&pr=&service=jenkins&slug=Symbol%2Fproduct&name=&tag=&flags=optin-puller&parent=
17:04:09 [2022-04-20T21:04:09.243Z] ['info'] https://codecov.io/github/symbol/product/commit/a32e8ec4faffda6c8dd71b89d0508ae29eac0567
17:04:09 https://storage.googleapis.com/codecov/v4/raw/2022-04-20/FBE5B1B0EDC96BFF7A0B1CD19EF20BCC/a32e8ec4faffda6c8dd71b89d0508ae29eac0567/addd60cd-e57c-40f8-b5ab-046722b9a874.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220420%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220420T210409Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=a4e26cf4e151f4720d45fae83ee99561544ee28952a44534910ba4873fff7f2d
17:04:09 [2022-04-20T21:04:09.244Z] ['info'] Uploading...
17:04:10 [2022-04-20T21:04:10.250Z] ['error'] There was an error running the uploader: Error uploading to https://codecov.io: FetchError: request to https://storage.googleapis.com/codecov/v4/raw/2022-04-20/FBE5B1B0EDC96BFF7A0B1CD19EF20BCC/a32e8ec4faffda6c8dd71b89d0508ae29eac0567/addd60cd-e57c-40f8-b5ab-046722b9a874.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220420%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220420T210409Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=a4e26cf4e151f4720d45fae83ee99561544ee28952a44534910ba4873fff7f2d failed, reason: connect ENETUNREACH 2607:f8b0:4004:c0b::80:443
Hi @tom
We have couple of jobs that upload to codecov. I noticed that cpp project is which uses the lcov to generate the data. Is this issue related to the data?
@Wayonb I don’t have an answer yet, but I am going to compile clues here that might be useful.
The error seems to be coming from hitting an IPv6 address, that doesn’t seem to be right.
The only relevant difference I can think of between the two is a bump to node v16
@Wayonb@eeverman I deployed a new version of the uploader 0.2.3 that should fix the issue. Do you mind running CI again to see if the issue has been resolved?
I ran a fresh Travis build, but the latest url seems to be returning version 0.2.2 which failed as it had before. Do I need to specify a different url to get the 0.2.3 version? See the log below:
travis_fold:start:after_success.1
e[0Ktravis_time:start:1a5df86c
e[0K$ curl -Os https://uploader.codecov.io/latest/linux/codecov
travis_time:end:1a5df86c:start=1652825922827628710,finish=1652825923780252885,duration=952624175,event=after_success
e[0Ktravis_fold:end:after_success.1
e[0Ktravis_fold:start:after_success.2
e[0Ktravis_time:start:0a02468c
e[0K$ chmod +x codecov
travis_time:end:0a02468c:start=1652825923784711185,finish=1652825923788582113,duration=3870928,event=after_success
e[0Ktravis_fold:end:after_success.2
e[0Ktravis_fold:start:after_success.3
e[0Ktravis_time:start:0ad09e8a
e[0K$ ./codecov -v
[2022-05-17T22:18:44.019Z] ['verbose'] Start of uploader: 1652825924019...
[2022-05-17T22:18:44.021Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.2.2
[2022-05-17T22:18:44.028Z] ['info'] => Project root located at: /home/travis/build/eeverman/andhow
[2022-05-17T22:18:44.032Z] ['info'] -> No token specified or token is empty
[2022-05-17T22:18:44.032Z] ['verbose'] Start of network processing...
[2022-05-17T22:18:44.032Z] ['verbose'] Searching for files in /home/travis/build/eeverman/andhow
[2022-05-17T22:18:44.042Z] ['verbose'] coveragepy is not installed
[2022-05-17T22:18:44.042Z] ['info'] Searching for coverage files...
[2022-05-17T22:18:44.159Z] ['info'] Warning: Some files located via search were excluded from upload.
[2022-05-17T22:18:44.159Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
[2022-05-17T22:18:44.159Z] ['verbose'] Preparing to clean the following coverage paths: andhow-annotation-processor/target/site/jacoco/jacoco.xml,andhow-core/target/site/jacoco/jacoco.xml,andhow-junit5-extensions/target/site/jacoco/jacoco.xml,andhow-shared-test-utils/target/site/jacoco/jacoco.xml
[2022-05-17T22:18:44.159Z] ['info'] => Found 4 possible coverage files:
andhow-annotation-processor/target/site/jacoco/jacoco.xml
andhow-core/target/site/jacoco/jacoco.xml
andhow-junit5-extensions/target/site/jacoco/jacoco.xml
andhow-shared-test-utils/target/site/jacoco/jacoco.xml
[2022-05-17T22:18:44.159Z] ['verbose'] End of network processing
[2022-05-17T22:18:44.159Z] ['info'] Processing /home/travis/build/eeverman/andhow/andhow-annotation-processor/target/site/jacoco/jacoco.xml...
[2022-05-17T22:18:44.161Z] ['info'] Processing /home/travis/build/eeverman/andhow/andhow-core/target/site/jacoco/jacoco.xml...
[2022-05-17T22:18:44.163Z] ['info'] Processing /home/travis/build/eeverman/andhow/andhow-junit5-extensions/target/site/jacoco/jacoco.xml...
[2022-05-17T22:18:44.164Z] ['info'] Processing /home/travis/build/eeverman/andhow/andhow-shared-test-utils/target/site/jacoco/jacoco.xml...
[2022-05-17T22:18:44.179Z] ['info'] Detected Travis CI as the CI provider.
[2022-05-17T22:18:44.179Z] ['verbose'] -> Using the following env variables:
[2022-05-17T22:18:44.179Z] ['verbose'] TRAVIS: true
[2022-05-17T22:18:44.179Z] ['verbose'] Using the following upload parameters:
[2022-05-17T22:18:44.179Z] ['verbose'] branch
[2022-05-17T22:18:44.179Z] ['verbose'] build
[2022-05-17T22:18:44.179Z] ['verbose'] buildURL
[2022-05-17T22:18:44.179Z] ['verbose'] commit
[2022-05-17T22:18:44.179Z] ['verbose'] job
[2022-05-17T22:18:44.179Z] ['verbose'] pr
[2022-05-17T22:18:44.180Z] ['verbose'] service
[2022-05-17T22:18:44.180Z] ['verbose'] slug
[2022-05-17T22:18:44.180Z] ['verbose'] name
[2022-05-17T22:18:44.180Z] ['verbose'] tag
[2022-05-17T22:18:44.180Z] ['verbose'] flags
[2022-05-17T22:18:44.180Z] ['verbose'] parent
[2022-05-17T22:18:44.181Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.2.2&token=*******&branch=Issue601-rm-deprecated-usage&build=1572.1&build_url=&commit=d85b8755418e3a4c3adc1cf3da1739b150ef8362&job=570533631&pr=721&service=travis&slug=eeverman%2Fandhow&name=&tag=&flags=&parent=
[2022-05-17T22:18:44.181Z] ['verbose'] Passed token was 0 characters long
[2022-05-17T22:18:44.181Z] ['verbose'] https://codecov.io/upload/v4?package=uploader-0.2.2&branch=Issue601-rm-deprecated-usage&build=1572.1&build_url=&commit=d85b8755418e3a4c3adc1cf3da1739b150ef8362&job=570533631&pr=721&service=travis&slug=eeverman%2Fandhow&name=&tag=&flags=&parent=
Content-Type: 'text/plain'
Content-Encoding: 'gzip'
X-Reduced-Redundancy: 'false'
[2022-05-17T22:18:44.711Z] ['info'] https://codecov.io/github/eeverman/andhow/commit/d85b8755418e3a4c3adc1cf3da1739b150ef8362
https://storage.googleapis.com/codecov/v4/raw/2022-05-17/ACBACB8BC42FD370F0A8044E2129DDD4/d85b8755418e3a4c3adc1cf3da1739b150ef8362/5f772ec1-0351-4db3-92e1-8de5d2901ae9.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1E5YTIQF4NUDJHIPRXCW6SWPNHIWXR6YCTGFLBKZTWXKPGHK3U3FMCQWA%2F20220517%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220517T221844Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=a045f956fb049bece0c9151568f9f5ae0da49b88709c824957bf9bc094df45b5
[2022-05-17T22:18:44.712Z] ['verbose'] Returned upload url: https://storage.googleapis.com/codecov/v4/raw/2022-05-17/ACBACB8BC42FD370F0A8044E2129DDD4/d85b8755418e3a4c3adc1cf3da1739b150ef8362/5f772ec1-0351-4db3-92e1-8de5d2901ae9.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1E5YTIQF4NUDJHIPRXCW6SWPNHIWXR6YCTGFLBKZTWXKPGHK3U3FMCQWA%2F20220517%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220517T221844Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=a045f956fb049bece0c9151568f9f5ae0da49b88709c824957bf9bc094df45b5
[2022-05-17T22:18:44.712Z] ['info'] Uploading...
[2022-05-17T22:18:45.756Z] ['error'] There was an error running the uploader: Error uploading to https://codecov.io: FetchError: request to https://storage.googleapis.com/codecov/v4/raw/2022-05-17/ACBACB8BC42FD370F0A8044E2129DDD4/d85b8755418e3a4c3adc1cf3da1739b150ef8362/5f772ec1-0351-4db3-92e1-8de5d2901ae9.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1E5YTIQF4NUDJHIPRXCW6SWPNHIWXR6YCTGFLBKZTWXKPGHK3U3FMCQWA%2F20220517%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220517T221844Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=a045f956fb049bece0c9151568f9f5ae0da49b88709c824957bf9bc094df45b5 failed, reason: connect ENETUNREACH 2607:f8b0:4002:806::2010:443
[2022-05-17T22:18:45.757Z] ['verbose'] The error stack is: Error: Error uploading to https://codecov.io: FetchError: request to https://storage.googleapis.com/codecov/v4/raw/2022-05-17/ACBACB8BC42FD370F0A8044E2129DDD4/d85b8755418e3a4c3adc1cf3da1739b150ef8362/5f772ec1-0351-4db3-92e1-8de5d2901ae9.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1E5YTIQF4NUDJHIPRXCW6SWPNHIWXR6YCTGFLBKZTWXKPGHK3U3FMCQWA%2F20220517%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220517T221844Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=a045f956fb049bece0c9151568f9f5ae0da49b88709c824957bf9bc094df45b5 failed, reason: connect ENETUNREACH 2607:f8b0:4002:806::2010:443
at main (/snapshot/repo/dist/src/index.js)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
[2022-05-17T22:18:45.757Z] ['verbose'] End of uploader: 1738 milliseconds
travis_time:end:0ad09e8a:start=1652825923792593722,finish=1652825925764858364,duration=1972264642,event=after_success
e[0Ktravis_fold:end:after_success.3
e[0K
Done. Your build exited with 0.
Sorry, I seem to be having intermittent Travis build issues as well. At long long, Travis did run again, but, sadly, the upload (now at 0.2.3) still fails in the same way:
$ curl -Os https://uploader.codecov.io/latest/linux/codecov
after_success.2
44750.00s$ chmod +x codecov
after_success.3
44762.00s$ ./codecov -v
4477[2022-06-07T15:49:58.721Z] ['verbose'] Start of uploader: 1654616998721...
4478[2022-06-07T15:49:58.723Z] ['info']
4479 _____ _
4480 / ____| | |
4481 | | ___ __| | ___ ___ _____ __
4482 | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
4483 | |___| (_) | (_| | __/ (_| (_) \ V /
4484 \_____\___/ \__,_|\___|\___\___/ \_/
4485
4486 Codecov report uploader 0.2.3
4487[2022-06-07T15:49:58.731Z] ['info'] => Project root located at: /home/travis/build/eeverman/andhow
4488[2022-06-07T15:49:58.735Z] ['info'] -> No token specified or token is empty
4489[2022-06-07T15:49:58.735Z] ['verbose'] Start of network processing...
4490[2022-06-07T15:49:58.735Z] ['verbose'] Searching for files in /home/travis/build/eeverman/andhow
4491[2022-06-07T15:49:58.744Z] ['verbose'] coveragepy is not installed
4492[2022-06-07T15:49:58.745Z] ['info'] Searching for coverage files...
4493[2022-06-07T15:49:58.919Z] ['info'] Warning: Some files located via search were excluded from upload.
4494[2022-06-07T15:49:58.919Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
4495[2022-06-07T15:49:58.919Z] ['verbose'] Preparing to clean the following coverage paths: andhow-annotation-processor/target/site/jacoco/jacoco.xml,andhow-junit5-extensions/target/site/jacoco/jacoco.xml,andhow-core/target/site/jacoco/jacoco.xml,andhow-shared-test-utils/target/site/jacoco/jacoco.xml
4496[2022-06-07T15:49:58.919Z] ['info'] => Found 4 possible coverage files:
4497 andhow-annotation-processor/target/site/jacoco/jacoco.xml
4498 andhow-junit5-extensions/target/site/jacoco/jacoco.xml
4499 andhow-core/target/site/jacoco/jacoco.xml
4500 andhow-shared-test-utils/target/site/jacoco/jacoco.xml
4501[2022-06-07T15:49:58.920Z] ['verbose'] End of network processing
4502[2022-06-07T15:49:58.920Z] ['info'] Processing /home/travis/build/eeverman/andhow/andhow-annotation-processor/target/site/jacoco/jacoco.xml...
4503[2022-06-07T15:49:58.922Z] ['info'] Processing /home/travis/build/eeverman/andhow/andhow-junit5-extensions/target/site/jacoco/jacoco.xml...
4504[2022-06-07T15:49:58.922Z] ['info'] Processing /home/travis/build/eeverman/andhow/andhow-core/target/site/jacoco/jacoco.xml...
4505[2022-06-07T15:49:58.925Z] ['info'] Processing /home/travis/build/eeverman/andhow/andhow-shared-test-utils/target/site/jacoco/jacoco.xml...
4506[2022-06-07T15:49:58.941Z] ['info'] Detected Travis CI as the CI provider.
4507[2022-06-07T15:49:58.941Z] ['verbose'] -> Using the following env variables:
4508[2022-06-07T15:49:58.941Z] ['verbose'] TRAVIS: true
4509[2022-06-07T15:49:58.941Z] ['verbose'] Using the following upload parameters:
4510[2022-06-07T15:49:58.941Z] ['verbose'] branch
4511[2022-06-07T15:49:58.941Z] ['verbose'] build
4512[2022-06-07T15:49:58.941Z] ['verbose'] buildURL
4513[2022-06-07T15:49:58.941Z] ['verbose'] commit
4514[2022-06-07T15:49:58.941Z] ['verbose'] job
4515[2022-06-07T15:49:58.942Z] ['verbose'] pr
4516[2022-06-07T15:49:58.942Z] ['verbose'] service
4517[2022-06-07T15:49:58.942Z] ['verbose'] slug
4518[2022-06-07T15:49:58.942Z] ['verbose'] name
4519[2022-06-07T15:49:58.942Z] ['verbose'] tag
4520[2022-06-07T15:49:58.942Z] ['verbose'] flags
4521[2022-06-07T15:49:58.942Z] ['verbose'] parent
4522[2022-06-07T15:49:58.943Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.2.3&token=*******&branch=main&build=1578.1&build_url=&commit=585c4505eed3c579bf4ae256f440c1a832341b87&job=572735931&pr=false&service=travis&slug=eeverman%2Fandhow&name=&tag=&flags=&parent=
4523[2022-06-07T15:49:58.943Z] ['verbose'] Passed token was 0 characters long
4524[2022-06-07T15:49:58.943Z] ['verbose'] https://codecov.io/upload/v4?package=uploader-0.2.3&branch=main&build=1578.1&build_url=&commit=585c4505eed3c579bf4ae256f440c1a832341b87&job=572735931&pr=false&service=travis&slug=eeverman%2Fandhow&name=&tag=&flags=&parent=
4525 Content-Type: 'text/plain'
4526 Content-Encoding: 'gzip'
4527 X-Reduced-Redundancy: 'false'
4528[2022-06-07T15:49:59.458Z] ['info'] https://codecov.io/github/eeverman/andhow/commit/585c4505eed3c579bf4ae256f440c1a832341b87
4529https://storage.googleapis.com/codecov/v4/raw/2022-06-07/ACBACB8BC42FD370F0A8044E2129DDD4/585c4505eed3c579bf4ae256f440c1a832341b87/432bb90c-24e9-4e38-a129-a5d20934a17f.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220607%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220607T154959Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=0fe312f904f30e5e14f63c68981cd834ca6bc1512549d890f35976320845d250
4530[2022-06-07T15:49:59.459Z] ['verbose'] Returned upload url: https://storage.googleapis.com/codecov/v4/raw/2022-06-07/ACBACB8BC42FD370F0A8044E2129DDD4/585c4505eed3c579bf4ae256f440c1a832341b87/432bb90c-24e9-4e38-a129-a5d20934a17f.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220607%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220607T154959Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=0fe312f904f30e5e14f63c68981cd834ca6bc1512549d890f35976320845d250
4531[2022-06-07T15:49:59.459Z] ['info'] Uploading...
4532[2022-06-07T15:50:00.477Z] ['error'] There was an error running the uploader: Error uploading to https://codecov.io: Error: connect ENETUNREACH 2607:f8b0:4002:c10::80:443
4533[2022-06-07T15:50:00.478Z] ['verbose'] The error stack is: Error: Error uploading to https://codecov.io: Error: connect ENETUNREACH 2607:f8b0:4002:c10::80:443
4534 at main (/snapshot/repo/dist/src/index.js)
4535 at processTicksAndRejections (node:internal/process/task_queues:96:5)
4536[2022-06-07T15:50:00.478Z] ['verbose'] End of uploader: 1757 milliseconds
4537
4538Done. Your build exited with 0.
Hi @tom, is there an option to force the codecov tool to use ipv4? We run our CI in docker container and they dont have IPv6. I am thinking this is why the upload is failing. I can run the upload not in a container and the tool uploads fine.