SynoCommunity/spksrc

Borg (borgbackup) installation error on DSM 7

bluet opened this issue · 4 comments

bluet commented

Setup

Package Name: Borg (borgbackup)
Package Version: 1.1.13-6

NAS Model:
NAS Architecture: DS-916+
DSM version: 7.0

Expected behavior

As #4524 says borgbackup passed Build, Install, and Run, I expect it to be installed and be able to run.

Actual behavior

Not able to install.
Shows error "Invlid file format."
2021-07-03 18-52-42 的螢幕擷圖

Steps to reproduce

1. Install via Package Center.

Package log

Found nothing in either /var/log/packages/{package}.log nor /var/packages/{package}/target/var/{package}_installer.log.

Other logs

/var/log/messages

Nothing related

synosystemd.log

2021-07-03T18:52:30+08:00 SolidRock synoscgi_SYNO.Core.Package.Installation_1_install[23920]: systemd_daemon-reload.cpp:15 synosystemd: start daemon reload
2021-07-03T18:52:30+08:00 SolidRock syno-generator[24186]: syno-generator.cpp:24 synosystemd: Time taken by generator:/usr/syno/lib/systemd/generators/syno-bootup-type-generator 2902 microseconds
2021-07-03T18:52:30+08:00 SolidRock syno-generator[24189]: syno-generator.cpp:24 synosystemd: Time taken by generator:/usr/syno/lib/systemd/generators/syno-pkg-generator 3551 microseconds
2021-07-03T18:52:31+08:00 SolidRock syno-generator[24188]: syno-generator.cpp:24 synosystemd: Time taken by generator:/usr/syno/lib/systemd/generators/syno-system-generator 699365 microseconds
2021-07-03T18:52:31+08:00 SolidRock syno-generator[24186]: syno-generator.cpp:24 synosystemd: Time taken by generator:/usr/syno/lib/systemd/generators/hacore-generator 20910 microseconds
2021-07-03T18:52:31+08:00 SolidRock synoscgi_SYNO.Core.Package.Installation_1_install[23920]: systemd_systemctl.cpp:215 synosystemd: Execute time for [/usr/bin/systemctl daemon-reload] is 883 ms
2021-07-03T18:52:31+08:00 SolidRock synoscgi_SYNO.Core.Package.Installation_1_install[23920]: systemd_daemon-reload.cpp:19 synosystemd: daemon reload success!
2021-07-03T18:52:31+08:00 SolidRock synoscgi_SYNO.Core.Package.Installation_1_install[23920]: systemd_start.cpp:16 synosystemd: [pkgctl-python3.service] starting ...
2021-07-03T18:52:31+08:00 SolidRock synosystemctl[24328]: systemd_reload.cpp:17 synosystemd: [synoscheduled] reloading ...
2021-07-03T18:52:31+08:00 SolidRock synosystemctl[24328]: systemd_reload.cpp:21 synosystemd: [synoscheduled] reloaded.
2021-07-03T18:52:32+08:00 SolidRock synoscgi_SYNO.Core.Package.Installation_1_install[23920]: systemd_start.cpp:20 synosystemd: [pkgctl-python3.service] started.
2021-07-03T18:52:32+08:00 SolidRock synoscgi_SYNO.Core.Package.Installation_1_install[23920]: systemd_enable.cpp:17 synosystemd: [pkgctl-python3.service] enabling ...
2021-07-03T18:52:32+08:00 SolidRock syno-generator[24342]: syno-generator.cpp:24 synosystemd: Time taken by generator:/usr/syno/lib/systemd/generators/syno-bootup-type-generator 2973 microseconds
2021-07-03T18:52:32+08:00 SolidRock syno-generator[24345]: syno-generator.cpp:24 synosystemd: Time taken by generator:/usr/syno/lib/systemd/generators/syno-pkg-generator 3117 microseconds
2021-07-03T18:52:32+08:00 SolidRock synoscheduled[7291]: systemd_restart.cpp:20 synosystemd: [synoscheduled-vmtouch] restarting ...
2021-07-03T18:52:32+08:00 SolidRock syno-generator[24344]: syno-generator.cpp:24 synosystemd: Time taken by generator:/usr/syno/lib/systemd/generators/syno-system-generator 700615 microseconds
2021-07-03T18:52:32+08:00 SolidRock syno-generator[24342]: syno-generator.cpp:24 synosystemd: Time taken by generator:/usr/syno/lib/systemd/generators/hacore-generator 27639 microseconds
2021-07-03T18:52:32+08:00 SolidRock synoscgi_SYNO.Core.Package.Installation_1_install[23920]: systemd_systemctl.cpp:215 synosystemd: Execute time for [/usr/bin/systemctl enable pkgctl-python3.service] is 892 ms
2021-07-03T18:52:32+08:00 SolidRock synoscgi_SYNO.Core.Package.Installation_1_install[23920]: systemd_enable.cpp:25 synosystemd: [pkgctl-python3.service] enabled.
2021-07-03T18:52:32+08:00 SolidRock synoscheduled[7291]: systemd_restart.cpp:24 synosystemd: [synoscheduled-vmtouch] restarted.

/var/log/synopkg.log

2021/07/03 18:52:16 download python3 https://packages.synocommunity.com/python3/16/python3.v16.f40000%5Bapollolake-avoton-braswell-broadwell-broadwellnk-bromolow-cedarview-denverton-dockerx64-geminilake-grantley-purley-kvmx64-v1000-x86-x86_64%5D.spk?arch=braswell&build=41890 Begin download
2021/07/03 18:52:21 download python3 https://packages.synocommunity.com/python3/16/python3.v16.f40000%5Bapollolake-avoton-braswell-broadwell-broadwellnk-bromolow-cedarview-denverton-dockerx64-geminilake-grantley-purley-kvmx64-v1000-x86-x86_64%5D.spk?arch=braswell&build=41890 End download
2021/07/03 18:52:29 install python3 3.7.10-16 Begin preinst
2021/07/03 18:52:29 install python3 3.7.10-16 End preinst ret=[0]
2021/07/03 18:52:29 install python3 3.7.10-16 Begin /bin/mkdir -p /volume1/@appstore/python3
2021/07/03 18:52:29 install python3 3.7.10-16 End /bin/mkdir -p /volume1/@appstore/python3 ret=[0]
2021/07/03 18:52:29 install python3 3.7.10-16 Begin /bin/rm -rf /volume1/@appstore/python3
2021/07/03 18:52:29 install python3 3.7.10-16 End /bin/rm -rf /volume1/@appstore/python3 ret=[0]
2021/07/03 18:52:29 install python3 3.7.10-16 Begin /bin/mv -f /volume1/@tmp/pkginstall/extract.t7oxnE/package /volume1/@appstore/python3
2021/07/03 18:52:29 install python3 3.7.10-16 End /bin/mv -f /volume1/@tmp/pkginstall/extract.t7oxnE/package /volume1/@appstore/python3 ret=[0]
2021/07/03 18:52:29 install python3 3.7.10-16 Begin /bin/rm -rf /var/packages/python3
2021/07/03 18:52:29 install python3 3.7.10-16 End /bin/rm -rf /var/packages/python3 ret=[0]
2021/07/03 18:52:29 install python3 3.7.10-16 Begin /bin/mkdir -p /var/packages/python3
2021/07/03 18:52:29 install python3 3.7.10-16 End /bin/mkdir -p /var/packages/python3 ret=[0]
2021/07/03 18:52:29 install python3 3.7.10-16 Begin /bin/touch /var/packages/python3/installing
2021/07/03 18:52:29 install python3 3.7.10-16 End /bin/touch /var/packages/python3/installing ret=[0]
2021/07/03 18:52:29 install python3 3.7.10-16 Begin /bin/mv -f /volume1/@tmp/pkginstall/extract.t7oxnE/INFO /var/packages/python3/INFO
2021/07/03 18:52:29 install python3 3.7.10-16 End /bin/mv -f /volume1/@tmp/pkginstall/extract.t7oxnE/INFO /var/packages/python3/INFO ret=[0]
2021/07/03 18:52:29 install python3 3.7.10-16 Begin /bin/rm -rf /var/packages/python3/scripts
2021/07/03 18:52:29 install python3 3.7.10-16 End /bin/rm -rf /var/packages/python3/scripts ret=[0]
2021/07/03 18:52:29 install python3 3.7.10-16 Begin /bin/mv -f /volume1/@tmp/pkginstall/extract.t7oxnE/scripts /var/packages/python3/scripts
2021/07/03 18:52:29 install python3 3.7.10-16 End /bin/mv -f /volume1/@tmp/pkginstall/extract.t7oxnE/scripts /var/packages/python3/scripts ret=[0]
2021/07/03 18:52:29 install python3 3.7.10-16 Begin /bin/rm -rf /var/packages/python3/WIZARD_UIFILES
2021/07/03 18:52:29 install python3 3.7.10-16 End /bin/rm -rf /var/packages/python3/WIZARD_UIFILES ret=[0]
2021/07/03 18:52:29 install python3 3.7.10-16 Begin /bin/mv -f /volume1/@tmp/pkginstall/extract.t7oxnE/WIZARD_UIFILES /var/packages/python3/WIZARD_UIFILES
2021/07/03 18:52:29 install python3 3.7.10-16 End /bin/mv -f /volume1/@tmp/pkginstall/extract.t7oxnE/WIZARD_UIFILES /var/packages/python3/WIZARD_UIFILES ret=[0]
2021/07/03 18:52:29 install python3 3.7.10-16 Begin /bin/rm -rf /var/packages/python3/conf
2021/07/03 18:52:29 install python3 3.7.10-16 End /bin/rm -rf /var/packages/python3/conf ret=[0]
2021/07/03 18:52:29 install python3 3.7.10-16 Begin /bin/mv -f /volume1/@tmp/pkginstall/extract.t7oxnE/conf /var/packages/python3/conf
2021/07/03 18:52:29 install python3 3.7.10-16 End /bin/mv -f /volume1/@tmp/pkginstall/extract.t7oxnE/conf /var/packages/python3/conf ret=[0]
2021/07/03 18:52:30 Acquire systemd-unit for python3 when 0x0001 (ready)
2021/07/03 18:52:30 Acquire systemd-unit for python3 when 0x0001 (done)
2021/07/03 18:52:31 install python3 3.7.10-16 Begin postinst
2021/07/03 18:52:31 install python3 3.7.10-16 End postinst ret=[0]
2021/07/03 18:52:31 install python3: begin to start version 3.7.10-16
2021/07/03 18:52:31 install python3 3.7.10-16 Begin start-stop-status start
2021/07/03 18:52:31 install python3 3.7.10-16 End start-stop-status start ret=[0]
2021/07/03 18:52:33 install python3: start version 3.7.10-16 successfully, result 0
2021/07/03 18:52:33 install python3 3.7.10-16 successfully
2021/07/03 18:52:33 download borgbackup https://packages.synocommunity.com/borgbackup/6/borgbackup.v6.f15047%5Bapollolake-avoton-braswell-broadwell-broadwellnk-bromolow-cedarview-denverton-dockerx64-geminilake-grantley-purley-kvmx64-x86-x86_64%5D.spk?arch=braswell&build=41890 Begin download
2021/07/03 18:52:35 download borgbackup https://packages.synocommunity.com/borgbackup/6/borgbackup.v6.f15047%5Bapollolake-avoton-braswell-broadwell-broadwellnk-bromolow-cedarview-denverton-dockerx64-geminilake-grantley-purley-kvmx64-x86-x86_64%5D.spk?arch=braswell&build=41890 End download
bluet commented

