Share specific files/folders via a web link

Status
Not open for further replies.

osterac

Cadet
Joined
Sep 17, 2016
Messages
4
Hello, I'm new to the forums but I've had a freenas box that I put together for a while now. I don't know a whole lot about Linux so there's been a bit of a learning curve. Anyway...
With my old Buffalo NAS, I was able to select a file or folder and share it, and I got a web link I could email to someone. If they followed that link, they could download the files directly from my NAS. Is something like this do-able with freenas, whether it's through a plugin or otherwise?
Thanks
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,477
Welcome to the forums!

I think owncloud would be a good option for you. It is a plugin normally installed within a jail.
 

osterac

Cadet
Joined
Sep 17, 2016
Messages
4
That was fast! Okay I have owncloud installed now. I set the jail storage to mount "/mnt/File_Graveyard" (my volume) and the destination as "/mnt/files". Create directory and mounted are checked. However, owncloud doesn't see the files on my NAS. What do I have to do?
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
That was fast! Okay I have owncloud installed now. I set the jail storage to mount "/mnt/File_Graveyard" (my volume) and the destination as "/mnt/files". Create directory and mounted are checked. However, owncloud doesn't see the files on my NAS. What do I have to do?
You need to look at the owncloud plugins in particular one called external storage I believe?

Owncloud is preconfigured to look at a particular directory, and /mnt/files is not where it looks. ;)
 

osterac

Cadet
Joined
Sep 17, 2016
Messages
4
I'm having trouble getting the storage to mount suddenly. Are the jails supposed to be on a separate volume from everything else?
It says this:




Error: [MiddlewareError: The path could not be mounted /mnt/File_Graveyard: Mount failed 64 -> , mount_nullfs: /mnt/File_Graveyard (/mnt/File_Graveyard) and /mnt/File_Graveyard/jails_5/emby_1/mnt/files are not distinct paths ]
 
Last edited:

osterac

Cadet
Joined
Sep 17, 2016
Messages
4
You need to look at the owncloud plugins in particular one called external storage I believe?

Owncloud is preconfigured to look at a particular directory, and /mnt/files is not where it looks. ;)
I need to look at owncloud plugins? There are plugins for owncloud? I can't see anything about that in the owncloud web interface.
I did notice that owncloud comes with a few example files, and I found where it keeps them. It's "usr\pbi\owncloud-amd64\www\owncloud\core\skeleton". However when I try to add and mount storage to the owncloud jail, I get this error:
"
Error: [MiddlewareError: The path could not be mounted /mnt/File_Graveyard: Mount failed 64 -> , mount_nullfs: /mnt/File_Graveyard (/mnt/File_Graveyard) and /mnt/File_Graveyard/jails_5/owncloud_1/usr/pbi/owncloud-amd64/www/owncloud/core/skeleton are not distinct paths ]
"
I keep all my files in folders in the root of file_graveyard and jails_5 is a dataset under file_graveyard (there's just one jail dataset, freenas has been installed a few times so the number went up and then I eventually deleted the old datasets).

So in the add storage settings I set the source as "/mnt/File_Graveyard" and the destination as "/usr/pbi/owncloud-amd64/www/owncloud/core/skeleton" and check the "mounted" box. I can add the storage, I just can't mount it.
Any ideas?

PS sorry about the double post, but I had some new information and it was a few days later
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
You can't mount to that location in the plugin. Just set a mount point elsewhere like /media/data
"Create directory if it doesn't exist"

You need to install an owncloud plugin to USE that Storage space then, and I think it's called "external storage" plugin. You do NOT want to try and trick the jail/plugin into mounting the wrong storage.
 
Status
Not open for further replies.
Top