All workers complete their work and exit but build silently halts

emdahlstrom
0
emdahlstrom
commented 6 months ago

I have trouble with the build/generation not finishing. The process seems to go fine and all workers complete their work and exit but then nothing happens. Maybe everything is done, just that npm doesn't exit the script.

Has anyone else run into this? Any tips for debugging this?

Here is the generate config from nuxt.config.js:

  generate: {
    workers: 4,
    workerConcurrency: 500,
    concurrency: 500,
    routes: function () {
      return axios.get('https://_-redacted-_/wp-json/wp/v2/posts?per_page=100')
      .then((res) => {
        return res.data.map((post) => {
          return '/posts/' + post.slug
        })
      })
    },
    done ({ duration, errors, workerInfo }) {
      if (errors.length) {
        console.log({ generate_errors: errors })
      }
    }
  },
0
pimlie
593
pimlie
commented 6 months ago

Could you please include some of the output of the cli command? And which nuxt version do you have installed?

0
emdahlstrom
0
emdahlstrom
commented 6 months ago

Nuxt 1.4.0
Nuxt generate cluster 1.3.0

**Output from the cli**
> nuxt-generate -w 4 -b

  nuxt:build App root: /home/em/Code/radda-jam +0ms
  nuxt:build Generating /home/em/Code/radda-jam/.nuxt files... +1ms
  nuxt:build Generating files... +48ms
  nuxt:build Generating routes... +8ms
  nuxt:build Building files... +24ms

  ████████████████████ 20% building modules
  ████████████████████ 25% building modules
  ████████████████████ 30% building modules
  ████████████████████ 45% building modules
  ████████████████████ 50% building modules
  ████████████████████ 55% building modules
  ████████████████████ 60% building modules
  ████████████████████ 100%

Build completed in 68.488s

