Adding Jail Storage to Owncloud/Nextcloud

Status
Not open for further replies.

Sasayaki

Explorer
Joined
Apr 20, 2014
Messages
86
Hi guys,

I upgraded my Owncloud plugin a few days ago and it broke everything, so I wiped it out and am installing Nextcloud since I've been meaning to do that for a bit now.

However, when I go to add storage to my jail (adding, say, /mnt/Storage/Media on my pool to /media in the jail), Nextcloud doesn't pick up the directories like Owncloud used to. I reinstalled Owncloud, but it looks like the new version of that doesn't do this either...

So my question is: how do I add Jail Storage to the Nextcloud jail?
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
you have to enable the "external storage" app in nextcloud. then point it to your local '/media'
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
owncloud/nextcloud won't see changes in files in it's data-directory (/media) unless it is told to scan for changes.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
you have to enable the "external storage" app in nextcloud. then point it to your local '/media'
/media should not be external storage since that is where the plugin has its data-directory.

I mention the proper way to use external storage in this video https://www.youtube.com/watch?v=60xwnoIrUTI
Though I'm not sure if that is what @Sasayaki is trying to do, or is just try to have /media be on a dataset he can snapshot/backup.
 

heimos

Dabbler
Joined
Nov 9, 2016
Messages
29
I am having a similar issue with adding local storage to nextCloud jail. When I go to the admin interface > External storage I see the two folders that I added, however they don't scan the files from the mounted share. When I click on them, they take me to the default page with the nextCloud default folders, any ideas on this ?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I am having a similar issue with adding local storage to nextCloud jail. When I go to the admin interface > External storage I see the two folders that I added, however they don't scan the files from the mounted share. When I click on them, they take me to the default page with the nextCloud default folders, any ideas on this ?
can you show 'ls -l /path/to/folders' in the jail. can I also see a screenshot of your extenal mount settings?
 

heimos

Dabbler
Joined
Nov 9, 2016
Messages
29
can you show 'ls -l /path/to/folders' in the jail. can I also see a screenshot of your extenal mount settings?
Thanks for a quick reply

Here they are:
root@nextcloud_1:/ # ls -l /mnt/public
total 1381919
-rw-rw-rw- 1 1005 1003 6148 Feb 9 13:14 .DS_Store
-rw-rw-rw- 1 1005 1003 4096 Jan 2 19:53 ._.DS_Store
-rw-rw-rw- 1 1011 1003 4096 Feb 9 09:26 ._Kali Box.zip
-rw-rw-rw- 1 1005 1003 6975096 Jan 20 09:20 FileZilla_3.24.0_win64-setup -
Copy.exe
-rw-rw-rw- 1 1005 1003 6975096 Jan 20 09:20 FileZilla_3.24.0_win64-setup.e
xe
-rw-rw-rw- 1 1005 1003 0 Jan 22 11:50 GENE TEST 123.txt
drwxrwxrwx 2 1005 1003 2 Jan 21 13:28 Gene Replica Test
-rw-rw-rw- 1 1011 1003 1419493646 Feb 8 14:07 Kali Box.zip
drwxrwxrwx 2 1006 1003 2 Jan 2 20:19 New folder
drwxrwxrwx 2 1005 1003 2 Jan 2 20:40 New folder (2)
drwxrwxrwx 2 1006 1003 2 Jan 2 20:41 New folder (3)
drwxrwxrwx 2 1005 1003 2 Jan 22 10:54 New folder (4)
drwxrwxrwx 2 1005 1003 2 Jan 22 11:01 New folder (5)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
you didn't show your external mount settings. so you have /mnt/public mounted somewhere for your nextcloud user?

Those files look read/writable. Maybe you can check you log in /media? Your external mount settings also gives an option how often to scan for changes, that you might want to configure.
 

heimos

Dabbler
Joined
Nov 9, 2016
Messages
29
QUOTE="Joshua Parker Ruehlig, post: 348559, member: 20218"]can you show 'ls -l /path/to/folders' in the jail. can I also see a screenshot of your extenal mount settings?[/QUOTE]

screenshots:
 

Attachments

  • snip2.JPG
    snip2.JPG
    20.1 KB · Views: 825
  • snip1.JPG
    snip1.JPG
    20 KB · Views: 897
Last edited:

heimos

Dabbler
Joined
Nov 9, 2016
Messages
29
you didn't show your external mount settings. so you have /mnt/public mounted somewhere for your nextcloud user?

Those files look read/writable. Maybe you can check you log in /media? Your external mount settings also gives an option how often to scan for changes, that you might want to configure.


here they are:
 

Attachments

  • snip1.JPG
    snip1.JPG
    20 KB · Views: 775
  • snip2.JPG
    snip2.JPG
    20.1 KB · Views: 768

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hmm, as far as I see you have everything set correctly. When you click on the Public folder it just redirects? Have you checked your log.
It should be available in your admin settings or in /media
You could also post a bug on the nextcloud/server github page to get some help there.
 

heimos

Dabbler
Joined
Nov 9, 2016
Messages
29
Hmm, as far as I see you have everything set correctly. When you click on the Public folder it just redirects? Have you checked your log.
It should be available in your admin settings or in /media
You could also post a bug on the nextcloud/server github page to get some help there.

That is correct, when I click on the Public folder it just redirects me. I haven't checked the log, but that will be next. I thought it would be something obvious, but it appears that I have to dig deeper. Thanks for looking into it.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
ohh, and just to be sure it's not a permission issue you might want to try 'chown -R www:www /mnt/public'
 

heimos

Dabbler
Joined
Nov 9, 2016
Messages
29

Attachments

  • output.JPG
    output.JPG
    11.6 KB · Views: 721

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
am I missing something ?
nope, the command ran as expected. Just double check if you can access the folder now. If not check your log and ask on the nextcloud github/forum.
 
Status
Not open for further replies.
Top