[MDEV-19798] Error on booting: mysqld_safe: The file /etc/mysql//mysqld#012does not exist or is not executable Created: 2019-06-18 Updated: 2019-07-07 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Packaging, Platform Debian |
| Affects Version/s: | 10.2.25 |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Jorge Ferrando | Assignee: | Elena Stepanova |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu 18.04. Mariadb 10.2.25 Galera cluster |
||
| Description |
|
After upgrading the cluster from 10.1 to 10.2 we get this error when trying to restart the server:
Looking at /usr/bin/mysqld_safe looks like variable $ledir is not being properly initialized and this test is failing: if test ! -x "$ledir/$MYSQLD" Setting ledir='/usr/sbin' before that line makes it work. |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2019-06-18 ] | |||||||||||||||
|
Moved to MariaDB Server. This doesn't appear to be a ColumnStore bug. | |||||||||||||||
| Comment by Jorge Ferrando [ 2019-06-18 ] | |||||||||||||||
|
Sorry. It seems I confused sites | |||||||||||||||
| Comment by Elena Stepanova [ 2019-07-04 ] | |||||||||||||||
|
Do you use packages built by MariaDB, or do you build from source? | |||||||||||||||
| Comment by Jorge Ferrando [ 2019-07-05 ] | |||||||||||||||
|
I'm using mariadb repo. | |||||||||||||||
| Comment by Elena Stepanova [ 2019-07-05 ] | |||||||||||||||
|
Ubuntu 18.04 packages have systemd support, they shouldn't be using mysqld_safe for running the server. Do you have your own startup scripts? | |||||||||||||||
| Comment by Jorge Ferrando [ 2019-07-05 ] | |||||||||||||||
|
No I don't. I recently upgraded from 16.04 to 18.04 and also from 10.1 to 10.2 though. May it be something left from the previous versions? | |||||||||||||||
| Comment by Elena Stepanova [ 2019-07-05 ] | |||||||||||||||
|
What command do you run to restart the server? | |||||||||||||||
| Comment by Jorge Ferrando [ 2019-07-05 ] | |||||||||||||||
|
service mysql stop / start
| |||||||||||||||
| Comment by Elena Stepanova [ 2019-07-05 ] | |||||||||||||||
|
does it happen when you do | |||||||||||||||
| Comment by Jorge Ferrando [ 2019-07-05 ] | |||||||||||||||
|
with the server stopped:
And the log:
| |||||||||||||||
| Comment by Elena Stepanova [ 2019-07-05 ] | |||||||||||||||
|
Can you check which package mariadb.service belongs to, and attach it as a file? | |||||||||||||||
| Comment by Jorge Ferrando [ 2019-07-05 ] | |||||||||||||||
|
| |||||||||||||||
| Comment by Elena Stepanova [ 2019-07-05 ] | |||||||||||||||
|
serg, any ideas where this stub above could come from? | |||||||||||||||
| Comment by Sergei Golubchik [ 2019-07-07 ] | |||||||||||||||
|
No. The only tool that can write [Service] in MariaDB is mariadb-service-convert script and it unconditionally writes a comment at the beginning of the service file. |