Unable to complete the sense application help please

Everything looked fine untik step 6\8. Thanks in advance

[grafana] Using cache
[grafana] —> c0e58faa025a
[grafana] Step 6/8 : RUN chmod +x /usr/src/app/download.sh && /usr/src/app/download.sh “raspberry-pi”
[telegraf] —> Running in 35fb0519875f
[sensor] —> Running in 0f85012c98fc
[grafana] —> Running in 26678fee4245
[telegraf] % Total % Received % Xferd Average Speed Time Time Time Current
[telegraf] Dload Upload T
[telegraf] otal Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
[telegraf]
[telegraf] curl: (60) S
[telegraf] SL certificate problem: unable to get local issuer certificate
[telegraf] More details here: https://curl.haxx.se/docs/sslcerts.html
[telegraf] curl failed to verify the legitimacy of the server and therefore could not
[telegraf] establish a secure connection to it. To learn more about this situation and
[telegraf] how to fix it, please visit the web page mentioned above.
[telegraf]
[sensor] Archive: BSEC_1.4.7.4_Generic_Release.zip
[sensor] End-of-central-directory signature not found. Either this file is not
[sensor] a zipfile, or it constitutes one disk of a multi-part archive. In the
[sensor] latter case the central directory and zipfile comment will be found on
[sensor] the last disk(s) of this archive.
[sensor] unzip: cannot find zipfile directory in one of BSEC_1.4.7.4_Generic_Release.zip or
[sensor] BSEC_1.4.7.4_Generic_Release.zip.zip, and cannot find BSEC_1.4.7.4_Generic_Release.zip.ZIP, period.
[sensor]
[grafana] % Total % Received % Xferd Average Speed Time Time Time Current
[grafana] Dload Upload Total Spen
[grafana] t Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
[grafana]
[grafana] curl: (60) SSL certificate problem: unable to get local issuer certificate
[grafana] More details here: https://curl.haxx.se/docs/sslcerts.html
[grafana] curl failed to verify the legitimacy of the server and therefore could not
[grafana] establish a secure connection to it. To learn more about this situation and
[grafana] how to fix it, please visit the web page mentioned above.
[grafana]
[sensor] Removing intermediate container 0f85012c98fc
[sensor] The command ‘/bin/sh -c unzip -d bsec_bme680_linux/src $BSEC_FILENAME’ returned a non-zero code: 9
[telegraf] Removing intermediate container 35fb0519875f
[telegraf] The command ‘/bin/sh -c curl -o /tmp/telegraf.deb https://dl.influxdata.com/telegraf/releases/telegraf_1.11.0-1_armhf.deb’ returned a non-zero code: 60
[grafana] Removing intermediate container 26678fee4245
[Info] Uploading images
[grafana] The command ‘/bin/sh -c chmod +x /usr/src/app/download.sh && /usr/src/app/download.sh “raspberry-pi”’ returned a non-zero code: 60
[Success] Successfully uploaded images
[Error] Some services failed to build:
[Error] Service: undefined
[Error] Error: Information not available
[Error] Service: grafana
[Error] Error: The command ‘/bin/sh -c chmod +x /usr/src/app/download.sh && /usr/src/app/download.sh “raspberry-pi”’ returned a non-zero code: 60
[Error] Service: sensor
[Error] Error: The command ‘/bin/sh -c unzip -d bsec_bme680_linux/src $BSEC_FILENAME’ returned a non-zero code: 9
[Error] Service: telegraf
[Error] Error: The command ‘/bin/sh -c curl -o /tmp/telegraf.deb https://dl.influxdata.com/telegraf/releases/telegraf_1.11.0-1_armhf.deb’ returned a non-zero code: 60
[Error] Not deploying release.
Remote build failed

Additional information may be available by setting a DEBUG=1 environment
variable: “set DEBUG=1” on a Windows command prompt, or “export DEBUG=1”
on Linux or macOS.

If you need help, don’t hesitate in contacting our support forums at
https://forums.balena.io

For bug reports or feature requests, have a look at the GitHub issues or
create a new one at: https://github.com/balena-io/balena-cli/issues/

I’m having this all of a sudden in a different app that’s been working for months and which still builds locally so i think this is a build server issue.

Thank you for your reply I looked at https://curl.haxx.se/docs/sslcerts.html and have no idea, went through the build instructions (it’s my first use of using a cloud in this way). it does mention anything about SSL\TLS

I guess I have to sit tight. Maybe it is a balena issue to resolve.

Thanks

Hello,

have any of you figured out how to fix this issue?

@j4v132 and @blazinfatherted welcome to the forums! Thanks for posting this issue.

The root cause of the problem you guys are having is that the default Debian base image has been updated to Buster, which unfortunately brings this issue into play which affects the use of curl when it’s used to download the binaries for Grafana and Telegraf. We’ve updated the project to use wget now instead.

If you guys make sure that you pull the latest code from GitHub (v1.5.8) and push with --nocache hopefully this issue will be resolved for all of you.

@jacobrosenthal if you’re seeing the same thing in a different project you can do the same thing as I’ve just done with balenaSense. You can change your curl commands to wget (assuming you’re able to achieve the same result). If not you can use the base image for stretch instead which does not suffer from the issue right now. The issue with buster will be fixed with time.

I hope this helps!

@chrisys, it worked thanks a lot :smiley:

1 Like

We up and running all good

1 Like

Just FYI, there’s another workaround which doesn’t force you to replace curl with wget (& learn new arguments). See this commit.

Just add the following lines to your Dockerfile before any curl usage:

# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923479
# https://github.com/balena-io-library/base-images/issues/562
RUN c_rehash