Always a pressing issue, when business teams are not able to upload any content when using WebSphere Commerce utility, called Management center, requiring fast problem solving. This document outlines the troubleshooting technique, which may help to determine the problem and solve it quickly.
First, as usual we need to understand the environment. In this case, it was WebSphere Commerce 18.104.22.168 + FEP 6 on Linux RHEL, Staging Environment. The environment was configured so that FTP is enabled, and so when the content is uploaded via Managemet center, it should get promoted to filesystem, then moved to the web server.
This was working absolutely fine until the problem started to happen, and there have been no recent changes to any configuration or the environment.
Referring to the product documentation about managed file lifecycle:
We have checked the process, to determine that scheduled job ScheduledContentManagedFileEARUpdate is running, but it was failing.
When we have checked the database:
"select * from CMFILE where promote_fs=0 order by upload_timestamp desc"
this showed us that files are not being promoted to the filesystem, so subsequently they could not have been moved to the web server via FTP.
Next, checking SystemOut.log we have observed that there was an error coming from UpdateStaticEARContentUsingFTPCmdImpl command, so we checked FTP and it was working fine. We were able to transfer a file from the application server to web server manually, using FTP service.
Finally, there was a breakthrough in problem determination, when we have enabled the trace of a couple of WS Commerce components, which are related to the problem at hand, as following:
This trace then has helped us to find out the detail, that just before the error is being logged, UpdateStaticEARContentUsingFTPCmdImpl command trying to put some file that is containing a space in the directory name to the FTP, for example like so:
[9/5/14 1:20:01:486 GST] 00000270 FTPControlSoc 1 --->STOR /StoreA/images/PR activity /Radio_Roadshow_590x181.gif
[9/5/14 1:20:01:489 GST] 00000270 FTPControlSoc 1 550 The system cannot find the path specified.
[9/5/14 1:20:01:489 GST] 00000270 FTPControlSoc I 550 The system cannot find the path specified.
[9/5/14 1:20:01:490 GST] 00000270 CommerceSrvr E com.ibm.commerce.wc.appmanagement.commands.UpdateStaticEARContentUsingFTPCmdImpl performExecute CMN0409E: The following error occurred during processing: "com.ibm.commerce.tools.util.FTPException: The system cannot find the path specified. ". com.ibm.commerce.tools.util.FTPException: The system cannot find the path specified.
at com.ibm.commerce.tools.util.FTPControlSocket.validateReply(Unknown Source)