sudoroom / sudo-humans

hackerspace membership server
Other
37 stars 19 forks source link

Building (local) docker image hangs after error at step 7 #81

Closed sierkje closed 7 years ago

sierkje commented 7 years ago

This is the (error) output I get after (1) copying settings.js.example to settings.js, and (2) running docker build -t $LOGNAME/sudo-humans .

(Note that docker hangs after this output, it does not fail.)

Step` 7/10 : RUN npm install
 ---> Running in b41a76139760
npm WARN npm npm does not support Node.js v0.10.29
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! Object function (err) {
npm ERR!         if (err) return cb(err)
npm ERR!         fs.fsync(fd, function (err) {
npm ERR!           if (err) return cb(err)
npm ERR!           fs.close(fd, cb)
npm ERR!         })
npm ERR!       } has no method 'toLowerCase'
npm ERR! Object function (err) {
npm ERR!         if (err) return cb(err)
npm ERR!         fs.fsync(fd, function (err) {
npm ERR!           if (err) return cb(err)
npm ERR!           fs.close(fd, cb)
npm ERR!         })
npm ERR!       } has no method 'toLowerCase'
npm ERR! Object function (err) {
npm ERR!         if (err) return cb(err)
npm ERR!         fs.fsync(fd, function (err) {
npm ERR!           if (err) return cb(err)
npm ERR!           fs.close(fd, cb)
npm ERR!         })
npm ERR!       } has no method 'toLowerCase'
npm ERR! Object function (err) {
npm ERR!         if (err) return cb(err)
npm ERR!         fs.fsync(fd, function (err) {
npm ERR!           if (err) return cb(err)
npm ERR!           fs.close(fd, cb)
npm ERR!         })
npm ERR!       } has no method 'toLowerCase'
npm ERR! Object function (err) {
npm ERR!         if (err) return cb(err)
npm ERR!         fs.fsync(fd, function (err) {
npm ERR!           if (err) return cb(err)
npm ERR!           fs.close(fd, cb)
npm ERR!         })
npm ERR!       } has no method 'toLowerCase'
npm ERR! Object function (err) {
npm ERR!         if (err) return cb(err)
npm ERR!         fs.fsync(fd, function (err) {
npm ERR!           if (err) return cb(err)
npm ERR!           fs.close(fd, cb)
npm ERR!         })
npm ERR!       } has no method 'toLowerCase'
npm ERR! Object function (err) {
npm ERR!         if (err) return cb(err)
npm ERR!         fs.fsync(fd, function (err) {
npm ERR!           if (err) return cb(err)
npm ERR!           fs.close(fd, cb)
npm ERR!         })
npm ERR!       } has no method 'toLowerCase'
npm ERR! Object function (err) {
npm ERR!         if (err) return cb(err)
npm ERR!         fs.fsync(fd, function (err) {
npm ERR!           if (err) return cb(err)
npm ERR!           fs.close(fd, cb)
npm ERR!         })
npm ERR!       } has no method 'toLowerCase'
npm ERR! Object function (err) {
npm ERR!         if (err) return cb(err)
npm ERR!         fs.fsync(fd, function (err) {
npm ERR!           if (err) return cb(err)
npm ERR!           fs.close(fd, cb)
npm ERR!         })
npm ERR!       } has no method 'toLowerCase'
npm ERR! Object function (err) {
npm ERR!         if (err) return cb(err)
npm ERR!         fs.fsync(fd, function (err) {
npm ERR!           if (err) return cb(err)
npm ERR!           fs.close(fd, cb)
npm ERR!         })
npm ERR!       } has no method 'toLowerCase'
rcsheets commented 7 years ago

This appears to happen when using docker-ce but not docker-engine. I was previously using docker-engine and I'm now able to reproduce this having upgraded to docker-ce.

I believe @sierkje is now trying to come up with a workaround.

rcsheets commented 7 years ago

Also, during the docker build process, auplink crashed with SIGSEGV in ftw_startup().

rcsheets commented 7 years ago

When npm hangs, this is what it's doing, according to strace(1):

strace: Process 15468 attached
epoll_wait(5, [], 1024, 244)            = 0
futex(0x7f95700008c8, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(5, [], 1024, 250)            = 0
futex(0x7f95700008c8, FUTEX_WAKE_PRIVATE, 1) = 1
epoll_wait(5, [], 1024, 250)            = 0
futex(0x7f95700008c8, FUTEX_WAKE_PRIVATE, 1) = 1
sierkje commented 7 years ago

82 seems to fix this issue (apparently NPM is upgraded, but currently the correct version is already installed before upgrading.)