remote-ftp icon indicating copy to clipboard operation
remote-ftp copied to clipboard

Uncaught ReferenceError: reentry is not defined

Open jaycelcunanan opened this issue 7 years ago • 24 comments

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.22.1 x64 Electron: 1.6.15 OS: Microsoft Windows 8.1 Single Language Thrown From: Remote-FTP package 2.1.1

Stack Trace

Uncaught ReferenceError: reentry is not defined

At C:\Users\Jaycel Cunanan\.atom\packages\Remote-FTP\node_modules\@icetee\ftp\lib\connection.js:937

ReferenceError: reentry is not defined
    at /packages/Remote-FTP/node_modules/@icetee/ftp/lib/connection.js:937:18
    at /packages/Remote-FTP/node_modules/@icetee/ftp/lib/connection.js:996:7)
    at Object.onceWrapper (events.js:290:19)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at TCP._handle.close [as _onclose] (net.js:501:12)

Commands

     -0:50.1.0 tree-view:remove (span.name.icon.icon-file-text)
     -0:42.3.0 remote-ftp:create-ftp-config (div.tool-panel.tree-view)
  3x -0:24.8.0 core:paste (input.hidden-input)
     -0:16.9.0 core:save (input.hidden-input)
     -0:13.5.0 remote-ftp:connect (ul.list-inline.tab-bar.inset-panel)

Non-Core Packages

Remote-FTP 2.1.1 

jaycelcunanan avatar Dec 11 '17 02:12 jaycelcunanan

same issue

egirlasm avatar Dec 13 '17 07:12 egirlasm

same issue

hanzinhee avatar Dec 19 '17 14:12 hanzinhee

same issue

moshebendavid avatar Jan 10 '18 00:01 moshebendavid

Same. :)

iampatrick avatar Jan 31 '18 15:01 iampatrick

Same issue.

antonfeijoomontenegro avatar Mar 08 '18 21:03 antonfeijoomontenegro

I have the same..

kentaro-a avatar Mar 28 '18 06:03 kentaro-a

Same issue with a specific IP. Amazon server.

Haylin-chama avatar May 16 '18 15:05 Haylin-chama

Same issue with AWS server. Interestingly the exception does not occur when testing with Remote-FTP v1.3.4

ol1s avatar May 30 '18 13:05 ol1s

@Haylin-chama did you find any solution? I have same issue. :(

jovicon avatar May 31 '18 15:05 jovicon

Same issue, with an AWS server :(

triss90 avatar Jun 03 '18 14:06 triss90

Can you help reproduction? Create an S3?

icetee avatar Jun 04 '18 11:06 icetee

@jovicon No, because AWS needs a public key and i don't know how to add it to the .ftpconfig file.

Haylin-chama avatar Jun 13 '18 20:06 Haylin-chama

Create authorized_keys file, use SFTP config and set privatekey property ~/.ssh/rsa_id https://github.com/icetee/remote-ftp/issues/1151

icetee avatar Jun 13 '18 20:06 icetee

Any Updates on this? Only does it with one of my servers which works fine in filezilla

james090500 avatar Aug 03 '18 12:08 james090500

same ((( Any updates ?

Ray-Eldath avatar Nov 23 '18 18:11 Ray-Eldath

+1

supraniti avatar Feb 19 '19 11:02 supraniti

Hi, I modified line 907 in the connection.js file.

C:\Users\ [User Home] \.atom\packages\remote-ftp\node_modules@icetee\ftp\lib\connection.js

Before this._send(pasvCmd, function (err, text) {

After this._send(pasvCmd, function reentry(err, text) {

Good luck :)

wolfkang avatar Mar 25 '19 05:03 wolfkang

I'm experimenting this issue from promise-ftp library, when I use the solution from @wolfkang it works well, is there some workaround for that without edit the file manually because I need to ship my project with docker

AlejandroMataGuillen avatar Aug 14 '19 02:08 AlejandroMataGuillen

Hi, I modified line 907 in the connection.js file.

C:\Users\ [User Home] .atom\packages\remote-ftp\node_modules@icetee\ftp\lib\connection.js

Before this._send(pasvCmd, function (err, text) {

After this._send(pasvCmd, function reentry(err, text) {

Good luck :)

works well on node apps, thanks

StockDave avatar Jan 30 '20 23:01 StockDave

Suddenly appearing.

Uncaught ReferenceError: reentry is not defined
/Users/Robert/.atom/packages/remote-ftp/node_modules/@icetee/ftp/lib/connection.js:943
Hide Stack Trace
ReferenceError: reentry is not defined
    at /Users/Robert/.atom/packages/remote-ftp/node_modules/@icetee/ftp/lib/connection.js:943:11
    at Socket.<anonymous> (/Users/Robert/.atom/packages/remote-ftp/node_modules/@icetee/ftp/lib/connection.js:1002:7)
    at Object.onceWrapper (events.js:315:30)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at TCP._handle.close [as _onclose] (net.js:554:12)
The error was thrown from the remote-ftp package. This issue has already been reported.

@wolfkang's fix seems to work.

robertandrews avatar May 12 '20 11:05 robertandrews

@wolfkang fix worked for me as well.

aliasmac avatar Sep 07 '20 14:09 aliasmac

It looks like this issue was fixed around version 1.0.6 of @icetee/node-ftp, and this library was updated to use version 1.0.7 about a year ago.

With that in mind, the offending code was in some error handling code that is only run when there is a failure to establish a passive connection. So if you were seeing this error, it may mean that your FTP server is misconfigured (e.g. it is reporting the wrong passive connection IP address).

JLRishe avatar Feb 04 '21 04:02 JLRishe

C:\Users\Morgan.atom\packages\remote-ftp\node_modules@icetee\ftp\lib\connection.js:947 Hide Stack Trace ReferenceError: reentry is not defined at C:\Users\Morgan.atom\packages\remote-ftp\node_modules@icetee\ftp\lib\connection.js:947:11 at C:\Users\Morgan.atom\packages\remote-ftp\node_modules@icetee\ftp\lib\connection.js:972:9

It is still happened to me. After logged, it is hanging on getting list. I am using 2.2.4 version.

It is only happened on specific Amazon server. I have tested to access the ftp server with another application. The application works well without any problem.

Fogrunner avatar Mar 16 '21 13:03 Fogrunner

If someone has the same problem, use sftp connection way with Amazon key-pair.

Below is the sample configuration:

{ "protocol": "sftp", "host": "[YOUR SERVER ADDRESS HERE]", // example.co.kr "port": 22, "user": "[YOUR ACCOUNT NAME HERE]", // steven "pass": "pass", "promptForPass": false, "remote": "[YOUR HOME DIRECTORY ON THE SERVER]", // /home/steven "local": "", "agent": "", "privatekey": "[YOUR KEY PAIR FILE LOCAL PATH HERE]", // c:\amazon-keypairs\mykey.pem "passphrase": "", "hosthash": "", "ignorehost": true, "connTimeout": 10000, "keepalive": 10000, "keyboardInteractive": false, "keyboardInteractiveForPass": false, "remoteCommand": "", "remoteShell": "", "watch": [], "watchTimeout": 500 }

Fogrunner avatar Mar 16 '21 14:03 Fogrunner