tteck / Proxmox

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

[Homarr] Build failure #3684

Closed CrazyWolf13 closed 3 weeks ago

CrazyWolf13 commented 3 weeks ago

Please verify that you have read and understood the guidelines.

yes

A clear and concise description of the issue.

The Build of the pages seems to hang / fail on my LXC:

here the full log: https://pastebin.com/j6imP7RG

What settings are you currently utilizing?

Advanced Settings

Which Linux distribution are you employing?

Debian 12

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

Here the most important logs:

Build error occurred Error: Static page generation for /en/401 is still timing out after 3 attempts. See more info here https://nextjs.org/docs/messages/static-page-generation-timeout at onRestart (/opt/homarr/node_modules/next/dist/build/index.js:697:39) at Worker.exportPage (/opt/homarr/node_modules/next/dist/lib/worker.js:88:40) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /opt/homarr/node_modules/next/dist/export/index.js:519:32 at async Span.traceAsyncFn (/opt/homarr/node_modules/next/dist/trace/trace.js:103:20) at async Promise.all (index 0) at async /opt/homarr/node_modules/next/dist/export/index.js:510:9 at async Span.traceAsyncFn (/opt/homarr/node_modules/next/dist/trace/trace.js:103:20) at async /opt/homarr/node_modules/next/dist/build/index.js:1579:21 at async Span.traceAsyncFn (/opt/homarr/node_modules/next/dist/trace/trace.js:103:20) / ] - info Generating static pages (0/64) [ERROR] in line 68: exit code 0: while executing command yarn build

Please provide detailed steps to reproduce the issue.

Install an older version of homarr, try to update.

tteck commented 3 weeks ago

🏁 The script runs without any problems from this end.

    __  __
   / / / /___  ____ ___  ____ ___________
  / /_/ / __ \/ __ `__ \/ __ `/ ___/ ___/
 / __  / /_/ / / / / / / /_/ / /  / /
/_/ /_/\____/_/ /_/ /_/\__,_/_/  /_/

Using Advanced Settings
Using Distribution: debian
Using debian Version: 12
Using Container Type: 1
Using Root Password: Automatic Login
Container ID: 111
Using Hostname: homarr
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 Homarr LXC using the above advanced settings
 βœ“ Using local for Template Storage.
 βœ“ Using thin-pool for Container Storage.
 βœ“ Updated LXC Template List
 βœ“ LXC Container 111 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.113.3
 βœ“ Updated Container OS
 βœ“ Installed Dependencies
 βœ“ Set up Node.js Repository
 βœ“ Installed Node.js/Yarn
 βœ“ Installed Homarr
 βœ“ Created Service
 βœ“ Customized Container
 βœ“ Cleaned
 βœ“ Completed Successfully!

Homarr should be reachable by going to the following URL.
         http://192.168.86.250:3000 
- info Generating static pages (64/64)
- info Finalizing page optimization  

 \Route (pages)                              Size     First Load JS
β”Œ   /_app                                  0 B             629 kB
β”œ ● /401                                   741 B           773 kB
β”œ ● /404                                   719 B           630 kB
β”œ Ξ» /api/[...trpc]                         0 B             629 kB
β”œ Ξ» /api/auth/[...nextauth]                0 B             629 kB
β”œ Ξ» /api/download                          0 B             629 kB
β”œ Ξ» /api/openapi.json                      0 B             629 kB
β”œ Ξ» /api/trpc/[trpc]                       0 B             629 kB
β”œ Ξ» /auth/invite/[inviteId]                2.91 kB         632 kB
β”œ Ξ» /auth/login                            2.94 kB         632 kB
β”œ Ξ» /b                                     382 B           846 kB
β”œ Ξ» /b/[slug]                              387 B           846 kB
β”œ Ξ» /b/[slug]/customize                    274 B           789 kB
β”œ Ξ» /board                                 358 B           846 kB
β”œ Ξ» /board/[slug]                          365 B           846 kB
β”œ Ξ» /board/[slug]/customize                210 B           789 kB
β”œ Ξ» /manage                                2.85 kB         791 kB
β”œ Ξ» /manage/about                          16.1 kB         804 kB
β”œ Ξ» /manage/boards                         4.98 kB         793 kB
β”œ Ξ» /manage/tools/docker                   2.29 kB         790 kB
β”œ Ξ» /manage/tools/swagger                  2.85 kB         791 kB
β”œ   β”” css/ad322974924d0826.css             23.1 kB
β”œ Ξ» /manage/users                          3.64 kB         792 kB
β”œ Ξ» /manage/users/[userId]/edit            27.4 kB         816 kB
β”œ Ξ» /manage/users/create                   8.27 kB         796 kB
β”œ Ξ» /manage/users/invites                  2.79 kB         791 kB
β”œ Ξ» /onboard                               39.9 kB         669 kB
β”” Ξ» /user/preferences                      2.56 kB         775 kB
+ First Load JS shared by all              661 kB
  β”œ chunks/framework-18c7e6fcf99e5daa.js   45.2 kB
  β”œ chunks/main-2769de4978ba9a12.js        29.4 kB
  β”œ chunks/pages/_app-b66c87d9fd92e390.js  553 kB
  β”œ chunks/webpack-ea4f82cb74cd22f5.js     2.11 kB
  β”” css/b16687c98a5af6ce.css               31.6 kB

Ζ’ Middleware                               98.4 kB

Ξ»  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)

 βœ“ Updated Homarr
root@homarr:~# 

🧐 As this issue is unrelated to the script, it is considered closed.

Try increasing resources.

CrazyWolf13 commented 3 weeks ago

@tteck The issue WAS related to the script: https://github.com/ajnart/homarr/issues/2125.

The missing things were the following set env vars:

 export NEXTAUTH_URL="http://WILL_BE_OVERWRITTEN" turbo build
export DATABASE_URL="file:WILL_BE_OVERWRITTEN.sqlite "
tteck commented 3 weeks ago

I can build/update just the way the script is currently.