SFTP error when creating remote folder

When synchronizing a folder with about 10 subfolders in SFTP (Infomaniak Swissbackup), I see a lot of errors such as:

14 Jun 11:16:53PM ERROR Failed Create Folder (Local to Remote) for C:/path/to/syncdir/mySubFolder Error: code SFTP_UNKNOWN_IO_ERROR caused by SFTPRequestException(code SFTP_UNKNOWN_IO_ERROR - Low level IO/permission sftp error caused by IOError([Errno 2] No such file))

Also occasionally I see errors on file such as:

12 Jun 12:29:17AM ERROR Failed Upload File for File: C:/path/to/syncdir/mySubFolder/myFile - Size: 194400 Bytes - Date: 2016-09-24 22:39:18 - Error: code SFTP_TOO_MANY_SIMULTANEOUS_CONNECTIONS

Apparently, the number of connections on the server is limited, but I don’t know the limit. Are both issues related ? Is there a way to limit the number of connections in odrive ?

Hi @jk1,
The first error is an indication of a server error, of come sort. The “no permission” could be a little misleading, since it is somewhat generic. For these items that are erroring, do you see the folder being created on the remote side?

Check the permissions on the parent folder, as this could be indicative of a “no permissions” error.

For the second error, you can change the concurrent connections for the link on the web client by going to the listed link and selecting “Edit”. This will allow you to change the “Max Concurrent Connections” parameter. You may need to restart the desktop client to pick up the link change.

For the error “no permission” I don’t see the folder created on the remote side. I don’t think this is a true permission issue because when I’m connected to the remote side using FileZilla FTP Client (same username/password than with odrive), I can create the folder manually.

I set the “Max Concurrent Connections” to 1 and it looks like more files can be transfered without errors.

I noticed from the main.log that the folder is correctly created only right after connection:

15 Jun 01:33:05AM INFO End scan and refresh mount C:/Projets/Mobilière
15 Jun 01:33:06AM INFO Connected (version 2.0, client Infomaniak)
15 Jun 01:33:06AM INFO Connected (version 2.0, client Infomaniak)
15 Jun 01:33:06AM INFO Authentication (password) successful!
15 Jun 01:33:06AM INFO [chan 0] Opened sftp connection (server version 3)
15 Jun 01:33:06AM INFO Authentication (password) successful!
15 Jun 01:33:06AM INFO [chan 0] Opened sftp connection (server version 3)
15 Jun 01:33:09AM INFO Successful Create Folder (Local to Remote) for C:/Projets/Mobilière/Articles/GLOSSAIRE Assurance Vie - Arca Patrimoine Blog_fichiers
15 Jun 01:33:09AM INFO Successful Create Folder (Local to Remote) for C:/Projets/Mobilière/Acceptation électronique
15 Jun 01:33:10AM ERROR Failed Upload File for File: C:/Projets/Mobilière/Acceptation électronique/2020-07-30 00_29_38-Conclusion électronique d'une assurance I la Mobilière.png - Size: 101715 Bytes - Date: 2020-07-30 00:30:32 - Error: code SFTP_UNKNOWN_IO_ERROR caused by SFTPRequestException(code SFTP_UNKNOWN_IO_ERROR - Low level IO/permission sftp error caused by IOError([Errno 2] No such file))
...
15 Jun 01:33:34AM ERROR Failed Upload File for File: C:/Projets/Mobilière/Articles/GLOSSAIRE Assurance Vie - Arca Patrimoine Blog_fichiers/style.css - Size: 103438 Bytes - Date: 2016-09-24 22:23:54 - Error: code SFTP_UNKNOWN_IO_ERROR caused by SFTPRequestException(code SFTP_UNKNOWN_IO_ERROR - Low level IO/permission sftp error caused by IOError([Errno 2] No such file))
15 Jun 01:33:34AM INFO Successful Upload File for File: C:/Projets/Mobilière/PIQ4-2020/OU EST CHABLAIS.png - Size: 5906854 Bytes - Date: 2021-02-06 14:11:53
15 Jun 01:33:35AM ERROR Failed Create Folder (Local to Remote) for C:/Projets/Mobilière/Blockchain Error: code SFTP_UNKNOWN_IO_ERROR caused by SFTPRequestException(code SFTP_UNKNOWN_IO_ERROR - Low level IO/permission sftp error caused by IOError([Errno 2] No such file))
15 Jun 01:33:35AM INFO Successful Upload File for File: C:/Projets/Mobilière/Articles/GLOSSAIRE Assurance Vie - Arca Patrimoine Blog_fichiers/addthis_widget.js - Size: 372095 Bytes - Date: 2016-09-24 22:23:54
15 Jun 01:33:35AM INFO Successful Upload File for File: C:/Projets/Mobilière/Articles/GLOSSAIRE Assurance Vie - Arca Patrimoine Blog_fichiers/layers.js - Size: 268386 Bytes - Date: 2016-09-24 22:23:54
15 Jun 01:33:35AM ERROR Failed Create Folder (Local to Remote) for C:/Projets/Mobilière/LBA Error: code SFTP_UNKNOWN_IO_ERROR caused by SFTPRequestException(code SFTP_UNKNOWN_IO_ERROR - Low level IO/permission sftp error caused by IOError([Errno 2] No such file))

