Scalarizr: 'ascii' codec can't encode character u'\xe8' in position 335: ordinal not in range(128)

Lorenzo Salvadorini's Avatar

Lorenzo Salvadorini

27 Dec, 2011 11:48 AM via web

I think is a similar problem to the one in this thread:

http://support.scalr.net/discussions/problems/2820-multiple-codec-e...

The Farm is 8139

I attached the EventLog of the farm.

  1. Support Staff 2 Posted by Marat Komarov on 27 Dec, 2011 01:40 PM

    Marat Komarov's Avatar

    Thanks for the report, we've found a problem in message encoding.

  2. 3 Posted by Lorenzo Salvadorini on 05 Jan, 2012 05:31 PM

    Lorenzo Salvadorini's Avatar

    Only for information: we have the same problem on a newly created farm launching our puppet configuration scripts on HostUp events.
    Farm ID is 8196

    Thanks

  3. 4 Posted by Lorenzo Salvadorini on 05 Jan, 2012 05:39 PM

    Lorenzo Salvadorini's Avatar

    Is there some workaround that I can adopt for this problem?
    I'm thinking about some character that I must not use in Farm/Host name or inside scripts code...

  4. Support Staff 5 Posted by Marat Komarov on 06 Jan, 2012 03:15 PM

    Marat Komarov's Avatar

    Decoding failed due to utf8 character in HostUp script.

    We've fixed this in Scalarizr 0.7.148

  5. 6 Posted by Lorenzo Salvadorini on 12 Jan, 2012 02:47 PM

    Lorenzo Salvadorini's Avatar

    I've update the scalarizr agent and the problem disappeared, thanks.

    I've a new error launching the same farm:

    Caller: /DBServer

    Message: Cannot deliver message 'HostUp' (message_id: b87ac2b2-e8ec-473c-a0eb-b64a22c5734f) via REST to server '79.125.102.103' (server_id: b1d37658-214f-432f-9753-2b1360b1fff8). Error: 0 Failed to parse message headers

    Is a related problem or could be related with the fix?

    Thanks
    L.

  6. 7 Posted by Lorenzo Salvadorini on 18 Jan, 2012 10:40 AM

    Lorenzo Salvadorini's Avatar

    I've the same problem on the same farm:

    Cannot deliver message 'HostUp' (message_id: 9c14b941-1f4b-4d53-8625-95c1c3fd61ac) via REST to server '176.34.170.81' (server_id: a2ad96dd-da87-4111-bfc7-8f7e3e394210). Error: 0 Failed to parse message headers

    Without the HostUp message no scripts are executed after boot, so the farm is unusable.

    Thanks for any hint.

  7. 8 Posted by Lorenzo Salvadorini on 28 Jan, 2012 08:50 AM

    Lorenzo Salvadorini's Avatar

    Sorry Marat but this issue seems still here and make scalr completely unusable for us.

    Server 880bd762-eea6-49a8-afb0-e87a8555a683 on Farm 8196

    Caller: 880bd762-eea6-49a8-afb0-e87a8555a683/scalarizr.messaging.p2p.consumer

    Message: 'ascii' codec can't encode character u'\xe8' in position 335: ordinal not in range(128)

    root@africa-db:~# scalarizr -v
    Scalarizr 0.7.170

    No scripts are executed at HostUp or Reboot events, what can we do? Is a problem related to the scripts we use in these two events or is general scalrizr issue?

    Thanks,
    L.

  8. Support Staff 9 Posted by Marat Komarov on 28 Jan, 2012 09:18 AM

    Marat Komarov's Avatar

    Scripts should contain only ascii symbols. In your case comment string violates this.

    We've made several attempts to fix this issue and allow unicode, but currently it's blocked by underlying library, used by Scalarizr.

    Regards,
    Marat

  9. 10 Posted by Lorenzo Salvadorini on 29 Jan, 2012 07:40 AM

    Lorenzo Salvadorini's Avatar

    I've removed 'è' char from a script comment and the problem has gone. Thanks Marat!

    L.

  10. Lorenzo Salvadorini closed this discussion on 29 Jan, 2012 07:40 AM.

Comments are currently closed for this discussion. You can start a new one.