You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This update includes a version bump for MariaDB within our Docker Compose stack to incorporate the latest improvements and fixes.
12
10
13
-
To cleanly stop MariaDB with docker compose, you can use the following command:
14
-
```dc exec db /usr/bin/mysqladmin -uroot -p shutdown```
11
+
**Issue:**
12
+
Docker Compose does not cleanly stop MySQL by default, which can lead to errors when restarting the database after an update. Reference: [MariaDB Docker Issue #185](https://github.com/MariaDB/mariadb-docker/issues/185).
15
13
16
-
Performing a DB backup is recommended before starting the update procedure.
17
-
You can use the db-backup profile included in the docker-compose.tools.yml file to perform the backup.
14
+
**Solution:**
15
+
To cleanly stop MariaDB with Docker Compose, use the following command:
16
+
```bash
17
+
dc exec db /usr/bin/mysqladmin -uroot -p shutdown
18
+
```
18
19
19
-
Added environement variable
20
-
MARIADB_AUTO_UPGRADE variable is set to 1 (activated) by default and used to automate the upgrade of the mariadb system tables.
21
-
When this environment variable is set, this will run the mariadb-upgrade (https://mariadb.com/kb/en/mariadb-upgrade/), if needed, so any changes in the MariaDB system tables required to expose new features will be made. This may impeed some downgrade options. Unless the environment variable MARIADB_DISABLE_UPGRADE_BACKUP is set, there will be a backup of the system tables created as system_mysql_backup_*.sql.zst in the top level of the data directory to assist in the downgrade if needed.
20
+
**Recommendation:**
21
+
Performing a database backup is recommended before starting the update procedure. Utilize the `db-backup` profile included in the `docker-compose.tools.yml` file for this purpose.
22
22
23
-
Keep in mind, the provided MariaDB container in ```docker compose``` and stack is not ready for production as-is and requires adjustments.
24
-
It is recommended to use an external, redundant service for the primary datastore.
23
+
**New Feature:**
24
+
An environment variable `MARIADB_AUTO_UPGRADE`is now set to `1` (activated) by default to automate the upgrade of the MariaDB system tables. This upgrade process, executed via [mariadb-upgrade](https://mariadb.com/kb/en/mariadb-upgrade/), updates system tables to enable new features but may restrict some downgrade options. Unless the environment variable `MARIADB_DISABLE_UPGRADE_BACKUP` is set, a backup of the system tables will be created as `system_mysql_backup_*.sql.zst` in the top level of the data directory to assist in any required downgrades.
25
25
26
-
#### Steps to Follow for Update docker compose stack
26
+
**Caution:**
27
+
The provided MariaDB container in the Docker Compose stack is not ready for production as-is and requires adjustments. It is recommended to use an external, redundant service for the primary datastore.
27
28
29
+
#### Steps to Follow for Updating Docker Compose Stack:
28
30
29
-
1. Perform a backup of the application box and all databoxes published on your MariaDB server (the MariaDB database).
30
-
2. Stop the MariaDB server with (adapt it with your credentials):
31
-
```sh
31
+
1. Perform a backup of the application box and all databases published on your MariaDB server.
32
+
2. Stop the MariaDB server using the command (adapt it with your credentials):
33
+
```bash
32
34
dc exec db /usr/bin/mysqladmin -uroot -p shutdown
33
35
```
34
36
3. Take down the Docker stack with:
35
-
```sh
37
+
```bash
36
38
dc down
37
39
```
38
40
4. Deploy the new Docker stack version.
39
-
5.Bring up your stack with:
40
-
```sh
41
+
5.Start your stack with:
42
+
```bash
41
43
dc up -d
42
44
```
43
45
44
46
**Note:**`dc` is a bash function aliasing `docker compose` with `.env` and `.env.local` values merged. See the [README.md](https://github.com/alchemy-fr/Phraseanet/blob/master/README.md#using-a-envlocal-method-for-custom-env-values) for more details.
45
47
48
+
#### Phraseanet Upgrade
46
49
47
50
-**Phraseanet Migration Patch**:
48
51
- A migration script for the configuration file is available. Run the following command in the setup container with Docker if the environment variable `PHRASEANET_UPGRADE=1` is set:
@@ -58,14 +61,18 @@ It is recommended to use an external, redundant service for the primary datastor
58
61
### Version Summary
59
62
60
63
- Bump MariaDB
61
-
- todo
64
+
- Fix issue on CSRF
65
+
- Fix issue on export title choice in pusher case
62
66
67
+
## What's Changed
68
+
* PHRAS-4129 : account page - collections request - CSRF error by @aynsix in https://github.com/alchemy-fr/Phraseanet/pull/4585
69
+
* PHRAS-4130 : upgrade mariadb to 5.11.11 by @moctardiouf in https://github.com/alchemy-fr/Phraseanet/pull/4586
70
+
* PHRAS-4115 Export window - Save File name choice case download_async by @aynsix in https://github.com/alchemy-fr/Phraseanet/pull/4583
71
+
* PHRAS-4127 add mysql timeout env by @aynsix in https://github.com/alchemy-fr/Phraseanet/pull/4584
0 commit comments