Hash: e68e0d136aa45cc26870
Version: webpack 3.11.0
Time: 68492ms
                                                      Asset       Size  Chunks                    Chunk Names
   fonts/ef12a52c-a47f-49fe-b5bb-ee15aa7b5377.e50b6fe.woff2    22.6 kB          [emitted]
                                       img/logo.4a78192.svg    2.51 kB          [emitted]
                       img/icon--share--twitter.9a6b6fc.svg    1.15 kB          [emitted]
     fonts/39085db1-1140-43b6-bd13-a6f8a8d99ea7.6964676.ttf    41.4 kB          [emitted]
      fonts/radda_djuren_-_djurens_ratt-webfont.9156157.ttf    25.2 kB          [emitted]
                           img/raddadjuren_logo.031915a.png    9.77 kB          [emitted]
      fonts/radda_djuren_-_djurens_ratt-webfont.f2af8da.eot    15.7 kB          [emitted]
    fonts/radda_djuren_-_djurens_ratt-webfont.b42c2cc.woff2      14 kB          [emitted]
                            img/symbol_djuretik.bb22103.png    1.15 kB          [emitted]
    fonts/d4dcda7c-1162-4849-86ad-8c3710687c10.a3ed548.woff    24.1 kB          [emitted]
     fonts/3dbdb32e-fd26-4fb5-b2cf-76c683938317.47a135c.ttf    39.5 kB          [emitted]
                     img/icon--arrows--dropdown.a322f4c.svg  648 bytes          [emitted]
    fonts/13b0a4ee-3238-4837-bb6e-162ae2990401.9b5f8a2.woff    28.2 kB          [emitted]
     fonts/radda_djuren_-_djurens_ratt-webfont.321f4d5.woff      18 kB          [emitted]
    fonts/251f4b6b-9fff-4d66-9ff9-3ca5d90f3db1.b34928c.woff    23.5 kB          [emitted]
   fonts/47c763ea-084a-46ab-99aa-d4f5f0448a9a.4846345.woff2    18.8 kB          [emitted]
   fonts/7e4132c8-ead5-4aca-8bd4-4cf997fa7405.c330797.woff2    18.4 kB          [emitted]
                 layouts/rd_article.b92ca8d67e55bf5de666.js    29.2 kB      12  [emitted]         layouts/rd_article
         pages/implement/components.3f3c01e5a91bce0b3ce6.js    16.3 kB      13  [emitted]         pages/implement/components
   pages/implement/verify-hero-form.e264f931be5cd559ba79.js    5.56 kB      14  [emitted]         pages/implement/verify-hero-form
           pages/implement/template.7fabc247edb874bffed0.js    5.55 kB      15  [emitted]         pages/implement/template
                pages/implement/ask.ae4789c83cf8ad9218f8.js    9.64 kB      16  [emitted]         pages/implement/ask
              pages/implement/index.a9cef78e4ed4e7150a7c.js    1.79 kB      17  [emitted]         pages/implement/index
                    layouts/default.82ebf0e61b924b20ca12.js     1.2 kB      18  [emitted]         layouts/default
                  pages/posts/_slug.84bb96bcd1c956f4b2ab.js    5.45 kB      19  [emitted]         pages/posts/_slug
                        pages/index.4d3992de83e144057689.js    5.01 kB      20  [emitted]         pages/index
                             vendor.a9c9c71f37cc38a482e1.js     298 kB      21  [emitted]         vendor
                                app.f442d5ffafcdc03bdae5.js     120 kB      22  [emitted]         app
                           manifest.e68e0d136aa45cc26870.js    2.47 kB      23  [emitted]         manifest
                                                   LICENSES     308 kB          [emitted]  [big]

  nuxt:cluster-master Retrieving routes +0ms
  nuxt:cluster-master A total of 118 routes will be generated +2s
  nuxt:cluster-master Worker 1 started with pid 22278 +179ms
  nuxt:cluster-master Worker 2 started with pid 22283 +0ms
  nuxt:cluster-master Worker 3 started with pid 22290 +0ms
  nuxt:cluster-master Worker 4 started with pid 22296 +0ms
  nuxt:cluster-master Sending 30 routes to worker 1 +2s
  nuxt:cluster-master Sending 22 routes to worker 3 +0ms
  nuxt:cluster-master Sending 17 routes to worker 4 +1ms
  nuxt:cluster-master Sending 13 routes to worker 2 +0ms
  nuxt:cluster-worker Worker 1 received 30 routes = require(master +0ms
  nuxt:render Rendering url /medlem +0ms
  nuxt:cluster-worker Worker 3 received 22 routes = require(master +0ms
  nuxt:cluster-worker Worker 4 received 17 routes = require(master +0ms
  nuxt:render Rendering url /posts/tidningen-radda-djuren-klubbnytt-2-2017 +0ms
  nuxt:cluster-worker Worker 2 received 13 routes = require(master +0ms
  nuxt:render Rendering url /posts/kim-och-mika-30 +0ms
  nuxt:render Rendering url /posts/tidningen-radda-djuren-5-2016 +0ms
  nuxt:render Rendering url /posts/facit-korsord-nr-5-2017 +98ms
  nuxt:render Rendering url /posts/tidningen-radda-djuren-klubbnytt-4-2017 +0ms
  nuxt:render Rendering url /posts/lika-som-gris-och-hund +1ms
  nuxt:render Rendering url /posts/kanda-grisar +0ms
  nuxt:render Rendering url /posts/facit-korsord-nr-4-2017 +0ms
  nuxt:render Rendering url /posts/traffa-radda-djuren-klubben-pa-bokmassan-i-goteborg +0ms
  nuxt:render Rendering url /posts/tidningen-radda-djuren-klubbnytt-3-2017 +1ms
  nuxt:render Rendering url /posts/kim-och-mika-29 +0ms
  nuxt:render Rendering url /posts/humlor-som-spelar-golf +0ms
  nuxt:render Rendering url /posts/facit-knep-och-knap-nr-3-2017 +0ms
  nuxt:render Rendering url /posts/facit-sommarkorsord-nr-3-2017 +0ms
  nuxt:render Rendering url /posts/sommarkorsord +1ms
  nuxt:render Rendering url /posts/kim-och-mika-28 +0ms
  nuxt:render Rendering url /posts/kim-och-mika-27 +1ms
  nuxt:render Rendering url /posts/kim-och-mika-26 +0ms
  nuxt:render Rendering url /posts/kim-och-mika-25 +1ms
  nuxt:render Rendering url /posts/kim-och-mika-24 +0ms
  nuxt:render Rendering url /posts/ett-surrande-korsord +0ms
  nuxt:render Rendering url /posts/djur-pa-stranden +1ms
  nuxt:render Rendering url /posts/gor-sota-burkar-av-petflaskor +0ms
  nuxt:render Rendering url /posts/alva-skriver-insandare-for-djuren +0ms
  nuxt:render Rendering url /implement +118ms
  nuxt:render Rendering url /demo +1ms
  nuxt:render Rendering url /implement/hero-form +5ms
  nuxt:render Rendering url /demo/firestore +2ms
  nuxt:render Rendering url /posts/en-strumphare-blir-till +128ms
  nuxt:render Rendering url /posts/tygfjadrar +2ms
  nuxt:render Rendering url /implement/hero-form-connected +13ms
  nuxt:render Rendering url /posts/facit-finn-fem-fel +1ms
  nuxt:render Rendering url /posts/de-hjalper-skadade-djur +130ms
  nuxt:render Rendering url /posts/therese-lindgren-youtubestjarnan-som-vill-radda-djuren +2ms
  nuxt:render Rendering url /posts/facit-korsord-nr-2-2017 +3ms
  nuxt:render Rendering url /posts/arsmote +0ms
  nuxt:render Rendering url /posts/andreas-tog-hand-om-chinchillor-i-nod +1ms
  nuxt:render Rendering url /posts/nora-tycker-att-alla-kan-testa-vegetariskt +1ms
  nuxt:render Rendering url /posts/tidningen-radda-djuren-1-2017 +0ms
  nuxt:render Rendering url /posts/vegansk-chokladtryffel +0ms
  nuxt:render Rendering url /posts/philadelphiabullar-i-langpanna +1ms
  nuxt:render Rendering url /posts/djur-som-lever-pa-natten +1ms
  nuxt:render Rendering url /implement/ask +2ms
  nuxt:render Rendering url /posts/supergoda-raw-brownies +0ms
  nuxt:render Rendering url /posts/kaniner-ar-flockdjur +0ms
  nuxt:render Rendering url /posts/kolapaj-med-karamellmandlar +1ms
  nuxt:render Rendering url /posts/minkar +1ms
  nuxt:render Rendering url /posts/wienerbrod +0ms
  nuxt:render Rendering url /posts/kim-och-mika-23 +1ms
  nuxt:render Rendering url /posts/vegokoll-sommarmarangtarta +1ms
  nuxt:render Rendering url /posts/julia-alskar-djur +0ms
  nuxt:render Rendering url /posts/korvgifflar +0ms
  nuxt:render Rendering url /posts/rita-for-kaninerna +1ms
  nuxt:render Rendering url /posts/lasagne-med-sojafars +1ms
  nuxt:render Rendering url /demo/age +6ms
  nuxt:render Rendering url /implement/template +3ms
  nuxt:render Rendering url /posts/facit-nr-1-17 +6ms
  nuxt:render Rendering url /implement/verify-hero-form +5ms
  nuxt:render Rendering url /posts/korsord-nr-1-2017 +2ms
  nuxt:render Rendering url /posts/att-forlora-ett-familjedjur +3ms
  nuxt:render Rendering url /medlem/tack +4ms
  nuxt:render Rendering url /posts/kim-och-mika-22 +1ms
  nuxt:render Rendering url /implement/components +2ms
  nuxt:render Rendering url /medlem/hero +2ms
  nuxt:render Rendering url /medlem/mg/postal +11ms
  nuxt:render Rendering url /medlem/mg/direct +4ms
  nuxt:render Rendering url /medlem/mg/contact +3ms
  nuxt:render Rendering url /medlem/mg/fallback +3ms
  nuxt:render Rendering url / +3ms
  nuxt:render Rendering url /posts/alpackan +1ms
  nuxt:render Rendering url /posts/kim-och-mika-32 +1ms
  nuxt:render Rendering url /posts/tidningen-radda-djuren-klubbnytt-2-2018 +1ms
  nuxt:render Rendering url /posts/tavling-2 +0ms
  nuxt:render Rendering url /posts/facit-korsord-nr-2-2018 +1ms
  nuxt:render Rendering url /posts/tidningen-radda-djuren-klubbnytt-1-2018 +0ms
  nuxt:render Rendering url /posts/fria-och-eira-inga-farskallar +0ms
  nuxt:render Rendering url /posts/facit-korsord-nr-1-2018 +1ms
  nuxt:render Rendering url /posts/facit-knep-och-knap-klubbnytt-1-18 +0ms
  nuxt:render Rendering url /posts/kim-och-mika-31 +1ms
  nuxt:render Rendering url /posts/tidningen-radda-djuren-klubbnytt-5-2017 +0ms
  nuxt:render Rendering url /posts/katten-xanders-forsta-steg-i-frihet +1ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /implement/index.html +2s
  nuxt: Call generate:routeCreated hooks (1) +1ms
  nuxt:cluster-worker Worker 1 generated file: /implement/hero-form/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /implement/ask/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /implement/template/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /implement/verify-hero-form/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /implement/components/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +15ms
  nuxt:cluster-worker Worker 1 generated file: /demo/age/index.html +15ms
  nuxt: Call generate:routeCreated hooks (1) +2s
  nuxt:cluster-worker Worker 1 generated file: /medlem/index.html +2s
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /medlem/tack/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /medlem/hero/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /implement/hero-form-connected/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +2ms
  nuxt:cluster-worker Worker 1 generated file: /demo/index.html +2ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /medlem/mg/contact/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /demo/firestore/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /medlem/mg/fallback/index.html +1ms
  nuxt: Call generate:routeCreated hooks (1) +1ms
  nuxt:cluster-worker Worker 1 generated file: /medlem/mg/postal/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /medlem/mg/direct/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +49s
  nuxt:cluster-worker Worker 1 generated file: /index.html +49s
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 2 generated file: /posts/therese-lindgren-youtubestjarnan-som-vill-radda-djuren/index.html +1m
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 3 generated file: /posts/kim-och-mika-28/index.html +1m
  nuxt: Call generate:routeCreated hooks (1) +4ms
  nuxt:cluster-worker Worker 3 generated file: /posts/gor-sota-burkar-av-petflaskor/index.html +4ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 4 generated file: /posts/en-strumphare-blir-till/index.html +1m
  nuxt: Call generate:routeCreated hooks (1) +3s
  nuxt:cluster-worker Worker 3 generated file: /posts/kim-och-mika-24/index.html +3s
  nuxt: Call generate:routeCreated hooks (1) +743ms
  nuxt:cluster-worker Worker 3 generated file: /posts/tidningen-radda-djuren-klubbnytt-4-2017/index.html +744ms
  nuxt: Call generate:routeCreated hooks (1) +6s
  nuxt:cluster-worker Worker 2 generated file: /posts/supergoda-raw-brownies/index.html +6s
  nuxt: Call generate:routeCreated hooks (1) +14ms
  nuxt:cluster-worker Worker 2 generated file: /posts/vegansk-chokladtryffel/index.html +14ms
  nuxt: Call generate:routeCreated hooks (1) +1ms
  nuxt:cluster-worker Worker 2 generated file: /posts/nora-tycker-att-alla-kan-testa-vegetariskt/index.html +1ms
  nuxt: Call generate:routeCreated hooks (1) +2s
  nuxt:cluster-worker Worker 4 generated file: /posts/julia-alskar-djur/index.html +2s
  nuxt: Call generate:routeCreated hooks (1) +15ms
  nuxt:cluster-worker Worker 4 generated file: /posts/kim-och-mika-23/index.html +14ms
  nuxt: Call generate:routeCreated hooks (1) +1s
  nuxt:cluster-worker Worker 3 generated file: /posts/kim-och-mika-30/index.html +1s
  nuxt: Call generate:routeCreated hooks (1) +12ms
  nuxt:cluster-worker Worker 3 generated file: /posts/facit-sommarkorsord-nr-3-2017/index.html +12ms
  nuxt: Call generate:routeCreated hooks (1) +568ms
  nuxt:cluster-worker Worker 3 generated file: /posts/kim-och-mika-29/index.html +568ms
  nuxt: Call generate:routeCreated hooks (1) +659ms
  nuxt:cluster-worker Worker 3 generated file: /posts/tidningen-radda-djuren-klubbnytt-3-2017/index.html +660ms
  nuxt: Call generate:routeCreated hooks (1) +3s
  nuxt:cluster-worker Worker 2 generated file: /posts/de-hjalper-skadade-djur/index.html +3s
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 2 generated file: /posts/arsmote/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +672ms
  nuxt:cluster-worker Worker 3 generated file: /posts/facit-knep-och-knap-nr-3-2017/index.html +672ms
  nuxt: Call generate:routeCreated hooks (1) +542ms
  nuxt:cluster-worker Worker 2 generated file: /posts/tidningen-radda-djuren-5-2016/index.html +543ms
  nuxt: Call generate:routeCreated hooks (1) +1ms
  nuxt:cluster-worker Worker 2 generated file: /posts/korvgifflar/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +97ms
  nuxt:cluster-worker Worker 2 generated file: /posts/kolapaj-med-karamellmandlar/index.html +97ms
  nuxt: Call generate:routeCreated hooks (1) +3s
  nuxt:cluster-worker Worker 4 generated file: /posts/rita-for-kaninerna/index.html +3s
  nuxt: Call generate:routeCreated hooks (1) +957ms
  nuxt:cluster-worker Worker 3 generated file: /posts/kanda-grisar/index.html +956ms
  nuxt: Call generate:routeCreated hooks (1) +532ms
  nuxt:cluster-worker Worker 3 generated file: /posts/facit-korsord-nr-5-2017/index.html +532ms
  nuxt: Call generate:routeCreated hooks (1) +2s
  nuxt:cluster-worker Worker 4 generated file: /posts/att-forlora-ett-familjedjur/index.html +2s
  nuxt: Call generate:routeCreated hooks (1) +1s
  nuxt:cluster-worker Worker 3 generated file: /posts/ett-surrande-korsord/index.html +1s
  nuxt: Call generate:routeCreated hooks (1) +1s
  nuxt:cluster-worker Worker 3 generated file: /posts/kim-och-mika-27/index.html +1s
  nuxt: Call generate:routeCreated hooks (1) +26s
  nuxt:cluster-worker Worker 1 generated file: /posts/facit-knep-och-knap-klubbnytt-1-18/index.html +26s
  nuxt: Call generate:routeCreated hooks (1) +4s
  nuxt:cluster-worker Worker 2 generated file: /posts/philadelphiabullar-i-langpanna/index.html +4s
  nuxt: Call generate:routeCreated hooks (1) +16ms
  nuxt:cluster-worker Worker 2 generated file: /posts/lasagne-med-sojafars/index.html +16ms
  nuxt: Call generate:routeCreated hooks (1) +886ms
  nuxt:cluster-worker Worker 3 generated file: /posts/kim-och-mika-25/index.html +886ms
  nuxt: Call generate:routeCreated hooks (1) +824ms
  nuxt:cluster-worker Worker 1 generated file: /posts/alpackan/index.html +823ms
  nuxt: Call generate:routeCreated hooks (1) +2ms
  nuxt:cluster-worker Worker 1 generated file: /posts/tidningen-radda-djuren-klubbnytt-5-2017/index.html +2ms
  nuxt: Call generate:routeCreated hooks (1) +3s
  nuxt:cluster-worker Worker 4 generated file: /posts/djur-som-lever-pa-natten/index.html +3s
  nuxt: Call generate:routeCreated hooks (1) +571ms
  nuxt:cluster-worker Worker 1 generated file: /posts/tidningen-radda-djuren-klubbnytt-2-2018/index.html +572ms
  nuxt: Call generate:routeCreated hooks (1) +1s
  nuxt:cluster-worker Worker 3 generated file: /posts/alva-skriver-insandare-for-djuren/index.html +1s
  nuxt: Call generate:routeCreated hooks (1) +597ms
  nuxt:cluster-worker Worker 1 generated file: /posts/fria-och-eira-inga-farskallar/index.html +597ms
  nuxt: Call generate:routeCreated hooks (1) +1s
  nuxt:cluster-worker Worker 4 generated file: /posts/facit-korsord-nr-2-2017/index.html +1s
  nuxt: Call generate:routeCreated hooks (1) +3s
  nuxt:cluster-worker Worker 2 generated file: /posts/wienerbrod/index.html +3s
  nuxt: Call generate:routeCreated hooks (1) +8ms
  nuxt:cluster-worker Worker 2 generated file: /posts/vegokoll-sommarmarangtarta/index.html +8ms
  nuxt:cluster-master Sending 9 routes to worker 2 +1m
  nuxt:cluster-worker Worker 2 received 9 routes = require(master +0ms
  nuxt:render Rendering url /posts/vegoteket-mango-och-avokadosmoothie-2 +1m
  nuxt:render Rendering url /posts/vegankocken-vegansk-nachogratang +0ms
  nuxt:render Rendering url /posts/vardagsmatad-var-egna-varmkorv +1ms
  nuxt:render Rendering url /posts/karolina-tegelaar-veganska-kanelbullar +0ms
  nuxt:render Rendering url /posts/one-arab-vegan-vegansk-muhallabia +0ms
  nuxt:render Rendering url /posts/djurens-hjalte-vilmer-skriver-for-hummern +1ms
  nuxt:render Rendering url /posts/tidningen-radda-djuren-2-2016 +0ms
  nuxt:render Rendering url /posts/kokoskaka +0ms
  nuxt:render Rendering url /posts/under-ytan +0ms
  nuxt: Call generate:routeCreated hooks (1) +2s
  nuxt:cluster-worker Worker 3 generated file: /posts/sommarkorsord/index.html +2s
  nuxt: Call generate:routeCreated hooks (1) +1ms
  nuxt:cluster-worker Worker 3 generated file: /posts/kim-och-mika-26/index.html +1ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 3 generated file: /posts/traffa-radda-djuren-klubben-pa-bokmassan-i-goteborg/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 3 generated file: /posts/lika-som-gris-och-hund/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +3s
  nuxt:cluster-worker Worker 1 generated file: /posts/tavling-2/index.html +3s
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /posts/katten-xanders-forsta-steg-i-frihet/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /posts/facit-korsord-nr-1-2018/index.html +1ms
  nuxt: Call generate:routeCreated hooks (1) +1ms
  nuxt:cluster-worker Worker 1 generated file: /posts/tidningen-radda-djuren-klubbnytt-1-2018/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +409ms
  nuxt:cluster-worker Worker 3 generated file: /posts/djur-pa-stranden/index.html +409ms
  nuxt: Call generate:routeCreated hooks (1) +3s
  nuxt:cluster-worker Worker 4 generated file: /posts/tidningen-radda-djuren-klubbnytt-2-2017/index.html +3s
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 4 generated file: /posts/korsord-nr-1-2017/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 4 generated file: /posts/andreas-tog-hand-om-chinchillor-i-nod/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 4 generated file: /posts/kim-och-mika-22/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 4 generated file: /posts/facit-nr-1-17/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 4 generated file: /posts/tygfjadrar/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +496ms
  nuxt:cluster-worker Worker 1 generated file: /posts/kim-och-mika-31/index.html +496ms
  nuxt: Call generate:routeCreated hooks (1) +556ms
  nuxt:cluster-worker Worker 3 generated file: /posts/facit-korsord-nr-4-2017/index.html +556ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 3 generated file: /posts/humlor-som-spelar-golf/index.html +0ms
  nuxt:cluster-master Sending 7 routes to worker 3 +2s
  nuxt:cluster-worker Worker 3 received 7 routes = require(master +1ms
  nuxt:render Rendering url /posts/indisk-rispudding-saffranskheer +1m
  nuxt:render Rendering url /posts/korsord-pa-savannen +3ms
  nuxt:render Rendering url /posts/vegokoll-glutenfria-bars +0ms
  nuxt:render Rendering url /posts/fagelmatare +0ms
  nuxt:render Rendering url /posts/tidningen-radda-djuren-1-2016 +1ms
  nuxt:render Rendering url /posts/att-vara-allergisk-mot-palsdjur +0ms
  nuxt:render Rendering url /posts/gaashud-chokladmousse-utan-agg-och-mjolk +0ms
  nuxt: Call generate:routeCreated hooks (1) +591ms
  nuxt:cluster-worker Worker 1 generated file: /posts/facit-korsord-nr-2-2018/index.html +591ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /posts/kim-och-mika-32/index.html +0ms
  nuxt:cluster-master Sending 5 routes to worker 1 +293ms
  nuxt:cluster-worker Worker 1 received 5 routes = require(master +1ms
  nuxt:render Rendering url /posts/de-raddar-vilda-faglar +1m
  nuxt:render Rendering url /posts/linssoppa-med-smak-av-apelsin-limeblad-koriander-och-chili +1ms
  nuxt:render Rendering url /posts/kim-mika-21 +0ms
  nuxt:render Rendering url /posts/gabriel-skrev-till-statsministern +1ms
  nuxt:render Rendering url /posts/kim-mika-20 +0ms
  nuxt: Call generate:routeCreated hooks (1) +2s
  nuxt:cluster-worker Worker 4 generated file: /posts/kaniner-ar-flockdjur/index.html +2s
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 4 generated file: /posts/tidningen-radda-djuren-1-2017/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 4 generated file: /posts/facit-finn-fem-fel/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 4 generated file: /posts/minkar/index.html +0ms
  nuxt:cluster-master Sending 4 routes to worker 4 +842ms
  nuxt:cluster-worker Worker 4 received 4 routes = require(master +1ms
  nuxt:render Rendering url /posts/knackflarn-med-olika-fyllningar +1m
  nuxt:render Rendering url /posts/khanom-krok-thailandska-kokospannkakor +1ms
  nuxt:render Rendering url /posts/parlplattor-till-jul +0ms
  nuxt:render Rendering url /posts/aktivera-en-hundkompis +0ms
  nuxt: Call generate:routeCreated hooks (1) +21s
  nuxt:cluster-worker Worker 2 generated file: /posts/tidningen-radda-djuren-2-2016/index.html +21s
  nuxt: Call generate:routeCreated hooks (1) +1s
  nuxt:cluster-worker Worker 2 generated file: /posts/vegankocken-vegansk-nachogratang/index.html +1s
  nuxt: Call generate:routeCreated hooks (1) +3ms
  nuxt:cluster-worker Worker 2 generated file: /posts/vardagsmatad-var-egna-varmkorv/index.html +3ms
  nuxt: Call generate:routeCreated hooks (1) +1s
  nuxt:cluster-worker Worker 2 generated file: /posts/djurens-hjalte-vilmer-skriver-for-hummern/index.html +1s
  nuxt: Call generate:routeCreated hooks (1) +573ms
  nuxt:cluster-worker Worker 2 generated file: /posts/karolina-tegelaar-veganska-kanelbullar/index.html +572ms
  nuxt: Call generate:routeCreated hooks (1) +966ms
  nuxt:cluster-worker Worker 2 generated file: /posts/vegoteket-mango-och-avokadosmoothie-2/index.html +966ms
  nuxt: Call generate:routeCreated hooks (1) +3ms
  nuxt:cluster-worker Worker 2 generated file: /posts/kokoskaka/index.html +3ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 2 generated file: /posts/under-ytan/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +22s
  nuxt:cluster-worker Worker 4 generated file: /posts/parlplattor-till-jul/index.html +22s
  nuxt: Call generate:routeCreated hooks (1) +1s
  nuxt:cluster-worker Worker 2 generated file: /posts/one-arab-vegan-vegansk-muhallabia/index.html +1s
  nuxt:cluster-master Sending 3 routes to worker 2 +23s
  nuxt:cluster-worker Worker 2 received 3 routes = require(master +8ms
  nuxt:render Rendering url /posts/gaashud-frostiga-saffranskakor +26s
  nuxt:render Rendering url /posts/tidningen-radda-djuren-5-2015 +1ms
  nuxt:render Rendering url /posts/mira-li-trycker-trojor +2ms
  nuxt: Call generate:routeCreated hooks (1) +2s
  nuxt:cluster-worker Worker 4 generated file: /posts/knackflarn-med-olika-fyllningar/index.html +2s
  nuxt: Call generate:routeCreated hooks (1) +604ms
  nuxt:cluster-worker Worker 4 generated file: /posts/khanom-krok-thailandska-kokospannkakor/index.html +604ms
  nuxt: Call generate:routeCreated hooks (1) +4ms
  nuxt:cluster-worker Worker 4 generated file: /posts/aktivera-en-hundkompis/index.html +4ms
  nuxt:cluster-master Sending 2 routes to worker 4 +2s
  nuxt:cluster-worker Worker 4 received 2 routes = require(master +1ms
  nuxt:render Rendering url /posts/en-helt-vanlig-sockerkaka +25s
  nuxt:render Rendering url /posts/karolina-tegelaar-pannkakstartan +1ms
  nuxt: Call generate:routeCreated hooks (1) +27s
  nuxt:cluster-worker Worker 1 generated file: /posts/kim-mika-21/index.html +27s
  nuxt: Call generate:routeCreated hooks (1) +546ms
  nuxt:cluster-worker Worker 1 generated file: /posts/gabriel-skrev-till-statsministern/index.html +546ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /posts/kim-mika-20/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /posts/de-raddar-vilda-faglar/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 1 generated file: /posts/linssoppa-med-smak-av-apelsin-limeblad-koriander-och-chili/index.html +0ms
  nuxt:cluster-master Sending 2 routes to worker 1 +1s
  nuxt:cluster-worker Worker 1 received 2 routes = require(master +1ms
  nuxt:render Rendering url /posts/therese +27s
  nuxt:render Rendering url /posts/kop-inte-adoptera +1ms
  nuxt: Call generate:routeCreated hooks (1) +28s
  nuxt:cluster-worker Worker 3 generated file: /posts/tidningen-radda-djuren-1-2016/index.html +28s
  nuxt: Call generate:routeCreated hooks (1) +67ms
  nuxt:cluster-worker Worker 3 generated file: /posts/att-vara-allergisk-mot-palsdjur/index.html +67ms
  nuxt: Call generate:routeCreated hooks (1) +1ms
  nuxt:cluster-worker Worker 3 generated file: /posts/korsord-pa-savannen/index.html +1ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 3 generated file: /posts/fagelmatare/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 3 generated file: /posts/gaashud-chokladmousse-utan-agg-och-mjolk/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 3 generated file: /posts/vegokoll-glutenfria-bars/index.html +0ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 3 generated file: /posts/indisk-rispudding-saffranskheer/index.html +0ms
  nuxt:cluster-master Sending 1 routes to worker 3 +867ms
  nuxt:cluster-worker Worker 3 received 1 routes = require(master +0ms
  nuxt:render Rendering url /posts/gaashud-den-godaste-krusbarspajen +28s
  nuxt: Call generate:routeCreated hooks (1) +8s
  nuxt:cluster-worker Worker 2 generated file: /posts/gaashud-frostiga-saffranskakor/index.html +8s
  nuxt: Call generate:routeCreated hooks (1) +3ms
  nuxt:cluster-worker Worker 2 generated file: /posts/mira-li-trycker-trojor/index.html +3ms
  nuxt: Call generate:routeCreated hooks (1) +0ms
  nuxt:cluster-worker Worker 2 generated file: /posts/tidningen-radda-djuren-5-2015/index.html +0ms
  nuxt:cluster-master Sending 1 routes to worker 2 +3s
  nuxt:cluster-worker Worker 2 received 1 routes = require(master +1ms
  nuxt:render Rendering url /posts/skogsdjur-i-papier-mache-lera +8s
  nuxt: Call generate:routeCreated hooks (1) +7s
  nuxt:cluster-worker Worker 4 generated file: /posts/en-helt-vanlig-sockerkaka/index.html +7s
  nuxt: Call generate:routeCreated hooks (1) +662ms
  nuxt:cluster-worker Worker 4 generated file: /posts/karolina-tegelaar-pannkakstartan/index.html +662ms
  nuxt:cluster-master Sending 1 routes to worker 4 +2s
  nuxt:cluster-worker Worker 4 received 1 routes = require(master +0ms
  nuxt:render Rendering url /posts/susanne-jonsson-lyxig-hasselnotskram +8s
  nuxt: Call generate:routeCreated hooks (1) +7s
  nuxt:cluster-worker Worker 1 generated file: /posts/kop-inte-adoptera/index.html +7s
  nuxt: Call generate:routeCreated hooks (1) +2ms
  nuxt:cluster-worker Worker 1 generated file: /posts/therese/index.html +1ms
  nuxt:cluster-master Sending 1 routes to worker 1 +800ms
  nuxt:cluster-worker Worker 1 received 1 routes = require(master +1ms
  nuxt:render Rendering url /posts/silke-bloggar-for-djuren +7s
  nuxt: Call generate:routeCreated hooks (1) +7s
  nuxt:cluster-worker Worker 3 generated file: /posts/gaashud-den-godaste-krusbarspajen/index.html +7s
  nuxt:cluster-master No more routes, exiting worker 3 +169ms
  nuxt:cluster-master Worker 3 exited +19ms
  nuxt: Call generate:routeCreated hooks (1) +5s
  nuxt:cluster-worker Worker 2 generated file: /posts/skogsdjur-i-papier-mache-lera/index.html +5s
  nuxt:cluster-master No more routes, exiting worker 2 +2s
  nuxt:cluster-master Worker 2 exited +17ms
  nuxt: Call generate:routeCreated hooks (1) +4s
  nuxt:cluster-worker Worker 4 generated file: /posts/susanne-jonsson-lyxig-hasselnotskram/index.html +4s
  nuxt:cluster-master No more routes, exiting worker 4 +1s
  nuxt:cluster-master Worker 4 exited +29ms
  nuxt: Call generate:routeCreated hooks (1) +4s
  nuxt:cluster-worker Worker 1 generated file: /posts/silke-bloggar-for-djuren/index.html +4s
  nuxt:cluster-master No more routes, exiting worker 1 +957ms

And at this point nothing more happens and I'm not returned to the command line.

Any ideas?

0
pimlie
593
pimlie
commented 6 months ago

(I have put your output between ```'s for better readability)

If you look at the output it seems Worker 1 never exits. When the master sees there are no routes left, it exists the worker by calling disconnect on that worker. When the worker has exited, the master will be notified by the disconnect event that the worker has cleanly exited after which it should've printed Worker 1 Exited.

Which Node version are you using? If you check the pid of the worker that doesnt exit (eg with ps aux), is the process for that worker still running? If so, does it show any activity?

I have checked the tests against nuxt v1.4.0 but the test do finish correctly. So either the tests are insufficient or the problem is specific for your setup. Lets try to find out :)

0
pimlie
593
pimlie
commented 6 months ago

I also did a full (re)generation of my own project and that finished as expected (using Node v8.8.1):

  nuxt:cluster-master No more routes, exiting worker 2 +6ms
  nuxt:cluster-master Worker 2 exited +19ms
  nuxt: Call generate:routeCreated hooks (1) +683ms
  nuxt:cluster-master No more routes, exiting worker 3 +448ms
  nuxt:cluster-master Worker 3 exited +20ms
  nuxt: Call generate:routeCreated hooks (1) +709ms
  nuxt:cluster-master No more routes, exiting worker 4 +28ms
  nuxt:cluster-master Worker 4 exited +14ms
  nuxt: Call generate:routeCreated hooks (1) +653ms
  nuxt:cluster-master No more routes, exiting worker 1 +119ms
  nuxt:cluster-master Worker 1 exited +18ms
  nuxt:cluster-master Worker 1 generated 3507 routes in 1976.1s with 43 error(s) +1ms
  nuxt:cluster-master Worker 2 generated 3484 routes in 1975.5s with 26 error(s) +0ms
  nuxt:cluster-master Worker 3 generated 3339 routes in 1976s with 42 error(s) +0ms
  nuxt:cluster-master Worker 4 generated 3518 routes in 1976s with 25 error(s) +0ms

 WARN  SPA fallback was configured, but the configured path (/var/www/nuxt/dist/200.html) already exists.

{ generate_errors: 
   [ { type: 'unhandled',
       workerId: 4 },

(The generate_errors is from your done method, as I did not have one)

0
jhpmatos
0
jhpmatos
commented 6 months ago

I'm having the same issue, it gets stuck after generating the routes (node v10.4.1):

` nuxt:cluster-worker Worker 4 generated file: \destinations\dummy-destination-1528987724104-140\index.html +44ms nuxt:cluster-master No more routes, exiting worker 4 +18ms nuxt: Call generate:routeCreated hooks (1) +48ms nuxt:cluster-worker Worker 3 generated file: \destinations\dummy-destination-1528987724104-18\index.html +47ms nuxt:cluster-master No more routes, exiting worker 3 +7ms nuxt: Call generate:routeCreated hooks (1) +38ms nuxt:cluster-worker Worker 2 generated file: \destinations\dummy-destination-1528987724104-7\index.html +35ms nuxt:cluster-master No more routes, exiting worker 2 +13ms nuxt: Call generate:routeCreated hooks (1) +571ms nuxt:cluster-worker Worker 1 generated file: \destinations\dummy-destination-1528987724104-51\index.html +572ms nuxt: Call generate:routeCreated hooks (1) +4ms nuxt:cluster-worker Worker 1 generated file: \destinations\dummy-destination-1528987724104-136\index.html +3ms nuxt:cluster-master No more routes, exiting worker 1 +434ms

0
pimlie
593
pimlie
commented 6 months ago

Thanks, I can reproduce the problem with node v10.4.1

0
pimlie
593
pimlie
commented 6 months ago

@jhpmatos Could you confirm that it works when you set

generate: {
  fallback: false
}

in nuxt.config.js?

0
jhpmatos
0
jhpmatos
commented 6 months ago

@pimlie it doesn't work. All the routes are generated, but gets stuck at the end:
nuxt:cluster-master No more routes, exiting worker 1 +8s

0
pimlie
593
pimlie
commented 6 months ago

@jhpmatos To fully rule out there is not another problem with your config, could you please edit the file node_modules/nuxt-generate-cluster/lib/generate/master.js and comment out this line and try to run again: https://github.com/nuxt-community/nuxt-generate-cluster/blob/master/lib/generate/master.js#L80

0
jhpmatos
0
jhpmatos
commented 6 months ago

@pimlie, doesn't work. Does it work for you with node 10?

0
pimlie
593
pimlie
commented 6 months ago

@jhpmatos Apologies for the delayed response. But yes, it worked for me with v10.4.1

Unfortunately I dont see any other points at the moment in the code where it could hang. May I therefore ask you to just add some log statement yourself in the done methods to try to see at which point the script hangs?
Please check if the script reaches the done method in cluster/master.js and if it proceeds to super.done(). Next check the done method in generate/master.js and check if it reaches that method and if so if it proceeds until the end.

My guess for the moment would be that this is something within your project we didntn account for, but it would also be interesting if you could clone this repository, run yarn install and then yarn test to see if the tests complete succesfully on your system

0
pimlie
593
pimlie
commented 6 months ago

Probably the best would be if one of you could create a reproduction repository with which this issue occurs. Not sure what I am missing here but today I cant seem to reproduce the problem anymore. Not with node v8 or with v10.

I did do a yarn upgrade, so it could have been an upstream issue? Let me know

0
pimlie
593
pimlie
commented 4 months ago

Please re-open when you have more information

0
Informations
QuestionUnresolved
#c3 - Created 6 months ago