Garg
Garg
HHomarr
Created by Garg on 5/4/2025 in #💬・get-help
migration guide for old version of homarr to latest? on 0.12 need help upgrading
i still have no idea why no ones reported this issue before or why maybe it just happened to me, when i'm not doing anything special, just running the docker containers on an ubuntu host. the only two bind mounts i had were the config with those json files representing my dashboards, and the icons directorry, because there was no /data directory at this point prior to 0.14.0 AFAIK so it's not like i had some persistant corruption or anything
26 replies
HHomarr
Created by Garg on 5/4/2025 in #💬・get-help
migration guide for old version of homarr to latest? on 0.12 need help upgrading
Finally got it to work, but it wasn't pretty. I had to pull the v0.14.0 branch down locally, change the dockerfile to not be built from node-slim but from FROM node:20-bullseye as the baseimage because the sqlite library you guys are using in node wouldn't install on node-slim due to GCC issues, i couldn't manually install it by exec'ing in or anything. So finally after doing that, and restarting the app once or twice and copying the .env file, i was able to get it to make the sqlite db in the /data bind mount and then i have to restart again once or twice, and i was prompted with the happy path of creating a new admin user and all of tha t
26 replies
HHomarr
Created by Garg on 5/4/2025 in #💬・get-help
migration guide for old version of homarr to latest? on 0.12 need help upgrading
tbh never seen this "RUN yarn add typescript ts-node dotenv [email protected] [email protected] @types/better-sqlite3 RUN mv node_modules node_modules_migrate RUN mv _node_modules node_modules " done before in a dockerfile but when i dig into it, these errors ""was compiled against a different Node.js version using NODE_MODULE_VERSION 108. This version of Node.js requires NODE_MODULE_VERSION 115. Please try re-compiling or re-installing"" i think these are related. i'm just confused as to why i'm having this issue and no one else has reported this? albeit this is a year+ old version
26 replies
HHomarr
Created by Garg on 5/4/2025 in #💬・get-help
migration guide for old version of homarr to latest? on 0.12 need help upgrading
ive pulled down the repo for the v0.14.0 tag specifically and i think the issue is related to the bettersql package not working properly because in your dockerfile i see some node module swapping or mv commands and bettersql gets built for one node environment and doesn't work in the other despite it being "installed" properly
26 replies
HHomarr
Created by Garg on 5/4/2025 in #💬・get-help
migration guide for old version of homarr to latest? on 0.12 need help upgrading
I can exec into the container and run whatever commands if something needs to be installed or version bumped inside the container for any reason
26 replies
HHomarr
Created by Garg on 5/4/2025 in #💬・get-help
migration guide for old version of homarr to latest? on 0.12 need help upgrading
just docker
26 replies
HHomarr
Created by Garg on 5/4/2025 in #💬・get-help
migration guide for old version of homarr to latest? on 0.12 need help upgrading
yes
26 replies
HHomarr
Created by Garg on 5/4/2025 in #💬・get-help
migration guide for old version of homarr to latest? on 0.12 need help upgrading
my docker env variables are "AUTH_TRUST_HOST true DATABASE_URL file:/data/db.sqlite NEXT_TELEMETRY_DISABLED 1 NEXTAUTH_SECRET NOT_IN_USE_BECAUSE_JWTS_ARE_UNUSED NEXTAUTH_URL http://localhost:7575 NODE_ENV production NODE_OPTIONS --no-experimental-fetch NODE_VERSION 20.6.0 PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PORT 7575 YARN_VERSION 1.22.19" most of those i didn't explicitly specify
26 replies
HHomarr
Created by Garg on 5/4/2025 in #💬・get-help
migration guide for old version of homarr to latest? on 0.12 need help upgrading
ahh the formatting of that stinks on discord, It looks like it's getting some error, probably ageneric internal service error and then trying to serialize/deserialize it like it's json, but i doubt that's the cause. I see the "was compiled against a different Node.js version using NODE_MODULE_VERSION 108. This version of Node.js requires NODE_MODULE_VERSION 115. Please try re-compiling or re-installing" and interestingly enough, i tried to add the /data bind volume for it to make a database there, and there's no files or anything created in my db mount
26 replies
HHomarr
Created by Garg on 5/4/2025 in #💬・get-help
migration guide for old version of homarr to latest? on 0.12 need help upgrading
after going through and upgrading all through all 0.13.X versions one by one to 0.13.4 each time going to the dashboard and reloading so the data's migrated, i get to 0.14.0 and get an error when just going to the base URL with the port number `Error: The module '/app/node_modules/better-sqlite3/build/Release/better_sqlite3.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 108. This version of Node.js requires NODE_MODULE_VERSION 115. Please try re-compiling or re-installing the module (for instance, using npm rebuild or npm install). at Module._extensions..node (node:internal/modules/cjs/loader:1319:18) at Module.load (node:internal/modules/cjs/loader:1091:32) at Module._load (node:internal/modules/cjs/loader:938:12) at Module.require (node:internal/modules/cjs/loader:1115:19) at require (node:internal/modules/helpers:130:18) at bindings (/app/node_modules/bindings/bindings.js:112:48) at new Database (/app/node_modules/better-sqlite3/lib/database.js:48:64) at /app/.next/server/chunks/550.js:282:16 { code: 'ERR_DLOPEN_FAILED' } [next-auth][error][CLIENT_FETCH_ERROR] https://next-auth.js.org/errors#client_fetch_error Unexpected token 'I', "Internal S"... is not valid JSON { error: { message: Unexpected token 'I', "Internal S"... is not valid JSON, stack: SyntaxError: Unexpected token 'I', "Internal S"... is not valid JSON\n + ' at JSON.parse (<anonymous>)\n' + ' at parseJSONFromBytes (/app/node_modules/next/dist/compiled/undici/index.js:2:4905)\n' + ' at successSteps (/app/node_modules/next/dist/compiled/undici/index.js:2:4473)\n' + url: 'http://localhost:7575/api/auth/session', message: Unexpected token 'I', "Internal S"... is not valid JSON }```
26 replies
HHomarr
Created by Garg on 5/4/2025 in #💬・get-help
migration guide for old version of homarr to latest? on 0.12 need help upgrading
alright, i'll start with that process and report back, thanks a lot!
26 replies
HHomarr
Created by Garg on 5/4/2025 in #💬・get-help
migration guide for old version of homarr to latest? on 0.12 need help upgrading
is there a list of any breaking changes from the jumps i should look for? like if i go from 0.13.0 to 0.13.1 to 0.13.2 to 0.14, is there a breaking change log of things i need to fix from that last jump from 0.13.2 to 0.14 for example?
26 replies
HHomarr
Created by Garg on 5/4/2025 in #💬・get-help
migration guide for old version of homarr to latest? on 0.12 need help upgrading
im a nest/next/node dev myself but i just wanted to see if someone could direct me in the "happy path" to upgrading from such an old version to 0.15.10 so i can do the documented migration steps. I could even just do a fresh install of 0.15.10 if there wa sa way to preserve my config that i've built over the last 2 years for my dashboard? currently i just see a json file that contains it all, would there be a compatible way to migrate/import that to a 0.15.10 clean install then i can follow the guid efrom there?
26 replies
HHomarr
Created by Garg on 5/4/2025 in #💬・get-help
migration guide for old version of homarr to latest? on 0.12 need help upgrading
Hey! I've skimmed that page and i want to use it, but my issue is i'm not sure how to get from my current version of 0.13( my dockerimagetag)/0.12.3(what the app's "about" section shows) to 0.15.10 in order to do the migration to 1.0+ When i try to just go from the docker tag of 0.13 to 0.14 the entire app breaks because im guessing that's when you guys made major refactors?
26 replies