Recently we upgraded our old (2.0.1) self-hosted mender server from version to 2.6.1 successfully. The reason we couldn’t go to 2.7.x branch was that we just were unable make the GUI show us all the previously registered devices.
I have read several threads and tried different suggestions (for example specifying a 4.4.3 mongodb version), but nothing really seems to work here.
The upgrade process is as follows:
- Follow the v2.7 production installation guide from the documentation to setup the server
- Add the relevant configuration variables to prod.yml according to the guide
- Copy the previously generated certificates & keys that we have
- Restore old mongodb backup (using the restore-db command)
- Perform the device re-sync as advised here (Mender 2.5.0 Problems with Filters, Hostnames and More - #2 by mzedel)
Accessing the deviceauth information directly via the API ({server-url}/api/management/v2/devauth/devices), I can confirm that all several thousand of our devices are seen via the API, but I don’t understand why this information does not appear on the GUI.
I also confirmed that when I configured one of our devices with the temporary development server, its authentication attempt is added to the database and I can see that as a new entry so the database connectivity seems working (the client gets not-authenticated message as a response).
These logs are from my development machine, and to speed up the process a bit I haven’t bothered restoring artifact data since that didn’t seem to affect 2.6.1 version in my testing
Please find my migration and device sync logs here:
mongo migration: mongodb restoration - Pastebin.com
resync log: deviceauth sync - Pastebin.com
Would appreciate some advice as I have no idea what to try next…