Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » [Solved] SFTPBrowser example build failed (SFTPBrowser example buil error: error LNK2019: unresolved external symbol __imp_CertCloseStore referenced in function winstore_close)
Re: SFTPBrowser example build failed [message #61272 is a reply to message #61271] Wed, 18 December 2024 14:11 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1221
Registered: August 2007
Senior Contributor
Hello Scott,

Quote:
Thank you @Oblivion. Yes, can successful build now.

And I try run the exe, it able connect to SFTP server.
However several issues:
1. My SFTP server have some folders, but the GUI did not show up.
2. I try create a folder through exe, no response & error. I use other software to connect to my SFTP, the folder does created.
3. I try upload a small text file, such as test.txt, only 47byte, it seems error. However, it create a 0 byte test.txt file in SFTP server if I use other software to checking.
index.php?t=getfile&id=7022&private=0

4. So, I try to rebuild all, and hope the issue can be fixed since we just adjust SSH build way, the issue still same.

Below are the logs:
SSH: Session, oid: 1: Using Upp's memory managers.
SSH: Session, oid: 1: Session successfully initialized.
SSH: Session, oid: 1: Compression is disabled.
SSH: Session, oid: 1: Handshake successful.
SSH: Session, oid: 1: Authentication methods list successfully retrieved: [publickey,password,keyboard-interactive]
SSH: Session, oid: 1: Client succesfully authenticated.
SSH: SFtp, oid: 2: Session successfully initialized.
SSH: SFtp, oid: 2: Symbolic link operation is successful. Target: /
SSH: SFtp, oid: 2: Failed. Code = -31, SFTP Protocol Error
SSH: SFtp, oid: 2: Failed. Code = -31, Failed opening remote file
SSH: SFtp, oid: 2: Directory '//temp' is succesfully created.
SSH: SFtp, oid: 2: Failed. Code = -31, SFTP Protocol Error
SSH: SFtp, oid: 2: Failed. Code = -31, Failed opening remote file
SSH: SFtp, oid: 3: Session successfully initialized.
SSH: SFtp, oid: 3: File '//test.txt' is successfully opened.
SSH: SFtp, oid: 3: File attributes successfully retrieved.
SSH: SFtp, oid: 3: EOF received.
SSH: SFtp, oid: 3: Stream write error.
SSH: SFtp, oid: 3: File handle freed.
SSH: SFtp, oid: 3: Session deinitalized.
SSH: SFtp, oid: 2: Session deinitalized.
SSH: Session, oid: 1: Successfully disconnected from the server.
SSH: Session, oid: 1: Session handles freed.


I use the SSH package all the time with no problem (I am also the developer and maintainer of it)

This error "usually" means you don't have read/write access in your current session:

Failed. Code = -31, SFTP Protocol Error


SSH2 servers can setup per-user read/write access differently, that may cause error. Or it may be a path error. I can't really tell at this point. Could you manually DLOG() the path strings in debug mode, so that we can examine them.


To verify this,

Could you try the below test server and see if it is working (you should be able to navigate the server and download files, you will not have write access)

Server: test.rebex.net
Port:   22
User:   demo
Password: password


Best regards,

Oblivion


[Updated on: Wed, 18 December 2024 14:17]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Latest U++ PDF version user guide to describe framework/tips/examples
Next Topic: The UPP looks good -> Opportunities to evolve to better support RPA & AI
Goto Forum:
  


Current Time: Tue Aug 05 14:46:00 CEST 2025

Total time taken to generate the page: 0.02973 seconds