New Question
0

my local script do not run

asked 2019-11-12 23:03:34 +0300

mongdul gravatar image

I have simple batch

rem cmd echo 2 >c:\text.txt

in C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts

for some reason it does not run

this is the log

2019-11-12 03:42:12.144 1460 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' loadclass c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\classloader.py:27 2019-11-12 03:42:12.769 1460 DEBUG cloudbaseinit.osutils.windows [-] Checking if service exists: cloudbase-init checkserviceexists c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py:894 2019-11-12 03:42:12.785 1460 DEBUG cloudbaseinit.osutils.windows [-] Getting service username: cloudbase-init getserviceusername c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py:1027 2019-11-12 03:42:12.785 1460 DEBUG cloudbaseinit.osutils.windows [-] Resetting password for service user: .\cloudbase-init resetservicepassword c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py:1050 2019-11-12 03:42:12.848 1460 DEBUG cloudbaseinit.osutils.windows [-] Setting service credentials: cloudbase-init setservicecredentials c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py:1010 2019-11-12 03:42:12.894 1460 INFO cloudbaseinit.init [-] Respawning current process with updated credentials. 2019-11-12 03:42:12.894 1460 DEBUG cloudbaseinit.osutils.windows [-] Creating logon session for user: .\cloudbase-init createuserlogonsession c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py:566 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell [-] Cannot load user profile: 'The device is not ready.' 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell Traceback (most recent call last): 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\shell.py", line 41, in main 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell init.InitManager().configurehost() 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\init.py", line 166, in configurehost 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell self.resetservicepasswordandrespawn(osutils) 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\init.py", line 156, in _resetservicepasswordandrespawn 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell logontype=osutils.LOGON32LOGONBATCH) 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py", line 587, in createuserlogonsession 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell "Cannot load user profile: %r") 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell cloudbaseinit.exception.WindowsCloudbaseInitException: Cannot load user profile: 'The device is not ready.' 2019-11-12 03:42:12.894 1460 ERROR cloudbaseinit.shell 2019-11-12 03:42:56.803 1444 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' loadclass c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2019-11-14 12:46:34 +0300

avladu gravatar image

Hello,

From the logs I see that you have a misconfig on a plugin name or metadata service name in the cloudbase-init config file.

edit flag offensive delete link more

Comments

Thank you.

mongdul gravatar imagemongdul ( 2019-11-17 23:10:55 +0300 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2019-11-12 23:03:34 +0300

Seen: 686 times

Last updated: Nov 14 '19