So the “LBA” folder could not be created at the first connection. But after a second connection it can be created:

15 Jun 07:01:18AM INFO Connected (version 2.0, client Infomaniak)
15 Jun 07:01:18AM INFO Authentication (password) successful!
15 Jun 07:01:18AM INFO [chan 0] Opened sftp connection (server version 3)
15 Jun 07:01:28AM INFO Start scan and refresh mount C:/Users/Julien/odrive
15 Jun 07:01:29AM INFO Scanned (mount) 14 local folders
15 Jun 07:01:29AM INFO End scan and refresh mount C:/Users/Julien/odrive
15 Jun 07:01:31AM INFO Start scan and refresh mount C:/Projets/Mobilière
15 Jun 07:01:31AM INFO Scanned (mount) 7 local folders
15 Jun 07:01:31AM INFO End scan and refresh mount C:/Projets/Mobilière
15 Jun 07:01:33AM INFO Successful Create Folder (Local to Remote) for C:/Projets/Mobilière/LBA
15 Jun 07:01:35AM INFO Successful Upload File for File: C:/Projets/Mobilière/LBA/GUI/Coder en HTML et Javascript.txt - Size: 611 Bytes - Date: 2020-06-20 14:20:28
15 Jun 07:01:35AM ERROR Failed Upload File for File: C:/Projets/Mobilière/LBA/GUI/partner_PP_F.png - Size: 6769 Bytes - Date: 2020-06-19 16:21:43 - Error: code SFTP_TOO_MANY_SIMULTANEOUS_CONNECTIONS
15 Jun 07:01:36AM INFO Successful Upload File for File: C:/Projets/Mobilière/LBA/GUI/partner_ENT.png - Size: 4305 Bytes - Date: 2020-06-19 16:21:43
15 Jun 07:01:37AM INFO Successful Upload File for File: C:/Projets/Mobilière/LBA/GUI/partner_PP_F.png - Size: 6769 Bytes - Date: 2020-06-19 16:21:43

It’s a bit strange that SFTP_TOO_MANY_SIMULTANEOUS_CONNECTIONS are still found in the main.log even if the “Max Concurrent Connections” has been set to 1 (odrive Windows client have been exited then restarted).

Hi @jk1,
We will probably need to test against this source to figure out what might be happening, since all of our typical SFTP testing and use has not revealed this type of issue.

Is there a way for you to create a test account for us to use to debug?

Thanks for your support. I sent you test user connection data in a private message.

1 Like