Skip to content
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

Still no up and running instance with new setup #4884

Closed
JLKM opened this issue May 8, 2019 · 17 comments
Closed

Still no up and running instance with new setup #4884

JLKM opened this issue May 8, 2019 · 17 comments
Labels
⚠️bug? This might be a bug

Comments

@JLKM
Copy link

JLKM commented May 8, 2019

My attempts to install and test a server instance of Misskey on my Ubuntu 18.04 LTS have all gone bad so far.

First attempt with Misskey 10.98.3, Node 10 LTS and MongoDB

https://github.com/syuilo/misskey/pull/3906
https://github.com/syuilo/misskey/issues/3921

Second attempt with Misskey 11.11.3, Node 11.13 and PostgreSQL and an swapfile increase from 2 GB to 4 GB

Have also done this:

  • npm install -g node-gyp
  • node-gyp configure
  • node-gyp build

Still no luck. Do I need to use crypto API and/or yarn?

Any input would be much appreciated.

My error-log for the brave
misskey@jlkm2:/etc/misskey$ NODE_ENV=production npm run build

> [email protected] build /etc/misskey
> webpack && gulp build

  yes we can [] 100% (100/100) 80.4s

Build completed in 80.44s

Hash: 5f3b60de2c15150b0e62
Version: webpack 4.30.0
Time: 80447ms
Built at: 2019-05-06 22:35:05
             Asset       Size  Chunks                    Chunk Names
      0.11.11.1.js    423 KiB       0  [emitted]  [big]
      1.11.11.1.js   29.2 KiB       1  [emitted]
     10.11.11.1.js   1.16 KiB      10  [emitted]
     11.11.11.1.js   1.16 KiB      11  [emitted]
     12.11.11.1.js   91.6 KiB      12  [emitted]
     13.11.11.1.js   28.8 KiB      13  [emitted]
     14.11.11.1.js   47.1 KiB      14  [emitted]
     15.11.11.1.js   4.49 KiB      15  [emitted]
     16.11.11.1.js   10.2 KiB      16  [emitted]
     17.11.11.1.js   5.02 KiB  17, 23  [emitted]
     18.11.11.1.js   42.9 KiB      18  [emitted]
     19.11.11.1.js    2.3 KiB      19  [emitted]
      2.11.11.1.js   24.3 KiB       2  [emitted]
     20.11.11.1.js   1.86 KiB      20  [emitted]
     21.11.11.1.js   1.69 KiB      21  [emitted]
     22.11.11.1.js   4.15 KiB      22  [emitted]
     23.11.11.1.js   4.46 KiB      23  [emitted]
     24.11.11.1.js   3.49 KiB      24  [emitted]
     25.11.11.1.js    194 KiB      25  [emitted]
     26.11.11.1.js    1.1 KiB      26  [emitted]
     27.11.11.1.js  858 bytes      27  [emitted]
     28.11.11.1.js  873 bytes      28  [emitted]
      3.11.11.1.js   4.99 KiB   3, 23  [emitted]
     36.11.11.1.js   2.03 MiB      36  [emitted]  [big]
     37.11.11.1.js   21.5 KiB      37  [emitted]
     38.11.11.1.js   16.1 KiB      38  [emitted]
     39.11.11.1.js   8.07 KiB  39, 26  [emitted]
      4.11.11.1.js  683 bytes       4  [emitted]
     40.11.11.1.js   4.96 KiB      40  [emitted]
     41.11.11.1.js   5.06 KiB      41  [emitted]
     42.11.11.1.js   15.9 KiB      42  [emitted]
     43.11.11.1.js   8.15 KiB      43  [emitted]
     44.11.11.1.js   1.79 KiB  44, 48  [emitted]
     45.11.11.1.js   2.28 KiB      45  [emitted]
     46.11.11.1.js   3.93 KiB      46  [emitted]
     47.11.11.1.js   3.08 KiB      47  [emitted]
     48.11.11.1.js   1.67 KiB      48  [emitted]
     49.11.11.1.js   1.65 KiB      49  [emitted]
      5.11.11.1.js  683 bytes       5  [emitted]
     50.11.11.1.js   1.21 KiB      50  [emitted]
     51.11.11.1.js   1.37 KiB      51  [emitted]
     52.11.11.1.js   1.77 KiB      52  [emitted]
     53.11.11.1.js  830 bytes      53  [emitted]
     54.11.11.1.js   1.37 KiB      54  [emitted]
     55.11.11.1.js  892 bytes      55  [emitted]
     56.11.11.1.js   2.27 KiB      56  [emitted]
     57.11.11.1.js  854 bytes      57  [emitted]
     58.11.11.1.js   1.35 KiB  58, 59  [emitted]
     59.11.11.1.js  910 bytes      59  [emitted]
      6.11.11.1.js     69 KiB       6  [emitted]
      7.11.11.1.js   48.4 KiB       7  [emitted]
      8.11.11.1.js     24 KiB       8  [emitted]
      9.11.11.1.js   9.87 KiB       9  [emitted]
  admin.11.11.1.js   1.61 MiB   29, 0  [emitted]  [big]  admin
   auth.11.11.1.js   1.05 MiB      30  [emitted]  [big]  auth
desktop.11.11.1.js   1.36 MiB      31  [emitted]  [big]  desktop
    dev.11.11.1.js   1.46 MiB      32  [emitted]  [big]  dev
 mobile.11.11.1.js   1.27 MiB      33  [emitted]  [big]  mobile
     sw.11.11.1.js   2.97 KiB      34  [emitted]         sw
   test.11.11.1.js   1.05 MiB      35  [emitted]  [big]  test
