Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading music app landing page #357

Closed
oviney opened this issue Mar 24, 2015 · 4 comments
Closed

Error loading music app landing page #357

oviney opened this issue Mar 24, 2015 · 4 comments

Comments

@oviney
Copy link

oviney commented Mar 24, 2015

After clean install of the latest version, I get the following error when navigating to the Music app landing page:

{"reqId":"c8c1c5b30edb0f789e259dc242dff65e","remoteAddr":"192.168.2.81","app":"index","message":"Exception: {"Message":"","Code":0,"Trace":"#0 \/var\/www\/owncloud\/apps\/music\/controller\/apicontroller.php(107): OCA\Music\Db\Track->toCollection(Object(OC\URLGenerator), Object(OC\Files\Node\Folder))\n#1 [internal function]: OCA\Music\Controller\ApiController->collection()\n#2 \/var\/www\/owncloud\/lib\/private\/appframework\/http\/dispatcher.php(158): call_user_func_array(Array, Array)\n#3 \/var\/www\/owncloud\/lib\/private\/appframework\/http\/dispatcher.php(86): OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Music\Controller\ApiController), 'collection')\n#4 \/var\/www\/owncloud\/lib\/private\/appframework\/app.php(97): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Music\Controller\ApiController), 'collection')\n#5 \/var\/www\/owncloud\/lib\/private\/appframework\/routing\/routeactionhandler.php(44): OC\AppFramework\App::main('ApiController', 'collection', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)\n#6 [internal function]: OC\AppFramework\routing\RouteActionHandler->__invoke(Array)\n#7 \/var\/www\/owncloud\/lib\/private\/route\/router.php(250): call_user_func(Object(OC\AppFramework\routing\RouteActionHandler), Array)\n#8 \/var\/www\/owncloud\/lib\/base.php(767): OC\Route\Router->match('\/apps\/music\/api...')\n#9 \/var\/www\/owncloud\/index.php(36): OC::handleRequest()\n#10 {main}","File":"\/var\/www\/owncloud\/apps\/music\/db\/track.php","Line":97}","level":4,"time":"2015-03-24T23:42:29+00:00"}

@ghost
Copy link

ghost commented Mar 25, 2015

Hi @oviney,

It looks like there is some information missing from your ticket that will be needed in order to diagnose and fix the problem at hand. Please take a look at the Contribution Guidelines, which will tell you exactly what your ticket has to contain in order to be processable.

I'm marking this one now as needing some more information. Please understand that if you do not provide that information within the next two weeks (until 2015-04-08 11:56) I'll close this ticket so it doesn't clutter the bug tracker.

Best regards,
~ Your friendly GitIssueBot

PS: I'm just an automated script, not a human being.

@ghost ghost added the Needs info label Mar 25, 2015
@LukeOwlclaw
Copy link

I am having exactly the same problem. Here are my server details.
Note worthy: At first it worked (even though it was really slow -> #359) now this error. It originates from https://[myOcServer]/index.php/apps/music/api/collection which returns error code 500:

Technical details

    Remote Address: MYIP
    Request ID: 2e180a06e9e9d547fc7a9ff1614d49c3
    Code: 0
    Message:
    File: /var/www/owncloud/apps/music/db/track.php
    Line: 97


Trace

#0 /var/www/owncloud/apps/music/controller/apicontroller.php(107): OCA\Music\Db\Track->toCollection(Object(OC\URLGenerator), Object(OC\Files\Node\Folder))
#1 [internal function]: OCA\Music\Controller\ApiController->collection()
#2 /var/www/owncloud/lib/private/appframework/http/dispatcher.php(158): call_user_func_array(Array, Array)
#3 /var/www/owncloud/lib/private/appframework/http/dispatcher.php(86): OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Music\Controller\ApiController), 'collection')
#4 /var/www/owncloud/lib/private/appframework/app.php(97): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Music\Controller\ApiController), 'collection')
#5 /var/www/owncloud/lib/private/appframework/routing/routeactionhandler.php(44): OC\AppFramework\App::main('ApiController', 'collection', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
#6 [internal function]: OC\AppFramework\routing\RouteActionHandler->__invoke(Array)
#7 /var/www/owncloud/lib/private/route/router.php(250): call_user_func(Object(OC\AppFramework\routing\RouteActionHandler), Array)
#8 /var/www/owncloud/lib/base.php(767): OC\Route\Router->match('/apps/music/api...')
#9 /var/www/owncloud/index.php(36): OC::handleRequest()
#10 {main}

Server configuration

Operating system: Ubuntu 14.04

Web server: Apache

Database: MySQL

PHP version: 5.x

ownCloud version: 8.0.2

Updated from an older ownCloud or fresh install: Updated from 7.

List of activated apps: Default apps + Calendar, Contacts, Deleted Files + Music 0.3.5

Are you using external storage, if yes which one: Internal HDD

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Firefox 36.0.1 and Chromium 36.0.1950.0

Operating system: Win7, 32bit

@tibirou
Copy link

tibirou commented Jul 1, 2015

You just need to rebuild the music DB . From owncloud root dir run : sudo -u www-data php occ music:reset-database USERNAME . Then to rebuild the DB run : sudo -u www-data php occ music:scan USERNAME .Note : update www-data with the correct user under your web server is running

@paulijar
Copy link
Collaborator

This has almost certainly happened because the music database has contained a file ID which is no longer available to the user. This could happen at least in the scenario described in #567. Two years ago when this was reported, there might have been also other use cases where such thing could have happened.

After #564, the obsolete tracks no longer prevent loading the collection.json. Hence, the issue reported here should no longer happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants