Hey folks,
Running Mender 2.1 via the docker-compose scripts for the production environment as documented, using LetsEncrypt certificates for the TLS connections.
In order to see if I can fix the issues I’m encountering here and here I thought I’d skip the storage completely and move over to S3.
I followed the (very brief!) instructions at https://docs.mender.io/2.1/administration/storage#s3-storage-backend and have created the appropriate YAML config, updated the run
script to use that instead of the Minio one, and run my image build script.
Checking the S3 bucket, I can see that there is an object in there and when I download it and unpack it then it is the correct Mender Artifact, however when I try and create a deployment I get an error saying that there aren’t any releases, and when I browse to the “releases” page then it is still blank with a load of javascript errors in the console.
The docker logs show nothing of relevance (all the logs when I access the page are server 200 status for the Javascript files), and I’m starting to tear my hair out about this!
Does anyone know why this might be happening?
The Javascript errors are as follows:
Artifacts.js:
Error: Request has been terminated
Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.
at b.crossDomainError (client.js:621)
at XMLHttpRequest.t.onreadystatechange (client.js:703)
Other errors:
GET https://localhost/api/management/v1/deployments/deployments/releases net::ERR_CONNECTION_REFUSED
GET https://localhost/api/management/v1/deployments/artifacts net::ERR_CONNECTION_REFUSED
Invariant Violation: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=Error%3A%20Request%20has%20been%20terminated%0APossible%20causes%3A%20the%20network%20is%20offline%2C%20Origin%20is%20not%20allowed%20by%20Access-Control-Allow-Origin%2C%20the%20page%20is%20being%20unloaded%2C%20etc.&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at https://MY.MENDER.SERVER/ui/main.js:47:424
I’m not sure why it’s trying to access localhost
(although apparently that’s something to do with an internal system on hosted mender), and I can’t find anything more on the potential cross-origin issue either