apm icon indicating copy to clipboard operation
apm copied to clipboard

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

Open ladar opened this issue 3 years ago • 29 comments
trafficstars

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 [email protected] 3 info using [email protected] 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 ]

ladar avatar Apr 19 '22 01:04 ladar

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

victor4pro avatar Apr 19 '22 02:04 victor4pro

Same issue here...

ctkjose avatar Apr 19 '22 04:04 ctkjose

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

cainmagi avatar Apr 19 '22 05:04 cainmagi

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

3sky avatar Apr 19 '22 08:04 3sky

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

YanBel avatar Apr 19 '22 10:04 YanBel

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

rishabharidas avatar Apr 19 '22 13:04 rishabharidas

is the server down? any updates on it

deepsingh132 avatar Apr 19 '22 13:04 deepsingh132

Same here... MacBook Pro Intel

piwowarczyk avatar Apr 19 '22 13:04 piwowarczyk

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"}

MadMax-imusPrime avatar Apr 19 '22 15:04 MadMax-imusPrime

Same issue here on Mac Pro Intel...

gokgokay avatar Apr 19 '22 16:04 gokgokay

Same issue on Debian 11 with Atom 1.60.0.

AVKorotkov avatar Apr 19 '22 17:04 AVKorotkov

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

axelb152 avatar Apr 19 '22 22:04 axelb152

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

eylau-ucsd avatar Apr 19 '22 22:04 eylau-ucsd

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

Serg815 avatar Apr 20 '22 00:04 Serg815

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

EdoLom avatar Apr 20 '22 03:04 EdoLom

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 ]

jobalas avatar Apr 20 '22 08:04 jobalas

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.

ladar avatar Apr 20 '22 11:04 ladar

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

SunilSKamath4s avatar Apr 20 '22 11:04 SunilSKamath4s

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

ladar avatar Apr 20 '22 11:04 ladar

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!!

gokgokay avatar Apr 20 '22 16:04 gokgokay

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

It is working. Thank you !

gokgokay avatar Apr 20 '22 16:04 gokgokay

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 ✓

ladar avatar Apr 20 '22 17:04 ladar

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

CarterTurley avatar Apr 25 '22 11:04 CarterTurley

@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.)

neaznuts avatar Apr 25 '22 13:04 neaznuts

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

ladar avatar Apr 26 '22 08:04 ladar

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.

wdompier avatar Apr 26 '22 16:04 wdompier

Possibly related issue with additional diagnostic information https://github.com/atom/atom/issues/25426

jstritch avatar Apr 28 '22 13:04 jstritch

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

phun-ky avatar Oct 04 '22 11:10 phun-ky

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/.

vlad0337187 avatar Nov 11 '22 02:11 vlad0337187