# Cant push basicstation

**URL:** <https://forums.balena.io/t/cant-push-basicstation/368581>\
**Category:** Product support\
**Tags:** raspberrypi3, wifi, docker\
**Created:** [August 12, 2023, 9:23am UTC](https://forums.balena.io/t/cant-push-basicstation/368581 "2023-08-12T09:23:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![currydem](https://avatars.discourse-cdn.com/v4/letter/c/bbce88/32.png) [@currydem](https://forums.balena.io/u/currydem)\
**Post date:** [August 12, 2023, 9:23am UTC](https://forums.balena.io/t/cant-push-basicstation/368581/1 "2023-08-12T09:23:28Z")

</div>

Similar to the post by eversteeg [Unable to push basicstation - Product support - balenaForums](https://forums.balena.io/t/unable-to-push-basicstation/344262)

I tried following the tutorial things academy summer school on Youtube to set up my TTN gateway via baleana and add wifi-connect. I am using a Raspberry pi 3 and a RAK2245. I was able to connect to TTN but I am getting the same error as the post I referenced when trying to push the wifi-connect docker like how you demonstrated in this video, [(135) The Things Summer Academy - Gateway Workshop - YouTube](https://www.youtube.com/watch?v=h38IFxHG7pA&list=PLM8eOeiKY7JUSpxCAiEr6eViQYwXZVkXy).  
I get the following error:

Error: The command ‘/bin/sh -c make platform=rpi variant=std arch=armv7hf’ returned a non-zero code: 2

My output is listed below

```auto
[Success] Successfully pulled cache images
[basicstation] Step 1/11 : FROM balenalib/raspberrypi3-debian:buster-build as builder
[basicstation] ---> 9f6d059e9bd0
[basicstation] Step 2/11 : WORKDIR /usr/src/app
[basicstation] Using cache
[basicstation] ---> f3bda7951e9a
[basicstation] Step 3/11 : COPY . .
[basicstation] ---> 4929b51df707
[basicstation] Step 4/11 : RUN make platform=rpi variant=std arch=armv7hf
[basicstation] ---> Running in 6a69606ff499
[basicstation] mkdir -p build-local/bin
[basicstation] gcc -std=gnu11 -Isrc -DCFG_prog_crc32 src/crc32.c -o build-local/bin/crc32
[basicstation] mkdir -p build-local/bin
[basicstation] gcc -std=gnu11 -Isrc -DCFG_prog_genkwcrcs src/genkwcrcs.c -o build-local/bin/genkwcrcs
[basicstation] build-local/bin/genkwcrcs $(cat src/kwlist.txt | sed -e '/^#/d;s/[\t]\+#.*//') > build-local/temp-kwcrc.h
[basicstation] mv build-local/temp-kwcrc.h src/kwcrc.h
[basicstation] platform=rpi variant=std make -C deps/mbedtls
[basicstation] make[1]: Entering directory '/usr/src/app/deps/mbedtls'
[basicstation] platform=rpi variant=std ./prep.sh
[basicstation] /bin/sh: 1: ./prep.sh: Permission denied
[basicstation]
[basicstation] make[1]: *** [makefile:55: platform-rpi] Error 126
[basicstation]
[basicstation] make[1]: Leaving directory '/usr/src/app/deps/mbedtls'
[basicstation] make: *** [makefile:67: deps/mbedtls] Error 2
[basicstation]
[basicstation] Removing intermediate container 6a69606ff499
[basicstation] The command '/bin/sh -c make platform=rpi variant=std arch=armv7hf' returned a non-zero code: 2
[Info] Uploading images
[Success] Successfully uploaded images
[Error] Some services failed to build:
[Error] Service: basicstation
[Error] Error: The command '/bin/sh -c make platform=rpi variant=std arch=armv7hf' returned a non-zero code: 2
[Info] Built on 0602a6e
[Error] Not deploying release.
Remote build failed

```

In the original post, the user solved this issue by doing it on a Mac. I do not have a mac and I am using Windows with balena CLI like the original poster. Is there a workaround to push from a Windows machine?

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [August 24, 2023, 10:28am UTC](https://forums.balena.io/t/cant-push-basicstation/368581/2 "2023-08-24T10:28:59Z")

</div>

Hello @currydem apologizes for writing you late but i was on holidays.

Did you fix your issues? Could you please try to deploy this repo on your fleet?

> **[GitHub - xoseperez/basicstation: Basics™ Station Packet Forward protocol...](https://github.com/xoseperez/basicstation)**
>
> Basics™ Station Packet Forward protocol using Docker - GitHub - xoseperez/basicstation: Basics™ Station Packet Forward protocol using Docker

Thanks
