Server crash at startup #11
Replies: 5 comments
|
halo mas, saya coba cari referensi dulu untuk error ini, mungkin nanti bisa saya buatkan khusus branch untuk try n error issue ini, maaf atas ketidaknyamanannya |
|
Hi, thanks for the report. This should be fixed in v0.8.5-beta.1. The root cause was not an assumption — we reproduced it locally. What we found
grep -n "require.*@next/env" node_modules/next/dist/server/config.js
# 41:const _env = require("@next/env")But after the CLI build, Fix
Verified
Please try# npm global install (beta tag — does not trigger stable auto-update)
npm install -g vansrouter@0.8.5-beta.1
vansrouteror # Docker
docker pull ghcr.io/vanszs/vansrouter:0.8.5-beta.1
docker run -d \
-p 20128:20128 \
-v "$HOME/.9router:/app/data" \
-e DATA_DIR=/app/data \
--name vansrouter-beta \
ghcr.io/vanszs/vansrouter:0.8.5-beta.1or build from branch Please let us know if the startup crash is gone. Do not close this issue until we confirm it works on your side. |
|
@JessenReinhart bisa dicoba versi beta ini mas? nanti mas kabari saja update nya |
|
Halo @JessenReinhart, terima kasih sudah mencoba v0.8.5-beta.1. Fix startup CLI di beta.1 hanya menyentuh cli/scripts/build-cli.js (bundling @next/env). Seharusnya tidak berpengaruh ke dashboard atau import custom model. Untuk memastikan penyebab error "failed to add custom model", mohon info tambahan:
Dari sisi kode, POST /api/models/custom mengembalikan Failed to add custom model hanya ketika layer DB throw. Tes DB terkait (tests/unit/db-sqlite-vs-lowdb.test.js, Mohon dibantu detail network/log-nya supaya bisa saya pinpoint. |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Expectation
User can start the server
Actual
Server crashes at startup
Tried workaround
Navigate to vansrouter/app in node_modules, then run
npm install @next/envserver then runs, however the previous error appeared again
Error Log:
All reactions