Differences

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

2014-04-25 2015-09-29
guide_debugging_scheduler (martin) passive mode is on by default + generate url + password logging + ordering + grammar (martin)
Line 1: Line 1:
====== Why I cannot connect/transfer using script, when I can using GUI (or vice versa)? ====== ====== Why I cannot connect/transfer using script, when I can using GUI (or vice versa)? ======
There are two common reasons for that: There are two common reasons for that:
-  * You run script from different environment (under different account/service; with different configuration) than the GUI. See another [[faq_scheduler|F.A.Q.]] ((Although it covers different topic, its recommendations are valid for this case as well.)) +  * You run script from a different environment (under a different account/service; with a different configuration) than the GUI. See another [[faq_scheduler|F.A.Q.]] ((Although it covers a different topic, its recommendations are valid for this case as well.)) 
-  * You have your [[session_configuration|session configured]] differently in script and in the GUI. +  * You have your [[session_configuration|session configured]] differently in the script and in the GUI. 
-    * If you use site in the GUI, try using it from the script as well, using ''open <site>'' command to see, if it makes the script working. +    * Use a [[ui_generateurl|Generate URL]] command to avoid common mistakes in manually typed URL's. 
-     * Very common difference is not enabling passive mode in the script. +    * You may possibly have some special characters in a [[session_url|session URL]] in the script
- ····* You may possibly have some special characters in the [[session_url|session URL]] in the script.+     * Try using the GUI site from the script, using an ''open <site>'' command to see, to see if it makes the script working. Though do not use this solution for a production code. It's not recommended to [[scripting#configuration|rely on a GUI configuration in the script]].
-You can also enable [[logging|session logging]] both in GUI (on //[[ui_pref_logging|Logging page]]// of Preferences dialog) and script (using command-line parameter ''[[commandline|/log]]'') and compare the logs to find out what is different.+You can also enable a [[logging|session logging]] both in the GUI (on //[[ui_pref_logging|Logging page]]// of Preferences dialog) and the script (using a command-line parameter ''[[commandline|/log]]'') and compare the logs to find out what is different. Use a command-line parameter ''/loglevel=*'' to enable a password logging and check if a correct password is used.
-If you decide to [[troubleshooting|seek help]], make sure you provide both complete logs when describing your issue.+If you decide to [[troubleshooting|seek a help]], make sure you provide both complete logs, when describing your issue.
See also: See also:
  * More generic article on [[faq_environment|making WinSCP work in a new environment (operating system, machine, user account, network)]].   * More generic article on [[faq_environment|making WinSCP work in a new environment (operating system, machine, user account, network)]].
  * [[guide_debugging_scheduler|Debugging transfer task running in Windows Scheduler, SSIS or other automation service]].   * [[guide_debugging_scheduler|Debugging transfer task running in Windows Scheduler, SSIS or other automation service]].

Last modified: by martin