tteck / Proxmox

Proxmox VE Helper-Scripts
https://Helper-Scripts.com
MIT License
13.72k stars 2.15k forks source link

Linkwarden failing to update to 2.5.0 #2612

Closed panzer-arc closed 7 months ago

panzer-arc commented 7 months ago

Please verify that you have read and understood the guidelines.

yes

A clear and concise description of the issue.

I received an error trying to update the the latest linkwarden. I'm not sure how to retrieve the log for the script, as I rebooted to see if the new version would still apply. I will try to run the command to retrieve the error log if you can supply it. The container at least still operates, but on the older version. I tried running the update script again but it tells me I'm at the latest version. The GUI does not reflect this updated version number.

Which Linux distribution are you employing?

Ubuntu 22.04

If relevant, including screenshots or a code block can be helpful in clarifying the issue.

No response

Please provide detailed steps to reproduce the issue.

Ran the following command in the relevant LXC: bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/linkwarden.sh)"

tteck commented 7 months ago

Which Linux distribution are you employing? Debian 12

Default distribution is Ubuntu 22.04

  • If the default Linux distribution is not adhered to, script support will be discontinued.
panzer-arc commented 7 months ago

Which Linux distribution are you employing? Debian 12

Default distribution is Ubuntu 22.04

  • If the default Linux distribution is not adhered to, script support will be discontinued.

My mistake. I am using the default distribution.

tteck commented 7 months ago

Creating a new LXC to test...

tteck commented 7 months ago
    __    _       __                           __
   / /   (_)___  / /___      ______ __________/ /__  ____
  / /   / / __ \/ //_/ | /| / / __ `/ ___/ __  / _ \/ __ \
 / /___/ / / / / ,<  | |/ |/ / /_/ / /  / /_/ /  __/ / / /
/_____/_/_/ /_/_/|_| |__/|__/\__,_/_/   \__,_/\___/_/ /_/

Using Advanced Settings
Using Distribution: ubuntu
Using ubuntu Version: 22.04
Using Container Type: 1
Using Root Password: Automatic Login
Container ID: 110
Using Hostname: linkwarden
Using Disk Size: 8
Allocated Cores: 2
Allocated RAM: 2048
Using Bridge: vmbr0
Using IP Address: dhcp
Using Gateway IP Address: Default
Using APT-Cacher IP Address: Default
Disable IPv6: yes
Using Interface MTU Size: Default
Using DNS Search Domain: Host
Using DNS Server IP Address: Host
Using MAC Address: AE:1A:60:07:B7:59
Using Vlan: Default
Enable Root SSH Access: no
Enable Verbose Mode: no
Creating a Linkwarden LXC using the above advanced settings
 ✓ Using local for Template Storage.
 ✓ Using thin-pool for Container Storage.
 ✓ Updated LXC Template List
 ✓ LXC Container 110 was successfully created.
 ✓ Started LXC Container
 ✓ Set up Container OS
 ✓ Network Connected: 192.168.86.250 
 ✓ IPv4 Internet Connected
 ✗ IPv6 Internet Not Connected
 ✓ DNS Resolved github.com to 140.82.112.4
 ✓ Updated Container OS
 ✓ Installed Dependencies
 ✓ Set up Node.js Repository
 ✓ Installed Node.js/Yarn
 ✓ Cloned Linkwarden Repository
 ✓ Set up PostgreSQL DB
Would you like to add Adminer? <y/N> 
 ✓ Installed Linkwarden
 ✓ Created Service
 ✓ Customized Container
 ✓ Cleaned
 ✓ Completed Successfully!

Linkwarden should be reachable by going to the following URL.
         http://192.168.86.250:3000 

I then updated, was already up to date

    __    _       __                           __
   / /   (_)___  / /___      ______ __________/ /__  ____
  / /   / / __ \/ //_/ | /| / / __ `/ ___/ __  / _ \/ __ \
 / /___/ / / / / ,<  | |/ |/ / /_/ / /  / /_/ /  __/ / / /
/_____/_/_/ /_/_/|_| |__/|__/\__,_/_/   \__,_/\___/_/ /_/

 ✓ Already up to date

