non-zero exit, , File "/opt/xensource/sm/EXTSR", line 78 except util.CommandException, inst: ^ SyntaxError: invalid syntax
-
Good day Community,
I hope all is well.
I just want to ask a little clarity as to the following error i am experiencing, Upon checking my Backup Status. I noticed the following.
SR_BACKEND_FAILURE(non-zero exit, , File "/opt/xensource/sm/EXTSR", line 78 except util.CommandException, inst: ^ SyntaxError: invalid syntax )This is a XenServer/XCP-ng error
Last weeks Backups were working fine, however this week we received the following
Error on all VMSs within my Hosted Hypervisor. SR_BACKEND_FAILURE(non-zero exit, , File "/opt/xensource/sm/EXTSR", line 78 except util.CommandException, inst: ^ SyntaxError: invalid syntax )This is a XenServer/XCP-ng error
These are all occuring on a single Host running with its own pool. All other host and pools are successful.
Where could i read up more on the above error as the only related comment i get to this is on Creation of a VM> And these are already existing VMS. Could this had been impacted by Patch installations?
If so, which patches should i assess to determine the root.Kind regards
-
Ping @Team-Storage
-
@FMOTrust Hello,
Could you give us the output of
yum info sm
please? -
Thank you, Found the problem was related to the Version of Python that was adjusted by one of the sysadmins to configure mailing alerts via TLS as 2.7 did not support.
This was impacting the creation of Snapshots and was a result of script difference, thus leading to the syntax error we discovered.
We had reverted the Alternative to 2.7 and will now enforce on Script Level to identify path variable to make use of the python3.6.
Thank you Very Much for the quick Response.
-
@FMOTrust Hello,
Good news you found the problem.
Yes, in XCP-ng 8.3 python should point to a 2.7.5 version while python3 will point to 3.6.8 at the moment.
I imagine you are on 8.2.1 though since the smapi is running in python 3 in 8.3.
While the smapi is python2 only on 8.2.1 and so will expect python to point to the 2.7.5 version. -
Changing python system wide on XCP-ng shows that the appliance nature of XCP-ng is really not well understood.