# trying to install on Ubuntu - mysqld.log fPermission denied

**URL:** <https://forums.percona.com/t/trying-to-install-on-ubuntu-mysqld-log-fpermission-denied/6216>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [February 26, 2018, 2:07pm UTC](https://forums.percona.com/t/trying-to-install-on-ubuntu-mysqld-log-fpermission-denied/6216 "2018-02-26T14:07:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ken\_Scott](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Ken\_Scott](https://forums.percona.com/u/Ken_Scott)\
**Post date:** [February 26, 2018, 2:07pm UTC](https://forums.percona.com/t/trying-to-install-on-ubuntu-mysqld-log-fpermission-denied/6216/1 "2018-02-26T14:07:06Z")

</div>

Hello, I’m trying to install “percona-xtradb-cluster-server-5.7” on Ubuntu, but keep running into the same error. I can install no problem on a fresh install og Ubuntu with no MySQL, however if MySQL already exists, I can’t seem to get past this error to install Percona.

[ERROR] Could not open file ‘/var/log/mysqld.log’ for error logging: Permission denied

which results in this:

2018-02-26T19:30:56.324727Z 0 [ERROR] Aborting

dpkg: error processing package percona-xtradb-cluster-server-5.7 (–configure):  
subprocess installed post-installation script returned error exit status 1  
dpkg: dependency problems prevent configuration of percona-xtradb-cluster-57:  
percona-xtradb-cluster-57 depends on percona-xtradb-cluster-server-5.7 (\>= 5.7.20-29.24-1.xenial); however:  
Package percona-xtradb-cluster-server-5.7 is not configured yet.

dpkg: error processing package percona-xtradb-cluster-57 (–configure):  
dependency problems - leaving unconfigured  
Processing triggers for libc-bin (2.23-0ubuntu7) …  
No apport report written because the error message indicates its a followup error from a previous failure.  
Processing triggers for systemd (229-4ubuntu16) …

How can I install Percona cluster on a system that once that MySQL installed?

---

<div class="post-metadata">

**Author:** ![hrvojem](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/hrvojem/32/6_2.png) [@hrvojem](https://forums.percona.com/u/hrvojem)\
**Post date:** [February 27, 2018, 1:30am UTC](https://forums.percona.com/t/trying-to-install-on-ubuntu-mysqld-log-fpermission-denied/6216/2 "2018-02-27T01:30:15Z")

</div>

Hi,

What version of MySQL you had previously installed (was it community version or the one from the distribution repo)? Can you please share the output of:

```auto
dpkg -l | grep mysql 

```

–  
Hrvoje

---

<div class="post-metadata">

**Author:** ![Ken\_Scott](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Ken\_Scott](https://forums.percona.com/u/Ken_Scott)\
**Post date:** [February 27, 2018, 8:55am UTC](https://forums.percona.com/t/trying-to-install-on-ubuntu-mysqld-log-fpermission-denied/6216/3 "2018-02-27T08:55:43Z")

</div>

Hello,

It was the newest version that came with Ubuntu 16.4, It’s no longer installed so I’m unable to get a result from the grep comment. I’ve tried removing the file, reset the permissions and still no luck. Any advice would be great. thanks!

---

<div class="post-metadata">

**Author:** ![Lorensius\_Londa](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lorensius_londa/32/8098_2.png) [@Lorensius\_Londa](https://forums.percona.com/u/Lorensius_Londa)\
**Post date:** [October 18, 2022, 8:34am UTC](https://forums.percona.com/t/trying-to-install-on-ubuntu-mysqld-log-fpermission-denied/6216/4 "2022-10-18T08:34:48Z")

</div>

I got this problem also. the solution was to rename the mysqld.log on /etc/mysql/percona-xtradb-cluster.conf.d/mysqld.cnf

change  
log-error=/var/log/mysqld.log

different name

log-error=/var/log/mysqldd.log
