New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Injected user application won't start on first boot without connection #34
Comments
If this is the case, then it is definitely a bug. @pcarranzav and
@jhemsmeier do you mind commenting on this?
Also, @kemperverden, what version of the OS and the supervisor are you
using?
…--
*Alexandros Marinos*
Founder & CEO, Resin.io
+1 206-637-5498
@alexandrosm
On Thu, Mar 9, 2017 at 12:31 AM, KemperVreden ***@***.***> wrote:
In a blogpost about the resin-preload-image-script the author says:
Our supervisor now supports running a preloaded application before
registering with the resin.io API. This means your devices can be
provisioned with an application's code loaded up and ready to go on the
very first boot. Saving you bandwidth and time in the factory, and in an
extreme case even allowing your device to function without ever been
connected to the Internet.
but - especially:
This means your devices can be provisioned with an application's code
loaded up and ready to go on the very first boot.
... is unfortunately not the case. We are using resin-preload-image-script
in production but we always have to connect devices to the internet. The
device needs to register itself before the application is being started. If
there is no connection, the application won't run.
This means that we have to set our production WiFi credentials into the
image and remove the SD-Card just to delete those credentials afterwards.
This script is a HUGE timesaver but it would be even better if the
application would start on first boot without the need to connect the
device to the internet!
Here's a thread on resins forum: link
<https://forums.resin.io/t/preloading-images-with-application-still-requires-registering/647>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#34>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABLUCJZ7sh6JEyCpTwpbmTtNzzil8jKUks5rj7jQgaJpZM4MXyBz>
.
|
I'm already looking into it, and currently setting up to test / reproduce this. |
Host OS Version is Resin OS 1.24.1 Here's the output of the https://gist.github.com/KemperVreden/032483678ed0c4247804366973cf5741 I was able to reproduce this every time I tried it again - so it's definitely not working. Tried it at least six different times on two different applications. Both applications required connectivity to resin - otherwise the container application will not run ... |
@KemperVreden @jhermsmeier @alexandrosm sorry, this is most likely the bug that was fixed in balena-os/balena-supervisor#384 - and will be deployed with supervisor 3.0.1. |
@pcarranzav Oh that's a bit frustrating to hear since I really thought this would be a fault on our side - So we have to wait for the new version of the supervisor to be release I guess and there is no workaround? We are manufacturing a lot of devices in the upcoming next weeks and this would greatly improve the time needed to manufacture a single device. Is there an estimated release date for the new version? |
I can confirm, nothing happens until the device gets network access, ~~also on resinOS 2.~~~ |
@pcarranzav @jhermsmeier What happens if I use the Resin CLI to perform -> Just tested it - that does not work ... Another thought: What happens when running CLI command |
@KemperVreden so, there's a bug in the preload script as well; the referenced pull request should fix this for supervisor version 3.0.1+ (which is available in resin OS 2), but sadly not for the older supervisors. |
@pcarranzav @jhermsmeier Today I've been testing the ResinOS 2.0 rc1 Image with latest commit of the However. In our application we are using a personalized version of |
@KemperVreden that could indeed be a bug in wifi-connect with OS 2.0 - the network manager changed but there should be support in the latest versions. Could you confirm you're using the latest wifi-connect? Otherwise, could you file a bug report in github.com/resin-io/resin-wifi-connect ? Including the logs from the device and what versions you're running will probably help us diagnose. |
@pcarranzav As you I read your comment I realized that the version we are using is not the latest - Version 1.x something like that - but it was definitely before version 2.0 was released! So yes - that could be causing it ... |
yup -- the old versions of wifi-connect are for resinOS 1.x only, they
don't support network manager.
…--
*Alexandros Marinos*
Founder & CEO, Resin.io
+1 206-637-5498
@alexandrosm
On Mon, Mar 13, 2017 at 3:46 PM, KemperVreden ***@***.***> wrote:
@pcarranzav <https://github.com/pcarranzav> As you I read your comment I
realized that the version we are using is not the latest - Version 1.x
something like that - but it was definitely before version 2.0 was
released! So yes - that could be causing it ...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABLUCFB901rRbgno0JRAk1YWcLNWKDDyks5rlWTJgaJpZM4MXyBz>
.
|
@pcarranzav just checked this with resinOS Also on resinOS |
@imrehg I've tracked this down to balena-os/balena-supervisor#420 - should be safe to close this issue as it is not related to preloading, it's the supervisor as a whole that is crashing. |
Okay, closing this then – @KemperVreden please do reopen this, if you run into issues again. |
@KemperVreden, @imrehg please follow balena-os/balena-supervisor#421 for a fix to this issue |
In a blogpost which mentions the
resin-preload-image-script
the author says:but (especially) ...
and (readme of this repository) ...
... is unfortunately not true. We are using
resin-preload-image-script
in production but we always have to connect devices to the internet. The device needs to register itself before the application is being started. If there is no connection, the application won't run.If the device has successfully registered itself you can restart the device without connection and the application will start.
This script is a HUGE timesaver but it would be even better if the application starts on first boot without the need to connect the device to the internet!
Here's a thread on resins forum: link
The text was updated successfully, but these errors were encountered: