Updated Synology DSM, now hazel cannot init sftp

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

I recently upgraded my Synology DSM and my rules which copy items using SFTP stopped working.
when I edit my server configuration in Hazel, I get this message :

Error connecting to
...

The folder "_Kiosque" could not be
accessed. Failure establishing ssh
session

The Log :

Failed trying to get contents of directory for sftp://toto@www.xyx.net:5022/Doc/_Kiosque/test.txt: Error Domain=se.haxx.curl.libcurl.CURLcode Code=2 "The folder “_Kiosque” could not be accessed. Failure establishing ssh session" UserInfo={NSLocalizedFailureReason=Failed initialization, NSErrorFailingURLStringKey=sftp://toto@www.xyx.net:5022/Doc/_Kiosque/, NSErrorFailingURLKey=sftp://toto@www.xyx.net:5022/Doc/_Kiosque/, NSLocalizedDescription=The folder “_Kiosque” could not be accessed. Failure establishing ssh session}

thanks for any help.
MsieurBobo
 
Posts: 4
Joined: Fri Oct 11, 2019 2:08 am

Try turning on debug mode as described here: https://www.noodlesoft.com/kb/hazel-debug-mode/

While there, also enable connection logging. After that, send/post updated logs.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

the logs you asked for :

2021-03-30 16:07:01.111 86Z3GCJ4MF.com.noodlesoft.HazelHelper[937] DEBUG: Thread 0x14b61dff0: Received events (
{
date = "2021-03-30 14:07:01 +0000";
path = "/Users/Boris/Downloads/test/test.txt";
shouldDoFullScan = 0;
}
) for stream at path: /Users/Boris/Downloads
2021-03-30 16:07:01.111 86Z3GCJ4MF.com.noodlesoft.HazelHelper[937] DEBUG: Ignoring event in directory /Users/Boris/Downloads/test/test.txt. Only need to check for changes 1 levels deep. Event is in directory 2 levels deep.
2021-03-30 16:07:01.111 86Z3GCJ4MF.com.noodlesoft.HazelHelper[937] DEBUG: Thread 0x14b61dff0: Received events (
{
date = "2021-03-30 14:07:01 +0000";
path = "/Users/Boris/Downloads/test/test.txt";
shouldDoFullScan = 0;
}
) for stream at path: /Users/Boris/Downloads/test
2021-03-30 16:07:01.111 86Z3GCJ4MF.com.noodlesoft.HazelHelper[937] DEBUG: Thread 0x14b61dff0: Run worker for folder: /Users/Boris/Downloads/test
2021-03-30 16:07:01.148 hazelworker[1105] Running worker (v5.0.6) for folder with identifier: 16777233-13623368.
2021-03-30 16:07:01.149 hazelworker[1105] ###main load address: 0x100020000
2021-03-30 16:07:01.149 hazelworker[1105] ###Hazel Core load address: 0x10006c000
2021-03-30 16:07:01.149 hazelworker[1105] ###Noodle load address: 0x100194000
2021-03-30 16:07:01.149 hazelworker[1105] ###CK load address: 0x10014c000
2021-03-30 16:07:01.157 hazelworker[1105] DEBUG: Program is licensed.
2021-03-30 16:07:01.163 hazelworker[1105] DEBUG: Error reading file /Users/Boris/Library/Application Support/Firefox/prefs.js: Error Domain=NSCocoaErrorDomain Code=260 "The file “prefs.js” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/Boris/Library/Application Support/Firefox/prefs.js, NSUnderlyingError=0x12e332df0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
2021-03-30 16:07:01.169 hazelworker[1105] DEBUG: Could not find entry for default_directory in Chrome preference file.
2021-03-30 16:07:01.170 hazelworker[1105] Processing folder test
2021-03-30 16:07:01.170 hazelworker[1105] DEBUG: Pausing to wait for things to settle down.
2021-03-30 16:07:03.176 hazelworker[1105] DEBUG: Processing directories: (
"/Users/Boris/Downloads/test"
)
2021-03-30 16:07:03.225 86Z3GCJ4MF.com.noodlesoft.HazelHelper[937] DEBUG: Checking events for path /Users/Boris/Downloads/test, folder test
2021-03-30 16:07:03.226 hazelworker[1105] DEBUG: Received file event: {
date = "2021-03-30 14:07:01 +0000";
path = "<NoodlePathSet: 0x12e12bfc0>\n /Users/Boris/Downloads/test/test.txt : 0\n";
}
2021-03-30 16:07:03.226 hazelworker[1105] DEBUG: About to process directory /Users/Boris/Downloads/test
2021-03-30 16:07:03.228 hazelworker[1105] test.txt: Rule Test SFTP matched.
2021-03-30 16:07:03.228 hazelworker[1105] DEBUG: New rule signature. Executing actions.
Old signatures: (
)
New Signature:{dateAdded >[cd] dateMatched AND ANY displayExtensions ==[cd] "txt"}:{(upload:sftp://toto@www.xyx.net:5022/Doc/_Kiosque/,{
keepFolderStructure = 0;
replaceExisting = 2;
throwAwayDupes = 1;
})}
2021-03-30 16:07:03.229 hazelworker[1105][CONNECTION] DEBUG: Listing /Doc/_Kiosque
2021-03-30 16:07:03.315 hazelworker[1105] Failed trying to get contents of directory for sftp://toto@www.xyx.net:5022/Doc/_Kiosque/test.txt: Error Domain=se.haxx.curl.libcurl.CURLcode Code=2 "The folder “_Kiosque” could not be accessed. Failure establishing ssh session" UserInfo={NSLocalizedFailureReason=Failed initialization, NSErrorFailingURLStringKey=sftp://toto@www.xyx.net:5022/Doc/_Kiosque/, NSErrorFailingURLKey=sftp://toto@www.xyx.net:5022/Doc/_Kiosque/, NSLocalizedDescription=The folder “_Kiosque” could not be accessed. Failure establishing ssh session}
2021-03-30 16:07:03.315 hazelworker[1105] [Error] Upload failed: Could not upload file test.txt from folder /Users/Boris/Downloads/test to server http://www.my-zones.net
2021-03-30 16:07:03.315 hazelworker[1105] DEBUG: Tapping error retry sequence
2021-03-30 16:07:03.316 hazelworker[1105] DEBUG: Writing out DB file for /Users/Boris/Downloads/test to path: /Users/Boris/Library/Application Support/Hazel/16777233-13623368.hazeldb
2021-03-30 16:07:03.317 hazelworker[1105] DEBUG: Directory /Users/Boris/Downloads/test processed in 0.091680 seconds
2021-03-30 16:07:03.318 86Z3GCJ4MF.com.noodlesoft.HazelHelper[937] DEBUG: Checking events for path /Users/Boris/Downloads/test, folder test
2021-03-30 16:07:03.318 hazelworker[1105] DEBUG: Sleeping
2021-03-30 16:07:05.326 hazelworker[1105] DEBUG: About to process directory /Users/Boris/Downloads/test
2021-03-30 16:07:05.327 hazelworker[1105] test.txt: Rule Test SFTP matched.
2021-03-30 16:07:05.328 hazelworker[1105] DEBUG: Got error last time. Re-trying actions.
2021-03-30 16:07:05.328 hazelworker[1105][CONNECTION] DEBUG: Listing /Doc/_Kiosque
2021-03-30 16:07:05.373 hazelworker[1105] Failed trying to get contents of directory for sftp://toto@www.xyx.net:5022/Doc/_Kiosque/test.txt: Error Domain=se.haxx.curl.libcurl.CURLcode Code=2 "The folder “_Kiosque” could not be accessed. Failure establishing ssh session" UserInfo={NSLocalizedFailureReason=Failed initialization, NSErrorFailingURLStringKey=sftp://toto@www.xyx.net:5022/Doc/_Kiosque/, NSErrorFailingURLKey=sftp://toto@www.xyx.net:5022/Doc/_Kiosque/, NSLocalizedDescription=The folder “_Kiosque” could not be accessed. Failure establishing ssh session}
2021-03-30 16:07:05.374 hazelworker[1105] [Error] Upload failed: Could not upload file test.txt from folder /Users/Boris/Downloads/test to server http://www.my-zones.net
2021-03-30 16:07:05.374 hazelworker[1105] DEBUG: Tapping error retry sequence
2021-03-30 16:07:05.374 hazelworker[1105] DEBUG: Writing out DB file for /Users/Boris/Downloads/test to path: /Users/Boris/Library/Application Support/Hazel/16777233-13623368.hazeldb
2021-03-30 16:07:05.376 hazelworker[1105] DEBUG: Directory /Users/Boris/Downloads/test processed in 0.049565 seconds
2021-03-30 16:07:05.376 86Z3GCJ4MF.com.noodlesoft.HazelHelper[937] DEBUG: Checking events for path /Users/Boris/Downloads/test, folder test
2021-03-30 16:07:05.376 hazelworker[1105] DEBUG: Sleeping
MsieurBobo
 
Posts: 4
Joined: Fri Oct 11, 2019 2:08 am

Hmm, was hoping for more info in the logs. Can you try creating the rule again and seeing if you can connect via the UI? Can you tell me more about the connection? Are you using a private key or password? Has anything changed on the server?
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

I deleted all the rules concerning this SFTP connection and then I created a new one. Same problem, same error message.

more information :
I use a login / password.
I just updated my Synology DSM from version 6.2.4 to 7.0
A connection with the Forklift application from the same mac on the same server with the same user works normally (it just asked me to validate a new fingerprint after the upgrade)
MsieurBobo
 
Posts: 4
Joined: Fri Oct 11, 2019 2:08 am

I wonder if Synology now uses ed25519 keys, which Hazel doesn't support. Can you contact Synology and get more info from them?
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

You are right, it is a problem of encryption algorithm.

There are 3 choices in ssh server advanced settings.
The connection doesn't work with medium & high security level, but it works with the low level.

Can you tell me which encryption algorithms Hazel supports because there is a possibility to customize the configuration.
MsieurBobo
 
Posts: 4
Joined: Fri Oct 11, 2019 2:08 am

It should support RSA, which is pretty universal amongst SSH implementations.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support