atom / apm

Atom Package Manager

Home Page:https://atom.io/packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

apm package installs are failing... server code 500.

ladar opened this issue · comments

Looks like the tarball redirector apm uses to download/install Atom packages has started returning HTTP 500's (server error). The issue started within the last hour or so.

I've confirmed the same result using multiple operating systems (Debian 10, CentOS 8) multiple Atom versions (1.58.0 and 1.60.0), using multiple networks, and for multiple packages. I think the problem is on the server.

Package installs from within Atom appear to also be failing.

apm install split-diff
Installing split-diff to /home/user/.atom/packages ✗

npm ERR! code E500
npm ERR! 500 Internal Server Error - GET https://www.atom.io/api/packages/split-diff/versions/1.6.1/tarball

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.atom/.apm/_logs/2022-04-19T01_28_05_869Z-debug.log

And the error log.
``
cat /home/user/.atom/.apm/_logs/2022-04-19T01_28_05_869Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/usr/share/atom/resources/app/apm/bin/node',
1 verbose cli '/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js',
1 verbose cli '--globalconfig',
1 verbose cli '/home/user/.atom/.apm/.apmrc',
1 verbose cli '--userconfig',
1 verbose cli '/home/user/.atom/.apmrc',
1 verbose cli 'install',
1 verbose cli 'https://www.atom.io/api/packages/split-diff/versions/1.6.1/tarball',
1 verbose cli '--target=9.4.4',
1 verbose cli '--disturl=https://atom.io/download/electron',
1 verbose cli '--arch=x64',
1 verbose cli '--global-style'
1 verbose cli ]
2 info using npm@6.14.13
3 info using node@v12.14.1
4 verbose npm-session a7a44cd36710d46d
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 500 https://www.atom.io/api/packages/split-diff/versions/1.6.1/tarball 71234ms attempt #3
8 silly fetchPackageMetaData error for https://www.atom.io/api/packages/split-diff/versions/1.6.1/tarball 500 Internal Server Error - GET https://www.atom.io/api/packages/split-diff/versions/1.6.1/tarball
9 timing stage:rollbackFailedOptional Completed in 1ms
10 timing stage:runTopLevelLifecycles Completed in 71256ms
11 verbose stack Error: 500 Internal Server Error - GET https://www.atom.io/api/packages/split-diff/versions/1.6.1/tarball
11 verbose stack at /usr/share/atom/resources/app/apm/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:117:15
11 verbose stack at processTicksAndRejections (internal/process/task_queues.js:94:5)
12 verbose statusCode 500
13 verbose pkgid https://www.atom.io/api/packages/split-diff/versions/1.6.1/tarball
14 verbose cwd /tmp/apm-install-dir-2022318-1302653-15eicn6.z1jl
15 verbose Linux 4.18.0-348.7.1.el8_5.x86_64
16 verbose argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/user/.atom/.apm/.apmrc" "--userconfig" "/home/user/.atom/.apmrc" "install" "https://www.atom.io/api/packages/split-diff/versions/1.6.1/tarball" "--target=9.4.4" "--disturl=https://atom.io/download/electron" "--arch=x64" "--global-style"
17 verbose node v12.14.1
18 verbose npm v6.14.13
19 error code E500
20 error 500 Internal Server Error - GET https://www.atom.io/api/packages/split-diff/versions/1.6.1/tarball
21 verbose exit [ 1, true ]

Hello, I'm having the same issue. Working on Macbook pro m1. I'm trying to install any package or any theme and getting the same error.

19 error code E500
20 error 500 Internal Server Error - GET https://www.atom.io/api/packages/teletype/versions/0.13.4/tarball

Working with:

apm  2.6.2
npm  6.14.13
node 12.14.1 x64
atom 1.60.0
python 
git 2.30.1

Same issue here...

Same issue, verified by Ubuntu 20.04, node v16.14.2. Using any command like this:

apm install hyperclick

will result in a Server 500 Error.

It can be verified that the tarball is not downloadable now:
https://www.atom.io/api/packages/hyperclick/versions/0.1.5/tarball

The returned message is

{"message":"Application error"}

Although the above link can be queried by using
https://www.atom.io/api/packages/hyperclick/versions/0.1.5

Fresh Atom installation, Mac M1. Same issue(different package: vim-mode)

Same Issue on mac m1, checking update also failing "The server sent an invalid response"

same issue for me. for fresh install on Ubuntu 20.04 LTS

