Hi Terry, If you look at the fabfile.py, https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/fabfile.py#L339-L354, you can see how the system should be configured to handle the demonstrative gallery images included in Mezzanine.
hth, ken On Tue, Feb 25, 2014 at 11:54 AM, Terry Brown <[email protected]> wrote: > +10 on this comment - spent most of a day setting LC_* to en_US.UTF-8 all > over the place, didn't help. Deleted > > ./static/media/uploads/gallery/Ávila, Spain.jpg > ./static/media/uploads/gallery/Düsseldorf, Germany.jpg > ./static/media/uploads/gallery/.thumbnails/Ávila, Spain-60x60.jpg > ./static/media/uploads/gallery/.thumbnails/Düsseldorf, Germany-60x60.jpg > > and all worked again. Note that the system always worked on the Python > 3.3 dev. environment, the problem with the above was on the Python 2.7 > deploy environment. > > Thanks Bartosz! > > On Wednesday, September 18, 2013 3:17:26 PM UTC-5, Bartosz Wiklak wrote: >> >> I had similar problem, but I wasn't using supervisor. A file name in >> /media/uploads/gallery has strange character encoding (the folder contains >> jspeg Austin, Athens, Amsterdam ...), I wasn't uploading anything there, >> suppose this files are uploaded by mezzanine. My locale is pl_PL.UTF8. >> The exception description is a little bit misleading. >> >> On Sunday, November 25, 2012 10:51:38 PM UTC+1, Doug Evenhouse wrote: >>> >>> 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)}> >>> >>> -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
