NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Here you can discuss about your favorite plug-in.
pdan_pdan
Posts: 15
Joined: Tue 30 Nov, 2010 12:00

Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post by pdan_pdan »

Latest post of the previous page:

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
far_gg
Posts: 2
Joined: Sun 25 Nov, 2012 05:01

Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post 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. . 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.
Last edited by far_gg on Thu 01 Jan, 1970 01:00, edited 0 times in total.
Reason: Fixed log formatting
far_gg
Posts: 2
Joined: Sun 25 Nov, 2012 05:01

Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post 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.
pandronic
Posts: 30
Joined: Tue 23 Mar, 2010 12:04

Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post by pandronic »

There are a couple of bugs regarding editing files. I made the following image to illustrate:

Image

Are they known by the developers and if so are they going to be resolved?

Thank you
User avatar
John Doe
Бюрократ
Posts: 13807
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 73 times
Been thanked: 426 times
Contact:

Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post by John Doe »

All this topic is about NetBox.

You should look here: http://code.google.com/p/conemu-maximus ... ssues?tm=3
pandronic
Posts: 30
Joined: Tue 23 Mar, 2010 12:04

Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post by pandronic »

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

Code: Select all

"923RJ4R24J924J9D24/file.php"
or at least

Code: Select all

"file.php      [lots of spaces ]            923RJ4R24J924J9D24.php"
so I can see what files I'm editing.

Regards
User avatar
Michael Lukashov
Posts: 516
Joined: Mon 23 Jan, 2006 09:38
Has thanked: 6 times
Been thanked: 21 times
Contact:

Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post by Michael Lukashov »

I cannot see "100% Copying" bug with latest ConEmu and Far2.
Filenames issue is fixed in 2.1.26, you can try it.
pandronic
Posts: 30
Joined: Tue 23 Mar, 2010 12:04

Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post by pandronic »

I stumbled upon another small bug - I don't know if it's a Renewal bug or something on your end:

Code: Select all

╔═════════════════ Renewal (autoupdate) ═════════════════╗
║  Far Manager              3.0.0.3219  → 3.0.0.3219     ║
║  Disk menu                3.10.0.2841 → 3.10.0.2841    ║
║  FarColorer               1.0.3.12    → 1.0.3.12       ║
║  NetBox                   2.1.25.216  → 2.1.19         ║
║  Renewal                  3.15.0.2841 → 3.15.0.2841    ║
╟────────────────────────────────────────────────────────╢
║ Far Manager:                [ HomePage ] [ ChangeLog ] ║
╟────────────────────────────────────────────────────────╢
║            { Check } [ Install ] [ Close ]             ║
╚════════════════════════════════════════════════════════╝
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:

Code: Select all

[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
User avatar
HaRT
Moderator
Posts: 10822
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

Post by HaRT »

pandronic
Next time, instead of an image, use the AltIns key to grab text from FAR window and the

Code: Select all

[/b] tag to publish it here
Фар есть инструмент, а не нянька. © 2009 DrKnS
ultramage
Posts: 6
Joined: Sat 01 Nov, 2008 01:43

Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post by ultramage »

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.

Code: Select all

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.
KlepetoX
Posts: 129
Joined: Sun 08 Jan, 2012 08:23
Location: Czech Republic
Has thanked: 2 times
Been thanked: 1 time

Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post 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 :-(
campingcheese
Posts: 1
Joined: Sat 05 Oct, 2013 13:42

Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post 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.
User avatar
HaRT
Moderator
Posts: 10822
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post 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.
Фар есть инструмент, а не нянька. © 2009 DrKnS
pandronic
Posts: 30
Joined: Tue 23 Mar, 2010 12:04

Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post 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:

Code: Select all

╔═════════════════════════ 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.
KlepetoX
Posts: 129
Joined: Sun 08 Jan, 2012 08:23
Location: Czech Republic
Has thanked: 2 times
Been thanked: 1 time

Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post 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%):

Code: Select all

╔════════════════ 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:

Code: Select all

╔══════════════════ Attributes ══════════════════╗
║           Change file attributes for           ║
║              TeamViewerQS_cs.exe               ║
║────────────────────────────────────────────────║
║ Owner:                                         ║
║ Group:                                         ║
║───────────────── Permissions ──────────────────║
║ Owner   [ ] R  [ ] W  [ ] X  [ ] Set UID       ║ nothing is read, nothing is set
║ Group   [ ] R  [ ] W  [ ] X  [ ] Set GID       ║
║ Others  [ ] R  [ ] W  [ ] X  [ ] Sticky bit    ║
║ Octal:  0000   [ None ]  [ Default ]  [ All ]  ║
║                                                ║
║                                                ║
║                                                ║
║────────────────────────────────────────────────║
║               { Ok } [ Cancel ]                ║
╚════════════════════════════════════════════════╝
while old FTP plugin reads and writes it normally:

Code: Select all

╔═══════ 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:

Code: Select all

╔════════════════ 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?
pandronic
Posts: 30
Joined: Tue 23 Mar, 2010 12:04

Re: NetBox — SFTP/SCP/FTP/FTPS/WebDAV client

Post 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.
Post Reply

Return to “General Plug-In Discussions”