either sftp server disk full or bad directory path or check if the directory path length is beyond 260 character limit on windows server
VMware NSX 4.0.0.1
VMware NSX 4.1.0
VMware NSX 4.1.0.2
VMware NSX 4.1.1
This issue happens due to following configuration at the end of sshd_config.
Customer has configured "ChrootDirectory /sftpfiles" for sftp user group.
------------
Match group sftp
ChrootDirectory /sftpfiles
#X11Forwarding no
#AllowTcpForwarding no
ForceCommand internal-sftp
------------
This issue is resolved in VMware NSX 4.2.0
Workaround:
cd /opt/vmware/nsx-node-api/bin/python/management_api/napi/root/node/file_store
cp utils.py utils.py.bak
Note: Make sure the utils.py.bak
file is created via the ls
command.utils.py
file with a text editorcheck_prev_output
in utils.py
if check_prev_output and _SFTP_RE.search(prev_output):
check_prev_output = False
output = prev_output
cmd_list[3] == "-i"
check is added in the if block.if cmd_list[3] == "-i" and check_prev_output and _SFTP_RE.search(prev_output):
check_prev_output = False
output = prev_output
service nsx-mp-api-server restart
Note: if the Issue come back, preform the same task on all 3 nodes.