microsoft / service-fabric-cli

Service Fabric CLI Tools
Other
53 stars 52 forks source link

Sfctl upload returns times out or returns cert error when other commands work #187

Open Christina-Kang opened 5 years ago

Christina-Kang commented 5 years ago

While running "sfctl upload", either timeout occurs while upload is happening, or the following error is returned "'403 Client Error: Client certificate required for url"

Other commands work in sfctl, and upload works in other clients, such as PowerShell.

This issue may be caused by the first file being uploaded being large. Adding a small empty text file with an alphabetically first file name to the root of the folder being uploaded will mitigate the issue while it the issue is not yet fixed.

MattHartz commented 4 years ago

Any updates?

Christina-Kang commented 4 years ago

@jeffj6123

jeffj6123 commented 4 years ago

A compress flag was added to this command, which could potentially help if youre hitting time out issues.

MattHartz commented 4 years ago

@jeffj6123 Is this in the documentation? https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-sfctl-application#sfctl-application-upload

vibhas-naik commented 1 year ago

I did see similar issues when uploading an application package to ImageStore. I tried the compressed flag without any success. However what solved the problem was editing the following file.

"Python\Python311\Lib\site-packages\sfctl\custom_app.py"

I changed the jobcount in upload_to_native_imagestore function to 1 and I could upload the package successfully.

Following are the changes made.

jobcount = get_job_count() jobcount = 1

I am not sure why it works. but I have seen issues on stackoverflow with parallel uploading with ssl

https://stackoverflow.com/questions/71759687/typeerrorcannot-pickle-io-bufferedreader-object https://stackoverflow.com/questions/3724900/python-ssl-problem-with-multiprocessing