c9 / install

Cloud9 SSH installer
179 stars 151 forks source link

Cloud9 installer always fails at "Installing SAM Local" stage #90

Open WilliamVenner opened 6 years ago

WilliamVenner commented 6 years ago

No matter what server is used, I always get this error:

Package c9.ide.lambda 5
-----------------------
Installing SAM Local
-
> aws-sam-local@0.2.11 postinstall /root/.c9/node/lib/node_modules/aws-sam-local
> go-npm install

Downloading from URL: https://github.com/awslabs/aws-sam-local/releases/download/v0.2.11/sam_0.2.11_linux_amd64.tar.gz
aws-sam-local@0.2.11 /root/.c9/node/lib/node_modules/aws-sam-local
└── go-npm@0.1.9 (mkdirp@0.5.1, tar@2.2.1, request@2.87.0)
npm ERR! Linux 4.15.0-23-generic
npm ERR! argv "/root/.c9/node/bin/node" "/root/.c9/node/bin/npm" "explore" "-g" "aws-sam-local@0.2.11" "--" "ln -sfv $(pwd)/bin/* /usr/bin/"
npm ERR! node v4.8.7
npm ERR! npm  v2.15.11

npm ERR! It doesn't look like aws-sam-local@0.2.11 is installed.
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

Failed npm-g. Exit code 1

One or more errors occured. Please try to resolve them and restart AWS Cloud9 or visit https://forums.aws.amazon.com/forum.jspa?forumID=268
adriancbo commented 6 years ago

Same here. Going down the rabbit hole now to try n figure it out.

On Debian 9.5x64...

Ending up with these errors:

When installing manually:

wget -O - https://raw.githubusercontent.com/c9/install/master/install.sh | bash
...
bufferevent_openssl.c:237:2: note: (near initialization for ‘methods_bufferevent’)
bufferevent_openssl.c:228:19: error: storage size of ‘methods_bufferevent’ isn’t known
 static BIO_METHOD methods_bufferevent = {
                   ^~~~~~~~~~~~~~~~~~~
Makefile:793: recipe for target 'bufferevent_openssl.lo' failed
make[2]: *** [bufferevent_openssl.lo] Error 1
make[2]: Leaving directory '/root/.c9/libevent-2.0.21-stable'
Makefile:857: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/.c9/libevent-2.0.21-stable'
Makefile:592: recipe for target 'all' failed
make: *** [all] Error 2

Installing via AWS console:

...
Failed npm-g. Exit code E_MISSING_END_MARKER
WilliamVenner commented 6 years ago

@adriancbo Hey Adrian, did you manage to fix this error?

dryrain39 commented 5 years ago

same error here

Installation Started

Package c9.ide.lambda 5
-----------------------
Installing SAM Local

> aws-sam-local@0.2.11 preuninstall /root/.c9/node/lib/node_modules/aws-sam-local
> go-npm uninstall

-
> aws-sam-local@0.2.11 postinstall /root/.c9/node/lib/node_modules/aws-sam-local
> go-npm install

Downloading from URL: https://github.com/awslabs/aws-sam-local/releases/download/v0.2.11/sam_0.2.11_linux_amd64.tar.gz
aws-sam-local@0.2.11 /root/.c9/node/lib/node_modules/aws-sam-local
└── go-npm@0.1.9 (mkdirp@0.5.1, tar@2.2.1, request@2.88.0)
npm ERR! Linux 4.15.0-33-generic
npm ERR! argv "/root/.c9/node/bin/node" "/root/.c9/node/bin/npm" "explore" "-g" "aws-sam-local@0.2.11" "--" "ln -sfv $(pwd)/bin/* /usr/bin/"
npm ERR! node v4.8.7
npm ERR! npm  v2.15.11

npm ERR! It doesn't look like aws-sam-local@0.2.11 is installed.
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /root/.c9/empty/npm-debug.log

Failed npm-g. Exit code E_MISSING_END_MARKER

One or more errors occured. Please try to resolve them and restart AWS Cloud9 or visit https://forums.aws.amazon.com/forum.jspa?forumID=268
msmcconnell commented 1 year ago

Just started seeing this error as well. Was the root cause ever found? Is it bad builds?