Skip to content

Outline update failed #3831

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

Closed
1 of 2 tasks
ckambler opened this issue Apr 11, 2025 · 9 comments Β· Fixed by #3895
Closed
1 of 2 tasks

Outline update failed #3831

ckambler opened this issue Apr 11, 2025 · 9 comments Β· Fixed by #3895
Labels
bug Something isn't working

Comments

@ckambler
Copy link

βœ… Have you read and understood the above guidelines?

yes

πŸ“œ What is the name of the script you are using?

Outline

πŸ“‚ What was the exact command used to execute the script?

"update" or "bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/outline.sh)"" from within the Outline LXC

πŸ“ Provide a clear and concise description of the issue.

I installed the Outline wiki LXC using all default settings. Updated the .env file to use my OIDC auth details, started making a wiki, everything worked great! When I installed it originally, it was on v0.82.0. They just pushed a v0.83.0 update, so I tried to update using the "update" command from within the LXC's shell, as instructed on the Outline page on helper-scripts. The update script recognizes there's a new version, but then fails before finishing. Now the original install no longer works, I get a connected refused error.

βš™οΈ What settings are you using?

  • Default Settings
  • Advanced Settings

πŸ–₯️ Which Linux distribution are you using?

Debian 12

πŸ”„ Steps to reproduce the issue.

  1. install Outline to a new LXC using the provided script (originally installed with Outline v0.82.0)
  2. run the update command at a later date to update to v0.83.0 (I originally ran it in normal mode, but after the first failure restored a backup, and ran update in verbose mode)
  3. update fails before completing, original install no longer works. Have to restore a backup to restore functionality

❌ Paste the full error output (if available).

