Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Overview page fails with bad_utf8_character_code when DB directory on Windows has non-ASCII characters #61

Closed
joaoportela opened this issue Sep 3, 2015 · 6 comments
Assignees
Labels
Milestone

Comments

@joaoportela
Copy link

Opening rabbitmq management overview page gives me:

Got response code 500 with body {"error":"Internal Server Error","reason":"{error,{exit,{ucs,{bad_utf8_character_code}},\n [{xmerl_ucs,from_utf8,1,[{file,\"xmerl_ucs.erl\"},{line,186}]},\n {mochijson2,json_encode_string,2,[]},\n {mochijson2,'-json_encode_proplist/2-fun-0-',3,[]},\n {lists,foldl,3,[{file,\"lists.erl\"},{line,1262}]},\n {mochijson2,json_encode_proplist,2,[]},\n {mochijson2,'-json_encode_array/2-fun-0-',3,[]},\n {lists,foldl,3,[{file,\"lists.erl\"},{line,1262}]},\n {mochijson2,json_encode_array,2,[]}]}}\n"}

I believe this is because my appdata folder is "C:\Users\João\AppData\Roaming". My guess is that the "ã" is not being properly encoded to utf-8.

Other rabbitmq management pages work fine.

@michaelklishin
Copy link
Member

Non-ASCII characters in RabbitMQ installation directory on Windows are not supported and will lead to other problems.

@michaelklishin michaelklishin self-assigned this Sep 3, 2015
@michaelklishin michaelklishin added this to the n/a milestone Sep 3, 2015
@michaelklishin michaelklishin changed the title RabbitMq overview gives me bad_utf8_character_code Overview page fails with bad_utf8_character_code when DB directory on Windows has non-ASCII characters Sep 3, 2015
@joaoportela
Copy link
Author

This is not the installation directory. This is the %appdata% directory, the "windows quirks" page doesn't help with that.

Is there a work around?

@michaelklishin
Copy link
Member

You can relocate data directory.

@joaoportela
Copy link
Author

I have set a system environment variable with RABBITMQ_BASE=c:\RabbitMq_Base but it isn't working.

Any other troubleshooting steps?

@michaelklishin
Copy link
Member

From http://www.rabbitmq.com/configure.html:

For environment changes to take effect on Windows, the service must be re-installed.
It is not sufficient to restart the service. This can be done using the installer or on
the command line with administrator permissions: …

@joaoportela
Copy link
Author

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants