Client:I have a custom Linux distro build with Yocto 2.5 (Sumo) for our embedded IoT device.The mender integration went well.Server:I have built our own Mender server as per the instructions here: https://docs.mender.io/1.6/administration/production-installationThis is running on AWS EC2 instance. It all looks to be running fine and I can not see any errors in the logs although there is so mush info it's hard for me to understand the output.The server is behind a load balancer and the certificates were generated by Amazon. It is pointed to by a sub domain. This works and I can log in using https and get the green padlock.I am able to upload new Artifacts and no errors are reported.The IoT device is able to connect to the server and registered and in a device group.I can create a deployment which starts.The IoT device sees this deployment and the update transitions to being in progress.This is when the problems begin.The update fails almost instantly, the IoT device sees the update and then it's game over.P.s I have removed some keys from this logs as I am not sure if it's safe to post them.With the following logs from the mender interface:2018-09-21 11:50:45 +0000 UTC debug: handle update fetch state2018-09-21 11:50:45 +0000 UTC debug: status reported, response &{204 No Content %!s(int=204) HTTP/2.0 %!s(int=2) %!s(int=0) map[X-Frame-Options:[DENY] X-Content-Type-Options:[nosniff] X-Xss-Protection:[1; mode=block] Cache-Control:[no-cache, no-store] Pragma:[no-cache] Date:[Fri, 21 Sep 2018 11:50:45 GMT] Server:[openresty/1.13.6.2] Content-Encoding:[gzip] Vary:[Accept-Encoding] X-Deployments-Version:[unknown] X-Men-Requestid:[ 2018-09-21 11:50:45 +0000 UTC debug: Received fetch update response &{404 Not Found 404 HTTP/2.0 2 0 map[Date:[Fri, 21 Sep 2018 11:50:45 GMT] Content-Type:[text/html] Content-Length:[175] Server:[openresty/1.13.6.2]] 0x1249e220 175 [] false false map[] 0x12298500 0x12384480}+ 2018-09-21 11:50:45 +0000 UTC error: Error fetching shcheduled update info: code (404) 2018-09-21 11:50:45 +0000 UTC error: update fetch failed: (request_id: ): error receiving scheduled update information server error message: failed to parse server response: http2: response body closed 2018-09-21 11:50:45 +0000 UTC info: State transition: update-fetch [Download] -> fetch-install-retry-wait [Download] 2018-09-21 11:50:45 +0000 UTC debug: handle fetch install retry state 2018-09-21 11:50:46 +0000 UTC info: State transition: fetch-install-retry-wait [Download] -> update-status-report [none] 2018-09-21 11:50:46 +0000 UTC debug: handle update status report state 2018-09-21 11:50:46 +0000 UTC debug: status reported, response &{204 No Content %!s(int=204) HTTP/2.0 %!s(int=2) %!s(int=0) map[X-Deployments-Version:[unknown] X-Men-Requestid:[ 2018-09-21 11:50:46 +0000 UTC debug: attempting to upload deployment logs for failed updateLogs from the deviceSep 21 11:50:45 gk-pod-1 kern.info mender[196]: level=info msg="State transition: check-wait [Idle] -> update-check [Sync]" module=mender Sep 21 11:50:45 gk-pod-1 kern.info mender[196]: level=info msg="Correct request for getting image from: https://s3._DOMAIN_REMOVED_:9000/mender-artifact-storage/_REMOVED_GUID_?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD
This is where I have got confused with the setup of the server. I am not using an s3 bucket on AWS as I thought minio did that for me. The s3 domain that we have points back to the same server that is running the mender server. I did this as our IoT client seems to always want to connect to s3._OUR_DOMAIN_ and ignore what was set in the prod.ymlIf I list this folder /var/lib/docker/volumes/mender-artifacts/_data/mender-artifact-storage I can see the update artifact. So it is stored on the server.As you say, the client can't download it. I can't either from a web browser.One question I have, if we're not using an aws s3 bucket does any of that need to be configured? I would prefer to use our server for storage as well.
--
You received this message because you are subscribed to the Google Groups "Mender List mender.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mender+un...@lists.mender.io.
To post to this group, send email to men...@lists.mender.io.
Visit this group at https://groups.google.com/a/lists.mender.io/group/mender/.