Differences

This shows you the differences between the selected revisions of the page.

2016-10-10 2016-10-10
bijay munda (8.37.225.180) (hidden) Restored revision 1476084872. Undoing revision 1476094818. (martin) (hidden)
Line 1: Line 1:
-bijay munda__Underlined Text__+====== Troubleshooting ====== 
 + 
 +===== General Hints ===== 
 +When facing an issue with WinSCP, following resources and hints may help you to resolve the issue yourself: 
 +  * Try to find solution in [[faq|F.A.Q]] or in this [[start|documentation]]. Use //Search// box on the right,   
 +  * If you are getting an error message, check list of [[messages|common error messages]]. 
 +  * Try to find a solution in support forum. Again, use //Search// box on the right, this time check //Whole site//. 
 +  * Make sure you are using the [[&download|latest version of WinSCP]]. 
 +  * If some feature of WinSCP is not working as you expect, check documentation of respective dialog box (use //Help// button). You may be missing configuration option or may not understand what the feature actually does. 
 +  * If you wonder why some feature of WinSCP is or not available (is disabled/grayed), check documentation of respective dialog box (use //Help// button). 
 + 
 +===== Troubleshooting Connection Issues ===== 
 +When you are not able to connect to the server: 
 +  * Make sure you use [[protocols|protocol]] that the server supports. 
 +  * Read guide for [[guide_connect|connecting to FTP/SFTP server]]. 
 +  * Try if you can connect with other client using the same protocol. 
 +    * If you can connect with other client, check [[faq_connection_refused|why WinSCP may not be able to connect to a server, when other clients are]]. 
 +    * When using SFTP/SCP, it may be useful to try to connect with SSH terminal client (such as [[&url(putty)|PuTTY]]). You may get some useful message back on terminal screen. 
 +  * Check other [[faq#connecting_to_the_server|F.A.Q. on connection]]. 
 +  * If you are getting an error message, check list of [[messages|common error messages]]. 
 +  * If the server refuses to accept your connection or drops the connection suddenly, you should better check the server (e.g. its log file) first to find out the reason. Contact the server administrator if you cannot check the server yourself. 
 + 
 +===== [[scripting]] Troubleshooting Scripting/Automation Issues ===== 
 +When you are facing issue with [[scripting|scripting/automation]]: 
 +  * Read guide for [[guide_automation|automation/scripting]] and other [[guides#scripting_automation|related guides]]. 
 +  * Check [[faq#scripting_automation|F.A.Q. on scripting/automation]]. 
 +  * If you are getting an error message, check list of [[messages|common error messages]]. 
 +  * Turn on [[logging|session logging]] using command-line switch ''[[commandline#logging|/log]]'' and check the generated log file to see, if WinSCP actually does what you want it to do. 
 +  * If no session log is created, chances are that some error prevented WinSCP from starting, creating a log or starting a session. Check WinSCP console output for any error. It is recommended to execute ''[[executable|winscp.com]]'' from existing console window (such as from Windows ''cmd.exe''). The ''winscp.com'' inherits the console((A ''winscp.exe'' always creates a new console that closes when WinSCP finishes.)) and when it exits with an error, the error is preserved on the console, allowing you to inspect it. 
 +  * See also [[guide_debugging_scheduler|Debugging transfer task running in Windows Scheduler, SSIS or other automation service]]. 
 +  * If you cannot login or transfer file using script, yet you are able to login or transfer file in GUI, see [[faq_script_vs_gui|Why I cannot connect/transfer using script, when I can using GUI?]] 
 + 
 +===== [[timestamps]] Troubleshooting Timestamp Issues ===== 
 +When the file timestamps you see in [[ui_file_panel|file panels]] are not what you expect them to be; or [[task_synchronize|synchronization]] does not work: 
 +  * Read documentation on [[timestamps]]. 
 +  * Read about [[faq_synchronize|common problems causing synchronization not to work]]. 
 +  * With [[sftp|SFTP]] and [[ftp|FTP]]((For FTP this is specifically mandated for ''[[ui_login_ftp|MLSD]]'' command. With obsoleted ''LIST'' command, behavior is undefined.)) protocols, both client and server need to use UTC timestamps. 
 +    * Common problem is that the server misinterprets the UTC timestamps.  
 +    * To see how WinSCP and the server communicate the timestamps, turn on [[logging|session logging]] and check the generated log file. 
 + 
 +When inspecting the session log, look for following entries: 
 + 
 +  * Directory listing, including UTC file modification timestamps: 
 + 
 +<code> 
 +..;D;0;2013-04-24T08:43:23.000Z;"" [0];"" [0];rw-rw-rw-;1                                 
 +.htaccess;-;33;2004-11-10T20:46:46.000Z;"" [0];"" [0];rw-rw-rw-;3                         
 +commandline.txt;-;9390;2013-04-15T09:01:52.000Z;"" [0];"" [0];rw-rw-rw-;1                 
 +config.txt;-;4490;2013-04-17T06:31:36.000Z;"" [0];"" [0];rw-rw-rw-;1                     
 +contributions.txt;-;1865;2012-08-24T07:08:58.000Z;"" [0];"" [0];rw-rw-rw-;1               
 +directory_cache.txt;-;1892;2011-07-30T18:24:52.000Z;"" [0];"" [0];rw-rw-rw-;1             
 +dragext.txt;-;4329;2013-04-09T11:50:48.000Z;"" [0];"" [0];rw-rw-rw-;1                     
 +</code> 
 + 
 +  * Modification timestamp being set on target file after file transfer (SFTP): 
 + 
 +<code> 
 +Preserving timestamp [2009-02-26T21:15:50.000Z] 
 +</code> 
 + 
 +  * Timestamp comparing during synchronization: 
 + 
 +<code> 
 +Local file 'D:\Documents\wiki\config.txt' [2013-04-24T09:41:04.922Z] [4546] is modified  
 +comparing to remote file '/home/martinp/httpdocs/wiki/config.txt' [2013-04-17T06:31:36.000Z] [4490] 
 +</code> 
 + 
 +If this does not help you, and you decide to seek [[support]], make sure you include a complete session log in your report, showing above entries. Also mention a specific file that demonstrates the problem, what timestamp and behavior do you see; and what did you expect and why. 
 + 
 +===== When you are not able to help yourself ===== 
 +Learn what [[support|support]] you may get to WinSCP.

Last modified: by martin