-
Notifications
You must be signed in to change notification settings - Fork 197
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
Comments
Steps to reproduceFresh installation with latest music app from master branch. Expected behaviourI should be able to access my music files. Actual behaviourI can't access my music files. Server configurationOperating system: Web server: Database: PHP version: ownCloud version: (see ownCloud admin page) Updated from an older ownCloud or fresh install: List of activated apps: 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 |
If I checkout to the latest tag v0.3.4 the error still persists. But It works with version tagged v0.3.3. |
I have tracked down the error to: commit 49b166d
if I checkout to this commit and onwards it stops working. |
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. |
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.
The text was updated successfully, but these errors were encountered: