CMS Development

costalesja11
Mitwirkender/Mitwirkende

File upload fails with FTP reply code 551 using vinyl-ftp in gulp

Hi All,

Would like to ask for assistance. We are using gulp.js file to build our css and js file, and upload the build files using vinyl-ftp. But upon running the upload, I am getting this error:

"Error on output file. Unable to get folder at makeError with code: 551".

As per this article: https://community.hubspot.com/t5/APIs-Integrations/File-upload-fails-with-FTP-reply-code-551/m-p/234..., they recommend restart the FTP services but quite not sure about this. Please help. Smiley (traurig)

Thank you

0 Upvotes
5 Antworten
stefen
Autorität | Partner
Autorität | Partner

File upload fails with FTP reply code 551 using vinyl-ftp in gulp

@costalesja11 I'd recommend using the latest dev tools that has an upload command built-in. Then you could update your gulp file to use the new command and circumvent the whole issue entirely. More info here: https://community.hubspot.com/t5/CMS-Development/Can-you-setup-local-development-on-HubSpot-CMS/m-p/...

Stefen Phelps, Community Champion, Kelp Web Developer
0 Upvotes
costalesja11
Mitwirkender/Mitwirkende

File upload fails with FTP reply code 551 using vinyl-ftp in gulp

Hi @stefen ,

Im a bit confused in the given documentation and can't shift  yet to the new format. I just wanted to fix the ftp connection issue I am having. 

"{ Error: connect ECONNREFUSED 127.0.0.1:21
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1113:14)
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 21 }"

Will there be a chance that there is some changes in the ftp connection?


0 Upvotes
stefen
Autorität | Partner
Autorität | Partner

File upload fails with FTP reply code 551 using vinyl-ftp in gulp

You need to use port 3200 and connect to ftp.hubapi.com the documentation is here https://designers.hubspot.com/docs/tools/hubspot-ftp
Stefen Phelps, Community Champion, Kelp Web Developer
0 Upvotes
costalesja11
Mitwirkender/Mitwirkende

File upload fails with FTP reply code 551 using vinyl-ftp in gulp

Yes, we are using the format given from the documentation. We are using the ftp client format since last year, and we just encountered the issue last Friday which is weird.

I have raised a ticket to support as well last Friday with regards to this issue but they said there have been no changes made internally in the ftp and they are referring me also with the local development tooling [beta]. 

I did some research about this error, and it says from here: https://nodejs.org/api/errors.html. ECONNREFUSED (Connection refused): No connection could be made because the target machine actively refused it. This usually results from trying to connect to a service that is inactive on the foreign host.

Also tried running the below script from my local machine, following all the steps given from this documentation but I am getting this error as well. 

Screen Shot 2019-07-22 at 7.33.24 PM.png


I assumed there is really something wrong with our server/ftp connection. I've been dealing with this issue for days and badly need any assistance. Smiley (traurig) Please help.

0 Upvotes
costalesja11
Mitwirkender/Mitwirkende

File upload fails with FTP reply code 551 using vinyl-ftp in gulp

Hi All,

I think I know what is causing the ECONNREFUSED error. I just recently found that FTP server is not supported by MacOS High Sierra, seems that High Sierra completely removes the service. I'm not sure if hubspot technical team is aware on this but maybe they can look into this since most OS in mac are updated to high sierra. I guess for now, I'll shift on using the command from Local Development Tooling

Thank you

0 Upvotes