ketilmo / balena-ads-b

ADS-B Flight Tracker running on balena with support for FlightAware, Flightradar24, PlaneFinder, OpenSky Network, RadarBox, ADSB Exchange, Wingbits, and UAT.
MIT License
149 stars 40 forks source link

Deploy with balena broken due to wifi-connect submodule #129

Closed shawaj closed 1 month ago

shawaj commented 1 month ago

Deploy with balena breaks due to #114

Also, balena push does not work...

[Info]             Starting build for balena-ads-b, user gh_shawaj
[Info]             Dashboard link: https://dashboard.balena-cloud.com/apps/2085502/devices
[Error]            Could not detect project type: Service wifi-connect: Could not find a Dockerfile for this service
[Error]            Not deploying release.
Remote build failed

It seems to be due to submodules setup as far as i can tell

I realise the above can be solved by a recursive clone but I think maybe deploy with balena can't handle that?

shawaj commented 1 month ago

Not sure if this is just me seeing this - or whether it is across the board

shawaj commented 1 month ago

(oops, closed accidentally)

From the docs page...

Note: Currently git submodules are not supported and will not build properly.

https://docs.balena.io/learn/deploy/deploy-with-balena-button/.

IMO this change should be reverted to re-enable deploy with balena as it's by far the easiest way for people to get started and to update their device.

shawaj commented 1 month ago

Also, as a side point, having url = git@github.com:balena-os/wifi-connect.git in the .gitmodules file means that anyone trying to clone will require a configured SSH key for git. I would suggest better to use the non-SSH based cloning so this is not required

Teko012 commented 1 month ago

Balena push actually works on my side, but the deploy with balena indeed seems to be broken.

shawaj commented 1 month ago

Balena push actually works on my side, but the deploy with balena indeed seems to be broken.

the balena push thing was due to me not having cloned recursive and/or it being an SSH github link in .gitmodules and me being on a machine currently where I don't have SSH key set up as per normal so get permission denied error when trying recursive clone:

git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights

Changing .gitmodules to the https URL and git submodule sync and git submodule update --init fixed it

Teko012 commented 1 month ago

The problem is, that contrary to the kiosk image, they haven't built this image in years, and it's abandoned.

Technically, we could mirror these two files, and build it ourselves at deploy, considering, how often these have changed, I think that should be fine. I will create an MR.

ketilmo commented 1 month ago

Thanks for identifying and correcting this issue, guys! Unfortunately, I didn't test the blue button deployment before reviewing the previous PR. I guess this was why we didn't use a submodule when we implemented this.

shawaj commented 1 month ago

I think maybe Deploy with Balena is broken on balena end.

Does it work for you now @Teko012 @ketilmo ?

For me it still doesn't, including this project but also from all on https://hub.balena.io/

shawaj commented 1 month ago

Create a post here - https://forums.balena.io/t/deploy-with-balena-buttons-no-longer-work/371097

shawaj commented 1 month ago

Deploy with Balena is working again 👍

ketilmo commented 2 weeks ago

Thanks for following up and getting this issue resolved, @shawaj. Great work!