SCO或SCHANA备份失败、并显示以下错误:sudo:需要使用终端来读取密码
适用场景
- 适用于Oracle (SCO) 4.8及更高版本的SnapCenter插件
- 适用于SAP HANA的SnapCenter插件(SCHANA) 4.8及更高版本
问题描述
SCO备份失败、并在SPL或HANA日志中显示以下错误:
DEBUG Execution Monitor Thread [sudo /opt/NetApp/snapcenter/spl/bin/sc_command_executor root"test -f /etc/oracle/olr.loc && echo true || echo false"] c.n.c.e.ShellResult - EXE-00001: Shell result [0:00:01.451] (Exit Value: 1): sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
DEBUG Execution Monitor Thread [sudo /opt/NetApp/snapcenter/spl/bin/sc_command_executor oracle"ls -ld /oracle/product/19C/bin/sqlplus | sed 's/[ ][ ]*/ /g' | cut -d' ' -f3"] c.n.c.e.ShellResult - EXE-00001: Shell result [0:00:01.857] (Exit Value: 1):sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
DEBUG Execution Monitor Thread [sudo /opt/NetApp/snapcenter/spl/bin/sc_command_executor snapuser env] c.n.c.e.ShellResult - EXE-00001: Shell result [0:00:02.145] (Exit Value: 1): sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
ERROR DRes-ODIRDEV c.n.c.r.RemoteObjectFactoryFactory - REMOTE-00001: Unable to connect to spawned helper process. Error: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper