FAQ  •  Register  •  Login

[Solved] Issue with 1.5 on Ubunt Server 14.04

<<

skala63

Serviio newbie

Posts: 10

Joined: Sun Feb 01, 2015 7:42 pm

Post Sun Feb 01, 2015 7:55 pm

[Solved] Issue with 1.5 on Ubunt Server 14.04

Hi

I have spent a day getting the server set up (im not amazing with linux) and had a few issues. i had eventually got it working with the webui and everything was working fine. I added a folder and it scanned it ok.
I added the rest of my folders but it got stuck at 32 files. I tried to force a refresh but it didnt change. I checked serviio.log but there was nothing in there since I tried to run the console (on headless OS) and it came up with a few errors re x11.

I changed the log to debug and restarted the service. I checked the webui and found nothing had changed so forced a refresh. Still nothing.

Nothing has been written to the log either.

I have it installed in the home directory of the user.

anyone able to provide any assistance?

Edit: some folders are located on a separate ubuntu server and some files are located on a windows server. the "serviio user" has read access to the shares and are mouned & browsable.
Edit 2: I have resolced the log problem by checking & changing ownership. The log keeps saying the same thing and no new files have been added to the db.

2015-02-01 22:00:49,854 DEBUG [RepositoryDAOImpl] Marking Repository 138 as scanned with current timestamp
2015-02-01 22:00:49,846 DEBUG [MediaItemDAOImpl] Reading dirty MediaItems for Repository (id = 138)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Feb 02, 2015 1:03 pm

Re: Issue with 1.5 on Ubunt Server 14.04

Does it try to add a specific file and keeps getting stuck on the same file after restart> If yes, try to remove the file to see if you get further.
<<

skala63

Serviio newbie

Posts: 10

Joined: Sun Feb 01, 2015 7:42 pm

Post Mon Feb 02, 2015 7:52 pm

Re: Issue with 1.5 on Ubunt Server 14.04

From the looks of it it does the following:

Sets the share as "poller" (because it is a mounted network share?)
scans the folders (eg 2015-02-02 19:14:47,243 DEBUG [LibraryOneTimeScanner] Looking for files to share in folder: /mnt/sab/TV/Family Guy) but doesnt do anything
Then it says 2015-02-02 19:14:47,924 DEBUG [RepositoryDAOImpl] Marking Repository 140 as scanned with current timestamp
scans the rest of the folders
Gets to a folder it previously did add files from and says it is checking if a file exists in the DB or not and adds them if necessary. if it says it is checking, it looks like those files will get added to the DB. Lots of files havent been checked.
Then starts checking all the playlists
Then checks the online repo

Edit: on windows it seems to add them.
<<

skala63

Serviio newbie

Posts: 10

Joined: Sun Feb 01, 2015 7:42 pm

Post Mon Feb 02, 2015 8:20 pm

Re: Issue with 1.5 on Ubunt Server 14.04

it just looks like it skips a load of files...

eg it will find a couple (out of 20 odd) in one folder, then say its checking the next folder. Says it is adding said videos from 1st folder then starts adding things from random folders.

Ill give you an example. I have ripped my BSG box set separated into different subfolders per season
2015-02-02 20:23:47,699 DEBUG [LibraryOneTimeScanner] Looking for files to share in folder: /mnt/media/TV Archive/BSG
2015-02-02 20:23:48,359 DEBUG [LibraryOneTimeScanner] Looking for files to share in folder: /mnt/media/TV Archive/BSG/Season 1
2015-02-02 20:23:48,639 DEBUG [LibraryOneTimeScanner] Looking for files to share in folder: /mnt/media/TV Archive/BSG/Season 2
2015-02-02 20:23:51,866 DEBUG [LibraryOneTimeScanner] Looking for files to share in folder: /mnt/media/TV Archive/BSG/Season 3
2015-02-02 20:23:52,099 DEBUG [LibraryOneTimeScanner] Looking for files to share in folder: /mnt/media/TV Archive/BSG/Season 4

Then the first time you see a file from those folders is
2015-02-02 20:23:58,416 DEBUG [MediaFileIndexer] Found file 'Battlestar Galactica (2003) - 2x01 - Scattered.avi', checking if it's already in the Library
2015-02-02 20:23:58,416 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item /mnt/media/TV Archive/BSG/Season 2/Battlestar Galactica (2003) - 2x01 - Scattered.avi

So it has skipped a whole season. But nothing in the log says why. It also skipped Season 4 (but added all of 2&3) and went onto the next show. it then adds a few episodes from that show, and then starts checking online stuff
<<

skala63

Serviio newbie

Posts: 10

Joined: Sun Feb 01, 2015 7:42 pm

Post Mon Feb 02, 2015 9:37 pm

Re: Issue with 1.5 on Ubunt Server 14.04

OK, so it now appears to be working.

I changed the permissions on all files in that repo and they started being picked up.

HOWEVER, i dont think it was a permissions issue. I think that the actual act of changing something on each file (in this case permissions) kicked something off. I checked permissions previously to make sure they were all the same all round and they were. So there should be no reason why it would pick up some files and not others.

I think it is more likely that making the permission change on the files caused Serviio to check each file.

However, on the windows setup everything was working as expected prior to this change,
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Feb 02, 2015 10:30 pm

Re: Issue with 1.5 on Ubunt Server 14.04

It was most likely the access rights change. Change to those file would not kick off anything new, it's just that previously these files were invisible to the process so they were not added.
<<

skala63

Serviio newbie

Posts: 10

Joined: Sun Feb 01, 2015 7:42 pm

Post Mon Feb 02, 2015 11:29 pm

Re: [Solved] Issue with 1.5 on Ubunt Server 14.04

the rights were the same i just re-applied them

Now the repos are added as "native" whereas previous to the change it was "poller". I thought i read that it should be "poller" if tey are a remote file system...unless it works differently in linux
<<

skala63

Serviio newbie

Posts: 10

Joined: Sun Feb 01, 2015 7:42 pm

Post Tue Feb 03, 2015 8:35 pm

Re: [Solved] Issue with 1.5 on Ubunt Server 14.04

is it not picking up new material because it is set to "native" when the "local folder" is a mounted network share?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Feb 04, 2015 5:28 pm

Re: [Solved] Issue with 1.5 on Ubunt Server 14.04

Depends on the OS and File system. EG Windows can detect native changes on (most) remote drives. But I thought you got it working in the end?
<<

skala63

Serviio newbie

Posts: 10

Joined: Sun Feb 01, 2015 7:42 pm

Post Wed Feb 04, 2015 9:03 pm

Re: [Solved] Issue with 1.5 on Ubunt Server 14.04

sort of....it seems to be temperamental....

- After i had it "working" and it finished adding all the files, i restarted the service and it added some more - obiously missed the first time (on windows share)
- Then I added some more files but they didnt get picked up for 16 hours, so i did a force refresh and it picked them up instantly (on ubuntu share)
- Then this morning I added some more files, but these were added ok. (on ubuntu share)

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 32 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.