In the latest version of NetBox (2.1.10.147, FAR3 x86, Win Vista 32) there is a problem with editing 2 files with the same name.
eg.:
I have the file test.php on local filesystem, and on remote scp in /1/test.php and /2/test.php
1. I open for editing /1/test.php
2. I can open for editing local 1.php
3. If I try to open /2/test.php I get an error:
Copying files from remote side failed.
System Error. Code: 32.
The process cannot access the file because it is being used by another process
Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client
Posted: Sun 25 Nov, 2012 05:09
by far_gg
A great plugin - I use it daily to download big files on Win7, FAR2. Unfortunately, when downloading a few of them when they are more than 100 MB in size, I consistently get a disconnect in between the files. This doesn't happen when I download a bunch of smaller files.
My FTP (Synology box) is behind a router, so I have to use PASV mode with it.
. 2012-11-24 18:48:23.624 --------------------------------------------------------------------------
. 2012-11-24 18:48:23.624 NetBox Version 2.1.18 (Build 189) (OS 6.1.7601 Service Pack 1)
. 2012-11-24 18:48:23.624 Configuration: HKEY_CURRENT_USER\Software\Far2\Plugins\NetBox 2\
. 2012-11-24 18:48:23.624 Working directory: T:\FromNAS\_SynDlStn_\SomeDirectory
. 2012-11-24 18:48:23.640 Login time: 24.11.2012 18:48:23
. 2012-11-24 18:48:23.640 --------------------------------------------------------------------------
. 2012-11-24 18:48:23.640 Host name: my.host.com (Port: 12321)
. 2012-11-24 18:48:23.640 Tunnel: No
. 2012-11-24 18:48:23.640 Transfer Protocol: FTP
. 2012-11-24 18:48:23.656 Code Page: 0
. 2012-11-24 18:48:23.656 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2012-11-24 18:48:23.656 Proxy: none
. 2012-11-24 18:48:23.656 FTP: FTPS: Explicit SSL; Passive: Yes [Force IP: A]; MLSD: A
. 2012-11-24 18:48:23.656 Local directory: default, Remote directory: /Syno/SynologyDownloadStation/SomeDirectory, Update: Yes, Cache: No
. 2012-11-24 18:48:23.656 Cache directory changes: No, Permanent: No
. 2012-11-24 18:48:23.656 DST mode: 1
. 2012-11-24 18:48:23.656 --------------------------------------------------------------------------
. 2012-11-24 18:48:23.656 Connecting to my.host.com:12321 ...
. 2012-11-24 18:48:23.734 m_pSslLayer changed state from 0 to 1
. 2012-11-24 18:48:23.734 m_pSslLayer changed state from 1 to 2
. 2012-11-24 18:48:24.046 m_pSslLayer changed state from 2 to 4
. 2012-11-24 18:48:24.046 Connected with my.host.com:12321, negotiating SSL connection...
< 2012-11-24 18:48:24.358 220 MyFtp FTP server ready.
> 2012-11-24 18:48:24.358 AUTH SSL
< 2012-11-24 18:48:24.670 234 AUTH SSL command successful.
. 2012-11-24 18:48:24.982 SSL_connect: SSLv3 read server hello A
. 2012-11-24 18:48:24.982 SSL_connect: SSLv3 read server certificate A
. 2012-11-24 18:48:24.982 SSL_connect: SSLv3 read server done A
. 2012-11-24 18:48:24.982 SSL_connect: SSLv3 write client key exchange A
. 2012-11-24 18:48:24.982 SSL_connect: SSLv3 write change cipher spec A
. 2012-11-24 18:48:24.982 SSL_connect: SSLv3 write finished A
. 2012-11-24 18:48:24.982 SSL_connect: SSLv3 flush data
. 2012-11-24 18:48:25.606 SSL_connect: SSLv3 read server session ticket A
. 2012-11-24 18:48:25.606 SSL_connect: SSLv3 read finished A
. 2012-11-24 18:48:25.606 Using TLSv1, cipher TLSv1/SSLv3: AES256-SHA, 1024 bit RSA
. 2012-11-24 18:48:25.606 SSL connection established. Waiting for welcome message...
> 2012-11-24 18:48:25.606 USER MyUser
< 2012-11-24 18:48:25.902 331 Password required for MyUser.
> 2012-11-24 18:48:25.902 PASS *********
< 2012-11-24 18:48:27.134 230 User MyUser logged in.
> 2012-11-24 18:48:27.134 SYST
< 2012-11-24 18:48:27.696 215 UNIX Type: L8
> 2012-11-24 18:48:27.696 FEAT
< 2012-11-24 18:48:27.930 211- Extensions supported:
< 2012-11-24 18:48:27.930 AUTH TLS
< 2012-11-24 18:48:27.930 PBSZ
< 2012-11-24 18:48:27.946 PROT
< 2012-11-24 18:48:27.946 SIZE
< 2012-11-24 18:48:28.148 MDTM
< 2012-11-24 18:48:28.148 MFMT
< 2012-11-24 18:48:28.148 REST STREAM
< 2012-11-24 18:48:28.148 211 End.
> 2012-11-24 18:48:28.148 PBSZ 0
< 2012-11-24 18:48:28.726 200 PBSZ command successful (PBSZ=0).
> 2012-11-24 18:48:28.741 PROT P
< 2012-11-24 18:48:28.960 200 Protection level set to Private.
. 2012-11-24 18:48:28.960 Connected
. 2012-11-24 18:48:28.960 Got reply 1 to the command 1
. 2012-11-24 18:48:28.960 --------------------------------------------------------------------------
. 2012-11-24 18:48:28.975 Using FTPS protocol.
. 2012-11-24 18:48:28.975 Doing startup conversation with host.
> 2012-11-24 18:48:28.975 PWD
< 2012-11-24 18:48:29.272 257 "/" is current directory.
. 2012-11-24 18:48:29.272 Got reply 1 to the command 16
. 2012-11-24 18:48:29.272 Changing directory to "/Syno/SynologyDownloadStation/SomeDirectory".
> 2012-11-24 18:48:29.272 CWD /Syno/SynologyDownloadStation/SomeDirectory
< 2012-11-24 18:48:29.584 250 CWD command successful.
. 2012-11-24 18:48:29.584 Got reply 1 to the command 16
. 2012-11-24 18:48:29.584 Getting current directory name.
> 2012-11-24 18:48:29.584 PWD
< 2012-11-24 18:48:29.880 257 "/Syno/SynologyDownloadStation/SomeDirectory" is current directory.
. 2012-11-24 18:48:29.880 Got reply 1 to the command 16
. 2012-11-24 18:48:29.880 Retrieving directory listing...
> 2012-11-24 18:48:29.880 TYPE A
< 2012-11-24 18:48:30.192 200 Type set to A.
> 2012-11-24 18:48:30.192 PASV
< 2012-11-24 18:48:30.488 227 Entering Passive Mode (11,22,33,44,41,36)
> 2012-11-24 18:48:30.504 LIST -a
. 2012-11-24 18:48:30.894 Trying reuse main SSL session ID
. 2012-11-24 18:48:30.894 m_pSslLayer changed state from 0 to 4
< 2012-11-24 18:48:31.112 150 Opening BINARY mode SSL data connection for 'file list'.
. 2012-11-24 18:48:31.112 Session ID reused
. 2012-11-24 18:48:31.112 SSL connection established
< 2012-11-24 18:48:31.331 226 Transfer complete.
. 2012-11-24 18:48:31.331 m_pSslLayer changed state from 4 to 5
. 2012-11-24 18:48:31.331 -rw-rw-rw- 1 MyUser users 221297117 Nov 22 23:19 File1.wmv
. 2012-11-24 18:48:31.331 -rw-rw-rw- 1 MyUser users 264144345 Nov 22 23:35 File2.wmv
. 2012-11-24 18:48:31.331 -rw-rw-rw- 1 MyUser users 200597809 Nov 22 23:17 File3.wmv
. 2012-11-24 18:48:31.346 -rw-rw-rw- 1 MyUser users 292594505 Nov 22 23:35 File4.wmv
. 2012-11-24 18:48:31.346 -rw-rw-rw- 1 MyUser users 422233959 Nov 22 23:35 File5.wmv
. 2012-11-24 18:48:31.346 -rw-rw-rw- 1 MyUser users 260955237 Nov 22 23:35 FileAbcdef.wmv
. 2012-11-24 18:48:31.346 -rw-rw-rw- 1 MyUser users 290080303 Nov 22 23:35 FileBcdef.wmv
. 2012-11-24 18:48:31.346 drwxrwxrwx 1 MyUser users 16384 Nov 17 23:37 screen
. 2012-11-24 18:48:31.346 Directory listing successful
. 2012-11-24 18:48:31.346 Got reply 1 to the command 2
. 2012-11-24 18:48:31.362 ..;D;0;1899-12-30T00:00:00.000Z;"" [0];"" [0];---------;0
. 2012-11-24 18:48:31.362 File1.wmv;-;221297117;2012-11-22T23:19:00.000Z;"MyUser" [0];"users" [0];rw-rw-rw-;1
. 2012-11-24 18:48:31.362 File2.wmv;-;264144345;2012-11-22T23:35:00.000Z;"MyUser" [0];"users" [0];rw-rw-rw-;1
. 2012-11-24 18:48:31.362 File3.wmv;-;200597809;2012-11-22T23:17:00.000Z;"MyUser" [0];"users" [0];rw-rw-rw-;1
. 2012-11-24 18:48:31.362 File4.wmv;-;292594505;2012-11-22T23:35:00.000Z;"MyUser" [0];"users" [0];rw-rw-rw-;1
. 2012-11-24 18:48:31.362 File5.wmv;-;422233959;2012-11-22T23:35:00.000Z;"MyUser" [0];"users" [0];rw-rw-rw-;1
. 2012-11-24 18:48:31.362 FileAbcdef.wmv;-;260955237;2012-11-22T23:35:00.000Z;"MyUser" [0];"users" [0];rw-rw-rw-;1
. 2012-11-24 18:48:31.362 FileBcdef.wmv;-;290080303;2012-11-22T23:35:00.000Z;"MyUser" [0];"users" [0];rw-rw-rw-;1
. 2012-11-24 18:48:31.362 screen;D;16384;2012-11-17T23:37:00.000Z;"MyUser" [0];"users" [0];rwxrwxrwx;1
. 2012-11-24 18:48:31.362 Startup conversation with host finished.
> 2012-11-24 18:49:02.469 TYPE I
< 2012-11-24 18:49:02.469 200 Type set to I.
> 2012-11-24 18:49:32.296 TYPE A
< 2012-11-24 18:49:32.296 200 Type set to A.
. 2012-11-24 18:49:39.909 File: "/Syno/SynologyDownloadStation/SomeDirectory/FileBcdef.wmv"
. 2012-11-24 18:49:39.924 Copying "/Syno/SynologyDownloadStation/SomeDirectory/FileBcdef.wmv" to local directory started.
. 2012-11-24 18:49:39.924 Binary transfer mode selected.
. 2012-11-24 18:49:39.924 Starting download of /Syno/SynologyDownloadStation/SomeDirectory/FileBcdef.wmv
. 2012-11-24 18:49:39.924 Asking user:
. 2012-11-24 18:49:39.924 Local file 'FileBcdef.wmv' already exists. Overwrite?
. 2012-11-24 18:49:39.924
. 2012-11-24 18:49:39.924 New: 290080303 bytes, 22.11.2012 23:35:00
. 2012-11-24 18:49:39.924 Existing: 288112640 bytes, 24.11.2012 18:47:58 ()
> 2012-11-24 18:49:41.188 TYPE I
< 2012-11-24 18:49:41.453 200 Type set to I.
> 2012-11-24 18:49:41.453 PASV
< 2012-11-24 18:49:41.765 227 Entering Passive Mode (11,22,33,44,41,54)
> 2012-11-24 18:49:41.765 REST 288112640
< 2012-11-24 18:49:42.077 350 Restarting at 288112640. Send STORE or RETRIEVE to initiate transfer.
> 2012-11-24 18:49:42.077 RETR FileBcdef.wmv
< 2012-11-24 18:49:42.717 150 Opening BINARY mode SSL data connection for 'FileBcdef.wmv' (290080303 bytes).
. 2012-11-24 18:49:42.748 Trying reuse main SSL session ID
. 2012-11-24 18:49:42.748 m_pSslLayer changed state from 0 to 4
. 2012-11-24 18:49:43.013 Session ID reused
. 2012-11-24 18:49:43.013 SSL connection established
< 2012-11-24 18:50:07.365 226 Transfer complete.
. 2012-11-24 18:50:07.864 m_pSslLayer changed state from 4 to 5
. 2012-11-24 18:50:07.989 Download successful
. 2012-11-24 18:50:07.989 Got reply 1 to the command 4
. 2012-11-24 18:50:07.989 File: "/Syno/SynologyDownloadStation/SomeDirectory/FileAbcdef.wmv"
. 2012-11-24 18:50:07.989 Copying "/Syno/SynologyDownloadStation/SomeDirectory/FileAbcdef.wmv" to local directory started.
. 2012-11-24 18:50:08.004 Binary transfer mode selected.
. 2012-11-24 18:50:08.004 Starting download of /Syno/SynologyDownloadStation/SomeDirectory/FileAbcdef.wmv
> 2012-11-24 18:50:08.004 TYPE I
< 2012-11-24 18:50:08.316 200 Type set to I.
> 2012-11-24 18:50:08.316 PASV
< 2012-11-24 18:50:08.847 227 Entering Passive Mode (11,22,33,44,41,38)
> 2012-11-24 18:50:08.847 RETR FileAbcdef.wmv
< 2012-11-24 18:50:09.408 150 Opening BINARY mode SSL data connection for 'FileAbcdef.wmv' (260955237 bytes).
. 2012-11-24 18:50:10.126 Trying reuse main SSL session ID
. 2012-11-24 18:50:10.126 m_pSslLayer changed state from 0 to 4
. 2012-11-24 18:50:10.344 Session ID reused
. 2012-11-24 18:50:10.344 SSL connection established
. 2012-11-24 19:03:12.300 m_pSslLayer changed state from 4 to 5
. 2012-11-24 19:03:27.089 Timeout detected.
. 2012-11-24 19:03:27.167 Copying files from remote side failed.
. 2012-11-24 19:03:27.167 Got reply 1004 to the command 4
. 2012-11-24 19:03:27.167 Connection was lost, asking what to do.
. 2012-11-24 19:03:27.167 Asking user:
. 2012-11-24 19:03:27.167 Lost connection. ("Timeout detected.","Copying files from remote side failed.","Opening BINARY mode SSL data connection for 'FileAbcdef.wmv' (260955237 bytes).",)
* 2012-11-24 19:30:31.277
* 2012-11-24 19:30:31.277 Timeout detected.
* 2012-11-24 19:30:31.277 Copying files from remote side failed.
* 2012-11-24 19:30:31.277 Opening BINARY mode SSL data connection for 'FileAbcdef.wmv' (260955237 bytes).
* 2012-11-24 19:30:31.277 Copying files from remote side failed.
. It starts with a resume, but the same issue happens when I start a fresh set of files.
Thank you very much for looking into this.
Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client
Posted: Sun 02 Dec, 2012 04:22
by far_gg
Follow up on my earlier post. After more experimentation, I am seeing the same sort of disconnects between transfers over FAR's built-in FTP as well. Looks like trouble on Synology NAS side.
Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client
Posted: Fri 15 Feb, 2013 13:43
by pandronic
There are a couple of bugs regarding editing files. I made the following image to illustrate:
Are they known by the developers and if so are they going to be resolved?
I don't know about the "100% Copying" bug, but the second is clearly a NetBox problem. Probably it assigns a random filename to the edited file so if you edit 2 files with the same name they don't get overwritten. While technically it seems to work ok, seeing in the ConEmu tab bar and Screen switcher (F12) filenames like 923RJ4R24J924J9D24.php is not very good.
I was thinking they could name the temporary files
I updated manually and everything works fine. Thanks for the fix.
As for the "100% copying" bug here are the steps to reproduce it on my machine:
- I have a SFTP server (with the default options for the session)
- The only options in NetBox I've changed are:
[x] Allow more than one edited file
[x] Upload after every save
- I open a remote text file in the editor
- I hit F2 to save, the file is saved
- after uploading is finished the title of the tab with the panel from which I opened the file is (100% Copying)
- if I press F12 to see the list of the screens, the name of the screen is correct however (so it could be a ConEmu problem - I'm not sure)
- if I switch to the panel tab, the name of the tab is corrected
Edit: replaced the image
Posted: Mon 25 Feb, 2013 10:58
by HaRT
pandronic
Next time, instead of an image, use the AltIns key to grab text from FAR window and the
Hi, just a heads-up: In msvc2012 / windows platform sdk 8.0 ShObjIdl.h there is a new enum PBM_PLAY_STATE with member PS_PAUSED.
This conflicts with the identically named entry in your PluginSDK/Far*/plugin.hpp. I suggest updating your old far api files.
drkns 02.03.2012 13:58:31 +0200 - build 2515
2. Microsoft has played a dirty trick by adding PS_PAUSED to shobjidl.h, so constants form PROGRESSTATE have TBPS_ prefix now.
Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client
Posted: Thu 08 Aug, 2013 07:29
by KlepetoX
I confirm the same problem as Darkman (http://forum.farmanager.com/viewtopic.p ... 30#p112155), when I copy large files (even small files with slow connection) there's always error at the end. I must use old Ansi FTP plugin. But there are other bugs - I can't see and set attributes on Filezilla based FTP servers (old FTP plugin can) - the same bug is in WinSCP. And last - time on files after copy on FTP is shifted (timezones?) by whole hours while old FTP plugin shows right time. I like this plugin but I can hardly use it
Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client
Posted: Sat 05 Oct, 2013 17:42
by campingcheese
Is it possible to refer a netbox stored session in a cmd or macro script? I would like to write a user menu command that archives the current folder and copies it to webdav.
Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client
Posted: Mon 07 Oct, 2013 10:26
by HaRT
campingcheese wrote:Is it possible to refer a netbox stored session in a cmd or macro script?
CMD — no.
Macro (Lua) — yes, but you'll need to simulate user commands as NetBox doesn't expose any API of its own AFAIK.
Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client
Posted: Sun 20 Oct, 2013 08:03
by pandronic
Another NetBox bug. I'm using 2.1.31 build 271 on Far 3.0 build 3525 x86
Whenever I try to move (F6) a file from the local HDD to a SFTP server, the file get copied, but the local copy is not deleted. Instead I get the message:
╔═════════════════════════ Error ═════════════════════════╗
║ Copying files to remote side failed. ║
╟─────────────────────────────────────────────────────────╢
║ System Error. Code: 32. ║
║ The process cannot access the file because it is being ║
║ used by another process ║
╟─────────────────────────────────────────────────────────╢
║ Ok ║
╚═════════════════════════════════════════════════════════╝
Needless to say that the file is not used by any process. On FTP it works fine.
Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client
Posted: Wed 23 Oct, 2013 18:05
by KlepetoX
I have found several things, that make NetBox plugin unusable for common work.
First of all:
Cannot copy large files to FTP (on fast connection) and even small files on slow connection. I always received this error (at the end of copying with 99%):
╔════════════════ Error ════════════════╗
║ Lost connection. ║
║───────────────────────────────────────║
║ Timeout detected. ║
║ Copying files to remote side failed. ║
║ Accepted data connection ║
║───────────────────────────────────────║
║ Abort Reconnect (2 s) ║
╚═══════════════════════════════════════╝
or sometimes error as "pandronic" above that the file is used by another process at the very end of copying. Why is connection lost? It is NOT. Old plugin copies everything in a right way. And sometimes after this error, the file is copied well.
The second:
Cannot set and read attributes on Filezilla based FTP servers:
╔═══════ Set attributes ════════╗
║ R W X R W X R W X ║
║ [x][x][x] [x][ ][x] [x][ ][x] ║ everything is read and written alright
║───────────────────────────────║
║ { OK } [ Cancel ] ║
╚═══════════════════════════════╝
The third:
Every files on both sides (local/ftp) are overwritten without any warning that files already exist. It doesn't matter what is set in configuration:
╔════════════════ NetBox - Confirmations ═════════════════╗
║ [ ] Overwriting of files (? = use FAR settings) ║ It doesn't matter what is here
║ [x] Opening separate shell session ║
║ [x] Transfer resuming ║
║ [x] Synchronised browsing ║
║─────────────────────────────────────────────────────────║
║ { Ok } [ Cancel ] ║
╚═════════════════════════════════════════════════════════╝
My FAR version is 3695, NetBox is 2.1.31.271. Where can I search reasons of this strange behavior, it is in NetBox or on my hard disk?
And why is everything absolutely alright with old ANSI FTP plugin?
Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client
Posted: Sun 27 Oct, 2013 08:53
by pandronic
Did any Far/Netbox developer read this?
This really sucks. Until this is fixed, Far is unusable for me. Meanwhile, I think I'll install Far 2 with WinSCP or look at other file managers.