βœ”οΈ Services Stopped
yarn install v1.22.22
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "[email protected]" is incompatible with requested version "debug@^3.1.0"
warning Resolution field "[email protected]" is incompatible with requested version "debug@^2.6.8"
warning Resolution field "[email protected]" is incompatible with requested version "qs@^6.11.0"
warning Resolution field "[email protected]" is incompatible with requested version "debug@^3.1.0"
warning Resolution field "[email protected]" is incompatible with requested version "debug@^4.3.6"
warning Resolution field "[email protected]" is incompatible with requested version "prosemirror-transform@^1.10.2"
warning Resolution field "[email protected]" is incompatible with requested version "prosemirror-transform@^1.10.2"
warning Resolution field "[email protected]" is incompatible with requested version "prismjs@~1.27.0"
warning Resolution field "[email protected]" is incompatible with requested version "[email protected]"
warning Resolution field "[email protected]" is incompatible with requested version "debug@^4.3.7"
warning Resolution field "[email protected]" is incompatible with requested version "debug@^3.2.7"
warning Resolution field "[email protected]" is incompatible with requested version "debug@^3.2.7"
warning Resolution field "[email protected]" is incompatible with requested version "debug@^3.2.7"
warning Resolution field "[email protected]" is incompatible with requested version "debug@^2.2.0"
[3/5] Fetching packages...
β ‹ Updating Outline to 0.83.0[######################-------------------------------------------------------------------------------------------------------------
[4/5] Linking dependencies...
warning " > @benrbray/[email protected]" has incorrect peer dependency "katex@^0.13.0".
warning " > @bull-board/[email protected]" has unmet peer dependency "@bull-board/[email protected]".
warning " > @vitejs/[email protected]" has incorrect peer dependency "vite@^4.1.0-beta.0".
warning "dd-trace > @opentelemetry/[email protected]" has incorrect peer dependency "@opentelemetry/api@>=1.0.0 <1.5.0".
warning " > [email protected]" has incorrect peer dependency "react@^16.8.0 || 16.9.0-alpha.0".
warning "mobx-react > [email protected]" has incorrect peer dependency "react@^16.8.0".
warning " > [email protected]" has incorrect peer dependency "react@^18.0.0 || ^19.0.0 || ^19.0.0-rc".
warning " > [email protected]" has incorrect peer dependency "react-dom@^18.0.0 || ^19.0.0 || ^19.0.0-rc".
warning " > [email protected]" has unmet peer dependency "react-is@>= 16.8.0".
warning " > [email protected]" has unmet peer dependency "workbox-build@^7.1.0".
warning " > [email protected]" has unmet peer dependency "workbox-window@^7.1.0".
warning "vite-plugin-pwa > workbox-build > @rollup/[email protected]" has incorrect peer dependency "rollup@^1.20.0||^2.0.0".
warning "vite-plugin-pwa > workbox-build > @rollup/[email protected]" has incorrect peer dependency "rollup@^1.20.0 || ^2.0.0".
warning "vite-plugin-pwa > workbox-build > @rollup/plugin-babel > @rollup/[email protected]" has incorrect peer dependency "rollup@^1.20.0||^2.0.0".
warning Workspaces can only be enabled in private projects.
[5/5] Building fresh packages...
$ yarn patch-package
yarn run v1.22.22
$ /opt/outline/node_modules/.bin/patch-package
β ™ Updating Outline to 0.83.0patch-package 7.0.2
Applying patches...
@benrbray/[email protected] βœ”
Done in 0.21s.
$ husky install
fatal: not a git repository (or any of the parent directories): .git
husky - git command not found, skipping install
Done in 33.87s.
yarn run v1.22.22
$ yarn clean && yarn vite:build && yarn build:i18n && yarn build:server
$ rimraf build
$ VITE_CJS_IGNORE_WARNING=true vite build
β Ό Updating Outline to 0.83.0NODE_ENV=production is not supported in the .env file. Only NODE_ENV=development is supported to create a development build of your project. If you need to set process.env.NODE_ENV, you can set it in the Vite config instead.
β ΄ Updating Outline to 0.83.0vite v5.4.17 building for production...
node_modules/sonner/dist/index.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/sonner/dist/index.mjs" was ignored.
node_modules/vaul/dist/index.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/vaul/dist/index.mjs" was ignored.
node_modules/@radix-ui/react-select/dist/index.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@radix-ui/react-select/dist/index.mjs" was ignored.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/opt/outline/node_modules/mime-types/index.js". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
node_modules/@radix-ui/react-dialog/dist/index.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@radix-ui/react-dialog/dist/index.mjs" was ignored.
node_modules/@radix-ui/react-collection/dist/index.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@radix-ui/react-collection/dist/index.mjs" was ignored.
node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs" was ignored.
node_modules/@radix-ui/react-focus-guards/dist/index.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@radix-ui/react-focus-guards/dist/index.mjs" was ignored.
node_modules/@radix-ui/react-focus-scope/dist/index.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@radix-ui/react-focus-scope/dist/index.mjs" was ignored.
node_modules/@radix-ui/react-popper/dist/index.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@radix-ui/react-popper/dist/index.mjs" was ignored.
node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-portal/dist/index.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-portal/dist/index.mjs" was ignored.
node_modules/react-medium-image-zoom/dist/index.js (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/react-medium-image-zoom/dist/index.js" was ignored.
node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs" was ignored.
node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-scope/dist/index.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-scope/dist/index.mjs" was ignored.
node_modules/@radix-ui/react-presence/dist/index.mjs (1:0) Module level directives cause errors when bundled, "use client" in "node_modules/@radix-ui/react-presence/dist/index.mjs" was ignored.
βœ“ 7278 modules transformed.
x Build failed in 21.33s
error during build:
[vite-plugin-pwa:build] "ConditionalFade" is not exported by "app/components/Fade.ts", imported by "app/scenes/Settings/Groups.tsx".
file: /opt/outline/app/scenes/Settings/Groups.tsx:13:9

11: import Button from "/components/Button";
12: import Empty from "
/components/Empty";
13: import { ConditionalFade } from "/components/Fade";
^
14: import Heading from "
/components/Heading";
15: import InputSearch from "~/components/InputSearch";

at error (file:///opt/outline/node_modules/rollup/dist/es/shared/parseAst.js:337:30)
at Module.error (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:12737:16)
at Module.traceVariable (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:13178:29)
at ModuleScope.findVariable (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:11591:39)
at FunctionScope.findVariable (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:5897:38)
at FunctionBodyScope.findVariable (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:5897:38)
at Identifier.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:7179:40)
at CallExpression.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:4621:28)
at CallExpression.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:8812:15)
at ArrayExpression.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:4621:28)
at Property.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:4625:23)
at ObjectExpression.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:4621:28)
at CallExpression.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:4621:28)
at CallExpression.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:8812:15)
at ConditionalExpression.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:4625:23)
at ArrayExpression.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:4621:28)
at Property.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:4625:23)
at ObjectExpression.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:4621:28)
at CallExpression.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:4621:28)
at CallExpression.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:8812:15)
at ReturnStatement.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:4625:23)
at BlockStatement.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:4621:28)
at FunctionDeclaration.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:4625:23)
at Program.bind (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:4621:28)
at Module.bindReferences (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:12733:18)
at Graph.sortModules (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:18894:20)
at Graph.build (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:18799:14)
at async file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:19439:13
at async catchUnfinishedHookActions (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:18951:16)
at async rollupInternal (file:///opt/outline/node_modules/rollup/dist/es/shared/node-entry.js:19434:5)
at async build (file:///opt/outline/node_modules/vite/dist/node/chunks/dep-Dyl6b77n.js:65631:14)
at async CAC.<anonymous> (file:///opt/outline/node_modules/vite/dist/node/cli.js:829:5)

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
β ¦ Updating Outline to 0.83.0
[ERROR] in line 45: exit code 0: while executing command $STD yarn build

πŸ–ΌοΈ Additional context (optional).

No response

@ckambler ckambler added the bug Something isn't working label Apr 11, 2025
@prettysunflower
Copy link

So... outline/outline#8594 removed the app/components/Fade.ts, and replaced it by app/components/Fade.tsx. Because the script copy the new version without removing files that were removed by the project, the app is importing the Fade.ts instead of the Fade.tsx.

You need to remove the file in /opt/outline/app/components/Fade.ts before running the update command to fix the issue.

prettysunflower added a commit to prettysunflower/ProxmoxVE that referenced this issue Apr 11, 2025
@MickLesk
Copy link
Member

Isnt better to remove all expect userdata?

@prettysunflower
Copy link

Isnt better to remove all expect userdata?

I mean... possibly? I think we can remove everything in /opt/outline with the exception of .env file (if I understand the docker-compose.yml that Outline provides, and assuming that Outline stores things outside of /opt/outline, like in /var/lib/outline), but I'm actually unsure, so... I (or someone else) would need to test that to make sure we're not breaking things~

@ckambler
Copy link
Author

deleting just that one file, "Fade.ts" before running update fixed the problem! Thanks very much for the help.

@MickLesk
Copy link
Member

Its just an dirty Bugfix. The right way is to remove all. But i dont know this App

@tremor021
Copy link
Member

#3845 (comment)

@Lyushen
Copy link

Lyushen commented Apr 15, 2025

βœ“ 7278 modules transformed.
β ‡ Updating Outline to 0.83.0(webpackStats plugin) Stats saved to /opt/outline/build/app/webpack-stats.json (579.25KiB)
β ‡ Updating Outline to 0.83.0Killed
error Command failed with exit code 137.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 137.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

[ERROR] in line 45: exit code 0: while executing command $STD yarn build

Removed /opt/outline/app/components/Fade.ts and the update still failed. Any suggestions?

@MickLesk
Copy link
Member

can anyone ask in outline repo where userdata stored, or its possible to remove the whole folder? i dont use this app

@tremor021 tremor021 linked a pull request Apr 15, 2025 that will close this issue
12 tasks
@tremor021
Copy link
Member

Everything should be fixed after #3895 merges. We will completely remove the app directory, backup the config, install new version from source, restore config.

All data is in postgres database, so this shouldn't affect it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants