[GH-ISSUE #235] Upload failed #167

Closed
opened 2026-02-25 20:32:56 +03:00 by kerem · 16 comments
Owner

Originally created by @stayingcool on GitHub (Sep 20, 2017).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/235

Upload fails with the following error:

bash-3.2$ exit
exit
~ Asciicast recording finished.
~ Press <Enter> to upload, <Ctrl-C> to cancel.

~ Upload failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)>
~ Retry later by running: asciinema upload /var/folders/9g/60yjppb57779f3nrvxzvb_wn5wr3t6/T/tmp3zaagfuf-asciinema.json

My Env:
MacOS Sierra - 10.12.4 (16E195)

I'm able to play the recording, just that the upload fails. Any feedback or clues to fix this issue?

Originally created by @stayingcool on GitHub (Sep 20, 2017). Original GitHub issue: https://github.com/asciinema/asciinema/issues/235 Upload fails with the following error: ``` bash-3.2$ exit exit ~ Asciicast recording finished. ~ Press <Enter> to upload, <Ctrl-C> to cancel. ~ Upload failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)> ~ Retry later by running: asciinema upload /var/folders/9g/60yjppb57779f3nrvxzvb_wn5wr3t6/T/tmp3zaagfuf-asciinema.json ``` **My Env:** MacOS Sierra - 10.12.4 (16E195) I'm able to play the recording, just that the upload fails. Any feedback or clues to fix this issue?
kerem closed this issue 2026-02-25 20:32:56 +03:00
Author
Owner

@boris commented on GitHub (Oct 6, 2017):

@stayingcool I faced the same issue on El Capitan - 10.11.6 and fixed it by adding the url line to my ~/.config/asciinema/config:

[api]
token = 123123123
url = http://asciinema.org 
<!-- gh-comment-id:334781163 --> @boris commented on GitHub (Oct 6, 2017): @stayingcool I faced the same issue on El Capitan - 10.11.6 and fixed it by adding the `url` line to my `~/.config/asciinema/config`: ``` [api] token = 123123123 url = http://asciinema.org ```
Author
Owner

@ku1ik commented on GitHub (Oct 8, 2017):

@stayingcool which asciinema version and OS are you running?

<!-- gh-comment-id:334992612 --> @ku1ik commented on GitHub (Oct 8, 2017): @stayingcool which asciinema version and OS are you running?
Author
Owner

@hickeng commented on GitHub (Oct 18, 2017):

I'm seeing the same issue on current HEAD (8cdd2579ff).
I'm getting Error: HTTP status: 500 Internal Server Error from asciinema 1.1.1-56ee754 - the version installed by the install script when I ran that.

I get a successful upload when using 0.9.8 which is what apt-get installed, but that doesn't allow me to upload already recorded files, or set the screen width to an appropriate size with tmux.

Distro:

vagrant@devbox:~$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

I've tried explicitly adding the url entry to the ~/.asciinema/config file as suggested by @boris but it had no observable effect (tried this with HEAD).

<!-- gh-comment-id:337715823 --> @hickeng commented on GitHub (Oct 18, 2017): I'm seeing the same issue on current HEAD (8cdd2579ff2b192eca6df6b3164cabf03461aebe). I'm getting `Error: HTTP status: 500 Internal Server Error` from `asciinema 1.1.1-56ee754` - the version installed by the `install` script when I ran that. I get a successful upload when using `0.9.8` which is what `apt-get` installed, but that doesn't allow me to upload already recorded files, or set the screen width to an appropriate size with tmux. Distro: ``` vagrant@devbox:~$ cat /etc/*release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS" NAME="Ubuntu" VERSION="16.04.2 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.2 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial ``` I've tried explicitly adding the `url` entry to the `~/.asciinema/config` file as suggested by @boris but it had no observable effect (tried this with HEAD).
Author
Owner

@ku1ik commented on GitHub (Oct 24, 2017):

@boris @stayingcool that's a temporary workaround for client certificate issue, but we'll soon turn off http:// so we should look for the cause of CERTIFICATE_VERIFY_FAILED - I suspect some homebrew dependency issue wrt libopenssl or something similar.

<!-- gh-comment-id:339105521 --> @ku1ik commented on GitHub (Oct 24, 2017): @boris @stayingcool that's a temporary workaround for client certificate issue, but we'll soon turn off http:// so we should look for the cause of `CERTIFICATE_VERIFY_FAILED` - I suspect some homebrew dependency issue wrt libopenssl or something similar.
Author
Owner

@ku1ik commented on GitHub (Oct 24, 2017):

@hickeng was the recording which fails produced by yet unreleased asciinema version? (develop branch)?

<!-- gh-comment-id:339106071 --> @ku1ik commented on GitHub (Oct 24, 2017): @hickeng was the recording which fails produced by yet unreleased asciinema version? (`develop` branch)?
Author
Owner

@hickeng commented on GitHub (Oct 24, 2017):

@sickill yes, it was recorded with develop.

<!-- gh-comment-id:339161839 --> @hickeng commented on GitHub (Oct 24, 2017): @sickill yes, it was recorded with `develop`.
Author
Owner

@ku1ik commented on GitHub (Oct 25, 2017):

@hickeng ok, that's because develop produces version 2 asciicasts, and the instance at asciinema.org hasn't yet been updated to handle that. I'm going to fix that in the coming days.

<!-- gh-comment-id:339254219 --> @ku1ik commented on GitHub (Oct 25, 2017): @hickeng ok, that's because `develop` produces version 2 asciicasts, and the instance at asciinema.org hasn't yet been updated to handle that. I'm going to fix that in the coming days.
Author
Owner

@StephaneBenfredj commented on GitHub (Oct 27, 2017):

@stayingcool I had the same issue with OSX Sierra 10.12.6 (16G29)

