Use USB SSD - .ocdata not found

Ask all your questions regarding OC 7.x Please read the Support Forum Rules
Forum rules
ownCloud 7.x will be end of life soon. See maintenance and release schedule for more details.

Time to upgrade!

Before you post; make sure you are using at least PHP Version 5.3.x - Also read Support Forum - Read this before posting
JamesGeddes
Newbie
Posts: 4
Joined: Mon Apr 04, 2016 7:44 pm
Webserver: Apache
Database: MySQL
OS: Linux

Use USB SSD - .ocdata not found

Postby JamesGeddes » Mon Apr 04, 2016 9:16 pm

Hi everyone,

I am trying to set up a Raspberry Pi as a file server with OwnCloud. Clearly, 8gb is not a lot of capacity these days, so I've got a lovely, big SSD to store all of my junk on. Unfortunately, telling OwnCloud to use it appears to be a moderately complex task.

Research
Thus far I have been working through the following;
  1. Owncloud how to set/change data directory by diegoarango91
  2. file ".ocdata" missing from diegoarango91
  3. How to set/change data directory by RandolphCarter

Even though they are great, I still haven't had much luck fixing this issue so far!

Expected behaviour
OwnCloud should start saving data to my USB SSD

Actual behaviour
When I set the datadirectory in config.php from the default

Code: Select all

'datadirectory' => '/var/lib/owncloud/data/',

to the directory that I actually want it to use (the directory where my USB SSD is mounted)

Code: Select all

 'datadirectory' => '/mnt/usb/ocdata/data',


the following error is returned, when I go to my OwnCloud home

Screen Dump

The .ocdata file is actually in the root of the new directory, so I have no idea why OwnCloud is having difficulty seeing it.

Additionally, when I try to change ownership using

Code: Select all

chown -R www-data:www-data /mnt/usb/ocdata

I get

Code: Select all

Operation not permitted




Server configuration
Operating system: Raspbian Jessie
Web server: Apache2
Database: MySQL
PHP version: 5.6.19
ownCloud version (see ownCloud admin page): 7.0.4.2
Updated from an older ownCloud or fresh install: fresh install
ownCloud log (data/owncloud.log):

Special configuration (external storage, external authentication, reverse proxy, server-side-encryption):n): none - trying to configure USB storage though!

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Use USB SSD - .ocdata not found

Postby RealRancor » Mon Apr 04, 2016 9:31 pm

Hi,

that might be caused by wrong permissions. Have a look at viewtopic.php?f=29&t=34852#p112151 for some pointers.

You should also note that oC 7.0.4 is outdated (7.0.13 is current) and will reach end-of-life soon (see red box above).
*gone*

JamesGeddes
Newbie
Posts: 4
Joined: Mon Apr 04, 2016 7:44 pm
Webserver: Apache
Database: MySQL
OS: Linux

Re: Use USB SSD - .ocdata not found

Postby JamesGeddes » Mon Apr 04, 2016 9:50 pm

Well that raises two questions;
  1. How do I upgrade to the latest version of OwnCloud?
    I used the following command to install OwnCloud

    Code: Select all

    apt-get install owncloud
  2. How do I mount the USB drive so that it belongs to www-data and has the correct permissions?
    I have looked at the link you provided, as well as the links it provides, but cannot work it out. I will happily admit that I'm an OCn00b!

Clearly, I'd like to get it working first, then I'll worry about upgrading.

Thanks!
Last edited by JamesGeddes on Mon Apr 04, 2016 9:55 pm, edited 1 time in total.

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Use USB SSD - .ocdata not found

Postby RealRancor » Mon Apr 04, 2016 9:53 pm

Hi,

install instructions are available here:

https://doc.owncloud.org/server/9.0/adm ... tallation/

For the linux basics you should ask at a community dedicated to your used linux distribution.
*gone*

JamesGeddes
Newbie
Posts: 4
Joined: Mon Apr 04, 2016 7:44 pm
Webserver: Apache
Database: MySQL
OS: Linux

Re: Use USB SSD - .ocdata not found

Postby JamesGeddes » Mon Apr 04, 2016 9:56 pm

Why is this so difficult on OwnCloud? It's super simple with DropBox...

Also, if I go to the Raspberry Pi boards, they will probably tell me to go ask the OwnCloud boards!
Last edited by JamesGeddes on Mon Apr 04, 2016 9:58 pm, edited 1 time in total.

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Use USB SSD - .ocdata not found

Postby RealRancor » Mon Apr 04, 2016 9:58 pm

Because Dropbox is doing the work for you. And ownCloud is self-hosted and at least requires some linux basics.
*gone*

JamesGeddes
Newbie
Posts: 4
Joined: Mon Apr 04, 2016 7:44 pm
Webserver: Apache
Database: MySQL
OS: Linux

Re: Use USB SSD - .ocdata not found

Postby JamesGeddes » Tue Apr 05, 2016 4:44 pm

I solved the problem - by using SyncThing! Much easier to set up and much faster, peer to peer synchronisation.


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Community Edition 7.x”

Who is online

Users browsing this forum: No registered users and 3 guests