Mariadb enable auto upgrade#1
Open
imonshome77 wants to merge 5 commits intoletsencrypt-certbot-dns-multifrom
Open
Mariadb enable auto upgrade#1imonshome77 wants to merge 5 commits intoletsencrypt-certbot-dns-multifrom
imonshome77 wants to merge 5 commits intoletsencrypt-certbot-dns-multifrom
Conversation
After a major update, the mariadb-upgrade tool should be run (see https://mariadb.com/kb/en/mariadb-upgrade/). However, we don't have a specific post-upgrade script we can run. Luckily, MariaDB has a feature to run the upgrade on it's own when needed. Enable the feature using the MARIADB_AUTO_UPGRADE environment variable.
…tant#4412) In some cases, OTBR creates temporary settings files [1]. If the RCP becomes unavailable (seems to happen particularly for network connected adapters), file with a newer timestamp containing ephemeral data is created and incorrectly migrated as configuration for the reconnected adapter later: ``` Settings file for adapter 187a3efffe0182dd already exists at /data/thread/0_187a3efffe0182dd.data but appears to be old, archiving Wrote new settings file to /data/thread/0_187a3efffe0182dd.data ``` This is how the thread folder looks like after the migration: ``` -rw------- 1 kpt kpt 32 Feb 11 09:57 0_0-tmp.data -rw------- 1 kpt kpt 73 Feb 11 09:58 0_187a3efffe0182dd.data -rw------- 1 kpt kpt 278 Feb 11 09:47 0_187a3efffe0182dd.data.backup-20260211095840 ``` The new data file is clearly migrated from the 0_0-tmp.data, creating a new configuration out of ephemeral data which is invalid and prevents correct initialization of the OTBR app. This change adds a check that the file to be migrated is matching a valid name created by [2], effectively ignoring the temporary files. [1] https://github.com/openthread/openthread/blob/thread-reference-20250612/src/posix/platform/tmp_storage.cpp [2] https://github.com/openthread/openthread/blob/thread-reference-20250612/src/posix/platform/settings.cpp#L93
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.