[MDEV-30639] Upgrade to 10.6 and later does not work on Windows Created: 2023-02-11 Updated: 2023-08-01 Resolved: 2023-06-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Platform Windows, Upgrades |
| Affects Version/s: | 10.10.3 |
| Fix Version/s: | 10.6.15, 10.9.8, 10.10.6, 10.11.5, 11.0.3, 11.1.2, 11.2.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Mitchell Lee | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Environment: |
Windows 11 64bit 22H2 |
||
| Attachments: |
|
||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
1. Using 10.7.8 at the 'C:\Program Files\MariaDB' What's next? |
| Comments |
| Comment by Mitchell Lee [ 2023-02-11 ] | |||||||
[mysqld] | |||||||
| Comment by Mitchell Lee [ 2023-02-11 ] | |||||||
|
I need urgent workaround procedure (manual or patch whatever) to upgrade. | |||||||
| Comment by Marko Mäkelä [ 2023-02-11 ] | |||||||
|
Can you try to get the server error log from somewhere? Something that would include both the messages from MariaDB Server 10.7.8 shutdown and the attempt to start up 10.10.3? Sorry, I am not familiar with the Microsoft Windows platform, so I can’t tell where these logs are stored. If they are in regular files, the file name should be something like mysqld.err or mariadbd.err. | |||||||
| Comment by Mitchell Lee [ 2023-02-11 ] | |||||||
2023-02-11 18:13:54 0 [Note] InnoDB: Buffer pool(s) load completed at 230211 18:13:54 | |||||||
| Comment by Mitchell Lee [ 2023-02-11 ] | |||||||
|
addtionally [mysqld] | |||||||
| Comment by Marko Mäkelä [ 2023-02-11 ] | |||||||
|
npdmailing@gmail.com, thank you. I changed the redo log format for one (hopefully last) time in The messages suggest that the ib_logfile0 is already in the 10.8+ format (the log had been upgraded by MariaDB Server 10.10.3), but for some reason, there is an attempt to start the old 10.7.8 server on it. A downgrade to an older server would be really tricky because you can’t simply delete the ib_logfile0 (see In any case, I would think that you only want to start up the 10.10.3 server and not go back to the 10.7.8 server. This feels like a bug in the installer. In your position, I’d try to locate the mariadbd.exe for the 10.10.3 server and manually start it up. Sorry, I can’t give more specific advice. I do not even know the exact steps to start or shut down the server on Windows. | |||||||
| Comment by Mitchell Lee [ 2023-02-11 ] | |||||||
|
Well. Now I'm rolled back to 10.7.8 and all are good. | |||||||
| Comment by Mitchell Lee [ 2023-02-11 ] | |||||||
|
By getting hint from your comment, | |||||||
| Comment by Mitchell Lee [ 2023-02-11 ] | |||||||
|
and...one more. C:\Program Files\MariaDB\bin>mysql_upgrade_service --service=MySQL | |||||||
| Comment by Mitchell Lee [ 2023-02-11 ] | |||||||
|
Damn....it is not. it must be 'mariadb-upgrade-service --service=MariaDB' or so. | |||||||
| Comment by Mitchell Lee [ 2023-02-11 ] | |||||||
|
and...you should give me solution for below error which in C:\Users\zzzzzzzz\AppData\Local\Temp\mysql_upgrade_service.MariaDB.log Executing "C:\Program Files\MariaDB\bin\mysqladmin.exe" "- | |||||||
| Comment by Mitchell Lee [ 2023-02-11 ] | |||||||
|
Erm....by copy overwrite bin files after installer's mysql_upgrade_service failure, seems not working.. 2023-02-11 18:47:01 8 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'hist_type' at position 9 to have type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB'), found type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB'). | |||||||
| Comment by Vladislav Vaintroub [ 2023-02-11 ] | |||||||
|
Can you maybe share your C:\Program Files\MariaDB\data\my.ini, so we get the full picture. | |||||||
| Comment by Mitchell Lee [ 2023-02-11 ] | |||||||
|
Well... | |||||||
| Comment by Vladislav Vaintroub [ 2023-02-11 ] | |||||||
|
1. Yes, thank you, I see it is attached. You can remove sensitive information, e.g passwords and what not. I'm, interested in the SSL configuration and SSL parameters related to client and server | |||||||
| Comment by Mitchell Lee [ 2023-02-11 ] | |||||||
|
I mean...which sections of config names you want. not all. | |||||||
| Comment by Vladislav Vaintroub [ 2023-02-11 ] | |||||||
|
Thanks for the tip, I'm aware of backslash weirdness. Thus I'm using single forward slashes. I assume that | |||||||
| Comment by Mitchell Lee [ 2023-02-11 ] | |||||||
|
that is all. sample.txt | |||||||
| Comment by Vladislav Vaintroub [ 2023-02-11 ] | |||||||
|
The actual error is attempt to use named pipe with SSL.
If pipe can't be used with SSL, and it can't currently, until then server should not tell the named pipe client it supports SSL. Alternatively, the client should ignore the server's SSL capacity if it connects via named pipe. | |||||||
| Comment by Vladislav Vaintroub [ 2023-02-11 ] | |||||||
|
There is an unfortunate circumstance that leaves any MariaDB Server on Windows that has SSL in a non-startable state after attempted upgrade.
| |||||||
| Comment by Mitchell Lee [ 2023-04-18 ] | |||||||
|
Erm, | |||||||
| Comment by Justus Greiber [ 2023-05-19 ] | |||||||
|
Hi, I think I am facing the same problem (although for different versions). I discovered that the "mysqladmin.exe" that is running to execute the ping has different behavior if the order of the arguments is switched. The first order works fine, while the order used by the update process (second) does not work.
| |||||||
| Comment by Mitchell Lee [ 2023-06-16 ] | |||||||
|
After long struggling, found out the root cause since the system uses custom plugin not that listed in standard MariaDB. So, So question and suggestion. | |||||||
| Comment by Oleg Smirnov [ 2023-06-28 ] | |||||||
|
JustusGreiber, thanks for your valuable observation! Indeed,
parameter resets previously set
parameter value, that's why it works in one order and does not in another. | |||||||
| Comment by Justus Greiber [ 2023-06-28 ] | |||||||
|
Glad I could help. Is it intended to behave like that or will this be changed? (If it is intended, then it is IMHO very hard to find in the documentation and maybe that could be improved.) | |||||||
| Comment by Oleg Smirnov [ 2023-06-28 ] | |||||||
|
No, it is certainly unintended. We are already testing the patch to fix it. | |||||||
| Comment by Michael Widenius [ 2023-06-29 ] | |||||||
|
Looks good. Ok to push. | |||||||
| Comment by Michael Widenius [ 2023-06-29 ] | |||||||
|
ok to push | |||||||
| Comment by Oleg Smirnov [ 2023-06-29 ] | |||||||
|
Pushed to 10.9, to be merged upstream. | |||||||
| Comment by Oleg Smirnov [ 2023-06-30 ] | |||||||
|
This bug affects versions starting from 10.6, so the fix is pushed to 10.6 as well. |