Entrypoint desktop [big] = desktop.11.11.1.js
Entrypoint mobile [big] = mobile.11.11.1.js
Entrypoint dev [big] = dev.11.11.1.js
Entrypoint auth [big] = auth.11.11.1.js
Entrypoint admin [big] = admin.11.11.1.js
Entrypoint test [big] = test.11.11.1.js
Entrypoint sw = sw.11.11.1.js
   [8] ./src/client/app/config.ts 600 bytes {29} {30} {31} {32} {33} {35} [built]
 [267] ./src/client/app/init.ts + 36 modules 614 KiB {29} {30} {31} {32} {33} {35} [built]
       | ./src/client/app/init.ts 10.7 KiB [built]
       | ./src/client/app/common/hotkey.ts 3.06 KiB [built]
       | ./src/client/app/common/size.ts 537 bytes [built]
       | ./src/client/app/app.vue 449 bytes [built]
       | ./src/client/app/mios.ts 15 KiB [built]
       | ./src/client/app/common/keycode.ts 756 bytes [built]
       | ./src/client/app/app.vue?vue&type=template&id=1e8ddc01& 269 bytes [built]
       | ./src/client/app/app.vue?vue&type=script&lang=ts& 486 bytes [built]
       | ./src/client/app/store.ts 12.3 KiB [built]
       | ./src/client/app/common/scripts/stream.ts 8.4 KiB [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/app.vue?vue&type=template&id=1e8ddc01& 316 bytes [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/app.vue?vue&type=script&lang=ts& 556 bytes [built]
       |     + 25 hidden modules
 [268] ./src/client/app/common/views/pages/not-found.vue + 4 modules 2.25 KiB {29} {30} {31} {32} {33} {35} [built]
       | ./src/client/app/common/views/pages/not-found.vue 591 bytes [built]
       | ./src/client/app/common/views/pages/not-found.vue?vue&type=template&id=7a17a502&scoped=true& 314 bytes [built]
       | ./src/client/app/common/views/pages/not-found.vue?vue&type=script&lang=ts& 552 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/not-found.vue?vue&type=template&id=7a17a502&scoped=true& 460 bytes [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/not-found.vue?vue&type=script&lang=ts& 370 bytes [built]
 [460] ./src/client/app/desktop/views/components/ui-notification.vue + 4 modules 2.42 KiB {31} [built]
       |    5 modules
 [478] ./src/client/app/common/scripts/compose-notification.ts + 1 modules 2.57 KiB {31} {34} [built]
       | ./src/client/app/common/scripts/compose-notification.ts 2.08 KiB [built]
       | ./src/misc/get-reaction-emoji.ts 491 bytes [built]
 [492] ./src/client/app/common/views/deck/deck.vue + 64 modules 63.7 KiB {31} {33} [built]
       | ./src/client/app/common/views/deck/deck.vue 747 bytes [built]
       | ./src/client/app/common/views/deck/deck.vue?vue&type=template&id=be530f04&scoped=true& 309 bytes [built]
       | ./src/client/app/common/views/deck/deck.vue?vue&type=script&lang=ts& 542 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/deck/deck.vue?vue&type=template&id=be530f04&scoped=true& 1.18 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/deck/deck.vue?vue&type=script&lang=ts& 10.6 KiB [built]
       | ./src/client/app/common/views/deck/deck.column-core.vue 497 bytes [built]
       | ./src/client/app/common/views/deck/deck.column-core.vue?vue&type=template&id=64d65e18& 309 bytes [built]
       | ./src/client/app/common/views/deck/deck.column-core.vue?vue&type=script&lang=ts& 566 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/deck/deck.column-core.vue?vue&type=template&id=64d65e18& 1.44 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/deck/deck.column-core.vue?vue&type=script&lang=ts& 786 bytes [built]
       | ./src/client/app/common/views/deck/deck.tl-column.vue 491 bytes [built]
       | ./src/client/app/common/views/deck/deck.notifications-column.vue 524 bytes [built]
       | ./src/client/app/common/views/deck/deck.widgets-column.vue 631 bytes [built]
       | ./src/client/app/common/views/deck/deck.mentions-column.vue 509 bytes [built]
       | ./src/client/app/common/views/deck/deck.direct-column.vue 503 bytes [built]
       |     + 50 hidden modules
 [493] ./src/client/app/common/views/pages/share.vue + 4 modules 3.15 KiB {31} {33} [built]
       | ./src/client/app/common/views/pages/share.vue 575 bytes [built]
       | ./src/client/app/common/views/pages/share.vue?vue&type=template&id=45f4f020&scoped=true& 310 bytes [built]
       | ./src/client/app/common/views/pages/share.vue?vue&type=script&lang=ts& 544 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/share.vue?vue&type=template&id=45f4f020&scoped=true& 706 bytes [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/share.vue?vue&type=script&lang=ts& 1.05 KiB [built]
 [494] ./src/client/app/common/views/pages/follow.vue + 4 modules 5.69 KiB {31} {33} [built]
       | ./src/client/app/common/views/pages/follow.vue 579 bytes [built]
       | ./src/client/app/common/views/pages/follow.vue?vue&type=template&id=39377b1c&scoped=true& 311 bytes [built]
       | ./src/client/app/common/views/pages/follow.vue?vue&type=script&lang=ts& 546 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/follow.vue?vue&type=template&id=39377b1c&scoped=true& 1.94 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/follow.vue?vue&type=script&lang=ts& 2.32 KiB [built]
[1045] ./src/client/app/sw.js 692 bytes {34} [built]
[1047] ./src/client/app/mobile/script.ts + 105 modules 92.8 KiB {33} [built]
       | ./src/client/app/mobile/script.ts 8.47 KiB [built]
       | ./src/client/app/mobile/views/pages/index.vue 464 bytes [built]
       | ./src/client/app/mobile/views/pages/signup.vue 579 bytes [built]
       | ./src/client/app/mobile/views/pages/selectdrive.vue 599 bytes [built]
       | ./src/client/app/mobile/views/pages/drive.vue 464 bytes [built]
       | ./src/client/app/mobile/views/pages/widgets.vue 583 bytes [built]
       | ./src/client/app/mobile/views/pages/messaging.vue 476 bytes [built]
       | ./src/client/app/mobile/views/pages/messaging-room.vue 491 bytes [built]
       | ./src/client/app/mobile/views/pages/received-follow-requests.vue 651 bytes [built]
       | ./src/client/app/mobile/views/pages/note.vue 571 bytes [built]
       | ./src/client/app/mobile/views/pages/search.vue 467 bytes [built]
       | ./src/client/app/mobile/views/pages/favorites.vue 591 bytes [built]
       | ./src/client/app/mobile/views/pages/user-lists.vue 479 bytes [built]
       | ./src/client/app/mobile/views/pages/user-list.vue 476 bytes [built]
       | ./src/client/app/mobile/views/pages/games/reversi.vue 473 bytes [built]
       |     + 91 hidden modules
[1049] ./src/client/app/admin/script.ts + 90 modules 161 KiB {29} [built]
       | ./src/client/app/admin/script.ts 537 bytes [built]
       | ./src/client/app/admin/views/index.vue 572 bytes [built]
       | ./src/client/app/admin/views/index.vue?vue&type=template&id=a62e74da&scoped=true& 301 bytes [built]
       | ./src/client/app/admin/views/index.vue?vue&type=script&lang=ts& 526 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/admin/views/index.vue?vue&type=template&id=a62e74da&scoped=true& 6.21 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/admin/views/index.vue?vue&type=script&lang=ts& 1.59 KiB [built]
       | ./src/client/app/admin/views/dashboard.vue 588 bytes [built]
       | ./src/client/app/admin/views/instance.vue 470 bytes [built]
       | ./src/client/app/admin/views/queue.vue 572 bytes [built]
       | ./src/client/app/admin/views/logs.vue 568 bytes [built]
       | ./src/client/app/admin/views/moderators.vue 476 bytes [built]
       | ./src/client/app/admin/views/emoji.vue 572 bytes [built]
       | ./src/client/app/admin/views/announcements.vue 485 bytes [built]
       | ./src/client/app/admin/views/hashtags.vue 470 bytes [built]
       | ./src/client/app/admin/views/users.vue 572 bytes [built]
       |     + 76 hidden modules
[1050] ./src/client/app/desktop/script.ts + 66 modules 76 KiB {31} [built]
       | ./src/client/app/desktop/script.ts 11.2 KiB [built]
       | ./src/client/app/common/scripts/fuck-ad-block.ts 368 bytes [built]
       | ./src/client/app/desktop/views/home/home.vue 571 bytes [built]
       | ./src/client/app/desktop/views/pages/selectdrive.vue 599 bytes [built]
       | ./src/client/app/desktop/views/pages/drive.vue 575 bytes [built]
       | ./src/client/app/desktop/views/pages/messaging-room.vue 611 bytes [built]
       | ./src/client/app/desktop/views/pages/games/reversi.vue 473 bytes [built]
       | ./src/client/app/desktop/views/pages/settings.vue 587 bytes [built]
       | ./src/client/app/desktop/views/home/timeline.vue 587 bytes [built]
       | ./src/client/app/desktop/views/home/home.vue?vue&type=template&id=57a8da06&scoped=true& 309 bytes [built]
       | ./src/client/app/desktop/views/home/home.vue?vue&type=script&lang=ts& 542 bytes [built]
       | ./src/client/app/desktop/views/pages/selectdrive.vue?vue&type=template&id=a5a9083e&scoped=true& 316 bytes [built]
       | ./src/client/app/desktop/views/pages/selectdrive.vue?vue&type=script&lang=ts& 556 bytes [built]
       | ./src/client/app/desktop/views/pages/drive.vue?vue&type=template&id=0e2c6634&scoped=true& 310 bytes [built]
       | ./src/client/app/desktop/views/pages/drive.vue?vue&type=script&lang=ts& 544 bytes [built]
       |     + 52 hidden modules
[1052] ./src/client/app/dev/script.ts + 24 modules 13 KiB {32} [built]
       | ./src/client/app/dev/script.ts 1.01 KiB [built]
       | ./src/client/app/dev/views/index.vue 461 bytes [built]
       | ./src/client/app/dev/views/apps.vue 458 bytes [built]
       | ./src/client/app/dev/views/new-app.vue 467 bytes [built]
       | ./src/client/app/dev/views/app.vue 455 bytes [built]
       | ./src/client/app/dev/views/ui.vue 471 bytes [built]
       | ./src/client/app/dev/views/index.vue?vue&type=template&id=df4382ae& 289 bytes [built]
       | ./src/client/app/dev/views/index.vue?vue&type=script&lang=ts& 526 bytes [built]
       | ./src/client/app/dev/views/apps.vue?vue&type=template&id=1649a014& 288 bytes [built]
       | ./src/client/app/dev/views/apps.vue?vue&type=script&lang=ts& 524 bytes [built]
       | ./src/client/app/dev/views/new-app.vue?vue&type=template&id=3a79ebd2& 291 bytes [built]
       | ./src/client/app/dev/views/new-app.vue?vue&type=script&lang=ts& 530 bytes [built]
       | ./src/client/app/dev/views/app.vue?vue&type=template&id=7d9742f1& 287 bytes [built]
       | ./src/client/app/dev/views/app.vue?vue&type=script&lang=ts& 522 bytes [built]
       | ./src/client/app/dev/views/ui.vue?vue&type=template&id=f66716ca&scoped=true& 298 bytes [built]
       |     + 10 hidden modules
[1053] ./src/client/app/auth/script.ts + 10 modules 7.72 KiB {30} [built]
       | ./src/client/app/auth/script.ts 537 bytes [built]
       | ./src/client/app/auth/views/index.vue 572 bytes [built]
       | ./src/client/app/auth/views/index.vue?vue&type=template&id=45a13a07&scoped=true& 301 bytes [built]
       | ./src/client/app/auth/views/index.vue?vue&type=script&lang=ts& 526 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/auth/views/index.vue?vue&type=template&id=45a13a07&scoped=true& 1.49 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/auth/views/index.vue?vue&type=script&lang=ts& 1.39 KiB [built]
       | ./src/client/app/auth/views/form.vue 568 bytes [built]
       | ./src/client/app/auth/views/form.vue?vue&type=template&id=140819c2&scoped=true& 300 bytes [built]
       | ./src/client/app/auth/views/form.vue?vue&type=script&lang=ts& 524 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/auth/views/form.vue?vue&type=template&id=140819c2&scoped=true& 935 bytes [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/auth/views/form.vue?vue&type=script&lang=ts& 651 bytes [built]
[1056] ./src/client/app/test/script.ts + 5 modules 4.51 KiB {35} [built]
       | ./src/client/app/test/script.ts 521 bytes [built]
       | ./src/client/app/test/views/index.vue 572 bytes [built]
       | ./src/client/app/test/views/index.vue?vue&type=template&id=9372f4bc&scoped=true& 301 bytes [built]
       | ./src/client/app/test/views/index.vue?vue&type=script&lang=ts& 526 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/test/views/index.vue?vue&type=template&id=9372f4bc&scoped=true& 1.87 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/test/views/index.vue?vue&type=script&lang=ts& 746 bytes [built]
    + 1426 hidden modules

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  0.11.11.1.js (423 KiB)
  admin.11.11.1.js (1.61 MiB)
  auth.11.11.1.js (1.05 MiB)
  desktop.11.11.1.js (1.36 MiB)
  dev.11.11.1.js (1.46 MiB)
  mobile.11.11.1.js (1.27 MiB)
  test.11.11.1.js (1.05 MiB)
  36.11.11.1.js (2.03 MiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  desktop (1.36 MiB)
      desktop.11.11.1.js
  mobile (1.27 MiB)
      mobile.11.11.1.js
  dev (1.46 MiB)
      dev.11.11.1.js
  auth (1.05 MiB)
      auth.11.11.1.js
  admin (1.61 MiB)
      admin.11.11.1.js
  test (1.05 MiB)
      test.11.11.1.js

[22:35:05] Requiring external module ts-node/register
[22:35:07] Using gulpfile /etc/misskey/gulpfile.ts
[22:35:07] Starting 'build'...
[22:35:07] Starting 'build:ts'...
[22:35:07] Starting 'build:copy'...
[22:35:07] Starting 'build:client'...
[22:35:07] Starting 'doc'...
[22:35:08] Starting 'build:copy:views'...
[22:35:08] Starting '<anonymous>'...
[22:35:08] Starting 'build:client:script'...
[22:35:08] Starting 'build:client:styles'...
[22:35:08] Starting 'copy:client'...
[22:35:08] Finished 'build:client:styles' after 378 ms
[22:35:08] Finished 'doc' after 441 ms
[22:35:08] Finished 'build:client:script' after 385 ms
[22:35:08] Finished 'build:copy:views' after 455 ms
[22:35:08] 'copy:client' errored after 468 ms
[22:35:08] Error in plugin "gulp-imagemin"
Message:
    spawn /etc/misskey/node_modules/optipng-bin/vendor/optipng ENOENT
Details:
    errno: ENOENT
    code: ENOENT
    syscall: spawn /etc/misskey/node_modules/optipng-bin/vendor/optipng
    path: /etc/misskey/node_modules/optipng-bin/vendor/optipng
    spawnargs: -strip,all,-clobber,-fix,-o,3,-out,/tmp/37811dd6-cbc6-48e9-a944-a1bc7f0ec4ae,/tmp/7431ec44-2541-430c-ad28-a8ede5d7d3c7
    killed: false
    stdout:
    stderr:
    failed: true
    signal: null
    cmd: /etc/misskey/node_modules/optipng-bin/vendor/optipng -strip all -clobber -fix -o 3 -out /tmp/37811dd6-cbc6-48e9-a944-a1bc7f0ec4ae /tmp/7431ec44-2541-430c-ad28-a8ede5d7d3c7
    timedOut: false
    fileName: /etc/misskey/assets/ai-orig.png
    domainEmitter: [object Object]
    domainThrown: false

[22:35:08] 'build:client' errored after 526 ms
[22:35:08] 'build' errored after 527 ms
[22:35:08] The following tasks did not complete: build:ts, build:copy, <anonymous>
[22:35:08] Did you forget to signal async completion?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `webpack && gulp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/misskey/.npm/_logs/2019-05-06T20_35_08_485Z-debug.log
misskey@jlkm2:/etc/misskey$
@JLKM JLKM added the ⚠️bug? This might be a bug label May 8, 2019
@rinsuki
Copy link
Contributor

rinsuki commented May 8, 2019

It seems that failed to install optipng-bin npm package.
try cd /etc/misskey && rm -rf node_modules/optipng-bin && npm install

@JLKM
Copy link
Author

JLKM commented May 8, 2019

Awesome fast response -thx a lot.

But still no luck (or did I miss or spoil something?):

jan@jlkm2:/etc/misskey$ rm -rf node_modules/optipng-bin
jan@jlkm2:/etc/misskey$ npm install
npm ERR! path /home/jan/.npm/_cacache/index-v5/79/1d
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir
npm ERR! Error: EACCES: permission denied, mkdir '/home/jan/.npm/_cacache/index-v5/79/1d'
npm ERR!  { [Error: EACCES: permission denied, mkdir '/home/jan/.npm/_cacache/index-v5/79/1d']
npm ERR!   cause:
npm ERR!    { Error: EACCES: permission denied, mkdir '/home/jan/.npm/_cacache/index-v5/79/1d'
npm ERR!      errno: -13,
npm ERR!      code: 'EACCES',
npm ERR!      syscall: 'mkdir',
npm ERR!      path: '/home/jan/.npm/_cacache/index-v5/79/1d' },
npm ERR!   isOperational: true,
npm ERR!   stack:
npm ERR!    "Error: EACCES: permission denied, mkdir '/home/jan/.npm/_cacache/index-v5/79/1d'",
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: '/home/jan/.npm/_cacache/index-v5/79/1d',
npm ERR!   parent: 'misskey' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jan/.npm/_logs/2019-05-08T20_13_44_202Z-debug.log
jan@jlkm2:/etc/misskey$ sudo npm install
[sudo] adgangskode for jan:

> [email protected] install /etc/misskey/node_modules/diskusage
> node-gyp rebuild

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/etc/misskey/node_modules/diskusage/build'
gyp ERR! System Linux 4.15.0-48-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /etc/misskey/node_modules/diskusage
gyp ERR! node -v v11.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN [email protected] requires a peer of [email protected] - 3 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jan/.npm/_logs/2019-05-08T20_14_12_220Z-debug.log
jan@jlkm2:/etc/misskey$
``

@rinsuki
Copy link
Contributor

rinsuki commented May 8, 2019

I think you are using wrong user to execute command.

first comment:

misskey@jlkm2:/etc/misskey$ NODE_ENV=production npm run build

this is seems to misskey user.

second comment:


jan@jlkm2:/etc/misskey$ npm install

this is seems to jan user.


my suggest: remove node_modules, and re-install npm packages (to fix some permission error).

cd /etc/misskey
sudo rm -rf node_modules
sudo -u misskey npm install

@fz0000
Copy link
Contributor

fz0000 commented May 9, 2019

I also ran into a lot of problems in the step npm install on my Ubuntu server 18 and CentOS 7.
But it seems OK on Debian 9.

@acid-chicken
Copy link
Member

acid-chicken commented May 9, 2019

Please run npm rebuild optipng-bin then retry it.

On my machine, it often occurs the similar problem.

@JLKM
Copy link
Author

JLKM commented May 9, 2019

node-gyp configure seems to stop the show

Thanx a lot, folks, for your (fast) advice on firing up a misskey instance on my Ubuntu 18.04 LTS. Update from the battlefield (I hope and believe, its close now!)

1. No more EACCES-errors. Access to node_modulesseems to have been taken care of both in /etc/misskey and in global node-scope.
2. No errors from npm install -g node-gyp.
3. No errors from npm rebuild optipng-bin:
> misskey@jlkm2:/etc/misskey$ npm rebuild optipng-bin
> [email protected] postinstall /etc/misskey/node_modules/optipng-bin
> node lib/install.js

  ✔ optipng pre-build test passed successfully
[email protected] /etc/misskey/node_modules/optipng-bin
4. But then node-gyp configure fails:
misskey@jlkm2:/etc/misskey$ node-gyp configure
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/etc/misskey/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/misskey/.node-gyp/11.13.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/misskey/.node-gyp/11.13.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/misskey/.node-gyp/11.13.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/etc/misskey',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: /etc/misskey) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack     at ChildProcess.emit (events.js:193:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
gyp ERR! System Linux 4.15.0-48-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/bin/node-gyp" "configure"
gyp ERR! cwd /etc/misskey
gyp ERR! node -v v11.13.0
gyp ERR! node-gyp -v v4.0.0
gyp ERR! not ok
misskey@jlkm2:/etc/misskey$
5. And so does
misskey@jlkm2:/etc/misskey$ NODE_ENV=production npm run build

> [email protected] build /etc/misskey
> webpack && gulp build

  yes we can [] 100% (100/100) 79.6s

Build completed in 79.559s

Hash: 5f3b60de2c15150b0e62
Version: webpack 4.30.0
Time: 79565ms
Built at: 2019-05-09 16:10:58
             Asset       Size  Chunks                    Chunk Names
      0.11.11.1.js    423 KiB       0  [emitted]  [big]
      1.11.11.1.js   29.2 KiB       1  [emitted]
     10.11.11.1.js   1.16 KiB      10  [emitted]
     11.11.11.1.js   1.16 KiB      11  [emitted]
     12.11.11.1.js   91.6 KiB      12  [emitted]
     13.11.11.1.js   28.8 KiB      13  [emitted]
     14.11.11.1.js   47.1 KiB      14  [emitted]
     15.11.11.1.js   4.49 KiB      15  [emitted]
     16.11.11.1.js   10.2 KiB      16  [emitted]
     17.11.11.1.js   5.02 KiB  17, 23  [emitted]
     18.11.11.1.js   42.9 KiB      18  [emitted]
     19.11.11.1.js    2.3 KiB      19  [emitted]
      2.11.11.1.js   24.3 KiB       2  [emitted]
     20.11.11.1.js   1.86 KiB      20  [emitted]
     21.11.11.1.js   1.69 KiB      21  [emitted]
     22.11.11.1.js   4.15 KiB      22  [emitted]
     23.11.11.1.js   4.46 KiB      23  [emitted]
     24.11.11.1.js   3.49 KiB      24  [emitted]
     25.11.11.1.js    194 KiB      25  [emitted]
     26.11.11.1.js    1.1 KiB      26  [emitted]
     27.11.11.1.js  858 bytes      27  [emitted]
     28.11.11.1.js  873 bytes      28  [emitted]
      3.11.11.1.js   4.99 KiB   3, 23  [emitted]
     36.11.11.1.js   2.03 MiB      36  [emitted]  [big]
     37.11.11.1.js   21.5 KiB      37  [emitted]
     38.11.11.1.js   16.1 KiB      38  [emitted]
     39.11.11.1.js   8.07 KiB  39, 26  [emitted]
      4.11.11.1.js  683 bytes       4  [emitted]
     40.11.11.1.js   4.96 KiB      40  [emitted]
     41.11.11.1.js   5.06 KiB      41  [emitted]
     42.11.11.1.js   15.9 KiB      42  [emitted]
     43.11.11.1.js   8.15 KiB      43  [emitted]
     44.11.11.1.js   1.79 KiB  44, 48  [emitted]
     45.11.11.1.js   2.28 KiB      45  [emitted]
     46.11.11.1.js   3.93 KiB      46  [emitted]
     47.11.11.1.js   3.08 KiB      47  [emitted]
     48.11.11.1.js   1.67 KiB      48  [emitted]
     49.11.11.1.js   1.65 KiB      49  [emitted]
      5.11.11.1.js  683 bytes       5  [emitted]
     50.11.11.1.js   1.21 KiB      50  [emitted]
     51.11.11.1.js   1.37 KiB      51  [emitted]
     52.11.11.1.js   1.77 KiB      52  [emitted]
     53.11.11.1.js  830 bytes      53  [emitted]
     54.11.11.1.js   1.37 KiB      54  [emitted]
     55.11.11.1.js  892 bytes      55  [emitted]
     56.11.11.1.js   2.27 KiB      56  [emitted]
     57.11.11.1.js  854 bytes      57  [emitted]
     58.11.11.1.js   1.35 KiB  58, 59  [emitted]
     59.11.11.1.js  910 bytes      59  [emitted]
      6.11.11.1.js     69 KiB       6  [emitted]
      7.11.11.1.js   48.4 KiB       7  [emitted]
      8.11.11.1.js     24 KiB       8  [emitted]
      9.11.11.1.js   9.87 KiB       9  [emitted]
  admin.11.11.1.js   1.61 MiB   29, 0  [emitted]  [big]  admin
   auth.11.11.1.js   1.05 MiB      30  [emitted]  [big]  auth
desktop.11.11.1.js   1.36 MiB      31  [emitted]  [big]  desktop
    dev.11.11.1.js   1.46 MiB      32  [emitted]  [big]  dev
 mobile.11.11.1.js   1.27 MiB      33  [emitted]  [big]  mobile
     sw.11.11.1.js   2.97 KiB      34  [emitted]         sw
   test.11.11.1.js   1.05 MiB      35  [emitted]  [big]  test
Entrypoint desktop [big] = desktop.11.11.1.js
Entrypoint mobile [big] = mobile.11.11.1.js
Entrypoint dev [big] = dev.11.11.1.js
Entrypoint auth [big] = auth.11.11.1.js
Entrypoint admin [big] = admin.11.11.1.js
Entrypoint test [big] = test.11.11.1.js
Entrypoint sw = sw.11.11.1.js
   [8] ./src/client/app/config.ts 600 bytes {29} {30} {31} {32} {33} {35} [built]
 [267] ./src/client/app/init.ts + 36 modules 614 KiB {29} {30} {31} {32} {33} {35} [built]
       | ./src/client/app/init.ts 10.7 KiB [built]
       | ./src/client/app/common/hotkey.ts 3.06 KiB [built]
       | ./src/client/app/common/size.ts 537 bytes [built]
       | ./src/client/app/app.vue 449 bytes [built]
       | ./src/client/app/mios.ts 15 KiB [built]
       | ./src/client/app/common/keycode.ts 756 bytes [built]
       | ./src/client/app/app.vue?vue&type=template&id=1e8ddc01& 269 bytes [built]
       | ./src/client/app/app.vue?vue&type=script&lang=ts& 486 bytes [built]
       | ./src/client/app/store.ts 12.3 KiB [built]
       | ./src/client/app/common/scripts/stream.ts 8.4 KiB [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/app.vue?vue&type=template&id=1e8ddc01& 316 bytes [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/app.vue?vue&type=script&lang=ts& 556 bytes [built]
       |     + 25 hidden modules
 [268] ./src/client/app/common/views/pages/not-found.vue + 4 modules 2.25 KiB {29} {30} {31} {32} {33} {35} [built]
       | ./src/client/app/common/views/pages/not-found.vue 591 bytes [built]
       | ./src/client/app/common/views/pages/not-found.vue?vue&type=template&id=7a17a502&scoped=true& 314 bytes [built]
       | ./src/client/app/common/views/pages/not-found.vue?vue&type=script&lang=ts& 552 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/not-found.vue?vue&type=template&id=7a17a502&scoped=true& 460 bytes [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/not-found.vue?vue&type=script&lang=ts& 370 bytes [built]
 [460] ./src/client/app/desktop/views/components/ui-notification.vue + 4 modules 2.42 KiB {31} [built]
       |    5 modules
 [478] ./src/client/app/common/scripts/compose-notification.ts + 1 modules 2.57 KiB {31} {34} [built]
       | ./src/client/app/common/scripts/compose-notification.ts 2.08 KiB [built]
       | ./src/misc/get-reaction-emoji.ts 491 bytes [built]
 [492] ./src/client/app/common/views/deck/deck.vue + 64 modules 63.7 KiB {31} {33} [built]
       | ./src/client/app/common/views/deck/deck.vue 747 bytes [built]
       | ./src/client/app/common/views/deck/deck.vue?vue&type=template&id=be530f04&scoped=true& 309 bytes [built]
       | ./src/client/app/common/views/deck/deck.vue?vue&type=script&lang=ts& 542 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/deck/deck.vue?vue&type=template&id=be530f04&scoped=true& 1.18 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/deck/deck.vue?vue&type=script&lang=ts& 10.6 KiB [built]
       | ./src/client/app/common/views/deck/deck.column-core.vue 497 bytes [built]
       | ./src/client/app/common/views/deck/deck.column-core.vue?vue&type=template&id=64d65e18& 309 bytes [built]
       | ./src/client/app/common/views/deck/deck.column-core.vue?vue&type=script&lang=ts& 566 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/deck/deck.column-core.vue?vue&type=template&id=64d65e18& 1.44 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/deck/deck.column-core.vue?vue&type=script&lang=ts& 786 bytes [built]
       | ./src/client/app/common/views/deck/deck.tl-column.vue 491 bytes [built]
       | ./src/client/app/common/views/deck/deck.notifications-column.vue 524 bytes [built]
       | ./src/client/app/common/views/deck/deck.widgets-column.vue 631 bytes [built]
       | ./src/client/app/common/views/deck/deck.mentions-column.vue 509 bytes [built]
       | ./src/client/app/common/views/deck/deck.direct-column.vue 503 bytes [built]
       |     + 50 hidden modules
 [493] ./src/client/app/common/views/pages/share.vue + 4 modules 3.15 KiB {31} {33} [built]
       | ./src/client/app/common/views/pages/share.vue 575 bytes [built]
       | ./src/client/app/common/views/pages/share.vue?vue&type=template&id=45f4f020&scoped=true& 310 bytes [built]
       | ./src/client/app/common/views/pages/share.vue?vue&type=script&lang=ts& 544 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/share.vue?vue&type=template&id=45f4f020&scoped=true& 706 bytes [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/share.vue?vue&type=script&lang=ts& 1.05 KiB [built]
 [494] ./src/client/app/common/views/pages/follow.vue + 4 modules 5.69 KiB {31} {33} [built]
       | ./src/client/app/common/views/pages/follow.vue 579 bytes [built]
       | ./src/client/app/common/views/pages/follow.vue?vue&type=template&id=39377b1c&scoped=true& 311 bytes [built]
       | ./src/client/app/common/views/pages/follow.vue?vue&type=script&lang=ts& 546 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/follow.vue?vue&type=template&id=39377b1c&scoped=true& 1.94 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/follow.vue?vue&type=script&lang=ts& 2.32 KiB [built]
[1045] ./src/client/app/sw.js 692 bytes {34} [built]
[1047] ./src/client/app/mobile/script.ts + 105 modules 92.8 KiB {33} [built]
       | ./src/client/app/mobile/script.ts 8.47 KiB [built]
       | ./src/client/app/mobile/views/pages/index.vue 464 bytes [built]
       | ./src/client/app/mobile/views/pages/signup.vue 579 bytes [built]
       | ./src/client/app/mobile/views/pages/selectdrive.vue 599 bytes [built]
       | ./src/client/app/mobile/views/pages/drive.vue 464 bytes [built]
       | ./src/client/app/mobile/views/pages/widgets.vue 583 bytes [built]
       | ./src/client/app/mobile/views/pages/messaging.vue 476 bytes [built]
       | ./src/client/app/mobile/views/pages/messaging-room.vue 491 bytes [built]
       | ./src/client/app/mobile/views/pages/received-follow-requests.vue 651 bytes [built]
       | ./src/client/app/mobile/views/pages/note.vue 571 bytes [built]
       | ./src/client/app/mobile/views/pages/search.vue 467 bytes [built]
       | ./src/client/app/mobile/views/pages/favorites.vue 591 bytes [built]
       | ./src/client/app/mobile/views/pages/user-lists.vue 479 bytes [built]
       | ./src/client/app/mobile/views/pages/user-list.vue 476 bytes [built]
       | ./src/client/app/mobile/views/pages/games/reversi.vue 473 bytes [built]
       |     + 91 hidden modules
[1049] ./src/client/app/admin/script.ts + 90 modules 161 KiB {29} [built]
       | ./src/client/app/admin/script.ts 537 bytes [built]
       | ./src/client/app/admin/views/index.vue 572 bytes [built]
       | ./src/client/app/admin/views/index.vue?vue&type=template&id=a62e74da&scoped=true& 301 bytes [built]
       | ./src/client/app/admin/views/index.vue?vue&type=script&lang=ts& 526 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/admin/views/index.vue?vue&type=template&id=a62e74da&scoped=true& 6.21 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/admin/views/index.vue?vue&type=script&lang=ts& 1.59 KiB [built]
       | ./src/client/app/admin/views/dashboard.vue 588 bytes [built]
       | ./src/client/app/admin/views/instance.vue 470 bytes [built]
       | ./src/client/app/admin/views/queue.vue 572 bytes [built]
       | ./src/client/app/admin/views/logs.vue 568 bytes [built]
       | ./src/client/app/admin/views/moderators.vue 476 bytes [built]
       | ./src/client/app/admin/views/emoji.vue 572 bytes [built]
       | ./src/client/app/admin/views/announcements.vue 485 bytes [built]
       | ./src/client/app/admin/views/hashtags.vue 470 bytes [built]
       | ./src/client/app/admin/views/users.vue 572 bytes [built]
       |     + 76 hidden modules
[1050] ./src/client/app/desktop/script.ts + 66 modules 76 KiB {31} [built]
       | ./src/client/app/desktop/script.ts 11.2 KiB [built]
       | ./src/client/app/common/scripts/fuck-ad-block.ts 368 bytes [built]
       | ./src/client/app/desktop/views/home/home.vue 571 bytes [built]
       | ./src/client/app/desktop/views/pages/selectdrive.vue 599 bytes [built]
       | ./src/client/app/desktop/views/pages/drive.vue 575 bytes [built]
       | ./src/client/app/desktop/views/pages/messaging-room.vue 611 bytes [built]
       | ./src/client/app/desktop/views/pages/games/reversi.vue 473 bytes [built]
       | ./src/client/app/desktop/views/pages/settings.vue 587 bytes [built]
       | ./src/client/app/desktop/views/home/timeline.vue 587 bytes [built]
       | ./src/client/app/desktop/views/home/home.vue?vue&type=template&id=57a8da06&scoped=true& 309 bytes [built]
       | ./src/client/app/desktop/views/home/home.vue?vue&type=script&lang=ts& 542 bytes [built]
       | ./src/client/app/desktop/views/pages/selectdrive.vue?vue&type=template&id=a5a9083e&scoped=true& 316 bytes [built]
       | ./src/client/app/desktop/views/pages/selectdrive.vue?vue&type=script&lang=ts& 556 bytes [built]
       | ./src/client/app/desktop/views/pages/drive.vue?vue&type=template&id=0e2c6634&scoped=true& 310 bytes [built]
       | ./src/client/app/desktop/views/pages/drive.vue?vue&type=script&lang=ts& 544 bytes [built]
       |     + 52 hidden modules
[1052] ./src/client/app/dev/script.ts + 24 modules 13 KiB {32} [built]
       | ./src/client/app/dev/script.ts 1.01 KiB [built]
       | ./src/client/app/dev/views/index.vue 461 bytes [built]
       | ./src/client/app/dev/views/apps.vue 458 bytes [built]
       | ./src/client/app/dev/views/new-app.vue 467 bytes [built]
       | ./src/client/app/dev/views/app.vue 455 bytes [built]
       | ./src/client/app/dev/views/ui.vue 471 bytes [built]
       | ./src/client/app/dev/views/index.vue?vue&type=template&id=df4382ae& 289 bytes [built]
       | ./src/client/app/dev/views/index.vue?vue&type=script&lang=ts& 526 bytes [built]
       | ./src/client/app/dev/views/apps.vue?vue&type=template&id=1649a014& 288 bytes [built]
       | ./src/client/app/dev/views/apps.vue?vue&type=script&lang=ts& 524 bytes [built]
       | ./src/client/app/dev/views/new-app.vue?vue&type=template&id=3a79ebd2& 291 bytes [built]
       | ./src/client/app/dev/views/new-app.vue?vue&type=script&lang=ts& 530 bytes [built]
       | ./src/client/app/dev/views/app.vue?vue&type=template&id=7d9742f1& 287 bytes [built]
       | ./src/client/app/dev/views/app.vue?vue&type=script&lang=ts& 522 bytes [built]
       | ./src/client/app/dev/views/ui.vue?vue&type=template&id=f66716ca&scoped=true& 298 bytes [built]
       |     + 10 hidden modules
[1053] ./src/client/app/auth/script.ts + 10 modules 7.72 KiB {30} [built]
       | ./src/client/app/auth/script.ts 537 bytes [built]
       | ./src/client/app/auth/views/index.vue 572 bytes [built]
       | ./src/client/app/auth/views/index.vue?vue&type=template&id=45a13a07&scoped=true& 301 bytes [built]
       | ./src/client/app/auth/views/index.vue?vue&type=script&lang=ts& 526 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/auth/views/index.vue?vue&type=template&id=45a13a07&scoped=true& 1.49 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/auth/views/index.vue?vue&type=script&lang=ts& 1.39 KiB [built]
       | ./src/client/app/auth/views/form.vue 568 bytes [built]
       | ./src/client/app/auth/views/form.vue?vue&type=template&id=140819c2&scoped=true& 300 bytes [built]
       | ./src/client/app/auth/views/form.vue?vue&type=script&lang=ts& 524 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/auth/views/form.vue?vue&type=template&id=140819c2&scoped=true& 935 bytes [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/auth/views/form.vue?vue&type=script&lang=ts& 651 bytes [built]
[1056] ./src/client/app/test/script.ts + 5 modules 4.51 KiB {35} [built]
       | ./src/client/app/test/script.ts 521 bytes [built]
       | ./src/client/app/test/views/index.vue 572 bytes [built]
       | ./src/client/app/test/views/index.vue?vue&type=template&id=9372f4bc&scoped=true& 301 bytes [built]
       | ./src/client/app/test/views/index.vue?vue&type=script&lang=ts& 526 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/test/views/index.vue?vue&type=template&id=9372f4bc&scoped=true& 1.87 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/test/views/index.vue?vue&type=script&lang=ts& 746 bytes [built]
    + 1426 hidden modules

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  0.11.11.1.js (423 KiB)
  admin.11.11.1.js (1.61 MiB)
  auth.11.11.1.js (1.05 MiB)
  desktop.11.11.1.js (1.36 MiB)
  dev.11.11.1.js (1.46 MiB)
  mobile.11.11.1.js (1.27 MiB)
  test.11.11.1.js (1.05 MiB)
  36.11.11.1.js (2.03 MiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  desktop (1.36 MiB)
      desktop.11.11.1.js
  mobile (1.27 MiB)
      mobile.11.11.1.js
  dev (1.46 MiB)
      dev.11.11.1.js
  auth (1.05 MiB)
      auth.11.11.1.js
  admin (1.61 MiB)
      admin.11.11.1.js
  test (1.05 MiB)
      test.11.11.1.js

[16:10:58] Requiring external module ts-node/register
[16:10:59] Using gulpfile /etc/misskey/gulpfile.ts
[16:10:59] Starting 'build'...
[16:10:59] Starting 'build:ts'...
[16:10:59] Starting 'build:copy'...
[16:10:59] Starting 'build:client'...
[16:10:59] Starting 'doc'...
[16:10:59] Starting 'build:copy:views'...
[16:10:59] Starting '<anonymous>'...
[16:10:59] Starting 'build:client:script'...
[16:10:59] Starting 'build:client:styles'...
[16:10:59] Starting 'copy:client'...
[16:10:59] Finished 'build:client:styles' after 366 ms
[16:10:59] Finished 'doc' after 440 ms
[16:10:59] Finished 'build:client:script' after 375 ms
[16:11:00] Finished 'build:copy:views' after 440 ms
[16:11:00] Finished '<anonymous>' after 1.12 s
[16:11:00] Finished 'build:copy' after 1.18 s
[16:11:01] 'copy:client' errored after 1.65 s
[16:11:01] Error in plugin "gulp-imagemin"
Message:
    spawn /etc/misskey/node_modules/jpegtran-bin/vendor/jpegtran ENOENT
Details:
    errno: ENOENT
    code: ENOENT
    syscall: spawn /etc/misskey/node_modules/jpegtran-bin/vendor/jpegtran
    path: /etc/misskey/node_modules/jpegtran-bin/vendor/jpegtran
    spawnargs: -copy,none,-optimize,-outfile,/tmp/b536722b-6839-4f51-83ee-d04ff2e2d36e,/tmp/efecd727-ae17-4c3a-a910-68858802e1ca
    killed: false
    stdout:
    stderr:
    failed: true
    signal: null
    cmd: /etc/misskey/node_modules/jpegtran-bin/vendor/jpegtran -copy none -optimize -outfile /tmp/b536722b-6839-4f51-83ee-d04ff2e2d36e /tmp/efecd727-ae17-4c3a-a910-68858802e1ca
    timedOut: false
    fileName: /etc/misskey/assets/ss/explore.jpg
    domainEmitter: [object Object]
    domainThrown: false

[16:11:01] 'build:client' errored after 1.72 s
[16:11:01] 'build' errored after 1.72 s
[16:11:01] The following tasks did not complete: build:ts
[16:11:01] Did you forget to signal async completion?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `webpack && gulp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/mi

sskey/.npm/_logs/2019-05-09T14_11_01_262Z-debug.log
misskey@jlkm2:/etc/misskey$ 

Is it a fata morgana, or is this in fact a small glimpse of the finish line?

Anyone?

@acid-chicken
Copy link
Member

Maybe, when run npm rebuild jpegtran-bin it'll fix.

@JLKM
Copy link
Author

JLKM commented May 9, 2019

Yes we can...?

Maybe, when run npm rebuild jpegtran-bin it'll fix.

Apparently one step in the right direction,and thank you for that. But still not there.

1. npm rebuild jpegtran-bin
  • No error
misskey@jlkm2:/etc/misskey$ npm rebuild jpegtran-bin

> [email protected] postinstall /etc/misskey/node_modules/jpegtran-bin
> node lib/install.js

  ✔ jpegtran pre-build test passed successfully
[email protected] /etc/misskey/node_modules/jpegtran-bin

2. node-gyp configure

  • Still errors
misskey@jlkm2:/etc/misskey$ node-gyp configure
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/etc/misskey/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/misskey/.node-gyp/11.13.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/misskey/.node-gyp/11.13.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/misskey/.node-gyp/11.13.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/etc/misskey',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: /etc/misskey) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack     at ChildProcess.emit (events.js:193:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
gyp ERR! System Linux 4.15.0-48-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/bin/node-gyp" "configure"
gyp ERR! cwd /etc/misskey
gyp ERR! node -v v11.13.0
gyp ERR! node-gyp -v v4.0.0
gyp ERR! not ok
3. NODE_ENV=production npm run build
  • Error: Cannot find module 'diskusage'

Will this get up and running, and what is still missing?

misskey@jlkm2:/etc/misskey$ NODE_ENV=production npm run build

> [email protected] build /etc/misskey
> webpack && gulp build

  yes we can [] 100% (100/100) 80.2s

Build completed in 80.16s

Hash: 5f3b60de2c15150b0e62
Version: webpack 4.30.0
Time: 80166ms
Built at: 2019-05-09 20:23:48
             Asset       Size  Chunks                    Chunk Names
      0.11.11.1.js    423 KiB       0  [emitted]  [big]
      1.11.11.1.js   29.2 KiB       1  [emitted]
     10.11.11.1.js   1.16 KiB      10  [emitted]
     11.11.11.1.js   1.16 KiB      11  [emitted]
     12.11.11.1.js   91.6 KiB      12  [emitted]
     13.11.11.1.js   28.8 KiB      13  [emitted]
     14.11.11.1.js   47.1 KiB      14  [emitted]
     15.11.11.1.js   4.49 KiB      15  [emitted]
     16.11.11.1.js   10.2 KiB      16  [emitted]
     17.11.11.1.js   5.02 KiB  17, 23  [emitted]
     18.11.11.1.js   42.9 KiB      18  [emitted]
     19.11.11.1.js    2.3 KiB      19  [emitted]
      2.11.11.1.js   24.3 KiB       2  [emitted]
     20.11.11.1.js   1.86 KiB      20  [emitted]
     21.11.11.1.js   1.69 KiB      21  [emitted]
     22.11.11.1.js   4.15 KiB      22  [emitted]
     23.11.11.1.js   4.46 KiB      23  [emitted]
     24.11.11.1.js   3.49 KiB      24  [emitted]
     25.11.11.1.js    194 KiB      25  [emitted]
     26.11.11.1.js    1.1 KiB      26  [emitted]
     27.11.11.1.js  858 bytes      27  [emitted]
     28.11.11.1.js  873 bytes      28  [emitted]
      3.11.11.1.js   4.99 KiB   3, 23  [emitted]
     36.11.11.1.js   2.03 MiB      36  [emitted]  [big]
     37.11.11.1.js   21.5 KiB      37  [emitted]
     38.11.11.1.js   16.1 KiB      38  [emitted]
     39.11.11.1.js   8.07 KiB  39, 26  [emitted]
      4.11.11.1.js  683 bytes       4  [emitted]
     40.11.11.1.js   4.96 KiB      40  [emitted]
     41.11.11.1.js   5.06 KiB      41  [emitted]
     42.11.11.1.js   15.9 KiB      42  [emitted]
     43.11.11.1.js   8.15 KiB      43  [emitted]
     44.11.11.1.js   1.79 KiB  44, 48  [emitted]
     45.11.11.1.js   2.28 KiB      45  [emitted]
     46.11.11.1.js   3.93 KiB      46  [emitted]
     47.11.11.1.js   3.08 KiB      47  [emitted]
     48.11.11.1.js   1.67 KiB      48  [emitted]
     49.11.11.1.js   1.65 KiB      49  [emitted]
      5.11.11.1.js  683 bytes       5  [emitted]
     50.11.11.1.js   1.21 KiB      50  [emitted]
     51.11.11.1.js   1.37 KiB      51  [emitted]
     52.11.11.1.js   1.77 KiB      52  [emitted]
     53.11.11.1.js  830 bytes      53  [emitted]
     54.11.11.1.js   1.37 KiB      54  [emitted]
     55.11.11.1.js  892 bytes      55  [emitted]
     56.11.11.1.js   2.27 KiB      56  [emitted]
     57.11.11.1.js  854 bytes      57  [emitted]
     58.11.11.1.js   1.35 KiB  58, 59  [emitted]
     59.11.11.1.js  910 bytes      59  [emitted]
      6.11.11.1.js     69 KiB       6  [emitted]
      7.11.11.1.js   48.4 KiB       7  [emitted]
      8.11.11.1.js     24 KiB       8  [emitted]
      9.11.11.1.js   9.87 KiB       9  [emitted]
  admin.11.11.1.js   1.61 MiB   29, 0  [emitted]  [big]  admin
   auth.11.11.1.js   1.05 MiB      30  [emitted]  [big]  auth
desktop.11.11.1.js   1.36 MiB      31  [emitted]  [big]  desktop
    dev.11.11.1.js   1.46 MiB      32  [emitted]  [big]  dev
 mobile.11.11.1.js   1.27 MiB      33  [emitted]  [big]  mobile
     sw.11.11.1.js   2.97 KiB      34  [emitted]         sw
   test.11.11.1.js   1.05 MiB      35  [emitted]  [big]  test
Entrypoint desktop [big] = desktop.11.11.1.js
Entrypoint mobile [big] = mobile.11.11.1.js
Entrypoint dev [big] = dev.11.11.1.js
Entrypoint auth [big] = auth.11.11.1.js
Entrypoint admin [big] = admin.11.11.1.js
Entrypoint test [big] = test.11.11.1.js
Entrypoint sw = sw.11.11.1.js
   [8] ./src/client/app/config.ts 600 bytes {29} {30} {31} {32} {33} {35} [built]
 [267] ./src/client/app/init.ts + 36 modules 614 KiB {29} {30} {31} {32} {33} {35} [built]
       | ./src/client/app/init.ts 10.7 KiB [built]
       | ./src/client/app/common/hotkey.ts 3.06 KiB [built]
       | ./src/client/app/common/size.ts 537 bytes [built]
       | ./src/client/app/app.vue 449 bytes [built]
       | ./src/client/app/mios.ts 15 KiB [built]
       | ./src/client/app/common/keycode.ts 756 bytes [built]
       | ./src/client/app/app.vue?vue&type=template&id=1e8ddc01& 269 bytes [built]
       | ./src/client/app/app.vue?vue&type=script&lang=ts& 486 bytes [built]
       | ./src/client/app/store.ts 12.3 KiB [built]
       | ./src/client/app/common/scripts/stream.ts 8.4 KiB [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/app.vue?vue&type=template&id=1e8ddc01& 316 bytes [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/app.vue?vue&type=script&lang=ts& 556 bytes [built]
       |     + 25 hidden modules
 [268] ./src/client/app/common/views/pages/not-found.vue + 4 modules 2.25 KiB {29} {30} {31} {32} {33} {35} [built]
       | ./src/client/app/common/views/pages/not-found.vue 591 bytes [built]
       | ./src/client/app/common/views/pages/not-found.vue?vue&type=template&id=7a17a502&scoped=true& 314 bytes [built]
       | ./src/client/app/common/views/pages/not-found.vue?vue&type=script&lang=ts& 552 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/not-found.vue?vue&type=template&id=7a17a502&scoped=true& 460 bytes [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/not-found.vue?vue&type=script&lang=ts& 370 bytes [built]
 [460] ./src/client/app/desktop/views/components/ui-notification.vue + 4 modules 2.42 KiB {31} [built]
       |    5 modules
 [478] ./src/client/app/common/scripts/compose-notification.ts + 1 modules 2.57 KiB {31} {34} [built]
       | ./src/client/app/common/scripts/compose-notification.ts 2.08 KiB [built]
       | ./src/misc/get-reaction-emoji.ts 491 bytes [built]
 [492] ./src/client/app/common/views/deck/deck.vue + 64 modules 63.7 KiB {31} {33} [built]
       | ./src/client/app/common/views/deck/deck.vue 747 bytes [built]
       | ./src/client/app/common/views/deck/deck.vue?vue&type=template&id=be530f04&scoped=true& 309 bytes [built]
       | ./src/client/app/common/views/deck/deck.vue?vue&type=script&lang=ts& 542 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/deck/deck.vue?vue&type=template&id=be530f04&scoped=true& 1.18 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/deck/deck.vue?vue&type=script&lang=ts& 10.6 KiB [built]
       | ./src/client/app/common/views/deck/deck.column-core.vue 497 bytes [built]
       | ./src/client/app/common/views/deck/deck.column-core.vue?vue&type=template&id=64d65e18& 309 bytes [built]
       | ./src/client/app/common/views/deck/deck.column-core.vue?vue&type=script&lang=ts& 566 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/deck/deck.column-core.vue?vue&type=template&id=64d65e18& 1.44 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/deck/deck.column-core.vue?vue&type=script&lang=ts& 786 bytes [built]
       | ./src/client/app/common/views/deck/deck.tl-column.vue 491 bytes [built]
       | ./src/client/app/common/views/deck/deck.notifications-column.vue 524 bytes [built]
       | ./src/client/app/common/views/deck/deck.widgets-column.vue 631 bytes [built]
       | ./src/client/app/common/views/deck/deck.mentions-column.vue 509 bytes [built]
       | ./src/client/app/common/views/deck/deck.direct-column.vue 503 bytes [built]
       |     + 50 hidden modules
 [493] ./src/client/app/common/views/pages/share.vue + 4 modules 3.15 KiB {31} {33} [built]
       | ./src/client/app/common/views/pages/share.vue 575 bytes [built]
       | ./src/client/app/common/views/pages/share.vue?vue&type=template&id=45f4f020&scoped=true& 310 bytes [built]
       | ./src/client/app/common/views/pages/share.vue?vue&type=script&lang=ts& 544 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/share.vue?vue&type=template&id=45f4f020&scoped=true& 706 bytes [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/share.vue?vue&type=script&lang=ts& 1.05 KiB [built]
 [494] ./src/client/app/common/views/pages/follow.vue + 4 modules 5.69 KiB {31} {33} [built]
       | ./src/client/app/common/views/pages/follow.vue 579 bytes [built]
       | ./src/client/app/common/views/pages/follow.vue?vue&type=template&id=39377b1c&scoped=true& 311 bytes [built]
       | ./src/client/app/common/views/pages/follow.vue?vue&type=script&lang=ts& 546 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/follow.vue?vue&type=template&id=39377b1c&scoped=true& 1.94 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/common/views/pages/follow.vue?vue&type=script&lang=ts& 2.32 KiB [built]
[1045] ./src/client/app/sw.js 692 bytes {34} [built]
[1047] ./src/client/app/mobile/script.ts + 105 modules 92.8 KiB {33} [built]
       | ./src/client/app/mobile/script.ts 8.47 KiB [built]
       | ./src/client/app/mobile/views/pages/index.vue 464 bytes [built]
       | ./src/client/app/mobile/views/pages/signup.vue 579 bytes [built]
       | ./src/client/app/mobile/views/pages/selectdrive.vue 599 bytes [built]
       | ./src/client/app/mobile/views/pages/drive.vue 464 bytes [built]
       | ./src/client/app/mobile/views/pages/widgets.vue 583 bytes [built]
       | ./src/client/app/mobile/views/pages/messaging.vue 476 bytes [built]
       | ./src/client/app/mobile/views/pages/messaging-room.vue 491 bytes [built]
       | ./src/client/app/mobile/views/pages/received-follow-requests.vue 651 bytes [built]
       | ./src/client/app/mobile/views/pages/note.vue 571 bytes [built]
       | ./src/client/app/mobile/views/pages/search.vue 467 bytes [built]
       | ./src/client/app/mobile/views/pages/favorites.vue 591 bytes [built]
       | ./src/client/app/mobile/views/pages/user-lists.vue 479 bytes [built]
       | ./src/client/app/mobile/views/pages/user-list.vue 476 bytes [built]
       | ./src/client/app/mobile/views/pages/games/reversi.vue 473 bytes [built]
       |     + 91 hidden modules
[1049] ./src/client/app/admin/script.ts + 90 modules 161 KiB {29} [built]
       | ./src/client/app/admin/script.ts 537 bytes [built]
       | ./src/client/app/admin/views/index.vue 572 bytes [built]
       | ./src/client/app/admin/views/index.vue?vue&type=template&id=a62e74da&scoped=true& 301 bytes [built]
       | ./src/client/app/admin/views/index.vue?vue&type=script&lang=ts& 526 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/admin/views/index.vue?vue&type=template&id=a62e74da&scoped=true& 6.21 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/admin/views/index.vue?vue&type=script&lang=ts& 1.59 KiB [built]
       | ./src/client/app/admin/views/dashboard.vue 588 bytes [built]
       | ./src/client/app/admin/views/instance.vue 470 bytes [built]
       | ./src/client/app/admin/views/queue.vue 572 bytes [built]
       | ./src/client/app/admin/views/logs.vue 568 bytes [built]
       | ./src/client/app/admin/views/moderators.vue 476 bytes [built]
       | ./src/client/app/admin/views/emoji.vue 572 bytes [built]
       | ./src/client/app/admin/views/announcements.vue 485 bytes [built]
       | ./src/client/app/admin/views/hashtags.vue 470 bytes [built]
       | ./src/client/app/admin/views/users.vue 572 bytes [built]
       |     + 76 hidden modules
[1050] ./src/client/app/desktop/script.ts + 66 modules 76 KiB {31} [built]
       | ./src/client/app/desktop/script.ts 11.2 KiB [built]
       | ./src/client/app/common/scripts/fuck-ad-block.ts 368 bytes [built]
       | ./src/client/app/desktop/views/home/home.vue 571 bytes [built]
       | ./src/client/app/desktop/views/pages/selectdrive.vue 599 bytes [built]
       | ./src/client/app/desktop/views/pages/drive.vue 575 bytes [built]
       | ./src/client/app/desktop/views/pages/messaging-room.vue 611 bytes [built]
       | ./src/client/app/desktop/views/pages/games/reversi.vue 473 bytes [built]
       | ./src/client/app/desktop/views/pages/settings.vue 587 bytes [built]
       | ./src/client/app/desktop/views/home/timeline.vue 587 bytes [built]
       | ./src/client/app/desktop/views/home/home.vue?vue&type=template&id=57a8da06&scoped=true& 309 bytes [built]
       | ./src/client/app/desktop/views/home/home.vue?vue&type=script&lang=ts& 542 bytes [built]
       | ./src/client/app/desktop/views/pages/selectdrive.vue?vue&type=template&id=a5a9083e&scoped=true& 316 bytes [built]
       | ./src/client/app/desktop/views/pages/selectdrive.vue?vue&type=script&lang=ts& 556 bytes [built]
       | ./src/client/app/desktop/views/pages/drive.vue?vue&type=template&id=0e2c6634&scoped=true& 310 bytes [built]
       | ./src/client/app/desktop/views/pages/drive.vue?vue&type=script&lang=ts& 544 bytes [built]
       |     + 52 hidden modules
[1052] ./src/client/app/dev/script.ts + 24 modules 13 KiB {32} [built]
       | ./src/client/app/dev/script.ts 1.01 KiB [built]
       | ./src/client/app/dev/views/index.vue 461 bytes [built]
       | ./src/client/app/dev/views/apps.vue 458 bytes [built]
       | ./src/client/app/dev/views/new-app.vue 467 bytes [built]
       | ./src/client/app/dev/views/app.vue 455 bytes [built]
       | ./src/client/app/dev/views/ui.vue 471 bytes [built]
       | ./src/client/app/dev/views/index.vue?vue&type=template&id=df4382ae& 289 bytes [built]
       | ./src/client/app/dev/views/index.vue?vue&type=script&lang=ts& 526 bytes [built]
       | ./src/client/app/dev/views/apps.vue?vue&type=template&id=1649a014& 288 bytes [built]
       | ./src/client/app/dev/views/apps.vue?vue&type=script&lang=ts& 524 bytes [built]
       | ./src/client/app/dev/views/new-app.vue?vue&type=template&id=3a79ebd2& 291 bytes [built]
       | ./src/client/app/dev/views/new-app.vue?vue&type=script&lang=ts& 530 bytes [built]
       | ./src/client/app/dev/views/app.vue?vue&type=template&id=7d9742f1& 287 bytes [built]
       | ./src/client/app/dev/views/app.vue?vue&type=script&lang=ts& 522 bytes [built]
       | ./src/client/app/dev/views/ui.vue?vue&type=template&id=f66716ca&scoped=true& 298 bytes [built]
       |     + 10 hidden modules
[1053] ./src/client/app/auth/script.ts + 10 modules 7.72 KiB {30} [built]
       | ./src/client/app/auth/script.ts 537 bytes [built]
       | ./src/client/app/auth/views/index.vue 572 bytes [built]
       | ./src/client/app/auth/views/index.vue?vue&type=template&id=45a13a07&scoped=true& 301 bytes [built]
       | ./src/client/app/auth/views/index.vue?vue&type=script&lang=ts& 526 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/auth/views/index.vue?vue&type=template&id=45a13a07&scoped=true& 1.49 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/auth/views/index.vue?vue&type=script&lang=ts& 1.39 KiB [built]
       | ./src/client/app/auth/views/form.vue 568 bytes [built]
       | ./src/client/app/auth/views/form.vue?vue&type=template&id=140819c2&scoped=true& 300 bytes [built]
       | ./src/client/app/auth/views/form.vue?vue&type=script&lang=ts& 524 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/auth/views/form.vue?vue&type=template&id=140819c2&scoped=true& 935 bytes [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/auth/views/form.vue?vue&type=script&lang=ts& 651 bytes [built]
[1056] ./src/client/app/test/script.ts + 5 modules 4.51 KiB {35} [built]
       | ./src/client/app/test/script.ts 521 bytes [built]
       | ./src/client/app/test/views/index.vue 572 bytes [built]
       | ./src/client/app/test/views/index.vue?vue&type=template&id=9372f4bc&scoped=true& 301 bytes [built]
       | ./src/client/app/test/views/index.vue?vue&type=script&lang=ts& 526 bytes [built]
       | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/test/views/index.vue?vue&type=template&id=9372f4bc&scoped=true& 1.87 KiB [built]
       | ./node_modules/ts-loader??ref--5-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-svg-inline-loader/dist/index.min.js!./src/client/app/test/views/index.vue?vue&type=script&lang=ts& 746 bytes [built]
    + 1426 hidden modules

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  0.11.11.1.js (423 KiB)
  admin.11.11.1.js (1.61 MiB)
  auth.11.11.1.js (1.05 MiB)
  desktop.11.11.1.js (1.36 MiB)
  dev.11.11.1.js (1.46 MiB)
  mobile.11.11.1.js (1.27 MiB)
  test.11.11.1.js (1.05 MiB)
  36.11.11.1.js (2.03 MiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  desktop (1.36 MiB)
      desktop.11.11.1.js
  mobile (1.27 MiB)
      mobile.11.11.1.js
  dev (1.46 MiB)
      dev.11.11.1.js
  auth (1.05 MiB)
      auth.11.11.1.js
  admin (1.61 MiB)
      admin.11.11.1.js
  test (1.05 MiB)
      test.11.11.1.js

[20:23:48] Requiring external module ts-node/register
[20:23:49] Using gulpfile /etc/misskey/gulpfile.ts
[20:23:49] Starting 'build'...
[20:23:49] Starting 'build:ts'...
[20:23:49] Starting 'build:copy'...
[20:23:49] Starting 'build:client'...
[20:23:49] Starting 'doc'...
[20:23:49] Starting 'build:copy:views'...
[20:23:49] Starting '<anonymous>'...
[20:23:49] Starting 'build:client:script'...
[20:23:49] Starting 'build:client:styles'...
[20:23:49] Starting 'copy:client'...
[20:23:49] Finished 'build:client:styles' after 361 ms
[20:23:49] Finished 'doc' after 430 ms
[20:23:49] Finished 'build:client:script' after 369 ms
[20:23:49] Finished 'build:copy:views' after 432 ms
[20:23:50] Finished '<anonymous>' after 1.05 s
[20:23:50] Finished 'build:copy' after 1.11 s
src/daemons/server-stats.ts(3,28): error TS2307: Cannot find module 'diskusage'.
[20:24:01] gulp-imagemin: Minified 34 images (saved 85.9 kB - 4.2%)
[20:24:01] Finished 'copy:client' after 12 s
[20:24:01] Finished 'build:client' after 12 s
TypeScript: 1 semantic error
TypeScript: emit succeeded (with errors)
[20:24:01] Finished 'build:ts' after 12 s
[20:24:01] Finished 'build' after 12 s

@acid-chicken
Copy link
Member

acid-chicken commented May 9, 2019

In version 11, node-gyp requirement is no longer needed. (So the docs are wrong, we are sorry!)
Therefore you don't need to install and configure node-gyp.

The above sentence was wrong, I'm so sorry!
However you don't need to install node-gyp globally. (So you don't need to run npm i -g node-gyp.)

But Cannot find module 'diskusage' is a mystery to me, however it may fix when run npm i [email protected].

@JLKM
Copy link
Author

JLKM commented May 9, 2019

Diskusage is a dependency listed in package.json in misskey, but it was newer installed in my setup during npm install. And it doesn't seem to be possible either with your npm install [email protected].

Does this break, because diskusage apparently is related to node-gyp (see log below)?

misskey@jlkm2:/etc/misskey$ npm i [email protected]

> [email protected] install /etc/misskey/node_modules/diskusage
> node-gyp rebuild

make: Entering directory '/etc/misskey/node_modules/diskusage/build'
  CXX(target) Release/obj.target/diskusage/src/main.o
make: g++: Command not found
diskusage.target.mk:104: recipe for target 'Release/obj.target/diskusage/src/main.o' failed
make: *** [Release/obj.target/diskusage/src/main.o] Error 127
make: Leaving directory '/etc/misskey/node_modules/diskusage/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:193:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
gyp ERR! System Linux 4.15.0-48-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /etc/misskey/node_modules/diskusage
gyp ERR! node -v v11.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN [email protected] requires a peer of [email protected] - 3 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/misskey/.npm/_logs/2019-05-09T19_12_27_522Z-debug.log
misskey@jlkm2:/etc/misskey$ NODE_ENV=production npm run build

@rinsuki
Copy link
Contributor

rinsuki commented May 9, 2019

you need to install GNU C++ compiler.
in many linux distributions, package name is g++ or gcc.

@JLKM
Copy link
Author

JLKM commented May 9, 2019

Thank you. Hope your tip will end this "adventure". There are really many dependencies in this project, but I'll give it a (last) shot. Still I have no clue about this c++/gcc package. Is it a Linux or Node package? Any link to some advice would be much appreciated.

@rinsuki
Copy link
Contributor

rinsuki commented May 9, 2019

g++ can get from your using linux distributions.

  • Debian / Ubuntu : sudo apt-get install g++
  • CentOS / Fedora / RHEL : sudo yum install gcc-c++
  • Alpine: sudo apk add g++
  • Other distributions: please search "g++ install [distribution name]" in google or your favourited search engine

Tip: If you dont like this many dependencies, you can choose run on docker.
check https://github.com/syuilo/misskey/blob/develop/docs/docker.en.md

@mei23
Copy link
Contributor

mei23 commented May 9, 2019

For Ubuntu / Debian sudo apt -y install build-essential is useful.
Contains everything you need to build, including g++.

@JLKM
Copy link
Author

JLKM commented May 11, 2019

Not exactly a walk in the park to get Misskey up and running on Ubuntu 18.04 LTS with PostgreSQL. But at last it took off - thanks to all the guys and girls, who have offered support along the way in this thread.

Now, I look forward to investigate and test the thing in action. And hopefully a danish Misskey-instance pops up soon.

The instance runs like a charm on an internal IP-number. However I bumped into the following two errors just before take off.

1. A message on vulnerabilities during npm install. Is this something to worry about, when the instance go public?

misskey@jlkm2:/etc/misskey$ npm install

> [email protected] install /etc/misskey/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.4/libvips-8.7.4-linux-x64.tar.gz
npm WARN [email protected] requires a peer of [email protected] - 3 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 2 packages from 55 contributors and audited 23630 packages in 10.387s
found 4 vulnerabilities (1 low, 2 moderate, 1 high)
  run `npm audit fix` to fix them, or `npm audit` for details

2. A warning of key value violates unique constraint.

Does this pose a problem to the stability?

jan@jlkm2:/etc/misskey$ sudo NODE_ENV=production npm start
[sudo] adgangskode for jan:

> [email protected] start /etc/misskey
> node ./index.js

  _____ _         _
 |     |_|___ ___| |_ ___ _ _
 | | | | |_ -|_ -| '_| -_| | |
 |_|_|_|_|___|___|_,_|___|_  |
 v11.11.1                |___|

 Misskey is maintained by @syuilo, @AyaMorisawa, @mei23, @acid-chicken, and @rinsuki.
 If you like Misskey, please donate to support development. https://www.patreon.com/syuilo

< jlkm2 (PID: 4058) >
INFO *  [core boot]     Welcome to Misskey!
INFO *  [core boot]     Misskey v11.11.1
INFO *  [core boot env] NODE_ENV: production
INFO *  [core boot env] You have root privileges
INFO *  [core boot nodejs]      Version 11.13.0
DONE *  [core boot config]      Loaded
INFO *  [core boot]     Connecting database...
DONE *  [core boot]     Misskey initialized
INFO *  [core boot]     Starting 4 workers...
DONE *  [core boot]     All workers started
DONE *  [core boot]     Now listening on port 443 on https://192.168.1.98
{ QueryFailedError: duplicate key value violates unique constraint "PK_c4c17a6c2bd7651338b60fc590b"
    at new QueryFailedError (/etc/misskey/node_modules/typeorm/error/QueryFailedError.js:11:28)
    at Query.<anonymous> (/etc/misskey/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:174:38)
    at Query.handleError (/etc/misskey/node_modules/pg/lib/query.js:142:17)
    at Connection.connectedErrorMessageHandler (/etc/misskey/node_modules/pg/lib/client.js:183:17)
    at Connection.emit (events.js:193:13)
    at Socket.<anonymous> (/etc/misskey/node_modules/pg/lib/connection.js:125:12)
    at Socket.emit (events.js:193:13)
    at addChunk (_stream_readable.js:296:12)
    at readableAddChunk (_stream_readable.js:277:11)
    at Socket.Readable.push (_stream_readable.js:232:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:150:17)
  message:
   'duplicate key value violates unique constraint "PK_c4c17a6c2bd7651338b60fc590b"',
  name: 'QueryFailedError',
  length: 219,
  severity: 'ERROR',
  code: '23505',
  detail: 'Key (id)=(x) already exists.',
  hint: undefined,
  position: undefined,
  internalPosition: undefined,
  internalQuery: undefined,
  where: undefined,
  schema: 'public',
  table: 'meta',
  column: undefined,
  dataType: undefined,
  constraint: 'PK_c4c17a6c2bd7651338b60fc590b',
  file: 'nbtinsert.c',
  line: '434',
  routine: '_bt_check_unique',

Any comment would still come in handy. Until then: Keep up the good work with this great project, which happens to be built on a not less great library (Vue).

@rinsuki
Copy link
Contributor

rinsuki commented May 11, 2019

npm says "found X vulnerabilities"

some old npm packages, may have vulnerabilities.
however, for this project only, there is no problem because the vulnerable package is only using at build time.
but, this message makes people uneasy.I would like to remove it if possible in the future.

error key value violates unique constraint

If you not stored any data to database, try re-create database.

@acid-chicken
Copy link
Member

acid-chicken commented May 12, 2019

the vulnerable package is only using at build time.

No, all of the Misskey instance owners have to fix these vulnerabilities manually (because some polluted packages used not only on building but also on hosting).
If you are using yarn, fixing vulnerabilities is not difficult work (just update some rows in yarn.lock, e.g. misskeyci-docker's yarn.lock).
However updating package-lock.json is so troublesome (I gave up keeping up with dependency updates).
So I proposed to @syuilo that adding yarn with yarn.lock to the environment dependencies but it was rejected (See https://github.com/syuilo/misskey/pull/4623#issuecomment-478549602).

@JLKM JLKM closed this as completed May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️bug? This might be a bug
Projects
None yet
Development

No branches or pull requests

5 participants