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

GET (...)/owncloud/index.php/apps/music/api/collection 500 (Internal Server Error) #306

Closed
GerardGarcia opened this issue Nov 9, 2014 · 4 comments

Comments

@GerardGarcia
Copy link

Music app just stopped working. Chrome developer tools says:

GET (...)/owncloud/index.php/apps/music/api/collection 500 (Internal Server Error)

If I access directly to the URL /owncloud/index.php/apps/music/api/collection it seems to work (it just shows one file but I don't know if this is normal)

Using owncloud 7.0.2 and latest music from git repo.

@ghost ghost added the Needs info label Nov 10, 2014
@GerardGarcia
Copy link
Author

Steps to reproduce

Fresh installation with latest music app from master branch.
I don't know if it is relevant but I symlink my music folder to the owncloud music folder.
Update library.
Play some music.
Come back later, music app frozen at the loading page. Chrome developer tools show that the error comes from GET (...)/owncloud/index.php/apps/music/api/collection 500 (Internal Server Error).

Expected behaviour

I should be able to access my music files.

Actual behaviour

I can't access my music files.

Server configuration

Operating system:
Linux 3.2.0-60-generic Ubuntu 12.04 LTS

Web server:
Apache/2.2.22 (Ubuntu)

Database:
SQLite 7.0.2.1

PHP version:
PHP 5.3.10-1ubuntu3.15 with Suhosin-Patch (cli) (built: Oct 29 2014 12:19:04)

ownCloud version: (see ownCloud admin page)
ownCloud 7.0.2 (stable)

Updated from an older ownCloud or fresh install:
Fresh install

List of activated apps:
Files
Activity
Documents
Pictures
Contacts
Music
Calendar

The content of config/config.php:

'', 'passwordsalt' => '', 'trusted_domains' => array ( 0 => '', ), 'datadirectory' => '', 'dbtype' => 'sqlite3', 'version' => '7.0.2.1', 'installed' => true, ); ### Client configuration **Browser:** Google Chrome 38.0.2125.111 **Operating system:** Mac OSX 10.9.5 ### Logs #### Web server error log Can't access to webserver log. No permissions (shared webserver) #### ownCloud log (data/owncloud.log) {"app":"PHP","message":"touch(): Unable to create file /owncloud\/data\/owncloud.log because No such file or directory at /owncloud\/lib\/private\/log\/owncloud.php#49","level":3,"time":"2014-11-10T09:43:26+00:00"} {"app":"core","message":"Invalid OCS content returned for app music","level":4,"time":"2014-11-10T09:47:52+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#60","level":3,"time":"2014-11-10T09:47:56+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#64","level":3,"time":"2014-11-10T09:47:56+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#68","level":3,"time":"2014-11-10T09:47:56+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#60","level":3,"time":"2014-11-10T09:48:06+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#64","level":3,"time":"2014-11-10T09:48:06+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#68","level":3,"time":"2014-11-10T09:48:06+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#60","level":3,"time":"2014-11-10T09:48:37+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#64","level":3,"time":"2014-11-10T09:48:37+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#68","level":3,"time":"2014-11-10T09:48:37+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#60","level":3,"time":"2014-11-10T09:49:20+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#64","level":3,"time":"2014-11-10T09:49:20+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#68","level":3,"time":"2014-11-10T09:49:20+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#60","level":3,"time":"2014-11-10T09:49:25+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#64","level":3,"time":"2014-11-10T09:49:25+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#68","level":3,"time":"2014-11-10T09:49:25+00:00"} {"app":"search_lucene","message":"Cross-reference streams are not supported yet. Trace:\n#0 /owncloud\/apps\/search_lucene\/3rdparty\/Zend\/Pdf\/Parser.php(460): Zend_Pdf_Parser->_loadXRefTable('1852997')\n#1 /owncloud\/apps\/search_lucene\/3rdparty\/Zend\/Pdf.php(318): Zend_Pdf_Parser->__construct('%PDF-1.5?%?????...', Object(Zend_Pdf_ElementFactory_Proxy), false)\n#2 /owncloud\/apps\/search_lucene\/3rdparty\/Zend\/Pdf.php(255): Zend_Pdf->__construct('%PDF-1.5?%?????...', NULL)\n#3 /owncloud\/apps\/search_lucene\/document\/Pdf.php(21): Zend_Pdf::parse('%PDF-1.5?%?????...')\n#4 /owncloud\/apps\/search_lucene\/document\/Pdf.php(69): OCA\Search_Lucene\Document\Pdf->__construct('%PDF-1.5?%?????...', false, false)\n#5 /owncloud\/apps\/search_lucene\/lib\/indexer.php(94): OCA\Search_Lucene\Document\Pdf::loadPdf('%PDF-1.5?%?????...')\n#6 /owncloud\/apps\/search_lucene\/ajax\/lucene.php(44): OCA\Search_Lucene\Indexer::indexFile('\/ownCloudUserMa...', '')\n#7 /owncloud\/apps\/search_lucene\/ajax\/lucene.php(76): index()\n#8 /owncloud\/lib\/base.php(802): require_once('\/home\/disk2\/xer...')\n#9 [internal function]: OC::loadAppScriptFile(Array)\n#10 /owncloud\/lib\/private\/route\/router.php(227): call_user_func(Array, Array)\n#11 /owncloud\/lib\/base.php(702): OC\Route\Router->match('\/apps\/search_lu...')\n#12 /owncloud\/index.php(28): OC::handleRequest()\n#13 {main}","level":3,"time":"2014-11-10T10:04:35+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#60","level":3,"time":"2014-11-10T10:04:55+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#64","level":3,"time":"2014-11-10T10:04:55+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#68","level":3,"time":"2014-11-10T10:04:55+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#60","level":3,"time":"2014-11-10T18:33:08+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#64","level":3,"time":"2014-11-10T18:33:08+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#68","level":3,"time":"2014-11-10T18:33:08+00:00"} {"app":"index","message":"OCP\Files\NotFoundException: \/\/files\/music\/torrent\/(2014) Abandon Ship - Knife Party\/04 - EDM Trend Machine.mp3","level":4,"time":"2014-11-10T18:33:13+00:00"} {"app":"index","message":"OCP\Files\NotFoundException: \/\/files\/music\/torrent\/(2014) Abandon Ship - Knife Party\/04 - EDM Trend Machine.mp3","level":4,"time":"2014-11-10T18:33:13+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#60","level":3,"time":"2014-11-11T06:48:07+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#64","level":3,"time":"2014-11-11T06:48:07+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#68","level":3,"time":"2014-11-11T06:48:07+00:00"} {"app":"index","message":"OCP\Files\NotFoundException: \/\/files\/music\/torrent\/(2014) Abandon Ship - Knife Party\/04 - EDM Trend Machine.mp3","level":4,"time":"2014-11-11T06:48:12+00:00"} {"app":"index","message":"OCP\Files\NotFoundException: \/\/files\/music\/torrent\/(2014) Abandon Ship - Knife Party\/04 - EDM Trend Machine.mp3","level":4,"time":"2014-11-11T06:48:13+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/apps\/music\/appframework\/app.php#57","level":3,"time":"2014-11-11T06:49:55+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/apps\/music\/appframework\/app.php#61","level":3,"time":"2014-11-11T06:49:55+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/apps\/music\/appframework\/app.php#61","level":3,"time":"2014-11-11T06:49:55+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/apps\/music\/appframework\/app.php#65","level":3,"time":"2014-11-11T06:49:55+00:00"} {"app":"PHP","message":"file_get_contents(/owncloud\/data\/\/files\/music\/torrent\/(2014) Abandon Ship - Knife Party\/Knife.Party-Abandon.Ship.Mp3.320kbps-2014.jpg): failed to open stream: No such file or directory at /owncloud\/lib\/private\/files\/storage\/local.php#156","level":3,"time":"2014-11-11T06:50:02+00:00"} {"app":"PHP","message":"Call to a member function getContent() on a non-object at /owncloud\/apps\/music\/http\/fileresponse.php#63","level":3,"time":"2014-11-11T06:50:02+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#60","level":3,"time":"2014-11-11T06:51:40+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#64","level":3,"time":"2014-11-11T06:51:40+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#68","level":3,"time":"2014-11-11T06:51:40+00:00"} {"app":"index","message":"OCP\Files\NotFoundException: \/\/files\/music\/torrent\/(2014) Abandon Ship - Knife Party\/04 - EDM Trend Machine.mp3","level":4,"time":"2014-11-11T06:51:43+00:00"} {"app":"index","message":"OCP\Files\NotFoundException: \/\/files\/music\/torrent\/(2014) Abandon Ship - Knife Party\/04 - EDM Trend Machine.mp3","level":4,"time":"2014-11-11T06:51:44+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#60","level":3,"time":"2014-11-11T06:51:50+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#64","level":3,"time":"2014-11-11T06:51:50+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/lib\/private\/appframework\/app.php#68","level":3,"time":"2014-11-11T06:51:50+00:00"} {"app":"index","message":"OCP\Files\NotFoundException: \/\/files\/music\/torrent\/(2014) Abandon Ship - Knife Party\/04 - EDM Trend Machine.mp3","level":4,"time":"2014-11-11T06:51:52+00:00"} {"app":"index","message":"OCP\Files\NotFoundException: \/\/files\/music\/torrent\/(2014) Abandon Ship - Knife Party\/04 - EDM Trend Machine.mp3","level":4,"time":"2014-11-11T06:51:53+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/apps\/music\/appframework\/app.php#57","level":3,"time":"2014-11-11T06:52:35+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/apps\/music\/appframework\/app.php#61","level":3,"time":"2014-11-11T06:52:35+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/apps\/music\/appframework\/app.php#61","level":3,"time":"2014-11-11T06:52:35+00:00"} {"app":"PHP","message":"Cannot modify header information - headers already sent at /owncloud\/apps\/music\/appframework\/app.php#65","level":3,"time":"2014-11-11T06:52:35+00:00"} {"app":"PHP","message":"file_get_contents(/owncloud\/data\/\/files\/music\/torrent\/(2014) Abandon Ship - Knife Party\/Knife.Party-Abandon.Ship.Mp3.320kbps-2014.jpg): failed to open stream: No such file or directory at /owncloud\/lib\/private\/files\/storage\/local.php#156","level":3,"time":"2014-11-11T06:52:42+00:00"} {"app":"PHP","message":"Call to a member function getContent() on a non-object at /owncloud\/apps\/music\/http\/fileresponse.php#63","level":3,"time":"2014-11-11T06:52:42+00:00"} {"app":"search_lucene","message":"PDF file syntax error. Offset - 0x74. Wrong W dictionary entry. Only type field of stream entries has default value and could be zero length. Trace:\n#0 /owncloud\/apps\/search_lucene\/3rdparty\/Zend\/Pdf\/Parser.php(460): Zend_Pdf_Parser->_loadXRefTable('116')\n#1 /owncloud\/apps\/search_lucene\/3rdparty\/Zend\/Pdf.php(318): Zend_Pdf_Parser->__construct('%PDF-1.6?%?????...', Object(Zend_Pdf_ElementFactory_Proxy), false)\n#2 /owncloud\/apps\/search_lucene\/3rdparty\/Zend\/Pdf.php(255): Zend_Pdf->__construct('%PDF-1.6?%?????...', NULL)\n#3 /owncloud\/apps\/search_lucene\/document\/Pdf.php(21): Zend_Pdf::parse('%PDF-1.6?%?????...')\n#4 /owncloud\/apps\/search_lucene\/document\/Pdf.php(69): OCA\Search_Lucene\Document\Pdf->__construct('%PDF-1.6?%?????...', false, false)\n#5 /owncloud\/apps\/search_lucene\/lib\/indexer.php(94): OCA\Search_Lucene\Document\Pdf::loadPdf('%PDF-1.6?%?????...')\n#6 /owncloud\/apps\/search_lucene\/ajax\/lucene.php(44): OCA\Search_Lucene\Indexer::indexFile('\/music\/torrent\/...', '')\n#7 /owncloud\/apps\/search_lucene\/ajax\/lucene.php(76): index()\n#8 /owncloud\/lib\/base.php(802): require_once('\/home\/disk2\/xer...')\n#9 [internal function]: OC::loadAppScriptFile(Array)\n#10 /owncloud\/lib\/private\/route\/router.php(227): call_user_func(Array, Array)\n#11 /owncloud\/lib\/base.php(702): OC\Route\Router->match('\/apps\/search_lu...')\n#12 /owncloud\/index.php(28): OC::handleRequest()\n#13 {main}","level":3,"time":"2014-11-11T06:53:11+00:00"} #### Browser log GET http://owncloud/apps/music/js/vendor/underscore/underscore-min.map 404 (Not Found) /:101 GET http://owncloud/index.php/apps/music/api/collection 500 (Internal Server Error) angular.js:8521 GET http://owncloud/index.php/apps/music/api/collection 500 (Internal Server Error) angular.js:8521

@GerardGarcia
Copy link
Author

If I checkout to the latest tag v0.3.4 the error still persists. But It works with version tagged v0.3.3.

@GerardGarcia
Copy link
Author

I have tracked down the error to:

commit 49b166d
Merge: 15afbea db3c04e
Author: Morris Jobke hey@morrisjobke.de
Date: Wed Aug 27 19:58:20 2014 +0200

Merge pull request #278 from owncloud/pr-aurora

Integrate with Aurora.js framework

if I checkout to this commit and onwards it stops working.

@paulijar
Copy link
Collaborator

paulijar commented Aug 2, 2017

I believe the significant part of the commit 49b166d mentioned above are the changes to method Track.toCollection. After those changes, loading the collection.json fails with 500 if the collection contains even single dangling track reference to a file which is no longer available for the user. Such references could occur e.g. in scenario described in #567. The toCollection method was changed again as part of #564 and now the dangling references no longer break the loading of collection.json. Hence, this issue should be fixed for the latest release and can be closed.

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

No branches or pull requests

3 participants