SFTP Fails to Open/Find File

Jul 5, 2012 at 10:46 PM

Hello,

I've been using an older version of LogExpert for about the past 1.5 months and everything was working just fine.  Today I updated to version 1.4/4566 and when I select Open URL and input the sftp://blah/blah/logfile it comes back and says:

Cannot load file - Cannot find sftp://blah/blah/logfile

I've checked the sftp string a thousand times and it is correct and it doesn't matter what server I go to, I get the same message.  This was working fine in the older version (which I don't seem have and can't remember what version it was)

Other than that, I love this program!  Simple, small, fast, and does just what you need (well, when it's working).  What might I be missing? 

Thanks,

Tom

Coordinator
Jul 6, 2012 at 7:18 AM

Hi,

I just checked it. SFTP ist working fine for me.

To be sure you can try with an older version. The older versions are still available for download. The previous 1.4 was 4216, which you can find here: http://logexpert.codeplex.com/releases/view/70243

Jul 10, 2012 at 9:27 PM

Hi,

Thanks for verifying that it does work (or at least is supposed to work).  I went ahead and downloaded all the versions available and they all fail in the same way.  I then went ahead and tried one of the debug versions and see this in the log:

10.07.2012 14:21:17.643 [   1] [ INFO] [ConfigManager.Load()                         ] Loading settings
10.07.2012 14:21:18.127 [   1] [ INFO] [LogExpertProxy.AddWindow()                   ] Adding window to list
10.07.2012 14:21:34.382 [   1] [ INFO] [ConfigManager.Save()                         ] Saving settings
10.07.2012 14:21:34.382 [   1] [ INFO] [ConfigManager.OnConfigChanged()              ] Fire config changed event
10.07.2012 14:21:34.398 [   1] [ INFO] [LogTabWindow.NotifyWindowsForChangedPrefs()  ] The preferences have changed
10.07.2012 14:21:34.539 [   1] [ INFO] [PluginRegistry.LoadPlugins()                 ] Loading plugins...
10.07.2012 14:21:34.554 [   1] [ INFO] [PluginRegistry.LoadPlugins()                 ] Added columnizer CsvColumnizer
10.07.2012 14:21:34.570 [   1] [ INFO] [PluginRegistry.TryAsKeywordAction()          ] Added keyword plugin ProcessLauncher
10.07.2012 14:21:34.570 [   1] [ INFO] [PluginRegistry.TryAsContextMenu()            ] Added context menu plugin Eminus
10.07.2012 14:21:34.570 [   1] [ INFO] [PluginRegistry.TryAsKeywordAction()          ] Added keyword plugin FlashIconPlugin
10.07.2012 14:21:34.585 [   1] [ INFO] [PluginRegistry.LoadPlugins()                 ] Added columnizer GlassfishColumnizer
10.07.2012 14:21:34.585 [   1] [ INFO] [PluginRegistry.LoadPlugins()                 ] Added columnizer Log4jXmlColumnizer
10.07.2012 14:21:34.601 [   1] [ INFO] [PluginRegistry.TryAsFileSystem()             ] Added file system plugin ?1?
10.07.2012 14:21:34.601 [   1] [ INFO] [PluginRegistry.LoadPlugins()                 ] Plugin loading complete.
10.07.2012 14:21:34.617 [   1] [ INFO] [LogWindow.SetColumnizerInternal()            ] SetColumnizerInternal(): Default (single line)
10.07.2012 14:21:34.617 [   1] [DEBUG] [LogWindow.set_CurrentColumnizer()            ] Default (single line)
10.07.2012 14:21:34.648 [  15] [DEBUG] [LogWindow.LogEventWorker()                   ] Waiting for signal
10.07.2012 14:21:34.913 [   1] [DEBUG] [BookmarkWindow.SetCurrentFile()              ] Current file changed to sftp://mywebserver/opt/liferay-portal-6.0-ee/tomcat-6.0.29/logs/catalina.out
10.07.2012 14:21:34.929 [   1] [ INFO] [ConfigManager.Save()                         ] Saving settings
10.07.2012 14:21:34.929 [   1] [ INFO] [ConfigManager.OnConfigChanged()              ] Fire config changed event
10.07.2012 14:21:34.929 [   1] [ INFO] [LogTabWindow.NotifyWindowsForChangedPrefs()  ] The preferences have changed
10.07.2012 14:21:34.944 [   6] [DEBUG] [LogWindow.EnterLoadFileStatus()              ] EnterLoadFileStatus begin
10.07.2012 14:21:34.975 [   1] [DEBUG] [LogWindow.EnterLoadFileStatus()              ] EnterLoadFileStatus begin
10.07.2012 14:21:34.991 [   1] [DEBUG] [BookmarkDataProvider.ClearAllBookmarks()     ] Removing all bookmarks
10.07.2012 14:21:34.991 [   1] [DEBUG] [LogWindow.EnterLoadFileStatus()              ] EnterLoadFileStatus end
10.07.2012 14:21:35.007 [   6] [DEBUG] [LogWindow.set_CurrentColumnizer()            ] Default (single line)
10.07.2012 14:21:35.007 [   6] [ INFO] [LogfileReader.AddFile()                      ] Adding file to ILogFileInfoList: sftp://mywebserver/opt/liferay-portal-6.0-ee/tomcat-6.0.29/logs/catalina.out
10.07.2012 14:21:35.007 [   6] [DEBUG] [PluginRegistry.FindFileSystemForUri()        ] Trying to find file system plugin for uri sftp://mywebserver/opt/liferay-portal-6.0-ee/tomcat-6.0.29/logs/catalina.out
10.07.2012 14:21:35.022 [   6] [DEBUG] [PluginRegistry.FindFileSystemForUri()        ] Checking Local file system
10.07.2012 14:21:35.022 [   6] [DEBUG] [PluginRegistry.FindFileSystemForUri()        ] Checking SFTP plugin
10.07.2012 14:21:35.022 [   6] [DEBUG] [PluginRegistry.FindFileSystemForUri()        ] Found match SFTP plugin
10.07.2012 14:21:35.022 [   6] [ERROR] [?1?.GetLogfileInfo()                         ] Could not load file or assembly 'file:///C:\Users\zirzlo\My Apps\LogExpert\plugins\ChilkatDotNet2.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.

*Note - I get this same error in any of the debug versions, so at least it is consistent.

I also tried registering the DLL, but it fails registration. (regsvr32 chilkatdotnet2.dll)

In regards to system info, I am running:

  • Windows 7 Pro x64
  • 12GB RAM
  • Up to date with all Windows patches

One last tidbit of info, when I launch LogExpert and select File - Open URL and specify the URL and click OK, it immediately comes back giving me the error message, it never even pops open the dialog box asking for credentials.

 

Thanks Again!

Coordinator
Jul 10, 2012 at 10:30 PM

I see. The chilkat dll is platform dependent. LE ships with the 32bit version.

Just go to the Chilkat web site (http://www.chilkatsoft.com/ssh-sftp-component.asp) and download the 64bit version. You can replace the shipped 32bit version with the downloaded 64bit version. 

 

Maybe I should create builds for both platforms in the future.

Jul 10, 2012 at 11:10 PM

Outstanding!  Works perfectly now again!  For anyone else reading this, specifically I grabbed this file http://www.chilkatsoft.com/download/ChilkatDotNet2-9.3.1-x64.zip then renamed the original DLL file located in the plugins directory, copied this new DLL file to that directory and launched LE and all was well again!

I'm completely baffled as to how the old version I had was working.  Possibly a Windows update to the .NET framework that caused things to break?  I don't know.  But replacing that DLL did the trick!

Thank you very much for your help!

 

Oct 29, 2014 at 11:35 PM
FYI!!!

Still have to download the file linked above for SFTP to work in version 1.5 / 4446.
Fri at 8:27 AM