Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

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

Open
ladar opened this issue Apr 19, 2022 · 29 comments
Open

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

ladar opened this issue Apr 19, 2022 · 29 comments

Comments

@ladar
Copy link

ladar commented Apr 19, 2022

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 ]

@victor4pro
Copy link

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

@ctkjose
Copy link

ctkjose commented Apr 19, 2022

Same issue here...

@cainmagi
Copy link

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

@3sky
Copy link

3sky commented Apr 19, 2022

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

@YanBel
Copy link

YanBel commented Apr 19, 2022

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

@rishabharidas
Copy link

rishabharidas commented Apr 19, 2022

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

@deepsingh132
Copy link

is the server down? any updates on it

@piwowarczyk
Copy link

Same here... MacBook Pro Intel

@MadMax-imusPrime
Copy link

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

@gokgokay
Copy link

Same issue here on Mac Pro Intel...

@AVKorotkov
Copy link

Same issue on Debian 11 with Atom 1.60.0.

@axelb152
Copy link

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

@eylau-ucsd
Copy link

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

@Serg815
Copy link

Serg815 commented Apr 20, 2022

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

@EdoLom
Copy link

EdoLom commented Apr 20, 2022

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

@jobalas
Copy link

jobalas commented Apr 20, 2022

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 ]

@ladar
Copy link
Author

ladar commented Apr 20, 2022

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.

@SunilSKamath4s
Copy link

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

@ladar
Copy link
Author

ladar commented Apr 20, 2022

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

@gokgokay
Copy link

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

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

It is working. Thank you !

@ladar
Copy link
Author

ladar commented Apr 20, 2022

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 ✓

@CarterTurley
Copy link

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

@neaznuts
Copy link

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

@ladar
Copy link
Author

ladar commented Apr 26, 2022

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 ladar reopened this Apr 26, 2022
@wdompier
Copy link

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.

@jstritch
Copy link

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

@phun-ky
Copy link

phun-ky commented Oct 4, 2022

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

@vlad0337187
Copy link

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

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

No branches or pull requests