Open firecat53 opened 3 months ago
I'm not sure how to fix this. The issue is that lubelogger tries to read and write to the the content root directory. I set DOTNET_CONTENTROOT
to /nix/store/<hash>-lubelogger-1.3.5/lib/lubelogger
, which works perfectly for reading but as you noticed does not work for writing.
It's possible to replicate the way the Docker image works by copying the entire contents of that directory to the current directory, and then running lubelogger (without the DOTNET_CONTENTROOT
variable set, which makes it look in the current directory). The problem with this is that if you don't copy those files, then lubelogger will fail entirely.
If it needs to write its own data then you probably want a NixOS module
Without writing a module, could you add symlinks during the packaging process to wwwroot/{temp,documents,images...} and /root/.aspnet/Data-Proection-Keys that point to XDG_DATA_HOME (/var/lib/lubelogger/xxx or ~/.local/share/lubelogger/xxx) ?
I suppose I could, yeah, but the issue there is that then multiple instances of lubelogger would share the same state directory, which would be bad
Okay, I opened a draft PR. I don't actually use lubelogger anymore, so I don't want to be the maintainer for the service, so I have not listed myself as a maintainer and have left the PR as a draft. I think it should resolve this issue, though
Describe the bug
Lubelogger is unable to use authentication, image or document uploads, or translations due to those directories being unable to be created in the
/nix/store/<hash>-lubelogger-1.3.5/lib/lubelogger/wwwroot
directory. (as it's part of the Nix Store)Steps To Reproduce
Expected behavior
Image and document uploads work correctly.
Additional context
When the app is run using Docker/podman, the following volumes are mounted:
The config and data directories will be created in the working directory from where the app is run. The other directories in wwwroot and /root/.aspnet cannot be created.
Notify maintainers
@Samasaur1
Metadata
(note: flakes enabled)
Thank you!