I have a sqlite database that i pulled off of my iphone and I was able to read it on my local machine running ubuntu (and also in windows with a sqlite program). However, when i upload it to an EC2 instance (running amazon linux AMI) and tried to open it using sqlite3 there but keep getting database errors saying
unable to open database file is encrypted or is not a database.
I'm not sure what would be causing this. My local sqlite3 is 3.7.9 while the amazon one is 3.6.20, but i'm also having the same issue opening the file from a rails server running on the EC2, while the same exact code (and same version of the sqlite gem) opens the file fine locally.
I thought something could have encrypted it accidentally when submitting the form on the website, but I also just downloaded the exact same file via curl from a different server and got the same database error when trying to open it.