Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.

All On Disk set to "No" #84

Open
jamestylerpatton opened this issue Jan 19, 2015 · 3 comments
Open

All On Disk set to "No" #84

jamestylerpatton opened this issue Jan 19, 2015 · 3 comments

Comments

@jamestylerpatton
Copy link

I have successfully installed DBV into my project and it is reading the tables from my database, but I can't get it to write to my local disk. Could it be the way I set it up? It looks like I have the permissions to write to the dbv files.

@victorstanciu
Copy link
Owner

When you select the tables you want to export and press the "Export to disk" button, is any message shown?

@BeardedBrawler
Copy link

So i'll tack on to this issue:

I've setup dbv and I've made a change to the DB the DBV is version controlling for me. Trying to write that change to disk i get the error:
Cannot write file: /var/www/html/project/dbv/data/schema/tablename.sql
data/ and all the subdirectories under it are owned by the same user and group as the webserver.

To make sure this wasn't file system permissions, I switch user to the user running the webserver and I can create files inside data/ just fine

To further make sure I ran whoami from a php script and the return was the same user that's running the webserver.

I've solved this: the issue was selinux

@johnbendi
Copy link

johnbendi commented May 12, 2016

I'm having this same issue with php7 on ubuntu 16.04. Here is a screenshot showing the web interface:
dbv_web_interface_2

Clicking Export to disk button does not trigger the operation. And there are no errors relatng to this operation in the error logs both for nginx and php7. I'm currently trying to debug the operation to see what might be going wrong.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants