Skip to content

Cannot update CLI #623

Closed
Closed

Description

@ThibaultVlacich

I have installed on my machine the CLI version 1.48.0 and I'm trying to update to 1.49.0, but I'm getting an error while doing so:

# sentry-cli update
Latest release is 1.49.0
Updating executable at /usr/local/bin/sentry-cli
Need to sudo to overwrite /usr/local/bin/sentry-cli
error: No such file or directory (os error 2)

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.

Here is the full log:

# sentry-cli update --log-level=debug
  INFO    2019-11-13 15:43:04.910514350 +00:00 Loaded config from /root/.sentryclirc
  DEBUG   2019-11-13 15:43:04.910896399 +00:00 sentry-cli version: 1.48.0, platform: "linux", architecture: "x86_64"
  INFO    2019-11-13 15:43:04.911088331 +00:00 sentry-cli was invoked with the following command line: "sentry-cli" "update" "--log-level=debug"
  DEBUG   2019-11-13 15:43:04.919210637 +00:00 request GET https://release-registry.services.sentry.io/apps/sentry-cli/latest
  DEBUG   2019-11-13 15:43:04.919477699 +00:00 retry number 0, max retries: 0
  DEBUG   2019-11-13 15:43:05.261524217 +00:00 > GET /apps/sentry-cli/latest HTTP/1.1
  DEBUG   2019-11-13 15:43:05.261859178 +00:00 > Host: release-registry.services.sentry.io
  DEBUG   2019-11-13 15:43:05.262075095 +00:00 > Accept: */*
  DEBUG   2019-11-13 15:43:05.262287775 +00:00 > Connection: TE
  DEBUG   2019-11-13 15:43:05.262492260 +00:00 > TE: gzip
  DEBUG   2019-11-13 15:43:05.262767358 +00:00 > User-Agent: sentry-cli/1.48.0
  DEBUG   2019-11-13 15:43:05.363295106 +00:00 < HTTP/1.1 200 OK
  DEBUG   2019-11-13 15:43:05.363510562 +00:00 < Server: nginx
  DEBUG   2019-11-13 15:43:05.363755793 +00:00 < Date: Wed, 13 Nov 2019 15:43:05 GMT
  DEBUG   2019-11-13 15:43:05.363970176 +00:00 < Content-Type: application/json
  DEBUG   2019-11-13 15:43:05.364130609 +00:00 < Content-Length: 1774
  DEBUG   2019-11-13 15:43:05.364266686 +00:00 < Connection: close
  DEBUG   2019-11-13 15:43:05.364399075 +00:00 < Vary: Accept-Encoding
  DEBUG   2019-11-13 15:43:05.364534009 +00:00 < X-From-Cache: 1
  DEBUG   2019-11-13 15:43:05.364638505 +00:00 < Strict-Transport-Security: max-age=2592000
  DEBUG   2019-11-13 15:43:05.367734546 +00:00 response status: 200
  INFO    2019-11-13 15:43:05.367986720 +00:00 Looking for file named: sentry-cli-Linux-x86_64
  DEBUG   2019-11-13 15:43:05.368086279 +00:00 body: {"canonical":"app:sentry-cli","file_urls":{"sentry-cli-Darwin-x86_64":"https://downloads.sentry-cdn.com/sentry-cli/1.49.0/sentry-cli-Darwin-x86_64","sentry-cli-Linux-i686":"https://downloads.sentry-cdn.com/sentry-cli/1.49.0/sentry-cli-Linux-i686","sentry-cli-Linux-x86_64":"https://downloads.sentry-cdn.com/sentry-cli/1.49.0/sentry-cli-Linux-x86_64","sentry-cli-Windows-i686.exe":"https://downloads.sentry-cdn.com/sentry-cli/1.49.0/sentry-cli-Windows-i686.exe","sentry-cli-Windows-x86_64.exe":"https://downloads.sentry-cdn.com/sentry-cli/1.49.0/sentry-cli-Windows-x86_64.exe"},"files":{"sentry-cli-Darwin-x86_64":{"checksums":{"sha256-hex":"4e17bbef7d00251b2a1eda66073f887ce34479c0fa1216584b9c5e3bc7790d55"},"url":"https://downloads.sentry-cdn.com/sentry-cli/1.49.0/sentry-cli-Darwin-x86_64"},"sentry-cli-Linux-i686":{"checksums":{"sha256-hex":"67e998982995c54212be9535d850eebf481d27f8ca79ba6fb017eb7af5b9cc04"},"url":"https://downloads.sentry-cdn.com/sentry-cli/1.49.0/sentry-cli-Linux-i686"},"sentry-cli-Linux-x86_64":{"checksums":{"sha256-hex":"d7775571682372550a266cb9b1b185aa81378d3fe10e781b704d6835a58cb496"},"url":"https://downloads.sentry-cdn.com/sentry-cli/1.49.0/sentry-cli-Linux-x86_64"},"sentry-cli-Windows-i686.exe":{"checksums":{"sha256-hex":"fc7b9a77c7745c82aa8fc8b79c18c7b27403b1fc26505dd8345c5dc2356a5393"},"url":"https://downloads.sentry-cdn.com/sentry-cli/1.49.0/sentry-cli-Windows-i686.exe"},"sentry-cli-Windows-x86_64.exe":{"checksums":{"sha256-hex":"2411467473e516db670b69afa7ab4c2a7124b361c38a361071e14ee2b7135d06"},"url":"https://downloads.sentry-cdn.com/sentry-cli/1.49.0/sentry-cli-Windows-x86_64.exe"}},"main_docs_url":"https://docs.sentry.io/learn/cli","name":"Sentry CLI","repo_url":"https://github.com/getsentry/sentry-cli","version":"1.49.0"}

  INFO    2019-11-13 15:43:05.368482053 +00:00 Found asset sentry-cli-Linux-x86_64
Latest release is 1.49.0
Updating executable at /usr/local/bin/sentry-cli
  INFO    2019-11-13 15:43:05.369009276 +00:00 expecting elevation for update: true
  DEBUG   2019-11-13 15:43:05.373906117 +00:00 request GET https://downloads.sentry-cdn.com/sentry-cli/1.49.0/sentry-cli-Linux-x86_64
  DEBUG   2019-11-13 15:43:05.374171757 +00:00 follow redirects: true
  DEBUG   2019-11-13 15:43:05.397954082 +00:00 > GET /sentry-cli/1.49.0/sentry-cli-Linux-x86_64 HTTP/1.1
  DEBUG   2019-11-13 15:43:05.398296547 +00:00 > Host: downloads.sentry-cdn.com
  DEBUG   2019-11-13 15:43:05.398524846 +00:00 > Accept: */*
  DEBUG   2019-11-13 15:43:05.398759027 +00:00 > Connection: TE
  DEBUG   2019-11-13 15:43:05.398981737 +00:00 > TE: gzip
  DEBUG   2019-11-13 15:43:05.399237108 +00:00 > User-Agent: sentry-cli/1.48.0
  DEBUG   2019-11-13 15:43:05.402407698 +00:00 < HTTP/1.1 200 OK
  DEBUG   2019-11-13 15:43:05.402759380 +00:00 < Connection: close
  DEBUG   2019-11-13 15:43:05.402956451 +00:00 < Content-Length: 15344928
  DEBUG   2019-11-13 15:43:05.403090434 +00:00 < Expires: Sat, 07 Dec 2019 07:25:21 GMT
  DEBUG   2019-11-13 15:43:05.403226430 +00:00 < Last-Modified: Thu, 07 Nov 2019 07:24:35 GMT
  DEBUG   2019-11-13 15:43:05.403361865 +00:00 < Content-Type: application/x-msdos-program
  DEBUG   2019-11-13 15:43:05.403516365 +00:00 < Cache-Control: public, max-age=2592000
  DEBUG   2019-11-13 15:43:05.403800341 +00:00 < Accept-Ranges: bytes
  DEBUG   2019-11-13 15:43:05.404045313 +00:00 < Age: 548264
  DEBUG   2019-11-13 15:43:05.404182331 +00:00 < Accept-Ranges: bytes
  DEBUG   2019-11-13 15:43:05.404302487 +00:00 < Date: Wed, 13 Nov 2019 15:43:05 GMT
  DEBUG   2019-11-13 15:43:05.404409207 +00:00 < Vary: Accept-Encoding
  DEBUG   2019-11-13 15:43:05.404530085 +00:00 < Access-Control-Allow-Origin: *
  DEBUG   2019-11-13 15:43:05.404644681 +00:00 < Server: Fastly
  DEBUG   2019-11-13 15:43:05.404751622 +00:00 < Strict-Transport-Security: max-age=31536000; includeSubDomains
  DEBUG   2019-11-13 15:43:05.574815205 +00:00 response status: 200
Need to sudo to overwrite /usr/local/bin/sentry-cli
  DEBUG   2019-11-13 15:43:05.598800633 +00:00 error: running update nagger
  INFO    2019-11-13 15:43:05.599127236 +00:00 update nagger was disabled, not running update checks
error: No such file or directory (os error 2)
  DEBUG   2019-11-13 15:43:05.600703415 +00:00 client close; no transport to shut down  (from sentry)

I'm running the command as root, so no need for sudo (I installed the CLI as root also originally).

Activity

  1. self-assigned this
    on Nov 14, 2019
  2. kamilogorek commented on Feb 10, 2020

    @kamilogorek
    Contributor

    It's same issue as #652
    I'll try to come up with more generic solution.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions