Peanut update issue #480

Closed
opened 2025-11-20 04:49:04 -05:00 by saavagebueno · 8 comments
Owner

Originally created by @aroundmyroom on GitHub (Feb 6, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

PEANUT

📂 What was the exact command used to execute the script?

update

📝 Provide a clear and concise description of the issue.

When updating original script (which was correctly installed) the update to 4.4.4 and 5.1.0 is failing

pnpm -i and pnpm run build will give several issues.
From 4.4.4. to 5.1.0 I had to use:

next lint --dir . --fix

to fix elements about

./src/client/components/line-chart.tsx
39:18 Error: Replace border-neutral-300·h-96·w-full·border·border-solid·border-gray with h-96·w-full·border·border-solid·border-gray-300·border-neutral prettier/prettier

after that and re-run pnpm run build a number of packages are missing:

and then when building I get the missing packages as shown below

/src/client/components/charts-container.tsx:5:23
Type error: Cannot find module 'chart.js' or its corresponding type declarations.

3 | import 'chart.js/auto'
4 | import React from 'react'

5 | import { Chart } from 'chart.js'
| ^
6 | import annotationPlugin from 'chartjs-plugin-annotation'
7 | import { VARS, DeviceData } from '@/common/types'
8 | import LineChart from '@/client/components/line-chart'
Static worker exited with code: 1 and signal: null
 ELIFECYCLE  Command failed with exit code 1.

After the chart.js missing part you miss also chartjs-plugin-annotation
@material-tailwind/react, @heroicons/react, react-chartjs-2

Installing these will result in a correct compild build and restarting peanut will show a working 5.1.0 but not when using update

Also the default 4GB disk size is too low.

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

execute update and the system will give error

Paste the full error output (if available).

⠴ Updating PeaNUT to v5.1.0
[ERROR] in line 43: exit code 0: while executing command pnpm i &> /dev/null

🖼️ Additional context (optional).

No response

Originally created by @aroundmyroom on GitHub (Feb 6, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? PEANUT ### 📂 What was the exact command used to execute the script? update ### 📝 Provide a clear and concise description of the issue. When updating original script (which was correctly installed) the update to 4.4.4 and 5.1.0 is failing pnpm -i and pnpm run build will give several issues. From 4.4.4. to 5.1.0 I had to use: next lint --dir . --fix to fix elements about ./src/client/components/line-chart.tsx 39:18 Error: Replace border-neutral-300·h-96·w-full·border·border-solid·border-gray with h-96·w-full·border·border-solid·border-gray-300·border-neutral prettier/prettier after that and re-run pnpm run build a number of packages are missing: and then when building I get the missing packages as shown below /src/client/components/charts-container.tsx:5:23 Type error: Cannot find module 'chart.js' or its corresponding type declarations. 3 | import 'chart.js/auto' 4 | import React from 'react' 5 | import { Chart } from 'chart.js' | ^ 6 | import annotationPlugin from 'chartjs-plugin-annotation' 7 | import { VARS, DeviceData } from '@/common/types' 8 | import LineChart from '@/client/components/line-chart' Static worker exited with code: 1 and signal: null  ELIFECYCLE  Command failed with exit code 1. After the chart.js missing part you miss also chartjs-plugin-annotation @material-tailwind/react, @heroicons/react, react-chartjs-2 Installing these will result in a correct compild build and restarting peanut will show a working 5.1.0 but not when using update Also the default 4GB disk size is too low. ### ⚙️ What settings are you using? - [ ] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. execute update and the system will give error ### ❌ Paste the full error output (if available). ⠴ Updating PeaNUT to v5.1.0 [ERROR] in line 43: exit code 0: while executing command pnpm i &> /dev/null ### 🖼️ Additional context (optional). _No response_
Author
Owner

@michelroegl-brunner commented on GitHub (Feb 7, 2025):

Please check if your LXC ran out of HDD space, this was the issue for me.

@michelroegl-brunner commented on GitHub (Feb 7, 2025): Please check if your LXC ran out of HDD space, this was the issue for me.
Author
Owner

@aroundmyroom commented on GitHub (Feb 7, 2025):

@michelroegl-brunner yes it is yelling about it, but even after resizing and re-run the update it fails on those missing modules.

@aroundmyroom commented on GitHub (Feb 7, 2025): @michelroegl-brunner yes it is yelling about it, but even after resizing and re-run the update it fails on those missing modules.
Author
Owner

@michelroegl-brunner commented on GitHub (Feb 7, 2025):

I installed Peanut 4.4.4 and did the upgrade without issues.

@michelroegl-brunner commented on GitHub (Feb 7, 2025): I installed Peanut 4.4.4 and did the upgrade without issues.
Author
Owner

@michelroegl-brunner commented on GitHub (Feb 7, 2025):

can you try pnpm install PACKET NAME you are mussing

@michelroegl-brunner commented on GitHub (Feb 7, 2025): can you try pnpm install PACKET NAME you are mussing
Author
Owner

@aroundmyroom commented on GitHub (Feb 7, 2025):

Ok following:

updates prior 4.4.4. do fail on missing packages and side effect is too less storage room
when trying to update it keeps on failing when using /usr/bin/update
(even after resizing the storage)

I re-ran the script to create a new LXC to 5.1.1 and no issues. So somewhere along the line the update in a previous update keeps in mind that it needs some packages which are not needed anymore (obviously).

So if you have similar pnpm update issue as me: reinstall Peanut LXC, that's quicker than installing the packages ;)

@aroundmyroom commented on GitHub (Feb 7, 2025): Ok following: updates prior 4.4.4. do fail on missing packages and side effect is too less storage room when trying to update it keeps on failing when using /usr/bin/update (even after resizing the storage) I re-ran the script to create a new LXC to 5.1.1 and no issues. So somewhere along the line the update in a previous update keeps in mind that it needs some packages which are not needed anymore (obviously). So if you have similar pnpm update issue as me: reinstall Peanut LXC, that's quicker than installing the packages ;)
Author
Owner

@cavazos-apps commented on GitHub (Feb 18, 2025):

Is there any solution to this that isn't simply reinstalling? My update is failing as well.

@cavazos-apps commented on GitHub (Feb 18, 2025): Is there any solution to this that isn't simply reinstalling? My update is failing as well.
Author
Owner

@aroundmyroom commented on GitHub (Feb 19, 2025):

simply reinstalling is the most quick and best way, otherwise you will keep messing around with any future upgrade., (I know it from experience).

it took me 5 minutes. The only thing you might have is a different IP .. but that is a quick fix in a local network as well.

@aroundmyroom commented on GitHub (Feb 19, 2025): simply reinstalling is the most quick and best way, otherwise you will keep messing around with any future upgrade., (I know it from experience). it took me 5 minutes. The only thing you might have is a different IP .. but that is a quick fix in a local network as well.
Author
Owner

@kkroboth commented on GitHub (Feb 19, 2025):

I'll have to re-install from the looks of it too.

The only thing you might have is a different IP .. but that is a quick fix in a local network as well.

You can save the MAC address in your current LXC, then when running the install script set the same MAC address in advanced options. That way your IP shouldn't change.

@kkroboth commented on GitHub (Feb 19, 2025): I'll have to re-install from the looks of it too. > The only thing you might have is a different IP .. but that is a quick fix in a local network as well. You can save the MAC address in your current LXC, then when running the install script set the same MAC address in advanced options. That way your IP shouldn't change.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#480