quasarframework / quasar-cli

[DEPRECATED, <= 0.17) Quasar Framework - CLI
https://quasar.dev
MIT License
202 stars 50 forks source link

pthread_create: Resource temporarily unavailable #162

Closed juanigonvocal closed 6 years ago

juanigonvocal commented 6 years ago

Software version

OS: Linux cloud6.hostgator.com 3.10.0-693.17.1.2.ELK.el6.x86_64 #1 SMP Thu Feb 8 23:35:45 MST 2018 x86_64 x86_64 x86_64 GNU/Linux Node: 8.11.3 NPM: 6.3.0 Quasar-cli 0.16.4 Any other software related to your bug:

What did you get as the error?

$ quasar build outputs:

[==================  ] 90% (chunk assets processing)node[93]: pthread_create: Resource 
  temporarily unavailable
  Error: TypeError: child.send is not a function

    - fork.js:23 fork
      [my-site]/[worker-farm]/lib/fork.js:23:9
nothingismagick commented 6 years ago

Please update your quasar-cli - it should be 0.17.6

jigarzon commented 6 years ago

@nothingismagick thank you, how should I update? npm update -g quasar-cli leads me to 0.16.5

nothingismagick commented 6 years ago
$ npm update -g quasar-cli@0.17.6 

# Also update the field in your project's package.json by running 
$ npm install quasar-cli@0.17.6
jigarzon commented 6 years ago

Still happening with 0.17.6

nothingismagick commented 6 years ago

perhaps I should have continued reading through to the error.

That looks like something from your code, because lib/fork.js does not ring a bell - and that is where the error is being thrown... I am not sure this has anything to do with quasar.

jigarzon commented 6 years ago

@nothingismagick Yes, I'd already read that link before opening this issue. But its not related to it because this has nothing to do with docker and I can build other npm projects there. I fully understand its an OS issue, but I need to understand how to properly configure quasar in order to build this, I'm sure other may have the same problem. This is the complete stacktrace:

[==================  ] 90% (chunk assets processing)node[295]: pthread_create: Resource temporarily unavailable
  Error: TypeError: child.send is not a function

    - fork.js:23 fork
      [my-site]/[worker-farm]/lib/fork.js:23:9

    - farm.js:106 Farm.startChild
      [my-site]/[worker-farm]/lib/farm.js:106:16

    - farm.js:279 Farm.processQueue
      [my-site]/[worker-farm]/lib/farm.js:279:10

    - farm.js:307 Farm.addCall
      [my-site]/[worker-farm]/lib/farm.js:307:8

    - farm.js:38 Farm.<anonymous>
      [my-site]/[worker-farm]/lib/farm.js:38:10

    - index.js:71 _class.boundWorkers
      [my-site]/[uglifyjs-webpack-plugin]/dist/uglify/index.js:71:24

    - index.js:96 enqueue
      [my-site]/[uglifyjs-webpack-plugin]/dist/uglify/index.js:96:17

    - util.js:16 tryCatcher
      [my-site]/[bluebird]/js/release/util.js:16:23

    - promise.js:512 Promise._settlePromiseFromHandler
      [my-site]/[bluebird]/js/release/promise.js:512:31

    - promise.js:569 Promise._settlePromise
      [my-site]/[bluebird]/js/release/promise.js:569:18

    - promise.js:614 Promise._settlePromise0
      [my-site]/[bluebird]/js/release/promise.js:614:10

    - promise.js:689 Promise._settlePromises
      [my-site]/[bluebird]/js/release/promise.js:689:18

    - async.js:133 Async._drainQueue
      [my-site]/[bluebird]/js/release/async.js:133:16

    - async.js:143 Async._drainQueues
      [my-site]/[bluebird]/js/release/async.js:143:10

    - async.js:17 Immediate.Async.drainQueues
      [my-site]/[bluebird]/js/release/async.js:17:14
nothingismagick commented 6 years ago

So it seems I spoke too soon again:

npm ls "worker-farm"
/quasar_test_project
└─┬ quasar-cli@0.17.6
  └─┬ uglifyjs-webpack-plugin@1.2.7
    └── worker-farm@1.6.0

Your exact error led me to this issue at the worker-farm repo:

https://github.com/rvagg/node-worker-farm/issues/72 https://npm.community/t/npm-ci-failed-child-send-is-not-a-function/726

Can you please try to build this project with yarn instead of npm, and if it still fails please try with node 10.4.1+

jigarzon commented 6 years ago

I'm not using npm, I'm using quasar build command directly. Is there a way to instruct quasar cli to use yarn instead of npm?

nothingismagick commented 6 years ago

I assume you used npm to build your project. Do it again with yarn would be the updated advice.

nothingismagick commented 6 years ago

Are you still having this issue?

jigarzon commented 6 years ago

@nothingismagick Yes, I found another way to resolve. I think it might be a low resource server. Please close this issue, I had opened it with another account and I lost it.

leepowelldev commented 6 years ago

@jigarzon What did you do to resolve? I am hitting this error, and am having to disable uglify minification from my webpack config.

jigarzon commented 6 years ago

@leepowellcouk I build on my machine and upload to the limited server manually... Please tell me if you find the way.

nothingismagick commented 6 years ago

@leepowellcouk - can you explain more about your environment?