I'm spinning my wheels a bit with an FileSystemEncodingChanged exception that is thrown whenever I try to browse media files. I was happily uploading images and all was well for awhile. Now I cannot open the file browser at all without this exception being thrown. I don't believe I have created any folders nor uploaded any files with unusual encoding or names. As far as I can nothing would have changed with regard to locale settings. I removed the entire project and recreated it to no avail. The exceptions occur on both a staging server and a production server running Ubuntu 12.04, and deployed using vanilla fabric settings with Mezzanine 1.2.4. LC_ALL appears to be set correctly to "en_US.UTF-8".
Anyone have advice as to possible root causes and/or troubleshooting steps to take?
Traceback and request settings from the exception email - this is running on our internal staging server):
File "/home/doug/virtualenvs/hccs_website/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 105, in get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/home/doug/virtualenvs/hccs_website/local/lib/python2.7/site-packages/mezzanine/pages/middleware.py", line 45, in process_view
return view_func(request, *view_args, **view_kwargs)
File "/home/doug/virtualenvs/hccs_website/local/lib/python2.7/site-packages/django/contrib/admin/views/decorators.py", line 16, in _checklogin
return view_func(request, *args, **kwargs)
File "/home/doug/virtualenvs/hccs_website/local/lib/python2.7/site-packages/django/views/decorators/cache.py", line 89, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/home/doug/virtualenvs/hccs_website/local/lib/python2.7/site-packages/filebrowser_safe/views.py", line 116, in browse
elif fileobject.filetype == 'Folder' and fileobject.is_empty:
File "/home/doug/virtualenvs/hccs_website/local/lib/python2.7/site-packages/filebrowser_safe/base.py", line 134, in _is_empty
raise FileSystemEncodingChanged()
FileSystemEncodingChanged: Access was attempted on a file that contains
unicode characters in its path, but somehow the current locale does not
support utf-8. You may need to set 'LC_ALL' to a correct value, eg:
'en_US.UTF-8'.
<WSGIRequest
path:/admin/media-library/browse/,
GET:<QueryDict: {u'type': [u'Image'], u'pop': [u'1']}>,
POST:<QueryDict: {}>,
COOKIES:{'__utma': '74311563.372776308.1351892605.1351898182.1351966440.4',
'__utmz': '74311563.1351892605.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)',
'csrftoken': 'l754gpeXgo6WrMKmH5gQ0UpsG96acn41',
'messages': '
81375d9cdb262e44aff2f71e2a66e74c9742ea2a$[["__json_message",40,"The requested Folder does not exist."]]',
'mezzanine-admin-toolbar': '',
'sessionid': '4fbd7d0d1511a2c157fe2bdc60aed3cf'},
META:{'CSRF_COOKIE': 'l754gpeXgo6WrMKmH5gQ0UpsG96acn41',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
'HTTP_CONNECTION': 'close',
'HTTP_COOKIE': '__utma=74311563.372776308.1351892605.1351898182.1351966440.4; __utmz=74311563.1351892605.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); sessionid=4fbd7d0d1511a2c157fe2bdc60aed3cf; mezzanine-admin-toolbar=; csrftoken=l754gpeXgo6WrMKmH5gQ0UpsG96acn41; messages="81375d9cdb262e44aff2f71e2a66e74c9742ea2a$[[\\"__json_message\\"\\05440\\054\\"The requested Folder does not exist.\\"]]"',
'HTTP_HOST': 'hccs-website.evenhouseconsulting.local',
'HTTP_REFERER': '
http://hccs-website.evenhouseconsulting.local/admin/people/person/add/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac
OS X 10_8_2) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64
Safari/537.11',
'HTTP_X_FORWARDED_FOR': '192.168.30.53',
'HTTP_X_FORWARDED_PROTOCOL': 'http',
'HTTP_X_REAL_IP': '192.168.30.53',
'PATH_INFO': u'/admin/media-library/browse/',
'QUERY_STRING': 'type=Image&pop=1',
'RAW_URI': '/admin/media-library/browse/?type=Image&pop=1',
'REMOTE_ADDR': '192.168.30.53',
'REMOTE_PORT': '80',
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': u'',
'SERVER_NAME': 'hccs-website.evenhouseconsulting.local',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SOFTWARE': 'gunicorn/0.16.1',
'gunicorn.socket': <socket._socketobject object at 0x304a8a0>,
'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fcdddc80270>,
'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x1df10b8>,
'wsgi.input': <gunicorn.http.body.Body object at 0x2fa16d0>,

'wsgi.multiprocess': True,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>