Hello /r/linuxadmin. I'm not entirely sure where to ask about this issue, especially considering how barren /r/owncloud is. I hope this isn't too outside the pervue of this subreddit!
I'm setting up an Owncloud 5.0.14a instance on Debian 7, on a server with a large amount of storage space. On that space is a large (100+GB) music library. I want to set up the Owncloud so that every user (half a dozen to a dozen) has access to this one large, shared, music library, and have it available in their player. The music library is under "/mnt/data/share/Music", and owncloud data is stored under "/mnt/data/owncloud"; "/mnt/data" is a ZFS filesystem, but that's probably not relevant here.
The most obvious solution, from my current knowledge of Owncloud, is to "import" the files from "share/Music" to a single user's account, via a symlink from within the "owncloud" directory, and then share that folder to all the other users. I chose to use my "admin" user as the one to hold the symlinked collection and export it. This appears to work great! My two test users both see all the files in their "Shared" directories and can download them fine.
The problem comes when I try to import them into the "Music" library. "admin" can do this "fine" (it imported about 3000 songs out of just under 100000), but I'm not sure if that was due to interruption or failure of Owncloud. My test users, though, never import anything. The "import" progress bar fills, then restarts multiple times, and hasn't completed after almost 24 hours.. I don't see any entries being created in the "oc_media_songs" database in my MySQL DB either.
I'm at a bit of a loss here; if OC6 supports this better, I'll try again, but I couldn't even get it this far (no support for scanning shared folders). Is there any way to get this plan to work, in either version? I'm more partial to OC6 due to the nicer media library (tiles and such), but I'll stick with OC5 if it works.
Edit: I've been able to notice and isolate a pattern:
While the user is scanning the library, my system is under fairly heavy load from the apache2 and mysqld processes. Makes sense, since I'm scanning the media via a PHP webUI and placing it into mysql. However, right before the import fails and restarts, both processes drop. However I'm not seeing anything in my server logs to indicate a crash or problem of any kind. This shows at least that it's scanning normally, and then it just stops. I also have tons of free RAM during this. Perhaps weirdness with MySQL?
Edit2: I've truncated all the media tables and am trying another import.
Edit3: Nope, no such luck. Still stopped at about 75-80% without actually writing any data to the MySQL DB. I'm going to sleep now, but will try some other ideas tomorrow (like splitting the library up into smaller pieces).
[link][12 comments]