question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[sftp] (c:\www\foo\…) config file not found

See original GitHub issue

Expected Behavior

Right click on a file and choosing “SFTP: Upload” uploads the file.

Actual Behavior

Error message and no upload: [sftp] (c:\www\foo\index.php) config file not found

Requisites (important to diagnose the problem!)

Extension Logs

[info]: config at c:\www\foo{
    "host": "host",
    "port": 22,
    "username": "login",
    "password": "password",
    "protocol": "sftp",
    "agent": null,
    "privateKeyPath": null,
    "passphrase": null,
    "passive": false,
    "interactiveAuth": false,
    "remotePath": "bar",
    "uploadOnSave": true,
    "syncMode": "update",
    "watcher": {
        "files": false,
        "autoUpload": true,
        "autoDelete": false
    },
    "ignore": [
        "c:/www/foo/**/.git/**",
        "c:/www/incatering/**/.DS_Store",
        "c:/www/incatering/**/node_modules",
        "bar/**/.git/**",
        "bar/**/.DS_Store",
        "bar/**/node_modules"
    ],
    "context": "c:\\www\\foo"
}

and the error itself:

[error]: context: undefined reason: Error: (c:\www\foo\index.php) config file not found
	at runTask (C:\Users\X\.vscode\extensions\liximomo.sftp-0.9.4\out\src\helper\createCommand.js:13:19)
	at Array.forEach (native)
	at runTasks (C:\Users\X\.vscode\extensions\liximomo.sftp-0.9.4\out\src\helper\createCommand.js:16:52)
	at getTarget.then.target (C:\Users\X\.vscode\extensions\liximomo.sftp-0.9.4\out\src\helper\createCommand.js:22:9)
	at <anonymous>

Specifications

  • Version: 0.9.4
  • Platform: Windows 8.1 64-bit

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
gerwinoucommented, Jan 24, 2018

I have the same error on MacOS High Sierra (10.13.2). As a workaround, I edited the sftp.json file by adding an extra property, saved it, and then it worked again

1reaction
liximomocommented, Dec 18, 2017

Fix in 0.9.5.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Config Not Found · Issue #394 · liximomo/vscode-sftp
In the log output, SFTP finds the config file and outputs to the console, then I attempt to upload a file, and I'm...
Read more >
Task Factory – SFTP Task File Doesn't Exist on the Server
There is only one reason this error occurs and it is an incorrectly written SFTP File Path. This issue is resolved in the...
Read more >
Troubleshoot SFTP server connection issues - Adobe Support
HKEY_CURRENT_USER\SOFTWARE\Adobe\Dreamweaver 2021\Site Preferences. Find Use SFTP Legacy Algorithms From Config File and set it to TRUE.
Read more >
Sublime Text 3 SFTP - Stack Overflow
The directory path that this error is referencing is in the tmp folder... do I have to manually add a sftp-config.json file to...
Read more >
How To Use SFTP to Securely Transfer Files with a Remote ...
SFTP is a secure way to transfer files between local and remote ... Note that the commands available within the SFTP interface are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found