~ Upload failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)>

and fixed it by editing ~/.config/asciinema/config as advised by @boris (thanks !! :)
asciinema installed was performed directly using pip3:

$ pip3 install asciinema
Collecting asciinema
Downloading asciinema-1.4.0.tar.gz
... (snip'd)

<!-- gh-comment-id:339930956 --> @StephaneBenfredj commented on GitHub (Oct 27, 2017): @stayingcool I had the same issue with OSX Sierra 10.12.6 (16G29) `~ Upload failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)> ` and fixed it by editing ~/.config/asciinema/config as advised by @boris (thanks !! :) asciinema installed was performed directly using pip3: $ pip3 install asciinema Collecting asciinema Downloading asciinema-1.4.0.tar.gz ... (snip'd)
Author
Owner

@boris commented on GitHub (Oct 30, 2017):

I also installed 1.4.0 using pip3 on OS X I mentioned above. Sadly (to replicate this issue, but luckily to me) I'm not using OS X anymore and asciinema works pretty well in Linux :)

<!-- gh-comment-id:340548757 --> @boris commented on GitHub (Oct 30, 2017): I also installed 1.4.0 using pip3 on OS X I mentioned above. Sadly (to replicate this issue, but luckily to me) I'm not using OS X anymore and asciinema works pretty well in Linux :)
Author
Owner

@ku1ik commented on GitHub (Nov 28, 2017):

@stayingcool @stefb12 if you have installed Python via official dmg installer then you need to install root certificates by running this command:

/Applications/Python\ 3.*/Install\ Certificates.command

Paste this into your terminal or locate and open in Finder.

(found this info here: https://stackoverflow.com/questions/42098126/mac-osx-python-ssl-sslerror-ssl-certificate-verify-failed-certificate-verify)

<!-- gh-comment-id:347646944 --> @ku1ik commented on GitHub (Nov 28, 2017): @stayingcool @stefb12 if you have installed Python via official dmg installer then you need to install root certificates by running this command: /Applications/Python\ 3.*/Install\ Certificates.command Paste this into your terminal or locate and open in Finder. (found this info here: https://stackoverflow.com/questions/42098126/mac-osx-python-ssl-sslerror-ssl-certificate-verify-failed-certificate-verify)
Author
Owner

@StephaneBenfredj commented on GitHub (Nov 29, 2017):

thanks for the information @sickill !

<!-- gh-comment-id:347837835 --> @StephaneBenfredj commented on GitHub (Nov 29, 2017): thanks for the information @sickill !
Author
Owner

@ku1ik commented on GitHub (Dec 4, 2017):

@stayingcool has the above hint helped?

<!-- gh-comment-id:348893326 --> @ku1ik commented on GitHub (Dec 4, 2017): @stayingcool has the above hint helped?
Author
Owner

@Mariatta commented on GitHub (Feb 8, 2018):

Hi, I'm having the same issue.
I'm on MacOS High Sierra 10.13.3 using asciinema 1.4.0.

The message I see is:

~ Upload failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:864)>
~ Retry later by running: asciinema upload /var/folders/xg/b8lym1jx549c9q1qc8cf7b0c0000gn/T/tmp8yro_585-asciinema.json

I tried running the suggested command above:

$/Applications/Python\ 3.*/Install\ Certificates.command
 -- pip install --upgrade certifi
Collecting certifi
  Using cached certifi-2018.1.18-py2.py3-none-any.whl
Installing collected packages: certifi
Successfully installed certifi-2018.1.18
 -- removing any existing file or link
 -- creating symlink to certifi certificate bundle
 -- setting permissions
 -- update complete

Upload still failed.

<!-- gh-comment-id:364197417 --> @Mariatta commented on GitHub (Feb 8, 2018): Hi, I'm having the same issue. I'm on MacOS High Sierra 10.13.3 using asciinema 1.4.0. The message I see is: ``` ~ Upload failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:864)> ~ Retry later by running: asciinema upload /var/folders/xg/b8lym1jx549c9q1qc8cf7b0c0000gn/T/tmp8yro_585-asciinema.json ``` I tried running the suggested command above: ``` $/Applications/Python\ 3.*/Install\ Certificates.command ``` ``` -- pip install --upgrade certifi Collecting certifi Using cached certifi-2018.1.18-py2.py3-none-any.whl Installing collected packages: certifi Successfully installed certifi-2018.1.18 -- removing any existing file or link -- creating symlink to certifi certificate bundle -- setting permissions -- update complete ``` Upload still failed.
Author
Owner

@Mariatta commented on GitHub (Feb 8, 2018):

Ah nevermind, I had to update the url in ~/.config/asciinema/config to http.
The upload works after I did that.
But feels like it should work over https?
Anyways, thanks!!

<!-- gh-comment-id:364200683 --> @Mariatta commented on GitHub (Feb 8, 2018): Ah nevermind, I had to update the `url` in `~/.config/asciinema/config` to http. The upload works after I did that. But feels like it should work over `https`? Anyways, thanks!!
Author
Owner

@vxsilis commented on GitHub (Oct 19, 2019):

can someone tell me what exactly the ~/.config/asciinema/config file has inside ?

<!-- gh-comment-id:544176506 --> @vxsilis commented on GitHub (Oct 19, 2019): can someone tell me what exactly the ~/.config/asciinema/config file has inside ?
Author
Owner

@PlutoniumProphet commented on GitHub (Jan 21, 2020):

@bllyz in the docs: https://asciinema.org/docs/config

I'm still broken on the pipe though

<!-- gh-comment-id:576648704 --> @PlutoniumProphet commented on GitHub (Jan 21, 2020): @bllyz in the docs: https://asciinema.org/docs/config I'm still broken on the pipe though
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#167
No description provided.