I try update my misskey instance but fail on NODE_ENV=production yarn build ...
Update \o/
On Update
./misskey_update.sh
<13>Nov 11 11:03:03 misskey_update.sh: [INFO] Download
HEAD is now at 247bd43ae 12.55.0
Already on 'master'
Your branch is up to date with 'origin/master'.
Already up to date.
<13>Nov 11 11:03:04 misskey_update.sh: [INFO] Install and update dependencies
yarn install v1.22.5
[1/4] Resolving packages...
warning Resolution field "[email protected]" is incompatible with requested version "yargs-parser@^5.0.0"
warning Resolution field "[email protected]" is incompatible with requested version "node-forge@^0.9.1"
success Already up-to-date.
Done in 1.18s.
<13>Nov 11 11:03:05 misskey_update.sh: [INFO] Build assets
yarn run v1.22.5
$ webpack && gulp build
37% building 1/2 entries 2290/2700 dependencies 330/1322 modulesBrowserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
99% done plugins webpack-cli[webpack-cli] Compilation finished
assets by chunk 3.79 MiB (id hint: vendors)
assets by status 3.4 MiB [big]
asset 849.12.55.0.js 1.94 MiB [compared for emit] [minimized] [big] (id hint: vendors)
asset 2212.12.55.0.js 600 KiB [compared for emit] [minimized] [big] (id hint: vendors)
asset 5927.12.55.0.js 458 KiB [compared for emit] [minimized] [big] (id hint: vendors) 1 related asset
asset 1861.12.55.0.js 428 KiB [compared for emit] [minimized] [big] (id hint: vendors) 1 related asset
9 assets
186 assets
orphan modules 1.79 MiB [orphan] 676 modules
runtime modules 6.25 KiB 13 modules
modules by path ./src/ 2.96 MiB
modules by path ./src/client/ 2.75 MiB 1002 modules
modules by path ./src/misc/ 12.8 KiB
modules by path ./src/misc/*.ts 12.5 KiB 6 modules
modules by path ./src/misc/acct/*.ts 298 bytes 2 modules
modules by path ./src/prelude/*.ts 3.89 KiB 3 modules
4 modules
modules by path ./node_modules/ 7.82 MiB
javascript modules 7.79 MiB 312 modules
json modules 29.4 KiB
./node_modules/@syuilo/aiscript/package.json 941 bytes [built] [code generated]
./node_modules/markdown-it/node_modules/entities/lib/maps/entities.json 28.4 KiB [built] [code generated]
crypto (ignored) 15 bytes [optional] [built] [code generated]
WARNING in ./src/client/components/drive.file.vue?vue&type=script&lang=ts (./node_modules/ts-loader/index.js??clonedRuleSet-7.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/client/components/drive.file.vue?vue&type=script&lang=ts) 122:12-27
export 'updateAvatar' (imported as 'os') was not found in '@/os' (possible exports: api, apiRequests, apiWithDialog, contextMenu, deckGlobalEvents, dialog, form, isMobile, modalMenu, pageWindow, pendingApiRequestsCount, pickEmoji, popup, popups, post, promiseDialog, selectDriveFile, selectDriveFolder, selectUser, sound, stream, success, upload, uploads, waiting, windows)
@ ./src/client/components/drive.file.vue?vue&type=script&lang=ts 1:0-200 1:0-200 1:201-390 1:201-390
@ ./src/client/components/drive.file.vue 2:0-61 3:0-56 3:0-56 6:0-13 7:0-16 9:15-21
@ ./node_modules/ts-loader/index.js??clonedRuleSet-7.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/client/components/drive.vue?vue&type=script&lang=ts 5:0-37 13:8-13
@ ./src/client/components/drive.vue?vue&type=script&lang=ts 1:0-195 1:0-195 1:196-380 1:196-380
@ ./src/client/components/drive.vue 2:0-56 3:0-51 3:0-51 6:0-13 7:0-16 9:15-21
@ ./node_modules/ts-loader/index.js??clonedRuleSet-7.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/client/pages/drive.vue?vue&type=script&lang=ts 3:0-44 7:8-14
@ ./src/client/pages/drive.vue?vue&type=script&lang=ts 1:0-195 1:0-195 1:196-380 1:196-380
@ ./src/client/pages/drive.vue 2:0-56 3:0-51 3:0-51 4:0-13 6:15-21
@ ./src/client/pages/ lazy ^\.\/.*\.vue$ namespace object ./drive.vue
@ ./src/client/router.ts 8:18-47
@ ./src/client/init.ts 12:0-34 141:8-14 148:6-20
WARNING in ./src/client/components/drive.file.vue?vue&type=script&lang=ts (./node_modules/ts-loader/index.js??clonedRuleSet-7.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/client/components/drive.file.vue?vue&type=script&lang=ts) 125:12-27
export 'updateBanner' (imported as 'os') was not found in '@/os' (possible exports: api, apiRequests, apiWithDialog, contextMenu, deckGlobalEvents, dialog, form, isMobile, modalMenu, pageWindow, pendingApiRequestsCount, pickEmoji, popup, popups, post, promiseDialog, selectDriveFile, selectDriveFolder, selectUser, sound, stream, success, upload, uploads, waiting, windows)
@ ./src/client/components/drive.file.vue?vue&type=script&lang=ts 1:0-200 1:0-200 1:201-390 1:201-390
@ ./src/client/components/drive.file.vue 2:0-61 3:0-56 3:0-56 6:0-13 7:0-16 9:15-21
@ ./node_modules/ts-loader/index.js??clonedRuleSet-7.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/client/components/drive.vue?vue&type=script&lang=ts 5:0-37 13:8-13
@ ./src/client/components/drive.vue?vue&type=script&lang=ts 1:0-195 1:0-195 1:196-380 1:196-380
@ ./src/client/components/drive.vue 2:0-56 3:0-51 3:0-51 6:0-13 7:0-16 9:15-21
@ ./node_modules/ts-loader/index.js??clonedRuleSet-7.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/client/pages/drive.vue?vue&type=script&lang=ts 3:0-44 7:8-14
@ ./src/client/pages/drive.vue?vue&type=script&lang=ts 1:0-195 1:0-195 1:196-380 1:196-380
@ ./src/client/pages/drive.vue 2:0-56 3:0-51 3:0-51 4:0-13 6:15-21
@ ./src/client/pages/ lazy ^\.\/.*\.vue$ namespace object ./drive.vue
@ ./src/client/router.ts 8:18-47
@ ./src/client/init.ts 12:0-34 141:8-14 148:6-20
WARNING in ./src/client/pages/instance/instance.vue?vue&type=script&lang=ts (./node_modules/ts-loader/index.js??clonedRuleSet-7.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/client/pages/instance/instance.vue?vue&type=script&lang=ts) 278:12-20
export 'modal' (imported as 'os') was not found in '@/os' (possible exports: api, apiRequests, apiWithDialog, contextMenu, deckGlobalEvents, dialog, form, isMobile, modalMenu, pageWindow, pendingApiRequestsCount, pickEmoji, popup, popups, post, promiseDialog, selectDriveFile, selectDriveFolder, selectUser, sound, stream, success, upload, uploads, waiting, windows)
@ ./src/client/pages/instance/instance.vue?vue&type=script&lang=ts 1:0-204 1:0-204 1:205-398 1:205-398
@ ./src/client/pages/instance/instance.vue 2:0-59 3:0-54 3:0-54 6:0-13 7:0-16 9:15-21
@ ./src/client/pages/ lazy ^\.\/.*\.vue$ namespace object ./instance/instance.vue
@ ./src/client/router.ts 8:18-47
@ ./src/client/init.ts 12:0-34 141:8-14 148:6-20
WARNING in ./src/client/pages/instance/instance.vue?vue&type=script&lang=ts (./node_modules/ts-loader/index.js??clonedRuleSet-7.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/client/pages/instance/instance.vue?vue&type=script&lang=ts) 291:12-20
export 'modal' (imported as 'os') was not found in '@/os' (possible exports: api, apiRequests, apiWithDialog, contextMenu, deckGlobalEvents, dialog, form, isMobile, modalMenu, pageWindow, pendingApiRequestsCount, pickEmoji, popup, popups, post, promiseDialog, selectDriveFile, selectDriveFolder, selectUser, sound, stream, success, upload, uploads, waiting, windows)
@ ./src/client/pages/instance/instance.vue?vue&type=script&lang=ts 1:0-204 1:0-204 1:205-398 1:205-398
@ ./src/client/pages/instance/instance.vue 2:0-59 3:0-54 3:0-54 6:0-13 7:0-16 9:15-21
@ ./src/client/pages/ lazy ^\.\/.*\.vue$ namespace object ./instance/instance.vue
@ ./src/client/router.ts 8:18-47
@ ./src/client/init.ts 12:0-34 141:8-14 148:6-20
WARNING in ./src/client/pages/instance/instance.vue?vue&type=script&lang=ts (./node_modules/ts-loader/index.js??clonedRuleSet-7.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/client/pages/instance/instance.vue?vue&type=script&lang=ts) 304:12-20
export 'modal' (imported as 'os') was not found in '@/os' (possible exports: api, apiRequests, apiWithDialog, contextMenu, deckGlobalEvents, dialog, form, isMobile, modalMenu, pageWindow, pendingApiRequestsCount, pickEmoji, popup, popups, post, promiseDialog, selectDriveFile, selectDriveFolder, selectUser, sound, stream, success, upload, uploads, waiting, windows)
@ ./src/client/pages/instance/instance.vue?vue&type=script&lang=ts 1:0-204 1:0-204 1:205-398 1:205-398
@ ./src/client/pages/instance/instance.vue 2:0-59 3:0-54 3:0-54 6:0-13 7:0-16 9:15-21
@ ./src/client/pages/ lazy ^\.\/.*\.vue$ namespace object ./instance/instance.vue
@ ./src/client/router.ts 8:18-47
@ ./src/client/init.ts 12:0-34 141:8-14 148:6-20
WARNING in ./node_modules/vue-prism-editor/dist/prismeditor.esm.js 36:31-41
export 'default' (imported as 'Vue') was not found in 'vue' (possible exports: BaseTransition, Comment, Fragment, KeepAlive, Static, Suspense, Teleport, Text, Transition, TransitionGroup, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compile, computed, createApp, createBlock, createCommentVNode, createHydrationRenderer, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, defineAsyncComponent, defineComponent, devtools, getCurrentInstance, getTransitionRawChildren, h, handleError, hydrate, initCustomFormatter, inject, isProxy, isReactive, isReadonly, isRef, isVNode, markRaw, mergeProps, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onUnmounted, onUpdated, openBlock, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, transformVNodeArgs, triggerRef, unref, useCssModule, useCssVars, useSSRContext, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers, withScopeId)
@ ./node_modules/ts-loader/index.js??clonedRuleSet-7.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/client/pages/scratchpad.vue?vue&type=script&lang=ts 8:0-47 19:8-19
@ ./src/client/pages/scratchpad.vue?vue&type=script&lang=ts 1:0-200 1:0-200 1:201-390 1:201-390
@ ./src/client/pages/scratchpad.vue 2:0-61 3:0-56 3:0-56 6:0-13 7:0-16 9:15-21
@ ./src/client/pages/ lazy ^\.\/.*\.vue$ namespace object ./scratchpad.vue
@ ./src/client/router.ts 8:18-47
@ ./src/client/init.ts 12:0-34 141:8-14 148:6-20
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
app.12.55.0.js (595 KiB)
1861.12.55.0.js (428 KiB)
2212.12.55.0.js (600 KiB)
849.12.55.0.js (1.94 MiB)
5927.12.55.0.js (458 KiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
app (595 KiB)
app.12.55.0.js
webpack 5.4.0 compiled with 8 warnings in 120463 ms
[11:05:15] Requiring external module ts-node/register
[11:05:20] Using gulpfile ~/misskey/gulpfile.ts
[11:05:20] Starting 'build'...
[11:05:20] Starting 'build:ts'...
[11:05:20] Starting 'build:copy'...
[11:05:20] Starting 'build:client'...
[11:05:20] Starting 'build:copy:views'...
[11:05:20] Starting 'build:copy:locales'...
[11:05:20] Starting 'build:copy:fonts'...
[11:05:20] Starting '<anonymous>'...
[11:05:20] Starting 'copy:client'...
[11:05:20] Starting 'copy:docs'...
[11:05:20] Finished 'build:copy:locales' after 82 ms
[11:05:21] Finished 'build:copy:views' after 1.03 s
[11:05:21] Finished 'copy:docs' after 1.12 s
[11:05:21] Finished '<anonymous>' after 1.12 s
[11:05:21] Finished 'build:copy:fonts' after 1.32 s
[11:05:21] Finished 'build:copy' after 1.54 s
[11:05:30] Finished 'copy:client' after 9.69 s
[11:05:30] Finished 'build:client' after 9.91 s
[11:05:39] Finished 'build:ts' after 19 s
[11:05:39] Finished 'build' after 19 s
Done in 153.23s.
<13>Nov 11 11:05:39 misskey_update.sh: [INFO] Migrate
yarn run v1.22.5
$ ts-node ./node_modules/typeorm/cli.js migration:run
query: SELECT * FROM "information_schema"."tables" WHERE "table_schema" = current_schema() AND "table_name" = 'migrations'
query: SELECT * FROM "migrations" "migrations" ORDER BY "id" DESC
No migrations are pending
Done in 27.20s.
<13>Nov 11 11:06:06 misskey_update.sh: [INFO] exiting misskey_update.sh
And journalctl -u misskey
Nov 11 10:54:12 Misskey systemd[1]: Started Misskey daemon.
Nov 11 10:54:13 Misskey misskey[651]: > [email protected] start /home/misskey/misskey
Nov 11 10:54:13 Misskey misskey[651]: > node ./index.js
Nov 11 10:54:14 Misskey misskey[651]: _____ _ _
Nov 11 10:54:14 Misskey misskey[651]: | |_|___ ___| |_ ___ _ _
Nov 11 10:54:14 Misskey misskey[651]: | | | | |_ -|_ -| '_| -_| | |
Nov 11 10:54:14 Misskey misskey[651]: |_|_|_|_|___|___|_,_|___|_ |
Nov 11 10:54:14 Misskey misskey[651]: v12.55.0 |___|
Nov 11 10:54:14 Misskey misskey[651]: Misskey is an open-source decentralized microblogging platform.
Nov 11 10:54:14 Misskey misskey[651]: If you like Misskey, please donate to support development. https://www.patreon.com/syuilo
Nov 11 10:54:14 Misskey misskey[651]: --- Misskey (PID: 724) ---
Nov 11 10:54:14 Misskey misskey[651]: INFO * [core boot] Welcome to Misskey!
Nov 11 10:54:14 Misskey misskey[651]: INFO * [core boot] Misskey v12.55.0
Nov 11 10:54:14 Misskey misskey[651]: INFO * [core boot env] NODE_ENV: production
Nov 11 10:54:14 Misskey misskey[651]: INFO * [core boot env] You do not have root privileges
Nov 11 10:54:14 Misskey misskey[651]: INFO * [core boot nodejs] Version 12.19.0
Nov 11 10:54:14 Misskey misskey[651]: DONE * [core boot config] Loaded
Nov 11 10:54:14 Misskey misskey[651]: INFO * [core boot db] Connecting...
Nov 11 10:54:15 Misskey misskey[651]: DONE * [core boot db] Connected: v11.9 (Debian 11.9-0+deb10u1)
Nov 11 10:54:15 Misskey misskey[651]: DONE * [core boot] Misskey initialized
Nov 11 10:54:15 Misskey misskey[651]: INFO * [core boot] Starting 1 worker...
Nov 11 10:54:18 Misskey misskey[651]: Error: Cannot find module './build/Release/re2'
Nov 11 10:54:18 Misskey misskey[651]: Require stack:
Nov 11 10:54:18 Misskey misskey[651]: - /home/misskey/misskey/node_modules/re2/re2.js
Nov 11 10:54:18 Misskey misskey[651]: - /home/misskey/misskey/built/misc/check-word-mute.js
Nov 11 10:54:18 Misskey misskey[651]: - /home/misskey/misskey/built/services/note/create.js
Nov 11 10:54:18 Misskey misskey[651]: - /home/misskey/misskey/built/remote/activitypub/models/note.js
Nov 11 10:54:18 Misskey misskey[651]: - /home/misskey/misskey/built/remote/activitypub/kernel/create/note.js
Nov 11 10:54:18 Misskey misskey[651]: - /home/misskey/misskey/built/remote/activitypub/kernel/create/index.js
Nov 11 10:54:18 Misskey misskey[651]: - /home/misskey/misskey/built/remote/activitypub/kernel/index.js
Nov 11 10:54:18 Misskey misskey[651]: - /home/misskey/misskey/built/remote/activitypub/perform.js
Nov 11 10:54:18 Misskey misskey[651]: - /home/misskey/misskey/built/queue/processors/inbox.js
Nov 11 10:54:18 Misskey misskey[651]: - /home/misskey/misskey/built/queue/index.js
Nov 11 10:54:18 Misskey misskey[651]: - /home/misskey/misskey/built/server/activitypub.js
Nov 11 10:54:18 Misskey misskey[651]: - /home/misskey/misskey/built/server/index.js
Nov 11 10:54:18 Misskey misskey[651]: - /home/misskey/misskey/built/boot/worker.js
Nov 11 10:54:18 Misskey misskey[651]: - /home/misskey/misskey/built/boot/index.js
And result is 502 page on my misskey instace.
I tried to go back (12.53.0) but I have the same error (i've remove nodejs folder and yarn.lock) but misskey is up.
Debian 11
Nginx
Yarn 1.22.5
Nodejs 12.19.0
Please try
rm -rf node_modules/re2
yarn --force
and rerun Misskey.
Yeah, thank you, Misskey is up.
Most helpful comment
Please try
and rerun Misskey.