Hi,
A mender install is locking up a new custom board based on an i.MX 8M Nano. This design is based on the EVK and we are not seeing the same issue with the EVK so it may be board related or related to a misconfiguration with the Mender for this board, our board has less memory in case this could be a cause. It can occur anywhere between 30 and 60% of the update and is reproducible every time. With --log-level defined as debug we get the following
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/conf/config.go:200 github.com/mendersoftware/mender/conf.readConfigFile() Reading Mender configuration from file /var/lib/mender/mender.conf
INFO[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/conf/config.go:193 github.com/mendersoftware/mender/conf.loadConfigFile() Loaded configuration file: /var/lib/mender/mender.conf
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/conf/config.go:200 github.com/mendersoftware/mender/conf.readConfigFile() Reading Mender configuration from file /etc/mender/mender.conf
INFO[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/conf/config.go:193 github.com/mendersoftware/mender/conf.loadConfigFile() Loaded configuration file: /etc/mender/mender.conf
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/conf/config.go:126 github.com/mendersoftware/mender/conf.LoadConfig() Loaded 2 configuration file(s)
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/conf/config.go:133 github.com/mendersoftware/mender/conf.LoadConfig() Loaded configuration = &conf.MenderConfig{MenderConfigFromFile:conf.MenderConfigFromFile{ClientProtocol:"", ArtifactVerifyKey:"", HttpsClient:client.HttpsClient{Certificate:"", Key:"", SSLEngine:""}, Security:client.Security{AuthPrivateKey:"", SSLEngine:""}, RootfsPartA:"/dev/mmcblk2p1", RootfsPartB:"/dev/mmcblk2p2", DeviceTypeFile:"/var/lib/mender/device_type", UpdatePollIntervalSeconds:1800, InventoryPollIntervalSeconds:28800, SkipVerify:false, RetryPollIntervalSeconds:300, StateScriptTimeoutSeconds:0, StateScriptRetryTimeoutSeconds:0, StateScriptRetryIntervalSeconds:0, ModuleTimeoutSeconds:0, ServerCertificate:"", ServerURL:"https://mender-server.octopushome.net/", UpdateLogPath:"", TenantToken:"dummy", Servers:[]client.MenderServer(nil)}, ModulesPath:"/usr/share/mender/modules/v3", ModulesWorkPath:"/var/lib/mender/modules/v3", ArtifactInfoFile:"/etc/mender/artifact_info", ArtifactScriptsPath:"/var/lib/mender/scripts", RootfsScriptsPath:"/etc/mender/scripts"}
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/conf/config.go:174 github.com/mendersoftware/mender/conf.(*MenderConfig).Validate() Verified configuration = &conf.MenderConfig{MenderConfigFromFile:conf.MenderConfigFromFile{ClientProtocol:"", ArtifactVerifyKey:"", HttpsClient:client.HttpsClient{Certificate:"", Key:"", SSLEngine:""}, Security:client.Security{AuthPrivateKey:"", SSLEngine:""}, RootfsPartA:"/dev/mmcblk2p1", RootfsPartB:"/dev/mmcblk2p2", DeviceTypeFile:"/var/lib/mender/device_type", UpdatePollIntervalSeconds:1800, InventoryPollIntervalSeconds:28800, SkipVerify:false, RetryPollIntervalSeconds:300, StateScriptTimeoutSeconds:0, StateScriptRetryTimeoutSeconds:0, StateScriptRetryIntervalSeconds:0, ModuleTimeoutSeconds:0, ServerCertificate:"", ServerURL:"https://mender-server.octopushome.net/", UpdateLogPath:"", TenantToken:"dummy", Servers:[]client.MenderServer{client.MenderServer{ServerURL:"https://mender-server.octopushome.net"}}}, ModulesPath:"/usr/share/mender/modules/v3", ModulesWorkPath:"/var/lib/mender/modules/v3", ArtifactInfoFile:"/etc/mender/artifact_info", ArtifactScriptsPath:"/var/lib/mender/scripts", RootfsScriptsPath:"/etc/mender/scripts"}
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/bootenv.go:205 github.com/mendersoftware/mender/installer.getEnvironmentVariable() Have U-Boot variable: mender_check_saveenv_canary=1
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/bootenv.go:228 github.com/mendersoftware/mender/installer.getEnvironmentVariable() List of U-Boot variables:map[mender_check_saveenv_canary:1]
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/bootenv.go:205 github.com/mendersoftware/mender/installer.getEnvironmentVariable() Have U-Boot variable: mender_saveenv_canary=1
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/bootenv.go:228 github.com/mendersoftware/mender/installer.getEnvironmentVariable() List of U-Boot variables:map[mender_saveenv_canary:1]
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/bootenv.go:205 github.com/mendersoftware/mender/installer.getEnvironmentVariable() Have U-Boot variable: mender_boot_part=1
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/bootenv.go:228 github.com/mendersoftware/mender/installer.getEnvironmentVariable() List of U-Boot variables:map[mender_boot_part:1]
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/partitions.go:175 github.com/mendersoftware/mender/installer.(*partitions).getAndCacheActivePartition() Setting active partition from mount candidate: /dev/mmcblk2p1
INFO[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/cli/cli.go:419 github.com/mendersoftware/mender/cli.(*runOptionsType).commonCLIHandler() Mender running on partition: /dev/mmcblk2p1
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/modules.go:881 github.com/mendersoftware/mender/installer.NewModuleInstallerFactory() ModuleTimeoutSeconds not set. Defaulting to 14400 seconds
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/app/standalone.go:54 github.com/mendersoftware/mender/app.DoStandaloneInstall() Starting device update.
INFO[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/app/standalone.go:74 github.com/mendersoftware/mender/app.DoStandaloneInstall() Start updating from local image file: [/data/octave-cad-image-octave-imx8mn.mender]
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/app/standalone.go:77 github.com/mendersoftware/mender/app.DoStandaloneInstall() Fetching update from file results: [&{0x400005d500}], 98145280, <nil>
Installing Artifact of size 98145280...
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/device/device.go:80 github.com/mendersoftware/mender/device.GetManifestData() Reading data from the device manifest file: /var/lib/mender/device_type
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/device/device.go:91 github.com/mendersoftware/mender/device.GetManifestData() device_type=octave-imx8mn
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/device/device.go:98 github.com/mendersoftware/mender/device.GetManifestData() Current manifest data: octave-imx8mn
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/statescript/executor.go:82 github.com/mendersoftware/mender/statescript.Launcher.getTimeout() statescript: The timeout for executing scripts is not defined; using default of 1h0m0s seconds
INFO[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/installer.go:109 github.com/mendersoftware/mender/installer.ReadHeaders() No public key was provided for authenticating the artifact
INFO[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/modules.go:914 github.com/mendersoftware/mender/installer.(*ModuleInstallerFactory).GetModuleTypes() Update Module path "/usr/share/mender/modules/v3" could not be opened (open /usr/share/mender/modules/v3: no such file or directory). Update modules will not be available
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/installer.go:120 github.com/mendersoftware/mender/installer.ReadHeaders.func1() Checking if device [octave-imx8mn] is on compatible device list: [octave-imx8mn]
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/installer.go:196 github.com/mendersoftware/mender/installer.ReadHeaders() Installer: Successfully read artifact [name: release-2021-03-22; version: 3; compatible devices: [octave-imx8mn]]
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/partitions.go:55 github.com/mendersoftware/mender/installer.(*partitions).GetActive() Active partition: /dev/mmcblk2p1
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/partitions.go:82 github.com/mendersoftware/mender/installer.(*partitions).getAndCacheInactivePartition() Detected inactive partition /dev/mmcblk2p2, based on active partition /dev/mmcblk2p1
INFO[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/block_device.go:66 github.com/mendersoftware/mender/installer.bdevice.Open() Opening device "/dev/mmcblk2p2" for writing
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/block_device.go:71 github.com/mendersoftware/mender/installer.bdevice.Open() Installing update of size: 1744830464
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/block_device.go:94 github.com/mendersoftware/mender/installer.bdevice.Open() Device: /dev/mmcblk2p2 is a ubi device: false
INFO[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/block_device.go:146 github.com/mendersoftware/mender/installer.bdevice.Open() Native sector size of block device /dev/mmcblk2p2 is 512 bytes. Mender will write in chunks of 1048576 bytes
DEBU[0000]/ws/rufilla/octopus/octave-dunfell/build-devel/tmp/work/aarch64-poky-linux/mender-client/2.4.1-r0/build/src/github.com/mendersoftware/mender/installer/block_device.go:152 github.com/mendersoftware/mender/installer.bdevice.Open() Opening device: /dev/mmcblk2p2 for writing with flag: 2
................................ 1% 1024 KiB
................................ 2% 2048 KiB
................................ 3% 3072 KiB
................................ 4% 4096 KiB
................................ 5% 5120 KiB
................................ 6% 6144 KiB
................................ 7% 7168 KiB
................................ 8% 8192 KiB
................................ 9% 9216 KiB
................................ 10% 10240 KiB
................................ 11% 11264 KiB
................................ 12% 12288 KiB
................................ 13% 13312 KiB
................................ 14% 14336 KiB
................................ 16% 15360 KiB
................................ 17% 16384 KiB
................................ 18% 17408 KiB
................................ 19% 18432 KiB
................................ 20% 19456 KiB
................................ 21% 20480 KiB
................................ 22% 21504 KiB
................................ 23% 22528 KiB
................................ 24% 23552 KiB
................................ 25% 24576 KiB
................................ 26% 25600 KiB
................................ 27% 26624 KiB
................................ 28% 27648 KiB
................................ 29% 28672 KiB
................................ 30% 29696 KiB
................................ 32% 30720 KiB
................................ 33% 31744 KiB
................................ 34% 32768 KiB
................................ 35% 33792 KiB
................................ 36% 34816 KiB
................................ 37% 35840 KiB
................................ 38% 36864 KiB
................................ 39% 37888 KiB
................................ 40% 38912 KiB
................................ 41% 39936 KiB
................................ 42% 40960 KiB
................................ 43% 41984 KiB
................................ 44% 43008 KiB
................................ 45% 44032 KiB
................................ 47% 45056 KiB
................................ 48% 46080 KiB
..............[ 92.075489][ T17] audit: type=1701 audit(2466.608:3): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=373 comm="CADIhdHost" exe="/usr/sbin/CADIhdHost" sig=6 res=1
.................. 49% 47104 KiB
................................ 50% 48128 KiB
................................ 51% 49152 KiB
................................ 52% 50176 KiB
................................ 53% 51200 KiB
................................ 54% 52224 KiB
................................ 55% 53248 KiB
................................ 56% 54272 KiB
................................ 57% 55296 KiB
................................ 58% 56320 KiB
............runtime: bad span s.state=149 s.sweepgen=2903394988 sweepgen=162
fatal error: non in-us
The interesting part looks like the very last message runtime: bad span s.state=149 s.sweepgen=2903394988 sweepgen=162
fatal error: non in-us
I’m taking a look but was wondering if anyone would have any idea as to what is going on as I’m not really familiar with go.
Many Thanks,
Martin.