ackerchez's avatar

Homestead File Access

Hey Everyone. I have a weird situation. I am using Homestead and VirualBox to run my Laravel installation (version 5.1). In my app I uploaded a file via Laravel, a, SQLite file, and then I tried to set up a PDO to access that file and make SQL queries on it. The upload works fine and the file is there, It is readable by Laravel because I am able to use the File facade to get the file and get the file size. When I use the PDO to try and access the db however I get an error : "SQLSTATE[HY000]: General error: 10 disk I/O error (SQL: select * from "users")" I tried looking into all kinds of things like disk space and permissions and it all checks out fine. My working theory now is that it has something to do with Homestead and the way the folder sharing works between the virtual machine and the regular machine. Is that possible? That maybe the Laravel installation cannot read it?

0 likes
2 replies
vvvphpdev's avatar
  • I never tried using migrations thru sqlite, but have you tried to execute it first?

There are a sqlite command for you to check if those tables in it.

ackerchez's avatar

I know the tables are in it. I've checked the file in an SQLite viewer before uploading it. My suspition is that there is a problem in the folder sharing which makes an error. I had a friend of mine try as well on his machine and the same thing happened.

Please or to participate in this conversation.