is the server down? any updates on it

Same here... MacBook Pro Intel

Same issue here on windows.

Error only happens when trying to get the download, if you remove tarball from the url you'll get a response back from the server.

Site error with full url: {"message":"Application error"}

Same issue here on Mac Pro Intel...

Same issue on Debian 11 with Atom 1.60.0.

Yep I am having the same issue, just downloaded atom 1.60.0 on a Macbook Pro intel I9

Has there been any response from the ppl running the servers? I believe the servers have been down for almost a day.

Man I’ve been going nuts trying to figure this out! Hope we here something soon

Same here:
500 Internal Server Error - GET https://www.atom.io/api/packages/script/versions/3.32.2/tarball

i get the following error when trying to execute "apm install ide-python"
20 error 502 Bad Gateway - GET https://www.atom.io/api/packages/atom-ide-base/versions/3.4.0/t> 21 verbose exit [ 1, true ]

Does anyone know a workaround? It seems like the URL that is failing is only used to redirect users to the tarball. So it should be possible to shortcut things, and grab the tarball directly, right?

I say this because the Atom has a long tradition of breaking critical functionality, and never fixing it. At least in my personal experience.

Possible solution. Install using git repo if available like:
apm install mechatroner/atom-rainbow-csv

Thanks @SunilSKamath4s I actually just noticed @mjmar01 posted the same solution on the Atom repo version of this issue:

I say this because the Atom has a long tradition of breaking critical functionality, and never fixing it. At least in my personal experience.

Agree!!

Possible solution. Install using git repo if available like: apm install mechatroner/atom-rainbow-csv

It is working. Thank you !

The issue appears to have been fixed.

vagrant@debian-build:~$ apm install sort-lines
Installing sort-lines to /home/vagrant/.atom/packages ✓
vagrant@debian-build:~$ apm install open-recent
Installing open-recent to /home/vagrant/.atom/packages ✓
vagrant@debian-build:~$ apm install atom-beautify
Installing atom-beautify to /home/vagrant/.atom/packages ✓    
vagrant@debian-build:~$ apm install language-cmake
Installing language-cmake to /home/vagrant/.atom/packages ✓
vagrant@debian-build:~$ apm install language-groovy
Installing language-groovy to /home/vagrant/.atom/packages ✓
vagrant@debian-build:~$ apm install language-gradle
Installing language-gradle to /home/vagrant/.atom/packages ✓
vagrant@debian-build:~$ apm install language-kotlin
Installing language-kotlin to /home/vagrant/.atom/packages ✓
vagrant@debian-build:~$ apm install language-openvpn
Installing language-openvpn to /home/vagrant/.atom/packages ✓

new to atom as of yesterday, and am having the same issue. I have only been exploring this stuff for about a week now, can anyone help with this issue? or explain the issue in layman terms, thanks

@ctbricks - Servers were down at the time this thread posted, If you're attempting to install packages in ATOM and that error has brought you here, unfortunately I think it may be a waiting game. (I had to wait approx. two days before I was able to install the packages I required.)

Reopening since it still seems to be an issue for some, if you see this, please post a comment with working/not working as appropriate. And if your on *nix, it be helpful to post the output from dig +short www.atom.io ; dig +short atom.io so as well, so people can see which server you're accessing. For those hitting a still broken server, you might be able to redirect your installs using a hosts file.

# apm install sort-lines
Installing sort-lines to /home/ladar/.atom/packages ✓
# dig +short www.atom.io ; dig +short atom.io
atom-io.azurewebsites.net.
waws-prod-blu-323.sip.azurewebsites.windows.net.
waws-prod-blu-323-1104.eastus.cloudapp.azure.com.
20.119.16.4
20.119.16.4

This issue (or at least the original one) seems to be the same problem as #947. It was still a problem yesterday, but the server was working today on my machine: MacOS Big Sur, version 11.6.5, Intel Core I5.

I have not tried this on my other machines running CentOS 7 or 8 (I upgraded one) or Ubuntu 22 .... Also, the software update check on Atom was not working yesterday... it is now working as well.

Possibly related issue with additional diagnostic information atom/atom#25426

Still having issues with this. apm and GUI fails. Also get errors from the search function..

Have similar issue, Linux Mint 20.3 Cinnamon, Atom 1.58.0, apm 2.6.2, but with apm develop command.

Workaround: install with APM from .git, manually move to ~/.atom/dev/packages/.