-
Notifications
You must be signed in to change notification settings - Fork 187
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
Browse Files: Failed to load file browser #506
Comments
Hello xMinerv, Thanks for your report! Unfortunately, I cannot reproduce the problem on my machine, but I'm using python 3 to run CM, which causes less problems with encodings in general. So as a quick remedy, you could use python3 instead of python2 to run CM, until we found the underlying issue. It seems that you have a folder in your basedir with a name that starts with an accented letter ( @tilboerner, IIRC the |
The default of '' in httphandler.py was a bytestring in python2, leading to encoding trouble down the line. Since cherrypy decodes request parameter values, moving the default to the client gets rid of this source of bugs; importing 'unicode_literals' in httphandler was avoided because of suboptimal test coverage.
@xMinerv: I found a bug that should have caused the error you describe every time the file browser was loaded when CM was running in Python 2. Did @devsnd: strings in the config are always unicode strings. Details in the commit above. Let's make a release once this is fixed. I made a branch |
No, it sometimes worked. I would just come back a few days later, and it On Sat, Jan 10, 2015 at 11:19 AM, Til Boerner [email protected]
|
Ok, I can't reproduce this in a live server, either. @devsnd, you're also right: the only way I can trigger this exception is if I manually force @xMinerv, could you please do two things to help me narrow this down?
Thanks a lot! |
I have sent the information requested in step 1. |
@tilboerner Maybe we should make sure that |
Nah, everything looks fine.
cherrypy seems to provide GET/POST data values as unicode strings; but I haven't dug into their code yet to see what exactly happens there. |
I just had a similar problem and it turned out to be the fault of supervisord, so in case you are using supervisor to start cherrymusic, you may want to force the environment encoding of supervisor: in
after that you need to restart the supervisord service. I hope it helps. |
@devsnd, could you post steps to reproduce? (I.e., is it enough to set a non-unicode locale in the server environment? After that, when does the error occur?) I'd like to snoop around some more and find out what's going on. |
No, the locale on my server is set to The server is running Ubuntu 14.04 LTS, so maybe you can reproduce it in a VM. I'll can senf you the config files of my current setup if you want. Furthermore: maybe we could write some tests that run within a supervisor'ed environment to find out... |
Thanks again, one more question. i got it installed and i have the dependency installed. How can i check to ensure its using opus when available? The song is playing but i dont seem to see an area that will show me with what it decided to transcode the music to. |
right New i only implemented opus decoding, so hat Browsers hat do not support opus are able to play it as another Format (ogg or mp3). to support opus as the target Format i'll have to see if the playback Backend (jplayer) supports it. if they do, it's easy to add support, if not this might be a little trickier. On March 2, 2015 5:21:17 AM CET, lordkitsuna [email protected] wrote:
|
@lordkitsuna (and @devsnd), I think you are posting to the wrong issue here. You are talking about #517, right? |
After installing 0.34.1, the server will run for a couple of days (1 to 2), then when i select the file browser (on the top left) upon log in, I am presented with the error message: Failed to load file browser, and this message in the console:
if i restart the server, all is working again for a few days.
The text was updated successfully, but these errors were encountered: