milanmk / actions-file-deployer

Composite GitHub Action (Linux runner) for deploying repository content to remote server. Fast and customizable deployment with proxy support. Deploy only changed files or do full sync/mirror of repository content.
The Unlicense
62 stars 14 forks source link

mput: .deploy-revision: Fatal error: max-retries exceeded #8

Closed ernesto-alberto closed 2 years ago

ernesto-alberto commented 2 years ago

Hello, I am using this action to deploy to a production server which has SFTP access. But I am getting the following error:

Upload files: 0 Delete files: 0


Timeout - reconnecting put: .deploy-running: Fatal error: max-retries exceeded Timeout - reconnecting Timeout - reconnecting mput: .deploy-revision: Fatal error: max-retries exceeded Timeout - reconnecting **** Timeout - reconnecting

Could anybody give me any support regarding this issue.

milanmk commented 2 years ago

Most likely its due to incorrect SFTP credentials. Other thing that I would try is to reduce parallel connections by passing additional FTP commands to input.

ernesto-alberto commented 2 years ago

Hello Milan,

Thank you for your feedback.

I have updated the SFTP credentials but the problem still continues.

Regarding the option "to reduce parallel connections by passing additional FTP commands to input" my server only supports SFTP connection. How can I achieve that using SFTP?

Best regards.

Milan Kaneria @.***> escreveu no dia terça, 1/02/2022 à(s) 18:40:

Most likely its due to incorrect SFTP credentials. Other thing that I would try is to reduce parallel connections by passing additional FTP commands to input.

— Reply to this email directly, view it on GitHub https://github.com/milanmk/actions-file-deployer/issues/8#issuecomment-1027112713, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMAJWGNBTOVOOM3VQ63S6A3UZALI7ANCNFSM5NJTGI3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

--

Ernesto Alberto

Técnico de TI

Telefone: 916994677

ernesto-alberto commented 2 years ago

Hi Milan,

Regarding the reduction of parallel connection, the SFTP default is MaxStartups 10:30:60. I have set it to 100 but I still have the same situation.

Any advice concerning the correct "MaxStartups" for SFTP?

Regards.

Ernesto Alberto @.***> escreveu no dia quarta, 2/02/2022 à(s) 12:14:

Hello Milan,

Thank you for your feedback.

I have updated the SFTP credentials but the problem still continues.

Regarding the option "to reduce parallel connections by passing additional FTP commands to input" my server only supports SFTP connection. How can I achieve that using SFTP?

Best regards.

Milan Kaneria @.***> escreveu no dia terça, 1/02/2022 à(s) 18:40:

Most likely its due to incorrect SFTP credentials. Other thing that I would try is to reduce parallel connections by passing additional FTP commands to input.

— Reply to this email directly, view it on GitHub https://github.com/milanmk/actions-file-deployer/issues/8#issuecomment-1027112713, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMAJWGNBTOVOOM3VQ63S6A3UZALI7ANCNFSM5NJTGI3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

--

Ernesto Alberto

Técnico de TI

Telefone: 916994677

--

Ernesto Alberto

Técnico de TI

Telefone: 916994677

milanmk commented 2 years ago

Based on your settings it does not seems to be parallel connection issue.

Are you blocking access based on IP addresses? If so, you will have to configure and use the proxy feature of this action.

ernesto-alberto commented 2 years ago

I have permited access to firewall to my SFTP port. I just did a test to clone what I have on my github repository to my production server and it was sucessfull.

ernesto-alberto commented 2 years ago

By proxy feature do you mean those:

proxy: false
proxy-port: 22
proxy-forwarding-port: 1080
sync: delta

How can I change or configure those information on my action? How can I add the proxy features on my action settings? I there a need to allow also those ports (22 and 1080) on my firewall?

milanmk commented 2 years ago

Yes that is what I was referring to for proxy. But if you do not block SFTP access based on IP address then you do not need proxy.