New Question

Revision history [back]

click to hide/show revision 1
initial version

userdata ps script failed with ''ascii' codec can't decode byte 0xc2 error

Hi, My userdata script (powershell script) failed with the following error. Can you help find out what the cause is? I was not able to upload my script. I can provide my script by email if needed.

Thanks, David

2015-02-27 11:02:59.128 284 INFO cloudbaseinit.init [-] Executing plugin 'UserDataPlugin' 2015-02-27 11:02:59.128 284 DEBUG cloudbaseinit.metadata.services.httpservice [-] Getting metadata from: http://10.42.245.21:8775/openstack/latest/userdata _getdata C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\httpservice.py:72 2015-02-27 11:02:59.426 284 ERROR cloudbaseinit.init [-] plugin 'UserDataPlugin' failed with error ''ascii' codec can't decode byte 0xc2 in position 6303: ordinal not in range(128)' 2015-02-27 11:02:59.426 284 ERROR cloudbaseinit.init [-] 'ascii' codec can't decode byte 0xc2 in position 6303: ordinal not in range(128) 2015-02-27 11:02:59.426 284 TRACE cloudbaseinit.init Traceback (most recent call last): 2015-02-27 11:02:59.426 284 TRACE cloudbaseinit.init File "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\init.py", line 69, in execplugin 2015-02-27 11:02:59.426 284 TRACE cloudbaseinit.init shareddata) 2015-02-27 11:02:59.426 284 TRACE cloudbaseinit.init File "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\plugins\windows\userdata.py", line 45, in execute 2015-02-27 11:02:59.426 284 TRACE cloudbaseinit.init return self.processuserdata(userdata) 2015-02-27 11:02:59.426 284 TRACE cloudbaseinit.init File "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\plugins\windows\userdata.py", line 62, in _processuserdata 2015-02-27 11:02:59.426 284 TRACE cloudbaseinit.init LOG.debug('User data content:\n%s' % userdata) 2015-02-27 11:02:59.426 284 TRACE cloudbaseinit.init File "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\logging_init.py", line 1411, in debug 2015-02-27 11:02:59.426 284 TRACE cloudbaseinit.init msg, kwargs = self.process(msg, kwargs) 2015-02-27 11:02:59.426 284 TRACE cloudbaseinit.init File "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\openstack\common\log.py", line 310, in process 2015-02-27 11:02:59.426 284 TRACE cloudbaseinit.init msg = six.texttype(msg) 2015-02-27 11:02:59.426 284 TRACE cloudbaseinit.init UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 6303: ordinal not in range(128)