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

Can't get Music App to display #167

Closed
tgeorge opened this issue Mar 19, 2014 · 8 comments
Closed

Can't get Music App to display #167

tgeorge opened this issue Mar 19, 2014 · 8 comments

Comments

@tgeorge
Copy link

tgeorge commented Mar 19, 2014

Hello guys,

I recently put up a instance of Owncloud at home and I got it work properly using nginx, , PHP, php-fpm and MySQL. All the other Apps seem working fine but after installing and activating Music; I am presented with a blank white screen with the header and sidebar missing once I click on Music. I thought I might of installed it incorrectly but I found this old ticket: #150 and followed it. Let me know if there's a logs I should look at or any suggestions to debug it would be appreciated. Thanks!

@MorrisJobke
Copy link
Contributor

@tgeorge Can you have a look at the JavaScript console and check it for any errors? (Firefox: https://developer.mozilla.org/en-US/docs/Tools/Web_Console Chrome: https://developers.google.com/chrome-developer-tools/ ) Maybe this gives any hint what goes wrong.

What version of ownCloud do you use (stable5, stable6, latest git master) and what version of the music app (app store release or git master)

@tgeorge
Copy link
Author

tgeorge commented Mar 20, 2014

@MorrisJobke I checked Firebug and Web Console on Firefox and on Web Console I got

The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. music

But Firebug picked up that and this

"NetworkError: 500 Internal Server Error - https://[myserver]/index.php/apps/music/"

I guess I should be looking more into nginx logs then....hmm

Also I am using
ownCloud 6.0.2 (stable)
Music App git master

@tgeorge
Copy link
Author

tgeorge commented Mar 20, 2014

Okay I got this from my error.log for nginx

2014/03/19 20:46:05 [error] 5158#0: *6145 FastCGI sent in stderr: "PHP message: PHP Fatal error:  
Allowed memory size of 33554432 bytes exhausted (tried to allocate 128 bytes) 
in /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Statement.php on line 216" 
while reading response header from upstream, client: [my client ip], server: [server dns], 
request: "GET /index.php/apps/music/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php5-fpm.sock:", 
host: "[server ip]", referrer: "https://[server ip]/index.php/apps/files"

I googled it and I going to try Prem's answer from this stackoverflow post
http://stackoverflow.com/questions/561066/php-fatal-error-allowed-memory-size-of-134217728-bytes-exhausted-codeigniter

@MorrisJobke
Copy link
Contributor

@tgeorge Thanks. Seems that the PHP part consumes too many memory. The code line is just the code part where the memory was overfull - so not relevant.

How many files do you have? What request got canceled? Can you try to checkout the latest git master? There are some performance/memory improvements included. Otherwise you can also wait until mid next week - I plan to release a next version then.

Thanks in advance

@MorrisJobke MorrisJobke added this to the First release candidate milestone Mar 20, 2014
@MorrisJobke
Copy link
Contributor

For further debug log you can also have a look at https://github.com/owncloud/music/wiki/Debugging-and-resetting-the-database#enable-debug-log-output

@MorrisJobke
Copy link
Contributor

And look at the owncloud.log inside your data folder. There are owncloud specific logs are written to.

@tgeorge
Copy link
Author

tgeorge commented Mar 20, 2014

@MorrisJobke
Okay I tried latest git master and it didn't work initially but then after reading your question about how many files I have removed my music share from my account.
And long and behold it started working; then I uploaded a random mp3 and played it. My music share has a significant amount of files but is the music app parsing all of them at once?
EDIT: I just saw #90 which seems to related to me..

I will try the debug log against the db tomorrow and sort through owncloud.log.

@MorrisJobke
Copy link
Contributor

@tgeorge Looks like the vast amount of files is killing the scanner. The pratial scanning of files is a planned feature and maybe should be done. I close this and the issue will be addressed in #137

Thanks for your report.

@MorrisJobke MorrisJobke modified the milestone: First release candidate Mar 20, 2014
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

2 participants