Closed JulianKingman closed 8 years ago
Hi @JulianKingman, you need to check that your app has the permissions to write in the mentioned path (/uploads
and /tmp/ufs
).
sudo mkdir /uploads
julian
do this :
sudo chown -R julian /uploads
sudo chmod -R 755 /uploads
;Hmm. Well, that didn't exactly work for some reason, but running sudo meteor
worked just fine. Is this necessary in production as well, or just because it's local?
@JulianKingman, you must never run meteor with sudo (root privileges), this means that your app can write everywhere or delete any file of your Operating System.
The fact that running your app with sudo worked confirms that it's a matter of permissions, you should check again that everything is fine.
Maybe you could change the path of the local store ?
/uploads
is the default path, but you can set /home/julian/uploads
if you want.
PhotosStore = new UploadFS.store.Local({
collection: Photos,
name: 'photos',
path: '/home/julian/photos'
});
That didn't seem to make a difference. I verified the permissions, they're 755 and owned by me (Julian).
If you simply copy this repo to your local machine and run it, does it work for you?
I am sorry @JulianKingman, everything is fine on my side, this project (UFS-Example) is my sandbox for the UploadFS package, so yes I test it everytime I add a new feature or fix something in UFS.
It's working as intended, I deleted everything and then executed the following commands :
sudo mkdir /uploads
sudo chown -R karl:root /uploads
sudo chmod -R 775 /uploads
After I started the app and could transfer files without any kind of problem.. I don't know how I can help You but I am pretty sure it has nothing to do with the package since if your app has the permission to write it will write, if not, then you get the error above (the one you had).
I set this up locally and ran it, I'm getting the following when it tries to add/upload files: