Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deployFtp errors #62

Open
jorgeraulmoreno opened this issue Aug 17, 2016 · 6 comments
Open

deployFtp errors #62

jorgeraulmoreno opened this issue Aug 17, 2016 · 6 comments

Comments

@jorgeraulmoreno
Copy link

I tried to deploy ftp, tried from windows and from linux, the upload is partial...

uploading website/output/index.html as /index.html
uploading website/output/tclssg.css as /tclssg.css
error error | E: couldn't open socket: connection timed out:
error couldn't open socket: connection timed out
error while executing
error "socket $ftp(LocalAddr) $ftp(DataPort)"
error error | E: Error setting PASSIVE mode!:
error couldn't open socket: connection timed out
error while executing
error "socket $ftp(LocalAddr) $ftp(DataPort)"

*** error: upload error: can't read "ftp(DummySock)": no such element in array
while executing
"close $ftp(DummySock)" ***
Traceback:
upload error: can't read "ftp(DummySock)": no such element in array
while executing
"close $ftp(DummySock)"
while executing
"error "upload error: $errorInfo""
(procedure "::tclssg::command::deploy-ftp" line 29)
invoked from within
"tclssg command $command $inputDir $outputDir $debugDir $options"

I added the section deployFtp to the website/input/website.conf

@dbohdan
Copy link
Member

dbohdan commented Aug 17, 2016

Does your upload take longer than 10 minutes? That's the default timeout in Tclssg. Are you able to upload the same data to the same server in one go with another program?

@jorgeraulmoreno
Copy link
Author

thanks for your reply.

no, I am seeing the timeout in about 1 minute...

and yes, I am seeing timeout problems when using another ftp client.

I had being doing retries with the mentioned different ftp client, and I quit after ~10 clicks on the timeout dialog, so is this maybe something else? or a unintended big file trying to be uploaded?

when uploading different content (i.e created with some other static generator) the ftp client works OK.

jorge

Enviado desde Outlookhttp://aka.ms/weboutlook


De: Danyil Bohdan [email protected]
Enviado: miércoles, 17 de agosto de 2016 12:33 p. m.
Para: tclssg/tclssg
Cc: jorgeraulmoreno; Author
Asunto: Re: [tclssg/tclssg] deployFtp errors (#62)

Does your upload take longer than 10 minutes? That's the default timeout in Tclssg. Are you able to upload the same data to the same server in one go with another program?

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/62#issuecomment-240486435, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJoa7-RWayman7kBhRtI266Fy3bLXtmRks5qg0XOgaJpZM4JmCz5.

@dbohdan
Copy link
Member

dbohdan commented Aug 17, 2016

I had being doing retries with the mentioned different ftp client, and I quit after ~10 clicks on the timeout dialog, so is this maybe something else? or a unintended big file trying to be uploaded?

It's hard to tell which is the case from just the information you've given. Checking the files sizes first is a good idea.

However, since the issue is not with Tclssg itself, this isn't the appropriate venue for it. I suggest you ask either ServerFault (if you own the FTP server with which you're having problems) or SuperUser (if you don't).

@dbohdan dbohdan closed this as completed Aug 17, 2016
@jorgeraulmoreno
Copy link
Author

Hi Danyil,

I continued trying and discovering what I think is a bug.

when I make the folders myself separately, i.e. by other means,

then your deploy-ftp works just fine, I think the script fails to treat files and directories differently.

but I may be wrong.

thanks,

jorge

Enviado desde Outlookhttp://aka.ms/weboutlook


De: Danyil Bohdan [email protected]
Enviado: miércoles, 17 de agosto de 2016 03:36 p. m.
Para: tclssg/tclssg
Cc: jorgeraulmoreno; Author
Asunto: Re: [tclssg/tclssg] deployFtp errors (#62)

Closed #62#62.

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/62#event-759063903, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJoa7wLNcVqdNW-9lv0Ww7bhy0cYLBq9ks5qg3DagaJpZM4JmCz5.

@dbohdan dbohdan reopened this Aug 19, 2016
@dbohdan
Copy link
Member

dbohdan commented Aug 19, 2016

I'll look into it.

@dbohdan
Copy link
Member

dbohdan commented Feb 11, 2018

Since I commented on this issue I have seen the ftp package in Tcllib, which is what Tclssg uses for FTP uploads, fail to work with some servers that other clients handled without problem. This is not something I can easily fix in Tclssg itself. If you have problems with deploy-ftp but your FTP server appears to work fine with other clients, my recommendation is to switch to deploying with a separate FTP program through deploy-custom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants