You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I build (and deploy) the simple server node container on Balena I observe the following error:
$ git push balena master
Total 0 (delta 0), reused 0 (delta 0)
[Info] Starting build for first-simatic-iot-2040-app, user [OMIT]
[Info] Dashboard link: https://dashboard.balena-cloud.com/apps/1493325/devices
[Info] Building on x64_01
[Info] Pulling previous images for caching purposes...
[Success] Successfully pulled cache images
[main] Step 1/7 : FROM balenalib/iot2000-node:10-stretch-run
[main] manifest for balenalib/iot2000-node:10-stretch-run not found
[Error] Some services failed to build:
[Error] Service: main
[Error] Error: manifest for balenalib/iot2000-node:10-stretch-run not found
[Error] Not deploying release.
remote: error: hook declined to update refs/heads/master
To [OMIT]@git.balena-cloud.com:[OMIT]/first-simatic-iot-2040-app.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to '[OMIT]@git.balena-cloud.com:[OMIT]/first-simatic-iot-2040-app.git'
The build fails because tag 10-stretch-run does not exist for image balenalib/iot2000-node.
Furthermore, when I swap from 10-stretch-run to an existing tag such as 6.17.1-buster-build-20190503, the build process fails with the following errors:
However, the service keeps failing on the device, so that the simple server node Web page is never available at the public URL:
$ curl https://[OMIT].balena-devices.com/
<!DOCTYPE html><html><head><metacharset="utf8"><!-- [...] --><p><code>tunneling socket could not be established: socket hang up</code></p><p>One possible reason is because nothing is listening on port 80 on the device.</p><p><aclass="btn btn-block btn-info" href="">RETRY</a></p></div><divclass="footer"><p>Device Public URLs is a <ahref="https://balena.io"><strong>balena.io</strong></a>
feature that provides individual URLs for balena.io-connected devices.
The feature is opt-in: no devices are exposed without the application owner's permission.</p><p><strong>balena.io</strong> does not serve anything on this URL, we just
proxy all the requests to whatever is listening on the device. This means
that the creator of the application is responsible for running a web-server
When I attempt to securely log in to the service from Balena Cloud, the operation fails because the service is not running:
Connecting to 58aca91762244c0a019d162aa3e0460e...
Spawning shell...
Error response from daemon: Container cc2cd177ca7ee3ddf67597668af84835718909afcf76fb8638f2ed1e1f4db129 is restarting, waituntil the container is running
Error response from daemon: Container cc2cd177ca7ee3ddf67597668af84835718909afcf76fb8638f2ed1e1f4db129 is restarting, waituntil the container is running
SSH session disconnected
SSH reconnecting...
Spawning shell...
Error response from daemon: Container cc2cd177ca7ee3ddf67597668af84835718909afcf76fb8638f2ed1e1f4db129 is restarting, waituntil the container is running
Error response from daemon: Container cc2cd177ca7ee3ddf67597668af84835718909afcf76fb8638f2ed1e1f4db129 is restarting, waituntil the container is running
SSH session disconnected
I have not investigated this specific problem further.
Proposed solution(s)
The straightforward solution is to align the base images for all architectures.
However, being new to Balena, I'm not sure why there is no Node v. 10 base image for Siemens SIMATIC IOT2000.
Alternatively, different branches in the git repo could be created for different architectures, so that each can be config w/ relevant base image tag.
I don't have a proposed solution for the failing service.
Next actions
Once we get a first round of discussion on these problems (missing base image, failing npm command, and service unavailable), we can split them accordingly into three separate issues.
I'll be glad to discuss this further, and help implement an agreed-upon fix.
The text was updated successfully, but these errors were encountered:
Scenario
I'm testing the simple server node application at https://github.com/balena-io-projects/simple-server-node on a Siemens SIMATIC IOT2040 (IOT2000 series) provisioned on balena.io.
I've been following the getting started guide at https://www.balena.io/docs/learn/getting-started/iot2000/nodejs/#adding-your-first-device.
I managed to provision the device successfully.
Problem(s) and some quick fixes
When I build (and deploy) the simple server node container on Balena I observe the following error:
The build fails because tag
10-stretch-run
does not exist for imagebalenalib/iot2000-node
.Furthermore, when I swap from
10-stretch-run
to an existing tag such as6.17.1-buster-build-20190503
, the build process fails with the following errors:I can workaround this error by running a plain
npm install
.Following this configuration, the image builds on Balena Cloud, and is deployed to the Siemens SIMATIC IOT2040 device:
However, the service keeps failing on the device, so that the simple server node Web page is never available at the public URL:
When I attempt to securely log in to the service from Balena Cloud, the operation fails because the service is not running:
I have not investigated this specific problem further.
Proposed solution(s)
The straightforward solution is to align the base images for all architectures.
However, being new to Balena, I'm not sure why there is no Node v. 10 base image for Siemens SIMATIC IOT2000.
Alternatively, different branches in the git repo could be created for different architectures, so that each can be config w/ relevant base image tag.
I don't have a proposed solution for the failing service.
Next actions
Once we get a first round of discussion on these problems (missing base image, failing npm command, and service unavailable), we can split them accordingly into three separate issues.
I'll be glad to discuss this further, and help implement an agreed-upon fix.
The text was updated successfully, but these errors were encountered: