Closed linyinfeng closed 2 months ago
I have a local branch that updates seafile-server and seahub to the latest, but it doesn't yet handle upgrading the local database. I'm also unsure I've covered every new python dependency, but it's at least got me to the point where it passes nix-build -A nixosTests.seafile
, seahub working locally and I can upload a file.
In case that amount of work helps maintainers, please let me know and I can push my branch somewhere or open a draft PR against nixpkgs.
EDIT: if maintainers find themselves too busy at this moment, I could put in some more time and try to work the database migration out by myself and get a PR out for review.
It seems that version 11 is still in beta (according to the download page, their tags cannot really be trusted). Also note that there is a PR to update to 10: https://github.com/NixOS/nixpkgs/pull/249523
In case that amount of work helps maintainers, please let me know and I can push my branch somewhere or open a draft PR against nixpkgs.
Thank you for that, that would be super helpful :pray:
EDIT: if maintainers find themselves too busy at this moment, I could put in some more time and try to work the database migration out by myself and get a PR out for review.
I can't promise anything but having a PR we can discuss would definitely be a first step. The update process is fairly barebone: we execute specific sql scripts.
Also note that there is a PR to update to 10
Oh, nice. I see you added a reviewer too. Does it make sense to get your PR in before I create one to update to seafile 11, especially since 11 is beta (I hadn't noticed that)? Would it help if I review it?
The update process is fairly barebone: we execute specific sql scripts.
Oh, I saw that but think I saw somewhere that seafile's update script does a bit more than just applying changes to the sqlite DB. But I might be misremembering. In any case, you've done this before and I have just installed seafile a month ago, so I think it's safe to ignore whatever I think I saw for now.
In case that amount of work helps maintainers, please let me know and I can push my branch somewhere or open a draft PR against nixpkgs.
I would be interested in that to try out the latest seahub.
@mohe2015 I have pushed my branch with seafile 11 to https://github.com/mzabani/nixpkgs/, branch update-seafile-only
. Please backup your seafile data before trying that, as it does not have data migration code yet. It might also be on top of not very recent nixpkgs, but it shouldn't be too hard to rebase.
I am getting an error building seahub on nixos-unstable from today:
error: builder for '/nix/store/v0pli8c784ja24qzjwz18x8fkf6bv19w-python3.12-django-compressor-4.5.1.drv' failed with exit code 1;
last 10 log lines:
> /build/django_compressor-4.5.1/dist /build/django_compressor-4.5.1
> Unpacking to: unpacked/django_compressor-4.5.1...OK
> Repacking wheel as ./django_compressor-4.5.1-py2.py3-none-any.whl...OK
> /build/django_compressor-4.5.1
> Finished executing pypaBuildPhase
> buildPhase completed in 34 seconds
> Running phase: pythonRuntimeDepsCheckHook
> Executing pythonRuntimeDepsCheck
> Checking runtime dependencies for django_compressor-4.5.1-py2.py3-none-any.whl
> - django>=4.2 not satisfied by version 3.2.25
For full logs, run 'nix log /nix/store/v0pli8c784ja24qzjwz18x8fkf6bv19w-python3.12-django-compressor-4.5.1.drv'.
error: 1 dependencies of derivation '/nix/store/fjc7kqmgx8kln903r9vpr18jzid6vq2c-seahub-10.0.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/xr6hs6bvmgavjrq681lcfnhxbp6a571q-unit-seahub.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/q7bnjcry95wxahi8wgya2v696p3yn5x1-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/izywdiz9fdqrsn7zywwfdjaxqmi6hadb-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/k59ckcz9wqn4l3ak2cwjs2h06q7h2gjv-nixos-system-raspberrypi-24.11.20240926.1925c60.drv' failed to build
Is anyone else running into this? I don't know if I'm doing something wrong so it'd be good to confirm. And it might be good to check if seafile 11 helps avoid this issue..
The package is broken on nixos-unstable because Django 4.2 removed the
providing_args
argument fordjango.dispatch.Signal
. https://docs.djangoproject.com/en/4.2/internals/deprecation/#deprecation-removed-in-4-0.The package failed in runtime instead of build time because the package sets
dontBuild = true
.The issue was fixed in upstream https://github.com/haiwen/seahub/pull/5502. And the fix is already released in
v11.0.0-pro
.Log:
Notify maintainers
@greizgh @schmittlauch
Note for maintainers: Please tag this issue in your PR.