Looks like we will need to add the proxy traefik solution or change nodeRED to another port different than 80!
What did you try?
El dj., 10 de nov. 2022, 20:32, Alex Corvis via balenaForums <notifications@balena.discoursemail.com> va escriure:
Looks like we will need to add the proxy traefik solution or change nodeRED to another port different than 80!
What did you try?
El dj., 10 de nov. 2022, 20:32, Alex Corvis via balenaForums <notifications@balena.discoursemail.com> va escriure:
Hi @mpous , I’ve not tried any option yet… Regarding Traefik solution I think it’ll be probably the best, but it’s out of my actual knowledge base, so I’d try to change the host port of Node-RED on the docker-compose.yml project file and check if it fixes the issue.
Please keep me updated!
Hi,
new to Balena and the forum so apologies if the question is basic or my use of the threads incorrect.
I’m trying to deploy the MING stack project using balena push <my-fleet>
, but I’m getting the following error:
[Error] Some services failed to build:
[Error] Service: node-red
[Error] Error: (HTTP code 404) unexpected - pull access denied for bh.cr/balenablocks/balena-node-red, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
I’m logged in on my docker CLI and on inspection of the link, I get a 404 in my browser also, so I suspect it’s the wrong link. Can anyone else confirm the issue or suggest where I may be going wrong?
Thanks, looking forward to building more on balena.
Hello @hayeskg welcome to the balena community!
Could you please paste the instructions that you are doing? you cloned the repo on your computer, typed balena login
and then balena push <your-fleet>
?
The more information the better
Hi @mpous, thanks for the quick reply.
I’ve already set up a device for a fleet and running a balenaSense instance successfully. I wanted to extend on this and start connecting other MQTT devices and came across your project.
balena login
balena push <my-fleet>
At this point on the dash I observe the project starting to build on the local device, and the CLI tells me it successfully pulled other services listed in the docker-compose file (wifi-connect, influxdb, etc.). These are the logs:
[Info] Starting build for pilot, user XXX
[Info] Dashboard link: https://dashboard.balena-cloud.com/apps/.../devices
[Info] Building on arm05
[Info] Pulling previous images for caching purposes...
[Success] Successfully pulled cache images
[Info] Uploading images
[Success] Successfully uploaded images
[Error] Some services failed to build:
[Error] Service: node-red
[Error] Error: (HTTP code 404) unexpected - pull access denied for bh.cr/balenablocks/balena-node-red, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
[Info] Built on arm05
[Error] Not deploying release.
Remote build failed
Hi @hayeskg,
It seems Node-RED resource from Balena blocks is missing or has been removed… not sure why.
Let’s wait for @mpous feedback
EDIT: After some research, I can confirm it has been moved to a new balena organization (balenalabs) and that’s the reason why it fails to fetch it. So, if you change the docker-compose.yml file image to use with the new one bh.cr/balenalabs/balena-node-red
I guess it would work !!! Please confirm if you test it.
Commit of the change that confirms the new organization.
I’ve opened a PR with the new image changes.
Thanks! Let me check internally!
El dc., 16 de nov. 2022, 21:59, Alex Corvis via balenaForums <notifications@balena.discoursemail.com> va escriure:
Hi @alexcorvis84 thanks so much for your quick help. It makes sense, I guess I’m new to the platform, but nothing like learning through doing, eh?
I can confirm your suggested fix works and I’m now running all services - inc. Node-RED.
Thanks again!
Glad to know!!
Yeah, I’m also new to the platform and still learning by doing, so happy to know I helped you fixing the issue
Hey @alexcorvis84 @hayeskg thanks for your comments and PR!
We did some changes internally, as we are renaming some repos and that affected the link of the images from the containers registry! Sorry for that! We are going to work so this is not going to happen again.
What about nginx? I have been using a docker build for several years now based off of
I do not want to hijack this thread so I will look elsewhere in the forum to be apart of this effort as well. I will end my comment here. thanks for your work!
Thanks for sharing this @diverjoe (and welcome to the balena community)!
Why don’t you add your application to the balenaHub? or add a deploy with balena button on your github repo?
Let me know if this make sense
I am ok with supplying my next build as it goes. There are several pieces to the puzzle that I have not been able to get quite right along the lines of just the standard workflow. IOW, I have an app deployed across the several containers and I am constantly developing new and the standard fare of break/fix. Currently that is being done on my production instance that runs my fish tank. I am having the most difficulty with upgrades and configuration changes within the containers. I am thinking that the individual containers need to be blocks maybe. I have been using Balena and telling everyone I talk to about it. I REALLY believe it solves many of the problems I here within the IoT space. I am a Software Architect (hands-on) and been in the craft for over 30yrs. I have been using this app to work through practicality issues while automating EVERY task I can. It is a 180g, with automated water changes, Reverse Osmosis (RODI). I run several hundred gallons of fresh through the system a week. But the point is I build working apps for a living, and I know this technology (Balena) is on target. I know this post is a crazy ramble of the thousand things I have going on. But I am just putting this out there so folks can ask questions and I can tell what works and what doesn’t and maybe get some answers and give some as well. I guess I am attempting to create what is called a Reference Architecture. An app that showcases it in practice and how someone can replicate the process of taking their tech and putting it on this platform (Balena / Docker / Node-red, Python, Go, etc.) Nuf for now…
@diverjoe this is an amazing use case using the MING
stack! Good job it’s beautiful
I would love to see this Application for fish tanks on the balenaHub. Let me know if you need any help!
BTW look at this @ajlennon
Hi @marc, let’s see if you can help me…
I’ve added a new service (Thigsboard) to the project. My docker-compose file is as below:
version: '2'
volumes:
node-red-data:
grafana-data:
influxdb-data:
influxdb-etc:
mytb-data:
mytb-logs:
services:
# ------------------------------------------------------------------------------------
# BalenaLabs WiFi-Connect
# ------------------------------------------------------------------------------------
# wifi-connect:
# image: bh.cr/balenalabs/wifi-connect-rpi
# container_name: wifi-connect
# network_mode: "host"
# labels:
# io.balena.features.dbus: '1'
# io.balena.features.firmware: '1'
# cap_add:
# - NET_ADMIN
# environment:
# DBUS_SYSTEM_BUS_ADDRESS: "unix:path=/host/run/dbus/system_bus_socket"
# ------------------------------------------------------------------------------------
# Node-RED
# ------------------------------------------------------------------------------------
node-red:
image: bh.cr/balenalabs/balena-node-red
container_name: node-red
privileged: true
restart: unless-stopped
volumes:
- 'node-red-data:/data'
labels:
io.balena.features.dbus: '1'
io.balena.features.sysfs: '1'
io.balena.features.supervisor-api: '1'
io.balena.features.balena-api: '1'
ports:
- 80:80
environment:
PORT: 80
USERNAME: "balena"
PASSWORD: "balena"
ENCRIPTION_KEY: "balena"
cap_add:
- SYS_RAWIO
devices:
- "/dev/mem:/dev/mem"
- "/dev/gpiomem:/dev/gpiomem"
- "/dev/i2c-1:/dev/i2c-1"
# ------------------------------------------------------------------------------------
# Influxdb
# ------------------------------------------------------------------------------------
influxdb:
image: influxdb:1.8.10
container_name: influxdb
restart: unless-stopped
volumes:
- influxdb-data:/var/lib/influxdb
- influxdb-etc:/etc/influxdb
# ------------------------------------------------------------------------------------
# Grafana
# ------------------------------------------------------------------------------------
grafana:
image: bh.cr/balenalabs/dashboard
container_name: grafana
restart: unless-stopped
ports:
- "8080:80"
volumes:
- "grafana-data:/data"
# ------------------------------------------------------------------------------------
# MQTT
# ------------------------------------------------------------------------------------
mqtt:
image: eclipse-mosquitto
network_mode: host
ports:
- "1883:1883"
restart: always
# ------------------------------------------------------------------------------------
# Thingsboard
# ------------------------------------------------------------------------------------
thingsboard:
image: thingsboard/tb-postgres:latest
container_name: thingsboard
restart: unless-stopped
ports:
- "9090:9090"
- "1884:1883"
- "7070:7070"
- "5683-5688:5683-5688/udp"
environment:
TB_QUEUE_TYPE: in-memory
volumes:
- mytb-data:/data
- mytb-logs:/var/log/thingsboard
I’ve setup my device as Local Mode. Then I pushed the changes through Balena CLI with balena push Device_IP_address
.
The first time the services built and I could see the logs, but due some config missing (I guess) the Thingsboard service did not brought up.
Now, issuing the same command (with docker-compose.yml attached), the build works, but I can´t see the Thingsboard service.
I’m missing something? Some configuration is wrong? Thanks in advance!
This is awesome @alexcorvis84
BTW how are you trying to access to thingsboard? local ip address to which port?
@alexcorvis84 just tested on my side and it worked using the port 9090
with my local ip address!
Could you please confirm if this works on your side?
In case that you might need the Public Device URL, my recommendation is to redirect the port 9090 to 8080 or 443 as they are the only ports available (plus the 80 which is being used by NodeRED now).
Hi @mpous ,
I was not able to test it again as I had issues as per above. The first time I did the balena push command I checked that the Thingsboard service tried to built but failed. Then the following attempts I tried to push the code with balena push it did not work and I couldn’t see any logs pointing to the service.
Q: Working in local mode, what is the best way to ‘clean’ the services to re-install the project? Or is it automatically cleaned (removed containers and images) with every new push? This part is not clear to me.
I might need to delete the device and load again de imageOS into SD, due not sure what’s happening…
Anyway, will give you feedback when I’ll be at home and try it again.
Thank you in advance!