So, I performed a manual update

root@linkwarden:~# systemctl stop linkwarden
cd /opt/linkwarden
git pull
yarn
npx playwright install-deps
yarn build
yarn prisma migrate deploy
systemctl start linkwarden
Already up to date.
yarn install v1.22.21
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.44s.
Installing dependencies...
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease            
Hit:3 http://archive.ubuntu.com/ubuntu jammy-security InRelease           
Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
fonts-freefont-ttf is already the newest version (20120503-10build1).
fonts-liberation is already the newest version (1:1.07.4-11).
libasound2 is already the newest version (1.2.6.1-1ubuntu1).
libatk-bridge2.0-0 is already the newest version (2.38.0-3).
libatk1.0-0 is already the newest version (2.36.0-3build1).
libatspi2.0-0 is already the newest version (2.44.0-3).
libcairo-gobject2 is already the newest version (1.16.0-5ubuntu2).
libcairo2 is already the newest version (1.16.0-5ubuntu2).
libdbus-glib-1-2 is already the newest version (0.112-2build1).
libegl1 is already the newest version (1.4.0-1).
libenchant-2-2 is already the newest version (2.3.2-1ubuntu2).
libepoxy0 is already the newest version (1.5.10-1).
libevdev2 is already the newest version (1.12.1+dfsg-1).
libevent-2.1-7 is already the newest version (2.1.12-stable-1build3).
libfontconfig1 is already the newest version (2.13.1-4.2ubuntu5).
libgles2 is already the newest version (1.4.0-1).
libglx0 is already the newest version (1.4.0-1).
libgudev-1.0-0 is already the newest version (1:237-2build1).
libhyphen0 is already the newest version (2.8.8-7build2).
libicu70 is already the newest version (70.1-2).
libjpeg-turbo8 is already the newest version (2.1.2-0ubuntu1).
liblcms2-2 is already the newest version (2.12~rc1-2build2).
libmanette-0.2-0 is already the newest version (0.2.6-3build1).
libnspr4 is already the newest version (2:4.32-3build1).
libopengl0 is already the newest version (1.4.0-1).
libopenjp2-7 is already the newest version (2.4.0-6).
libopus0 is already the newest version (1.3.1-0.1build2).
libpng16-16 is already the newest version (1.6.37-3build5).
libproxy1v5 is already the newest version (0.4.17-2).
libsecret-1-0 is already the newest version (0.20.5-2).
libsoup2.4-1 is already the newest version (2.74.2-3).
libwoff1 is already the newest version (1.0.2-1build4).
libxcb-shm0 is already the newest version (1.14-3ubuntu3).
libxcb1 is already the newest version (1.14-3ubuntu3).
libxcomposite1 is already the newest version (1:0.4.5-1build2).
libxcursor1 is already the newest version (1:1.2.0-2build4).
libxdamage1 is already the newest version (1:1.1.5-2build2).
libxext6 is already the newest version (2:1.3.4-1build1).
libxfixes3 is already the newest version (1:6.0.0-1).
libxi6 is already the newest version (2:1.8-1build1).
libxkbcommon0 is already the newest version (1.4.0-1).
libxrandr2 is already the newest version (2:1.5.2-1build1).
libxrender1 is already the newest version (1:0.9.10-1build4).
libxtst6 is already the newest version (2:1.2.3-1build4).
xfonts-scalable is already the newest version (1:1.0.3-1.2ubuntu1).
fonts-ipafont-gothic is already the newest version (00303-21ubuntu1).
fonts-tlwg-loma-otf is already the newest version (1:0.7.3-1).
fonts-unifont is already the newest version (1:14.0.01-1).
fonts-wqy-zenhei is already the newest version (0.9.45-8).
libffi7 is already the newest version (3.3-5ubuntu1).
libx264-163 is already the newest version (2:0.163.3060+git5db6aa6-2build1).
xfonts-cyrillic is already the newest version (1:1.0.5).
fonts-noto-color-emoji is already the newest version (2.042-0ubuntu0.22.04.1).
gstreamer1.0-plugins-base is already the newest version (1.20.1-1ubuntu0.1).
gstreamer1.0-plugins-good is already the newest version (1.20.3-0ubuntu1.1).
libatomic1 is already the newest version (12.3.0-1ubuntu1~22.04).
libcups2 is already the newest version (2.4.1op1-1ubuntu4.7).
libdbus-1-3 is already the newest version (1.12.20-2ubuntu4.1).
libdrm2 is already the newest version (2.4.113-2~ubuntu0.22.04.1).
libfreetype6 is already the newest version (2.11.1+dfsg-1ubuntu0.2).
libgbm1 is already the newest version (23.2.1-1ubuntu3.1~22.04.2).
libgdk-pixbuf-2.0-0 is already the newest version (2.42.8+dfsg-1ubuntu0.2).
libglib2.0-0 is already the newest version (2.72.4-0ubuntu2.2).
libgstreamer-gl1.0-0 is already the newest version (1.20.1-1ubuntu0.1).
libgstreamer-plugins-base1.0-0 is already the newest version (1.20.1-1ubuntu0.1).
libgstreamer1.0-0 is already the newest version (1.20.3-0ubuntu1).
libgtk-3-0 is already the newest version (3.24.33-1ubuntu2).
libharfbuzz-icu0 is already the newest version (2.7.4-1ubuntu3.1).
libharfbuzz0b is already the newest version (2.7.4-1ubuntu3.1).
libnotify4 is already the newest version (0.7.9-3ubuntu5.22.04.1).
libnss3 is already the newest version (2:3.68.2-0ubuntu1.2).
libpango-1.0-0 is already the newest version (1.50.6+ds-2ubuntu1).
libpangocairo-1.0-0 is already the newest version (1.50.6+ds-2ubuntu1).
libwayland-client0 is already the newest version (1.20.0-1ubuntu0.1).
libwayland-egl1 is already the newest version (1.20.0-1ubuntu0.1).
libwayland-server0 is already the newest version (1.20.0-1ubuntu0.1).
libwebpdemux2 is already the newest version (1.2.2-2ubuntu0.22.04.2).
libx11-6 is already the newest version (2:1.7.5-1ubuntu0.3).
libx11-xcb1 is already the newest version (2:1.7.5-1ubuntu0.3).
libxml2 is already the newest version (2.9.13+dfsg-1ubuntu0.4).
libxslt1.1 is already the newest version (1.1.34-4ubuntu0.22.04.1).
ffmpeg is already the newest version (7:4.4.2-0ubuntu0.22.04.1).
gstreamer1.0-libav is already the newest version (1.20.3-0ubuntu1).
gstreamer1.0-plugins-bad is already the newest version (1.20.3-0ubuntu1.1).
xvfb is already the newest version (2:21.1.4-2ubuntu1.7~22.04.8).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
yarn run v1.22.21
$ next build
- info Loaded env from /opt/linkwarden/.env
- info Linting and checking validity of types  
- info Creating an optimized production build  
- info Compiled successfully
- info Collecting page data  
- info Generating static pages (25/25)
- info Finalizing page optimization  

