-
DescriptionAfter upgrading from homepage-dashboard-0.9.13 to homepage-dashboard-0.10.6 the product did not clear its cache leaving a broken cache and the homepage output broken. homepage versionhomepage-dashboard-0.10.6 Installation methodSource Configuration# /etc/systemd/system/homepage-dashboard.service
[Unit]
After=network.target
Description=Homepage Dashboard
[Service]
Environment="HOMEPAGE_CACHE_DIR=/var/cache/homepage-dashboard"
Environment="HOMEPAGE_CONFIG_DIR=/etc/homepage-dashboard"
Environment="LOCALE_ARCHIVE=/nix/store/xsajjdk5fchhv42hhawvnk6a85h8q0q2-glibc-locales-2.40-36/lib/locale/locale-archive"
Environment="LOG_TARGETS=stdout"
Environment="PATH=/nix/store/4s9rah4cwaxflicsk5cndnknqlk9n4p3-coreutils-9.5/bin:/nix/store/jqrz1vq5nz4lnv9pqzydj0ir58wbjfy>
Environment="PORT=8082"
Environment="TZDIR=/nix/store/gfkyf4hw4riqwgf5scfk8r8g69crbn4x-tzdata-2024b/share/zoneinfo"
CacheDirectory=homepage-dashboard
DynamicUser=true
EnvironmentFile=/run/secrets/rendered/arrEnvironmentFile
ExecStart=/nix/store/n6imaq8va4q0a1v117rry1gg56kpjhnh-homepage-dashboard-0.10.6/bin/homepage
Group=homepage-dashboard
Restart=on-failure
Type=simple
User=homepage-dashboard
[Install]
WantedBy=multi-user.target Container Logsnothing related in systemd- journal Browser LogsNo response Troubleshootingremoving the cache ( when starting a new version it should take care of its cache appropriately. also see: NixOS/nixpkgs#346016 |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 14 replies
-
Yea sorry I think this is a Nixos thing, as I frequently see with their packages. Homepage is a relatively straightforward nextjs application so we do not directly manage the cache in any way. I don’t know what all of the config vars above are for but I suspect they are modifying that behavior. I see in that thread they are somehow saying this is an upstream issue but I don’t see how, again nothing has changed about the app’s core nextjs setup between these versions (checking the diff or changelog will corroborate this) |
Beta Was this translation helpful? Give feedback.
-
@sedlund: Do you have a copies of the cache directories when the issue exists, and after re-creating the directory? It'd be interesting to see in what way they differ. I bet nextjs caches part of its env (a Nix store path) that it probably shouldn't. |
Beta Was this translation helpful? Give feedback.
-
thanks for looking
attached |
Beta Was this translation helpful? Give feedback.
-
the container image puts the cache in /app/.next/server/pages - which gets thrown out when the container upgrades/restarts so it is regenerated like a @bjornfor I think your suggestion to just delete the cache with ExecStartPre would mimic the container behaviour and be good enough. i will try the HOMEPAGE_BUILDTIME and report back later |
Beta Was this translation helpful? Give feedback.
-
Thank you all, this is simply an issue with nixOS packaging. |
Beta Was this translation helpful? Give feedback.
-
I made a NixOS VM test and reproduced the issue and after a while I noticed that HOMEPAGE_CACHE_DIR doesn't exist upstream but is something introduced by nixpkgs 🤦. So that "cache dir" seems more like a build artifact than a runtime cache, and the issue only exist in nixpkgs. |
Beta Was this translation helpful? Give feedback.
Thank you all, this is simply an issue with nixOS packaging.