# balena.yml env vars not showing up in

**URL:** <https://forums.balena.io/t/balena-yml-env-vars-not-showing-up-in/365870>\
**Category:** balenaHub\
**Created:** [December 3, 2022, 12:23am UTC](https://forums.balena.io/t/balena-yml-env-vars-not-showing-up-in/365870 "2022-12-03T00:23:10Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodley](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/rodley/32/2344_2.png) [@rodley](https://forums.balena.io/u/rodley)\
**Post date:** [December 3, 2022, 12:23am UTC](https://forums.balena.io/t/balena-yml-env-vars-not-showing-up-in/365870/1 "2022-12-03T00:23:10Z")

</div>

Doing my first open fleet and can’t make my environment variables show up in newly provisioned devices. Fleet is bubblesnet3, and below is my balena.yml. I know the balena.yml is being seen, Ideas? Am I missing the purpose of that balena.yml section?

```auto
name: BubblesNet Edge-Device
type: sw.application
description: >-
  Deep-water-culture hydroponics ... automated
post-provisioning: >-
  BubblesNet Edge-Device is the measurement and control component of the BubblesNet system, a Raspberry Pi 3B+ based 
  device to measure the environment inside a cabinet/tent and through attached relay-controlled environmental control
  devices (heater, humidifier ...) to keep that environment in an ideal state to grow for whatever stage the crop 
  may be at.

  Thanks to Balena [OpenFleets](https://hub.balena.io/organizations/gh_bubblesnet), you benefit from having automatic updates. As soon as updates are shipped, they will be deployed to your device.
assets:
  repository:
    type: blob.asset
    data:
      url: 'https://github.com/bubblesnet/edge-device'
  logo:
    type: blob.asset
    data:
      url: >-
        https://raw.githubusercontent.com/bubblesnet/edge-device/main/static/img/BubblesNetLogo.png
data:
  applicationConfigVariables:
    - BALENA_HOST_CONFIG_gpu_mem: 128
  applicationEnvironmentVariables:
    - NODE_ENV: PRODUCTION
  defaultDeviceType: raspberry-pi
  supportedDeviceTypes:
    - raspberrypi3
version: 0.1.1

```

---

<div class="post-metadata">

**Author:** ![wjlove](https://avatars.discourse-cdn.com/v4/letter/w/5f9b8f/32.png) [@wjlove](https://forums.balena.io/u/wjlove)\
**Post date:** [December 6, 2022, 7:52pm UTC](https://forums.balena.io/t/balena-yml-env-vars-not-showing-up-in/365870/4 "2022-12-06T19:52:31Z")

</div>

Hi-  
How are you deploying the device? Are you using balena push or are you using the “Deploy” Button"?

---

<div class="post-metadata">

**Author:** ![wjlove](https://avatars.discourse-cdn.com/v4/letter/w/5f9b8f/32.png) [@wjlove](https://forums.balena.io/u/wjlove)\
**Post date:** [December 6, 2022, 7:58pm UTC](https://forums.balena.io/t/balena-yml-env-vars-not-showing-up-in/365870/5 "2022-12-06T19:58:45Z")

</div>

The reason for asking is because the balena.yml file is used in this situation for the deploy with balena button.

---

<div class="post-metadata">

**Author:** ![wjlove](https://avatars.discourse-cdn.com/v4/letter/w/5f9b8f/32.png) [@wjlove](https://forums.balena.io/u/wjlove)\
**Post date:** [December 6, 2022, 8:11pm UTC](https://forums.balena.io/t/balena-yml-env-vars-not-showing-up-in/365870/9 "2022-12-06T20:11:03Z")

</div>

For more information on the the deploy with balena feature, please refer to this document: [Deploy with balena button - Balena Documentation](https://www.balena.io/docs/learn/deploy/deploy-with-balena-button/#adding-a-deploy-with-balena-button-to-a-project)

---

<div class="post-metadata">

**Author:** ![rodley](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/rodley/32/2344_2.png) [@rodley](https://forums.balena.io/u/rodley)\
**Post date:** [December 6, 2022, 8:25pm UTC](https://forums.balena.io/t/balena-yml-env-vars-not-showing-up-in/365870/11 "2022-12-06T20:25:30Z")

</div>

Tnx for the response. Balena push. Are you saying I can only flow through Env vars with the “deploy button”?

---

<div class="post-metadata">

**Author:** ![rodley](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/rodley/32/2344_2.png) [@rodley](https://forums.balena.io/u/rodley)\
**Post date:** [December 6, 2022, 8:26pm UTC](https://forums.balena.io/t/balena-yml-env-vars-not-showing-up-in/365870/12 "2022-12-06T20:26:33Z")

</div>

I REALLY REALLY want to do CD, not a manual button press.

---

<div class="post-metadata">

**Author:** ![rodley](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/rodley/32/2344_2.png) [@rodley](https://forums.balena.io/u/rodley)\
**Post date:** [December 6, 2022, 9:20pm UTC](https://forums.balena.io/t/balena-yml-env-vars-not-showing-up-in/365870/13 "2022-12-06T21:20:00Z")

</div>

Okay - I have deploy to balena buttons setup on two repos and both throw errors on brave and firefox (see below). Looking round the forums for clues. On Brave I get this error:

1.8912cb04e83a18f9efcc.js:2 Refused to connect to ‘[edge-device/balena.yml at develop · bubblesnet/edge-device · GitHub](https://github.com/bubblesnet/edge-device/blob/develop/balena.yml)’ because it violates the following Content Security Policy directive: “connect-src ‘self’ api.ly.fish [api.balena-cloud.com](http://api.balena-cloud.com) [builder.balena-cloud.com](http://builder.balena-cloud.com) [data.balena-cloud.com](http://data.balena-cloud.com) [actions.balena-devices.com](http://actions.balena-devices.com) [terminal.balena-devices.com](http://terminal.balena-devices.com) wss://terminal.balena-devices.com \*.sentry.io [sentry.io](http://sentry.io) [app.getsentry.com](http://app.getsentry.com) [raw.githubusercontent.com](http://raw.githubusercontent.com) [api.github.com](http://api.github.com) [maps.googleapis.com](http://maps.googleapis.com) [api.recurly.com](http://api.recurly.com) [www.google-analytics.com](http://www.google-analytics.com) _.intercom.io wss://_.intercom.io [uploads.intercomcdn.com](http://uploads.intercomcdn.com) \*.statuspage.io \*.algolia.net”.

> **[GitHub - bubblesnet/controller: A Balena application for Raspberry Pi...](https://github.com/bubblesnet/controller)**
>
> A Balena application for Raspberry Pi designed to collect and display environmental information, and do environmental control for a deep-water-culture hydroponics system. - GitHub - bubblesnet/cont...

> **[GitHub - bubblesnet/edge-device: A Balena application for Raspberry Pi...](https://github.com/bubblesnet/edge-device)**
>
> A Balena application for Raspberry Pi designed to collect and forward data, and do environmental control for a deep-water-culture hydroponics system. - GitHub - bubblesnet/edge-device: A Balena app...

---

<div class="post-metadata">

**Author:** ![rodley](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/rodley/32/2344_2.png) [@rodley](https://forums.balena.io/u/rodley)\
**Post date:** [December 6, 2022, 10:30pm UTC](https://forums.balena.io/t/balena-yml-env-vars-not-showing-up-in/365870/14 "2022-12-06T22:30:33Z")

</div>

Starting a new topic because I’m down to one specific issue with configUrl.

---

<div class="post-metadata">

**Author:** ![rodley](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/rodley/32/2344_2.png) [@rodley](https://forums.balena.io/u/rodley)\
**Post date:** [December 6, 2022, 10:31pm UTC](https://forums.balena.io/t/balena-yml-env-vars-not-showing-up-in/365870/15 "2022-12-06T22:31:22Z")

</div>

the edge-device works correctly now if I’m logged in as the repo owner (not contributor) on github and as the owner on balena.

---

<div class="post-metadata">

**Author:** ![rodley](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/rodley/32/2344_2.png) [@rodley](https://forums.balena.io/u/rodley)\
**Post date:** [December 6, 2022, 11:51pm UTC](https://forums.balena.io/t/balena-yml-env-vars-not-showing-up-in/365870/16 "2022-12-06T23:51:32Z")

</div>

I am good-to-go with both repos. Thanks for the help. It was an issue with who I was logged into balena and github as when I hit the button.

---

<div class="post-metadata">

**Author:** ![Lizzieepton](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/lizzieepton/32/5393_2.png) [@Lizzieepton](https://forums.balena.io/u/Lizzieepton)\
**Post date:** [December 16, 2022, 12:54pm UTC](https://forums.balena.io/t/balena-yml-env-vars-not-showing-up-in/365870/17 "2022-12-16T12:54:55Z")

</div>

@rodley Thank you for keeping this thread up to date as you worked through your issue, I just wanted to check that logging in as the repo owner solved the issue you were having?

---

<div class="post-metadata">

**Author:** ![rodley](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/rodley/32/2344_2.png) [@rodley](https://forums.balena.io/u/rodley)\
**Post date:** [December 17, 2022, 12:47am UTC](https://forums.balena.io/t/balena-yml-env-vars-not-showing-up-in/365870/19 "2022-12-17T00:47:03Z")

</div>

If I explained ALL of the things I was doing wrong you might have to revoke my IoT-Guy Card.

I’m taking a system that runs in-house, built and deployed locally and making it public where it needs to build and deploy remotely via the deploy button. Bottom line, my builds were failing but when I built and deployed locally everything looked good. Basic misunderstanding of how this stuff works.