Route (pages)                              Size     First Load JS
┌ ○ /                                      224 B          92.1 kB
├   /_app                                  0 B            91.9 kB
├ ○ /404                                   181 B            92 kB
├ λ /api/v1/archives/[linkId]              0 B            91.9 kB
├ λ /api/v1/auth/[...nextauth]             0 B            91.9 kB
├ λ /api/v1/avatar/[id]                    0 B            91.9 kB
├ λ /api/v1/collections                    0 B            91.9 kB
├ λ /api/v1/collections/[id]               0 B            91.9 kB
├ λ /api/v1/dashboard                      0 B            91.9 kB
├ λ /api/v1/links                          0 B            91.9 kB
├ λ /api/v1/links/[id]                     0 B            91.9 kB
├ λ /api/v1/links/[id]/archive             0 B            91.9 kB
├ λ /api/v1/logins                         0 B            91.9 kB
├ λ /api/v1/migration                      0 B            91.9 kB
├ λ /api/v1/payment                        0 B            91.9 kB
├ λ /api/v1/public/collections/[id]        0 B            91.9 kB
├ λ /api/v1/public/collections/links       0 B            91.9 kB
├ λ /api/v1/public/links/[id]              0 B            91.9 kB
├ λ /api/v1/public/users/[id]              0 B            91.9 kB
├ λ /api/v1/tags                           0 B            91.9 kB
├ λ /api/v1/tags/[id]                      0 B            91.9 kB
├ λ /api/v1/tokens                         0 B            91.9 kB
├ λ /api/v1/tokens/[id]                    0 B            91.9 kB
├ λ /api/v1/users                          0 B            91.9 kB
├ λ /api/v1/users/[id]                     0 B            91.9 kB
├ ○ /choose-username                       1.67 kB        99.8 kB
├ ○ /collections                           3.61 kB         208 kB
├ ○ /collections/[id]                      5.67 kB         232 kB
├ ○ /confirmation                          951 B          99.1 kB
├ ○ /dashboard                             2.5 kB          226 kB
├ ○ /forgot                                1.7 kB         99.9 kB
├ ○ /links                                 4.31 kB         228 kB
├ ○ /links/pinned                          3.21 kB         227 kB
├ λ /login                                 2.09 kB         100 kB
├ ○ /preserved/[id]                        606 B           112 kB
├ ○ /public/collections/[id]               2.32 kB         176 kB
├ ○ /public/preserved/[id]                 640 B           112 kB
├ ○ /register                              2.37 kB         101 kB
├ ○ /search                                1.66 kB         225 kB
├ ○ /settings                              290 B          92.1 kB
├ ○ /settings/access-tokens                4.53 kB         114 kB
├ ○ /settings/account                      6.28 kB         104 kB
├ ○ /settings/billing                      1.98 kB        96.2 kB
├ ○ /settings/delete                       2.29 kB         100 kB
├ ○ /settings/password                     2.42 kB        96.7 kB
├ ○ /settings/preference                   2.93 kB         112 kB
├ ○ /subscribe                             2.24 kB         100 kB
└ ○ /tags/[id]                             3.54 kB         227 kB
+ First Load JS shared by all              120 kB
  ├ chunks/framework-7a7e500878b44665.js   45.2 kB
  ├ chunks/main-92011a1a7f336a6f.js        28.5 kB
  ├ chunks/pages/_app-018f5d2c5a99a2d6.js  17.2 kB
  ├ chunks/webpack-6c3759321fc0b2c3.js     953 B
  └ css/39ff4daf26cf338d.css               28.2 kB

λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
○  (Static)  automatically rendered as static HTML (uses no initial props)

Done in 45.44s.
yarn run v1.22.21
$ /opt/linkwarden/node_modules/.bin/prisma migrate deploy
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "linkwardendb", schema "public" at "localhost:5432"

31 migrations found in prisma/migrations

No pending migrations to apply.
┌─────────────────────────────────────────────────────────┐
│  Update available 5.1.0 -> 5.10.2                       │
│  Run the following to update                            │
│    yarn add --dev prisma@latest                         │
│    yarn add @prisma/client@latest                       │
└─────────────────────────────────────────────────────────┘
Done in 0.80s.
root@linkwarden:/opt/linkwarden#

No issues

panzer-arc commented 7 months ago

I tried updating again and got the original output. This is after all the package updates for the LXC succeed. It is simple enough to backup the data, so I will instead try a new container.

yarn run v1.22.21
$ next build
/- info Loaded env from /opt/linkwarden/.env
- info Linting and checking validity of types ..|Failed to compile.

./components/CollectionListing.tsx:36:17
Type error: Property 'collectionOrder' does not exist on type 'AccountSettings'.

  34 |         collections,
  35 |         router,
> 36 |         account.collectionOrder
     |                 ^
  37 |       );
  38 |     }
  39 |     return undefined;
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

[ERROR] in line 69: exit code 0: while executing command yarn build
barndoor101 commented 7 months ago

I had this same issue, I had to run 'yarn prisma generate' before 'yarn build' int he linkwarden ct script.

https://github.com/linkwarden/linkwarden/issues/502