Got error -1 from storage engine with non-existing DATA DIRECTORY = '/home/datadir'

Bug #1513406 reported by Shahriyar Rzayev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Server
Unknown
Unknown
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.6
Triaged
Medium
Unassigned
5.7
Triaged
Medium
Unassigned

Bug Description

Hi dear experts,
There is another cryptic error message while trying to create tablespace outside default data directory:

mysql> CREATE TABLE t2 (c1 INT PRIMARY KEY) DATA DIRECTORY = '/home/datadir';
ERROR 1030 (HY000): Got error -1 from storage engine

From error log:

2015-11-05 12:55:44 7f52c7b7e700 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.

In fact there is no such directory:

sh@percona-XPS-15:~$ ls /home/datadir
ls: cannot access /home/datadir: No such file or directory

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Please report this bug to upstream, and add a link here.
In fact, if the bug is upstream, and there is no overriding reason to report it to PS separately (ie. accompanied by a fix request etc), there is no need to report it to PS at all.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Encountered first time with PS 5.6 while testing TokuBackup :)
Surely, I will check it with upstream and comment a link here as well.

Revision history for this message
Roel Van de Paar (roel11) wrote :

Hi Shako, yes, as per Laurynas, please always test upstream first. If found to be in upstream, simply log there. Thanks

Revision history for this message
Roel Van de Paar (roel11) wrote :

To mark a bug as upstream click "Also affects distribution/package" and add the upstream URL in the URL field there.

Revision history for this message
Roel Van de Paar (roel11) wrote :

Apologies, it's "Also affects project" -> "mysql-server" -> upstream bug link.

tags: added: upstream
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-1667

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.