Error during update from 6.2 to 6.3

  • Used Zammad version: 6.2 → 6.3
  • Used Zammad installation type: package
  • Operating system: debian 12
  • Browser + version:

Expected behavior:

  • Running the update without errors

Actual behavior:

  • During the update i get the following error:
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning "@graphql-codegen/cli > @whatwg-node/fetch > @whatwg-node/node-fetch@0.3.0" has unmet peer dependency "@types/node@^18.0.6".
warning "@graphql-codegen/cli > @graphql-tools/code-file-loader > @graphql-tools/graphql-tag-pluck > @babel/plugin-syntax-import-assertions@7.22.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > @testing-library/user-event@14.5.2" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning " > stylelint-config-prettier@9.0.5" has incorrect peer dependency "stylelint@>= 11.x < 15".
warning " > vite-plugin-pwa@0.19.7" has unmet peer dependency "workbox-build@^7.0.0".
warning Workspaces can only be enabled in private projects.
[5/5] Building fresh packages...

Building with Vite ⚡️
vite v5.2.6 building for production...
transforming...
✓ 5 modules transformed.
x Build failed in 742ms
error during build:
TypeError: [vite-plugin-pwa:build] compilerCore.isBuiltInType is not a function
file: /opt/zammad/app/frontend/apps/mobile/AppMobile.vue
    at Object.isBuiltInComponent (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js:2380:22)
    at isComponent (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:2619:152)
    at onCloseTag (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:2551:16)
    at Object.onclosetag (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:2186:13)
    at Tokenizer.stateInClosingTagName (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:749:16)
    at Tokenizer.stateInRCDATA (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:592:14)
    at Tokenizer.parse (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:1055:16)
    at Object.baseParse (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:2820:13)
    at Object.parse (/opt/zammad/node_modules/@vue/compiler-sfc/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js:2956:23)
    at Object.parse$2 [as parse] (/opt/zammad/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js:1851:24)
    at createDescriptor (file:///opt/zammad/node_modules/@vitejs/plugin-vue/dist/index.mjs:74:43)
    at transformMain (file:///opt/zammad/node_modules/@vitejs/plugin-vue/dist/index.mjs:2367:34)
    at Object.transform (file:///opt/zammad/node_modules/@vitejs/plugin-vue/dist/index.mjs:2910:16)
    at file:///opt/zammad/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:19563:40

pid 488796 exit 1
Build with Vite failed! ❌

Is this relevant in any way? Zammad seems to run fine.

1 Like

I’m facing the same error, too.

After upgrading my debian-package installation to a new version, I always have to change one line in a template (old story), but this time the vite build (started via zammad run rake assets:precompile) fails with this error.

Hm…

I have been running an update on a second instance without any errors. The only visible deviation for me is, that the instance with the error has an extra package installed.

I had a similar problem when I did the Debian server updates. (Zammad update 6.2 → 6.3) Afterwards Zammad did not start anymore, there was an error on the Zammad page. (“Something went wrong”)
I was able to solve the problem by running “apt upgrade”

What’s the difference between those two instances apart the package?
Have they seen develop at some point at any chance?

On the faulty instance i have a self written package for providing sms support for a placetel account.

The other difference is, that i did not stop the elasticsearch service during the upgrade on the faulty machine. Actually there is a new package available. I will look, if the update runs without problems.

1 Like

The update

zammad/unbekannt 6.3.0-1713769767.46bfcf12.jammy amd64 [aktualisierbar von: 6.3.0-1713527245.bf4df2a1.jammy]

runs at the same error. On the working instance i cant remeber that there was a part with

Building with Vite ⚡️
vite v5.2.6 building for production...
transforming...
✓ 5 modules transformed.

How can i check if vite build is on both instances respectively for what is this “Vite build”?

You can try to run rm -rf /opt/zammad/node_modules/

ONCE on your system. It should not be required all the time and only if the vite process fails. Rebuilding the assets is necessary.

4 Likes

What to do afterwards?

Running zammad run rails assets:precompile also fails, as vite is not available anymore.
Doing a local re-install of vite does also not work:

1 verbose cli [ '/opt/zammad/bin/node', '/usr/bin/npm', 'ci' ]
2 info using npm@6.14.16
3 info using node@v20.9.0
4 verbose npm-session 6209944c57c198b1
5 info prepare initializing installer
6 verbose prepare starting workers
7 verbose prepare installation prefix: /opt/zammad
8 verbose prepare using package-lock.json
9 warn prepare removing existing node_modules/ before installation
10 verbose checkLock verifying package-lock data
11 verbose teardown shutting down workers.
12 info teardown Done in 0.001s
13 verbose stack Error: cipm can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
13 verbose stack
13 verbose stack
13 verbose stack Missing: @apollo/client@^3.9.9
13 verbose stack Missing: @formkit/core@^1.6.0
13 verbose stack Missing: @formkit/dev@^1.6.0
13 verbose stack Missing: @formkit/i18n@^1.6.0
13 verbose stack Missing: @formkit/inputs@^1.6.0
13 verbose stack Missing: @formkit/rules@^1.6.0
13 verbose stack Missing: @formkit/tailwindcss@^1.6.0
13 verbose stack Missing: @formkit/themes@^1.6.0
13 verbose stack Missing: @formkit/utils@^1.6.0
13 verbose stack Missing: @formkit/validation@^1.6.0
13 verbose stack Missing: @formkit/vue@^1.6.0
13 verbose stack Missing: @github/webauthn-json@^2.1.1

initially, I had the same error as mentioned above:

[vite-plugin-pwa:build] compilerCore.isBuiltInType is not a function
...

Update was running on Ubuntu Host.
prev Version: 6.2.0-1712931839.b27a0d24.focal
new version: 6.3.0-1713783379.979314a7.focal

It’s not clear what you did sorry I cannot follow that wild command picks.

Thanks for this hint.

After removing node_modules, zammad run rake assets:precompile finishes successful again.

1 Like

For those who struggle more, the following nuke may be required:

rm -rf /opt/zammad/node_modules/
zammad run yarn cache clean
zammad run rake vite:clobber
zammad run rake assets:precompile

This works. Running zammad run rake assets:precompile after removing the folder throws a few warnings, but no errors.

root@helpdesk:~# zammad run rake assets:precompile
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning "@graphql-codegen/cli > @whatwg-node/fetch > @whatwg-node/node-fetch@0.3.0" has unmet peer dependency "@types/node@^18.0.6".
warning "@graphql-codegen/cli > @graphql-tools/code-file-loader > @graphql-tools/graphql-tag-pluck > @babel/plugin-syntax-import-assertions@7.22.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > @testing-library/user-event@14.5.2" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning " > stylelint-config-prettier@9.0.5" has incorrect peer dependency "stylelint@>= 11.x < 15".
warning " > vite-plugin-pwa@0.19.7" has unmet peer dependency "workbox-build@^7.0.0".
warning Workspaces can only be enabled in private projects.
[5/5] Building fresh packages...
Done in 23.73s.
Building with Vite ⚡️
vite v5.2.6 building for production...
transforming...
✓ 2229 modules transformed.

The following apt upgrade runs without any errors.

1 Like

following this worked for 2/3 Hosts - One still has an error, full output here:

zammad@support:~$ zammad run rake assets:precompile^C
zammad@support:~$ rm -rf /opt/zammad/node_modules/
zammad@support:~$ zammad run yarn cache clean

yarn cache v1.22.19
success Cleared cache.
Done in 0.03s.
zammad@support:~$
zammad@support:~$ zammad run rake vite:clobber
Removed vite cache and output dirs:
	/opt/zammad/public/assets/frontend/vite
	/opt/zammad/public/vite-ssr
	/opt/zammad/tmp/cache/vite
	/opt/zammad/node_modules/.vite
zammad@support:~$ zammad run rake assets:precompile
npx: installed 1 in 0.987s
npm ERR! cipm can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR!
npm ERR!
npm ERR! Missing: @apollo/client@^3.9.9
npm ERR! Missing: @formkit/core@^1.6.0
npm ERR! Missing: @formkit/dev@^1.6.0
npm ERR! Missing: @formkit/i18n@^1.6.0
npm ERR! Missing: @formkit/inputs@^1.6.0
npm ERR! Missing: @formkit/rules@^1.6.0
npm ERR! Missing: @formkit/tailwindcss@^1.6.0
npm ERR! Missing: @formkit/themes@^1.6.0
npm ERR! Missing: @formkit/utils@^1.6.0
npm ERR! Missing: @formkit/validation@^1.6.0
npm ERR! Missing: @formkit/vue@^1.6.0
npm ERR! Missing: @github/webauthn-json@^2.1.1
npm ERR! Missing: @rails/actioncable@^7.0.8
npm ERR! Missing: @sinonjs/fake-timers@^11.2.2
npm ERR! Missing: @tiptap/core@^2.2.4
npm ERR! Missing: @tiptap/extension-blockquote@^2.2.4
npm ERR! Missing: @tiptap/extension-character-count@^2.2.4
npm ERR! Missing: @tiptap/extension-hard-break@^2.2.4
npm ERR! Missing: @tiptap/extension-image@^2.2.4
npm ERR! Missing: @tiptap/extension-link@^2.2.4
npm ERR! Missing: @tiptap/extension-list-item@^2.2.4
npm ERR! Missing: @tiptap/extension-mention@^2.2.4
npm ERR! Missing: @tiptap/extension-ordered-list@^2.2.4
npm ERR! Missing: @tiptap/extension-paragraph@^2.2.4
npm ERR! Missing: @tiptap/extension-strike@^2.2.4
npm ERR! Missing: @tiptap/extension-underline@^2.2.4
npm ERR! Missing: @tiptap/pm@^2.2.4
npm ERR! Missing: @tiptap/starter-kit@^2.2.4
npm ERR! Missing: @tiptap/suggestion@^2.2.4
npm ERR! Missing: @tiptap/vue-3@^2.2.4
npm ERR! Missing: @vue/apollo-composable@^4.0.2
npm ERR! Missing: @vueuse/core@^10.9.0
npm ERR! Missing: @vueuse/router@^10.9.0
npm ERR! Missing: @vueuse/shared@^10.9.0
npm ERR! Missing: async-mutex@^0.5.0
npm ERR! Missing: daisyui@^4.7.3
npm ERR! Missing: flatpickr@^4.6.13
npm ERR! Missing: graphql@^16.8.1
npm ERR! Missing: graphql-ruby-client@^1.13.3
npm ERR! Missing: graphql-tag@^2.12.6
npm ERR! Missing: linkify-string@^4.1.3
npm ERR! Missing: linkifyjs@^4.1.3
npm ERR! Missing: lodash-es@^4.17.21
npm ERR! Missing: loglevel@^1.9.1
npm ERR! Missing: mitt@^3.0.1
npm ERR! Missing: pinia@^2.1.7
npm ERR! Missing: tippy.js@^6.3.7
npm ERR! Missing: tiptap-text-direction@^0.3.1
npm ERR! Missing: ua-parser-js@^1.0.37
npm ERR! Missing: uuid@^9.0.1
npm ERR! Missing: vue@^3.4.21
npm ERR! Missing: vue-advanced-cropper@^2.8.8
npm ERR! Missing: vue-easy-lightbox@1.19.0
npm ERR! Missing: vue-router@^4.3.0
npm ERR! Missing: vue3-draggable-resizable@^1.6.5
npm ERR! Missing: vuedraggable@^4.1.0
npm ERR! Missing: workbox-core@^7.0.0
npm ERR! Missing: workbox-precaching@^7.0.0
npm ERR! Missing: workbox-window@^7.0.0
npm ERR! Missing: @faker-js/faker@^8.4.1
npm ERR! Missing: @graphql-codegen/cli@^5.0.2
npm ERR! Missing: @graphql-codegen/introspection@^4.0.3
npm ERR! Missing: @graphql-codegen/near-operation-file-preset@^3.0.0
npm ERR! Missing: @graphql-codegen/typescript@^4.0.6
npm ERR! Missing: @graphql-codegen/typescript-operations@^4.2.0
npm ERR! Missing: @graphql-codegen/typescript-vue-apollo@^4.1.1
npm ERR! Missing: @pinia/testing@^0.1.3
npm ERR! Missing: @testing-library/jest-dom@^6.4.2
npm ERR! Missing: @testing-library/user-event@^14.5.2
npm ERR! Missing: @testing-library/vue@^8.0.3
npm ERR! Missing: @types/lodash-es@^4.17.12
npm ERR! Missing: @types/rails__actioncable@^6.1.10
npm ERR! Missing: @types/sinonjs__fake-timers@^8.1.5
npm ERR! Missing: @types/ua-parser-js@^0.7.39
npm ERR! Missing: @types/uuid@^9.0.8
npm ERR! Missing: @typescript-eslint/eslint-plugin@^7.3.1
npm ERR! Missing: @typescript-eslint/parser@^7.3.1
npm ERR! Missing: @vitejs/plugin-vue@^5.0.4
npm ERR! Missing: @vue/eslint-config-prettier@^9.0.0
npm ERR! Missing: @vue/eslint-config-typescript@^13.0.0
npm ERR! Missing: @vue/test-utils@^2.4.5
npm ERR! Missing: autoprefixer@^10.4.18
npm ERR! Missing: eslint@^8.57.0
npm ERR! Missing: eslint-config-airbnb-base@^15.0.0
npm ERR! Missing: eslint-config-prettier@^9.1.0
npm ERR! Missing: eslint-import-resolver-alias@^1.1.2
npm ERR! Missing: eslint-import-resolver-typescript@^3.6.1
npm ERR! Missing: eslint-plugin-import@^2.29.1
npm ERR! Missing: eslint-plugin-prettier@^5.1.3
npm ERR! Missing: eslint-plugin-prettier-vue@^5.0.0
npm ERR! Missing: eslint-plugin-security@^2.1.1
npm ERR! Missing: eslint-plugin-sonarjs@^0.24.0
npm ERR! Missing: eslint-plugin-vue@^9.23.0
npm ERR! Missing: eslint-plugin-zammad@file:.eslint-plugin-zammad
npm ERR! Missing: jsdom@^24.0.0
npm ERR! Missing: minimatch@^9.0.3
npm ERR! Missing: mock-apollo-client@^1.2.1
npm ERR! Missing: postcss-html@^1.6.0
npm ERR! Missing: prettier@3.2.5
npm ERR! Missing: prettier-plugin-tailwindcss@^0.5.12
npm ERR! Missing: regenerator-runtime@^0.14.1
npm ERR! Missing: sass@^1.72.0
npm ERR! Missing: stylelint@^16.2.1
npm ERR! Missing: stylelint-config-prettier@^9.0.5
npm ERR! Missing: stylelint-config-recommended-vue@^1.5.0
npm ERR! Missing: stylelint-config-standard@^36.0.0
npm ERR! Missing: stylelint-config-standard-scss@^13.0.0
npm ERR! Missing: stylelint-prettier@^5.0.0
npm ERR! Missing: stylelint-scss@^6.2.1
npm ERR! Missing: svg-baker@^1.7.0
npm ERR! Missing: svgo@^3.2.0
npm ERR! Missing: tailwindcss@^3.4.1
npm ERR! Missing: tailwindcss-unimportant@^2.1.1
npm ERR! Missing: timezone-mock@^1.3.6
npm ERR! Missing: type-fest@^4.12.0
npm ERR! Missing: typescript@^5.4.2
npm ERR! Missing: vite-plugin-pwa@^0.19.7
npm ERR! Missing: vite-plugin-ruby@^5.0.0
npm ERR! Missing: vitest@^1.4.0
npm ERR! Missing: vitest-axe@^0.1.0
npm ERR! Missing: vue-tsc@^2.0.6
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/zammad/.npm/_logs/2024-04-24T09_06_28_813Z-debug.log
Building with Vite ⚡️
yarn run v1.22.19
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command "vite" not found.

pid 1768657 exit 1
Build with Vite failed! ❌

Current version here is: 6.3.0-1713783379.979314a7.focal
I’ve seen that there is an update available: 6.3.0-1713882094.d1107375.focal

Maybe it includes a fix for that?

@MrGeneration this is still failing also with the new 6.3.0-1714376259.fc028a09.focal version of Zammad (Ubuntu 20.04 LTS installation).

Begin of error message

0 info it worked if it ends with ok
1 verbose cli [ '/opt/zammad/bin/node', '/usr/bin/npm', 'ci' ]
2 info using npm@6.14.16
3 info using node@v20.9.0
4 verbose npm-session 203abb2f78175687
5 info prepare initializing installer
6 verbose prepare starting workers
7 verbose prepare installation prefix: /opt/zammad
8 verbose prepare using package-lock.json
9 verbose checkLock verifying package-lock data
10 verbose teardown shutting down workers.
11 info teardown Done in 0s
12 verbose stack Error: cipm can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm insta
ll` before continuing.
12 verbose stack
12 verbose stack
12 verbose stack Missing: @apollo/client@^3.9.9
12 verbose stack Missing: @formkit/core@^1.6.0
12 verbose stack Missing: @formkit/dev@^1.6.0
12 verbose stack Missing: @formkit/i18n@^1.6.0
12 verbose stack Missing: @formkit/inputs@^1.6.0
12 verbose stack Missing: @formkit/rules@^1.6.0
12 verbose stack Missing: @formkit/tailwindcss@^1.6.0
12 verbose stack Missing: @formkit/themes@^1.6.0
12 verbose stack Missing: @formkit/utils@^1.6.0
12 verbose stack Missing: @formkit/validation@^1.6.0
12 verbose stack Missing: @formkit/vue@^1.6.0
12 verbose stack Missing: @github/webauthn-json@^2.1.1
12 verbose stack Missing: @rails/actioncable@^7.0.8
12 verbose stack Missing: @sinonjs/fake-timers@^11.2.2
12 verbose stack Missing: @tiptap/core@^2.2.4
12 verbose stack Missing: @tiptap/extension-blockquote@^2.2.4
12 verbose stack Missing: @tiptap/extension-character-count@^2.2.4
12 verbose stack Missing: @tiptap/extension-hard-break@^2.2.4
12 verbose stack Missing: @tiptap/extension-image@^2.2.4
12 verbose stack Missing: @tiptap/extension-link@^2.2.4
12 verbose stack Missing: @tiptap/extension-list-item@^2.2.4
12 verbose stack Missing: @tiptap/extension-mention@^2.2.4
12 verbose stack Missing: @tiptap/extension-ordered-list@^2.2.4
12 verbose stack Missing: @tiptap/extension-paragraph@^2.2.4
12 verbose stack Missing: @tiptap/extension-strike@^2.2.4
12 verbose stack Missing: @tiptap/extension-underline@^2.2.4
12 verbose stack Missing: @tiptap/pm@^2.2.4

I believe the customer has an active support subscription, will check and open a ticket if still the case.

If you have a support contract, the best way is always to create a support ticket. I can’t say much about above errors you provided I am afraid.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.