addshore
06/16/2025, 2:12 PMRouting problem and tries to reconnect? fails? and backs off?
Then I see my container print udptocsv after which it tries to emit this over UDP
Then there are logs to do with wifi reconnecting? After which jaguar seems to be back up?
However the container is then stuck?
I guess it is stuck here
socket.send
udp.Datagram row.to-byte-array addressaddshore
06/16/2025, 2:13 PMINFO: Took 43.358ms, Sleeping for additional 1.956642s
[jaguar] WARN: running Jaguar failed due to 'Routing problem' (1/3)
[jaguar.http] INFO: running Jaguar device 'clever-weather' (id: '510b3170-cbd5-4a05-a82a-709b975e45bc') on 'http://192.168.68.71:9000'
[jaguar] WARN: running Jaguar failed due to 'Routing problem' (2/3)
[jaguar.http] INFO: running Jaguar device 'clever-weather' (id: '510b3170-cbd5-4a05-a82a-709b975e45bc') on 'http://192.168.68.71:9000'
[jaguar] WARN: running Jaguar failed due to 'Routing problem' (3/3)
[jaguar] INFO: backing off for 5s
udptocsv,1,2c54204d,2025-06-16 13:51:58,0, 36.799999999999997158, 3.6335000000000001741, 0.17612500000000000377
Decoding by jag, device has version <2.0.0-alpha.174>
EXCEPTION error.
0: udp-send_ <sdk>\net\modules\udp.toit:167:37
2: Socket.send <sdk>\net\modules\udp.toit:88:12
3: emitData udpAds.toit:194:10
4: innerMain udpAds.toit:170:7
5: main udpAds.toit:119:3
******************************************************************************
[wifi] DEBUG: closing
E (7210621) wifi:NAN WiFi stop
[wifi] DEBUG: connecting
[wifi] DEBUG: connected
[wifi] INFO: network address dynamically assigned through dhcp {ip: 192.168.68.71}
[wifi] INFO: dns server address dynamically assigned through dhcp {ip: [8.8.8.8, 1.1.1.1]}
[jaguar.http] INFO: running Jaguar device 'clever-weather' (id: '510b3170-cbd5-4a05-a82a-709b975e45bc') on 'http://192.168.68.71:9000'floitsch
06/16/2025, 2:38 PMaddshore
06/16/2025, 9:49 PMEXCEPTION error. would trigger a crash and for the container to restart?floitsch
06/16/2025, 9:50 PMaddshore
06/17/2025, 7:34 AMaddshore
06/17/2025, 7:38 AMfloitsch
06/17/2025, 7:41 AMcontainer.wait), so you can just put that code into a loop.
Alternatively, you can also provide a patch to Jaguar to do that for you. If it's small enough I would accept it.
Watchdogs would work too. If your program is supposed to check in every few seconds/minutes, but doesn't the device will eventually reset.addshore
06/17/2025, 7:44 AMaddshore
06/17/2025, 7:47 AM--critical part of a container install result in?floitsch
06/17/2025, 7:47 AMfloitsch
06/17/2025, 7:48 AMaddshore
06/17/2025, 7:49 AMfloitsch
06/17/2025, 7:49 AMfloitsch
06/17/2025, 7:49 AMfloitsch
06/17/2025, 7:50 AMaddshore
06/17/2025, 7:50 AMaddshore
06/17/2025, 7:50 AMfloitsch
06/17/2025, 7:51 AM--critical should do. I think.floitsch
06/17/2025, 7:51 AMaddshore
06/17/2025, 7:52 AM--critical comes into play?floitsch
06/17/2025, 7:52 AMhello world container as critical would lead to infinite restarts of the container with "hello world" flooding your output.floitsch
06/17/2025, 7:53 AMfloitsch
06/17/2025, 7:53 AMinterval: 1s.floitsch
06/17/2025, 7:54 AMaddshore
06/17/2025, 7:54 AMinterval goes in artemis now, as I havnt use it yet, and we also might not!floitsch
06/17/2025, 7:55 AMfloitsch
06/17/2025, 7:55 AMaddshore
06/17/2025, 7:56 AMartemis?addshore
06/17/2025, 7:56 AMartemis even if I am not using it for OTA updates etc?floitsch
06/17/2025, 8:00 AMfloitsch
06/17/2025, 8:00 AMaddshore
06/17/2025, 8:01 AMfloitsch
06/17/2025, 8:02 AMfloitsch
06/17/2025, 8:02 AMaddshore
06/17/2025, 8:05 AMaddshore
06/17/2025, 8:07 AM--critical which in turn just slowly loops making sure containers are running, very similar to what artemis is doing with its intervalfloitsch
06/17/2025, 8:08 AM--critical.addshore
06/17/2025, 8:09 AMfloitsch
06/17/2025, 8:09 AMcontainer installaddshore
06/17/2025, 8:09 AMaddshore
06/17/2025, 8:09 AMfloitsch
06/17/2025, 8:10 AMfloitsch
06/17/2025, 8:10 AMaddshore
06/17/2025, 8:10 AM--critical already works with container install correct? Its just undocumented in the CLI?floitsch
06/17/2025, 8:10 AMaddshore
06/17/2025, 8:10 AMfloitsch
06/17/2025, 8:10 AMfloitsch
06/17/2025, 8:11 AMᐅ toit tools firmware container install -h
Add a container to the envelope.
Usage:
toit tool firmware --envelope=<file> container install [<options>] [--] <name> <image:file>
Aliases:
add
Options:
--assets file Add assets to the container.
--critical Reboot system if the container terminates.
-h, --help Show help for this command.
-o, --output file Set the output envelope.
--trigger none|boot Trigger the container to run automatically. (default: boot)
Rest:
image file (required)
name string (required)
Global options:
-e, --envelope file Set the envelope to work on. (required)
--output-format human|plain|json Specify the format used when printing to the console. (default: human)
--verbose Enable verbose output. Shorthand for --verbosity-level=verbose.
--verbosity-level debug|info|verbose|quiet|silent Specify the verbosity level. (default: info)floitsch
06/17/2025, 8:11 AMfloitsch
06/17/2025, 8:11 AMaddshore
06/17/2025, 8:16 AMaddshore
06/17/2025, 8:16 AMfloitsch
06/17/2025, 8:25 AMaddshore
06/17/2025, 9:47 AMaddshore
06/17/2025, 9:49 AMaddshore
06/17/2025, 9:49 AMfloitsch
06/17/2025, 9:54 AMjag firmware update.
Could be that there are better ways.addshore
06/17/2025, 9:58 AMmake for deving both the cli and container
But again running into https://pastebin.com/v9azKjKJ
Which I worked around last time bu just doing make jag insteadaddshore
06/17/2025, 10:09 AM(master) cd toit/tools && jag toit pkg install
(master) cd toit/system/extensions/host && jag toit pkg install
(master) make
Then toit makes, and then make works in the jaguar repo again too
Now sure how to correctly put a fix in for that, or document it thoughfloitsch
06/17/2025, 10:25 AMmake? Sounds easy to fixaddshore
06/17/2025, 10:44 AM--interval to jaguar https://github.com/toitlang/jaguar/pull/624addshore
06/17/2025, 10:45 AMfloitsch
06/17/2025, 11:07 AMaddshore
06/17/2025, 11:23 AM[wifi] DEBUG: closing
E (7210621) wifi:NAN WiFi stop
[wifi] DEBUG: connectingfloitsch
06/17/2025, 12:00 PM