-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Segmentation fault (alpine) #528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
some error here at alpine (no docker) using lxc
take a look at = coder/nbin#3 (comment)
now last step
same error = segment-fault after openning url
alternative install:
code-server --help
|
This is because your native modules need to be built on alpine as well. |
This is an issue because your docker image now suffers from this fault WARN stderr {"data":"(node:20) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.\n"} Error: spawn ENOMEM |
You ran out of mem. Likely isn't an issue with the docker image |
I have been trying to get code-server working inside an alpine container, and had the same issue as the OP. The binary can be located where you want, but the node_modules directory needs to be located at the same place as during build. Is this a bug in the build process or do I need to supply something to get the node_modules included in the binary? |
gist to install code-server using alpine lxc I needed to compile from source again to get it working. |
Has any one managed to actually get a working docker image here? I tried starting from a blank alpine:latest image today with the help of arvati's gist but somehow the build process is difficult to get to complete (at least for me XD). Also taking tobbenb's input and trying to fake the build by putting the already built binary together with the code repository after initializing node_modules doesn't really resolve the segmentation issue...the interface loads (I even get past the login screen) but then the process dies. |
these are packages installed on alpine. Check if some of them are missing before start compilation apk info
musl
busybox
alpine-baselayout
openrc
alpine-conf
libcrypto1.1
libssl1.1
ca-certificates-cacert
libtls-standalone
ssl_client
zlib
apk-tools
busybox-suid
busybox-initscripts
scanelf
musl-utils
libc-utils
alpine-keys
alpine-base
ca-certificates
c-ares
libgcc
libstdc++
libuv
nodejs
npm
yarn
libmagic
ncurses-terminfo-base
ncurses-terminfo
ncurses-libs
openssh-keygen
libedit
openssh-client
openssh-sftp-server
openssh-server-common
openssh-server
openssh
screen
libssh2
expat
git
libgpg-error
libassuan
libcap
pinentry
libbz2
libgcrypt
gmp
nettle
libffi
p11-kit
libtasn1
libunistring
gnutls
libksba
db
libsasl
libldap
npth
sqlite-libs
gnupg
keychain
gdbm
readline
xz-libs
python3
gettext-asprintf
libintl
gettext-libs
libgomp
libxml2
gettext
gettext-dev
pkgconf
zlib-dev
bzip2-dev
linux-headers
libffi-dev
libuuid
libblkid
libfdisk
libmount
libsmartcols
util-linux-dev
libxml2-utils
libxslt
docbook-xml
docbook-xsl
pcre
glib
libpcre16
libpcre32
libpcrecpp
pcre-dev
glib-dev
libsecret
libsecret-dev
libxau
libbsd
libxdmcp
libxcb
libx11
libxkbfile
xorgproto
libxau-dev
xcb-proto
libpthread-stubs
libxdmcp-dev
libxcb-dev
xtrans
libx11-dev
libxkbfile-dev
make
m4
perl
autoconf
automake
binutils
isl
libatomic
mpfr3
mpc1
gcc
musl-dev
libc-dev
g++
bash
libltdl
libtool
nghttp2-libs
libcurl
pcre2
nano
http-parser
python2
openssl
curl |
Thanks for that list - if I find the time I will try it tomorrow again...for now I at least got it to work on minideb. |
See #1306 |
Nvm, this should be fixed. If this still occurs, please feel free to reopen. |
code-server
version: 1.868-vsc1.33.1Description
If source code folder (
code-server-1.868-vsc1.33.1
) exists, code-server run fine, otherwise, code-server gets segmentation fault.Steps to Reproduce
code-server-1.868-vsc1.33.1.zip
in /roottarget
option asalpine
in/root/code-server-1.868-vsc1.33.1/packages/server/scripts/nbin.ts
The text was updated successfully, but these errors were encountered: