New Question
0

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

asked 2015-02-27 21:41:02 +0300

davidkkim gravatar image

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/la...data _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)

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2015-02-27 22:57:36 +0300

cpopa gravatar image

Hello. It seems that you are using a very old cloudbaseinit since the function cloudbaseinit.plugins.windows.userdata.UserDataPlugin._processuserdata isn't called like that anymore since january 2014. Using a newer installer should fix the problem with your Powershell script.

edit flag offensive delete link more
0

answered 2015-02-27 22:59:00 +0300

alexpilotti gravatar image

Can you please attach a copy of your userdata script? I'd like to check the encoding in use.

Thanks,

Alessandro

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2015-02-27 21:41:02 +0300

Seen: 220 times

Last updated: Feb 27 '15