I tried packaging it myself but failed with the errors.

Error log

Stripping lib/libncurses.so.6.1... ok
Stripping lib/libpanel.so.6.1... ok
===>  Creating package icons for borgbackup
===>  Generating service scripts for borgbackup
ERROR: SPK_LINKS is unsupported in DSM7
Please migrate to SPK_USR_LOCAL_LINKS=
make[1]: *** [../../mk/spksrc.service.mk:97: /spksrc/spk/borgbackup/work-broadwell-7.0/scripts/service-setup] Error 1
make[1]: Leaving directory '/spksrc/spk/borgbackup'
make: [../../mk/spksrc.spk.mk:474: arch-broadwell] Error 2 (ignored)

Refs I follow

Host machine

Ubuntu Linux 18.04, 64bit

Steps I did

On host machine

git clone https://github.com/SynoCommunity/spksrc.git
docker pull synocommunity/spksrc
docker run -it -v `pwd`/spksrc:/spksrc synocommunity/spksrc /bin/bash

In docker container

git checkout dsm7-packages
make setup dsm-7.0
cd spk/borgbackup/
make arch-broadwell

Try the master branch

hgy59 commented

yes, current master does not use SPK_LINKS in spk/borgbackup/Makefile:

SPK_USR_LOCAL_LINKS = bin:env/bin/borg bin:env/bin/borgmatic

hgy59 commented

@bluet, I just opened PR #4710 to update borgmatic module in borgbackup package.
When the github build action is (successfully) finished, you can download the artifacts zip archive containing the spk files for all arch/DSM version built by github (see specific run).
For DS-916+ with DSM 7.0 you will need the file borgbackup_x64-7.0_1.1.16-8.spk from the build artifacts.