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

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

Open
Christina-Kang opened this issue Mar 5, 2019 · 5 comments

Comments

@Christina-Kang
Copy link
Contributor

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
Copy link

Any updates?

@Christina-Kang
Copy link
Contributor Author

@jeffj6123

@jeffj6123
Copy link
Member

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

@MattHartz
Copy link

@vibhas-naik
Copy link

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

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

No branches or pull requests

4 participants