Page 1 of 1

Serviio Database Related Errors

PostPosted: Thu Sep 03, 2015 8:24 pm
by Nomad
Hello,

I like serviio, I used to use it on my server. MediaBrowser wasn't the greatest addon but it worked on my server.
But now I decided to go local and installed it on my single board computer with Debian.
It installed fine and was working.

But, when I removed the mounted drive and attached another, I started having problems.

Serviio still tries to use the old directory and can not remove the old indexed files from it's database

  Code:
2015-09-03 23:25:00,662 INFO  [PlaylistMaintainerWorker] Started looking for playlist changes
2015-09-03 23:25:01,165 INFO  [ContentDirectoryDefinitionParser] Parsing ContentDirectory definition
2015-09-03 23:25:04,612 INFO  [BrowsingCategoriesMessages] Loaded browsing categories message bundle for locale: en
2015-09-03 23:25:08,375 INFO  [LibraryOneTimeScanner] Interrupting library scan
2015-09-03 23:25:08,378 INFO  [LibraryDeltaScanner] Stopping the library delta scan
2015-09-03 23:25:08,385 INFO  [PlaylistMaintainerWorker] Finished looking for playlist changes
2015-09-03 23:25:11,517 WARN  [AudioService] Music track cannot be removed from the library because it cannot be found
2015-09-03 23:25:11,519 WARN  [AudioService] Music track cannot be removed from the library because it cannot be found
2015-09-03 23:25:18,450 WARN  [AudioService] Music track cannot be removed from the library because it cannot be found
2015-09-03 23:25:18,884 WARN  [AudioService] Music track cannot be removed from the library because it cannot be found





So, I stopped Serviio.
I moved library folder to library-old
Started serviio.

I see that another library folder is created.
But I still have problems.
This time my log shows other errors.

  Code:
2015-09-03 23:15:42,380 WARN  [ServiioStatusService] NoClassDefFoundError occured. Returning error code 500 to the REST layer. Message: Could not initialize class org.serviio.config.Configuration
2015-09-03 23:15:42,462 WARN  [ServiioStatusService] NoClassDefFoundError occured. Returning error code 500 to the REST layer. Message: Could not initialize class org.serviio.config.Configuration
2015-09-03 23:15:42,564 WARN  [ServiioStatusService] NoClassDefFoundError occured. Returning error code 500 to the REST layer. Message: Could not initialize class org.serviio.config.Configuration
2015-09-03 23:15:42,602 WARN  [ServiioStatusService] NoClassDefFoundError occured. Returning error code 500 to the REST layer. Message: Could not initialize class org.serviio.config.Configuration
2015-09-03 23:15:43,584 WARN  [ServiioStatusService] NoClassDefFoundError occured. Returning error code 500 to the REST layer. Message: Could not initialize class org.serviio.config.Configuration
2015-09-03 23:15:43,632 WARN  [ServiioStatusService] NoClassDefFoundError occured. Returning error code 500 to the REST layer. Message: Could not initialize class org.serviio.config.Configuration
2015-09-03 23:15:48,593 WARN  [ServiioStatusService] NoClassDefFoundError occured. Returning error code 500 to the REST layer. Message: Could not initialize class org.serviio.config.Configuration
2015-09-03 23:15:48,644 WARN  [ServiioStatusService] NoClassDefFoundError occured. Returning error code 500 to the REST layer. Message: Could not initialize class org.serviio.config.Configuration

Also when I do it like this I can't connect to serviio anymore.

So I moved the library folder back.
Now I can access Serviio via Web Gui or ServiDroid but I STILL CAN NOT delete the old, unwanted folder from my Library, can't add either. Serviio is basically useless right now.


How do I create a new database from scratch?
Serviio doesn't have such an option and uninstall + purge + reinstall is not the wisest option and whenever I delete a folder from the hard drive, Serviio will have the same problem... Won't it?

Re: Serviio Database Related Errors

PostPosted: Thu Sep 10, 2015 12:07 am
by Nomad
Aaaaaand here we have YET ANOTHER unanswered, disregarded post.
Perfect.

Re: Serviio Database Related Errors

PostPosted: Thu Sep 10, 2015 12:34 pm
by atc98092
Perhaps unanswered, but not disregarded. Sometimes the people that view a post just can't provide a suggestion.

My suggestion is to uninstall Serviio, ensure the folder has been completely removed (and delete it manually if anything is left) then reinstall.

As to your question about it happening again. I'm a little rusty with Linux. Why would you dismount a drive, unless it's a portable device? My experience (using Windows) has not shown any issues when adding or changing hard drives. I currently have 6 hard drives in my Serviio box, but I used to have more, smaller drives. I bought some larger drives, copied (moved) the media from the smaller drives, and then removed the smaller ones. I never had an issue with the library. Now, when I upgraded to Windows 10 I decided to do a clean install, so if there were lingering issues I was unaware of they disappeared after the upgrade.

MediaBrowser isn't an add-on. It's built into the core of Serviio. However, you can only access it during the trial period (15 days) unless you buy the Pro license. I think it's good enough that I paid for it. Sure, Plex may have a nicer web interface, but I'm perfectly satisfied with MediaBrowser.

Re: Serviio Database Related Errors

PostPosted: Fri Sep 11, 2015 4:10 pm
by Nomad
I claimed it as disregarded after seeing so many examples of such posts.
That's the reason. (:

Well, only that seems to be the fix right now.
But that's a pity. I also have Plex, subsonic etc. in my server and none of them had such problems while I changed the drive.

"Why did you remove it" you ask.
There can be various of reasons but in my case I removed the drive, formatted it to EXT4 and re-copied the files. But doing so the UUID of the partition has changed, thus the mount address.
And yes, this is a usb hdd connected to a single board computer.

On my web server, I use NFS shared folders to mount the drives and Serviio doesn't handle changes that well.
Never tried it windows. Windows is good for entertaintment for me. But for servers, I use linux. Debian to be more clear.


I know, MediaBrowser is not an addon. I am a paid user myself.
At one post, the admin said if HTML5 is used Serviio can't handle the skip feature thus rendering it useless. But any other html5 online video player can do so. But that's another topic.

There should be an option in Serviio to completely purge the existing database OR find & remove broken references in the database.
...

Re: Serviio Database Related Errors

PostPosted: Wed Sep 16, 2015 12:23 pm
by zip
Normally the Force refresh button will do the library purge, sort of. The error you posted should not normally happen, basically the delete event was registered but the file has already been removed from the library.

Ideally when you remove a drive for ever, you first remove it from your shared folders in the console. It should make the process more straight forward next time.