spksrc
spksrc copied to clipboard
add Urbackup
Description
This is a followup of #3983 as it was closed by @josef109
Closes #3819
Checklist
- [x] Build rule
all-supportedcompleted successfully - [x] New installation of package completed successfully
- [x] Package upgrade completed successfully (Manually install the package again)
- [ ] Package functionality was tested
- [ ] Any needed documentation is updated/created
Type of change
- [ ] Bug fix
- [x] New Package
- [ ] Package update
- [ ] Includes small framework changes
- [ ] This change requires a documentation update (e.g. Wiki)
Status
- urbackup-server runs on DSM 7 (tested with DS218+ apollolake/x64, DSM 7.0.1)
- urbackup-server runs on DSM 6 (tested with DSM 6.2.4 on DS115j armada370/armv7, and DS218 aarch64)
- Fixed: ubrackup-server fails to generate certificates on aarch64 (seems a problem with cross/cryptopp)
@adn77 you are probably interested in this PR, as you tried already to get it working on DSM 7 (https://github.com/adn77/spksrc/commit/899720af3eacc469c18bc3650767c48e5ac7c72e)
My personal build successfully installed on DS-218+ with DSM 7.0.1, web gui is working 😄
EDIT: next build will work on DSM 7, as c4955145d80a497c5af7a0894b95f36530555bb5 fixes the INSTALL_PREFIX_VAR.
install log:
Wed Apr 20 17:42:50 CEST 2022
Begin service_prestart
End service_prestart
Starting urbackup command /volume1/@appstore/urbackup/bin/urbackupsrv run --daemon --user sc-urbackup --http-port 55414 --pidfile /volume1/@appdata/urbackup/urbackup.pid --loglevel info --logfile /volume1/@appdata/urbackup/urbackup.log
Raising maximum file descriptor to 65535 failed. This may cause problems with many clients. (errno=1)
Raising nice-ceiling to 35 failed. (errno=1)
2022-04-20 17:42:50: Starting HTTP-Server on port 55414
2022-04-20 17:42:50: HTTP: Server started up successfully!
2022-04-20 17:42:50: Generating Server identity...
2022-04-20 17:42:50: Generating Server private/public ECDSA key...
2022-04-20 17:42:50: Calculating public key...
2022-04-20 17:42:51: Generating Server private/public DSA key...
2022-04-20 17:42:51: Calculating public key...
2022-04-20 17:42:51: Generating Server token...
2022-04-20 17:42:51: WARNING: Upgrading...
2022-04-20 17:42:51: WARNING: Upgrading database to version 8
2022-04-20 17:42:51: WARNING: Upgrading database to version 9
2022-04-20 17:42:52: WARNING: Upgrading database to version 10
2022-04-20 17:42:52: WARNING: Upgrading database to version 11
2022-04-20 17:42:52: WARNING: Upgrading database to version 12
2022-04-20 17:42:52: WARNING: Upgrading database to version 13
2022-04-20 17:42:52: WARNING: Upgrading database to version 14
2022-04-20 17:42:52: WARNING: Upgrading database to version 15
2022-04-20 17:42:52: WARNING: Upgrading database to version 16
2022-04-20 17:42:53: WARNING: Upgrading database to version 17
2022-04-20 17:42:53: WARNING: Upgrading database to version 18
2022-04-20 17:42:53: WARNING: Upgrading database to version 19
2022-04-20 17:42:53: WARNING: Upgrading database to version 20
2022-04-20 17:42:53: WARNING: Upgrading database to version 21
2022-04-20 17:42:53: WARNING: Upgrading database to version 22
2022-04-20 17:42:53: WARNING: Upgrading database to version 23
2022-04-20 17:42:54: WARNING: Upgrading database to version 24
2022-04-20 17:42:54: WARNING: Upgrading database to version 25
2022-04-20 17:42:54: WARNING: Upgrading database to version 26
2022-04-20 17:42:54: WARNING: Upgrading database to version 27
2022-04-20 17:42:54: WARNING: Upgrading database to version 28
2022-04-20 17:42:55: WARNING: Upgrading database to version 29
2022-04-20 17:42:55: WARNING: Upgrading database to version 30
2022-04-20 17:42:55: WARNING: Upgrading database to version 31
2022-04-20 17:42:55: WARNING: Upgrading database to version 32
2022-04-20 17:42:55: WARNING: Upgrading database to version 33
2022-04-20 17:42:56: WARNING: Upgrading database to version 34
2022-04-20 17:42:56: WARNING: Upgrading database to version 35
2022-04-20 17:42:56: WARNING: Upgrading database to version 36
2022-04-20 17:42:57: WARNING: Upgrading database to version 37
2022-04-20 17:42:57: WARNING: Upgrading database to version 38
2022-04-20 17:42:57: WARNING: Upgrading database to version 39
2022-04-20 17:42:57: WARNING: Upgrading database to version 40
2022-04-20 17:42:57: WARNING: Upgrading database to version 41
2022-04-20 17:42:58: WARNING: Upgrading database to version 42
2022-04-20 17:42:58: WARNING: Upgrading database to version 43
2022-04-20 17:42:58: WARNING: Upgrading database to version 44
2022-04-20 17:42:58: WARNING: Upgrading database to version 45
2022-04-20 17:42:59: WARNING: Upgrading database to version 46
2022-04-20 17:42:59: WARNING: Upgrading database to version 48
2022-04-20 17:42:59: WARNING: Upgrading database to version 49
2022-04-20 17:42:59: WARNING: Upgrading database to version 50
2022-04-20 17:42:59: WARNING: Upgrading database to version 51
2022-04-20 17:42:59: WARNING: Upgrading database to version 52
2022-04-20 17:43:00: WARNING: Upgrading database to version 53
2022-04-20 17:43:00: WARNING: Upgrading database to version 54
2022-04-20 17:43:00: WARNING: Upgrading database to version 55
2022-04-20 17:43:00: WARNING: Upgrading database to version 56
2022-04-20 17:43:00: WARNING: Upgrading database to version 57
2022-04-20 17:43:00: WARNING: Upgrading database to version 58
2022-04-20 17:43:01: WARNING: Upgrading database to version 59
2022-04-20 17:43:01: WARNING: Done.
2022-04-20 17:43:01: Deleting database journal...
2022-04-20 17:43:01: Copying/reflinking database...
2022-04-20 17:43:01: WARNING: Creating file entry index. This might take a while...
2022-04-20 17:43:01: Getting number of files...
2022-04-20 17:43:01: Dropping index...
2022-04-20 17:43:01: Starting creating files index...
2022-04-20 17:43:01: Creating backupid index...
2022-04-20 17:43:01: Syncing...
2022-04-20 17:43:01: Renaming back result...
2022-04-20 17:43:01: SQLite: recovered 1 frames from WAL file /volume1/@appdata/urbackup/urbackup/backup_server.db-wal code: 283
2022-04-20 17:43:01: SQLite: recovered 2 frames from WAL file /volume1/@appdata/urbackup/urbackup/backup_server_settings.db-wal code: 283
2022-04-20 17:43:01: Started UrBackup...
2022-04-20 17:43:01: Removing temporary files...
2022-04-20 17:43:01: ERROR: No permission to access "/volume1/urbackup2/urbackup_tmp_files"
2022-04-20 17:43:01: Recreating temporary folder...
2022-04-20 17:43:01: Image mounting disabled: Backupfolder not set
2022-04-20 17:43:01: Backup destination cannot handle subvolumes and snapshots. Snapshots disabled.
2022-04-20 17:43:01: Broadcasting on ipv4 interface ovs_eth0 addr 192.168.0.227
2022-04-20 17:43:01: Broadcasting on ipv4 interface docker0 addr 172.17.0.1
2022-04-20 17:43:02: UrBackup Server start up complete.
2022-04-20 17:43:02: Server started up successfully!
2022-04-20 17:43:02: Looking for old Sessions... 0 sessions
2022-04-20 17:43:03: Downloading version file...
2022-04-20 17:43:03: Downloading version file...
2022-04-20 17:43:03: Downloading signature...
2022-04-20 17:43:03: Getting update file URL...
2022-04-20 17:43:03: Downloading update file...
2022-04-20 17:43:07: Successfully downloaded update file.
2022-04-20 17:43:07: Downloading server version info...
2022-04-20 17:43:07: Downloading dataplan database...
A question to @josef109, @adn77 or any other urbackup user:
Is it useful to combine urbackup-server and urbackup-client into one package - or shall I create two dedicated packages, as you either need the server or the client on one diskstation but not both?
@th0ma7 c4955145d80a497c5af7a0894b95f36530555bb5 is another fix for #5163
without this fix, I got the error below in urbackup.log on DSM 7
... ERROR: Cannot set working directory to directory /var/packages/urbackup/target/../var
@th0ma7 c495514 is another fix for #5163
without this fix, I got the error below in urbackup.log on DSM 7
... ERROR: Cannot set working directory to directory /var/packages/urbackup/target/../var
Quite odd but indeed interesting fix, good catch again! May I suggest you create a disctinct PR as bug-fix so we can follow-up on it?
This might not be the right place to discuss this... The reason I moved to the docker version was that it mostly works out of the box. I had great troubles getting the native server to work as non-root. Also Urbackup has its biggest benefits when using BTRFS and snapshots. https://forums.urbackup.org/t/synology-package/1501/28
I totally recognize the hard work that went into this PR ;)
I moved to the docker version
Models without x64 arch do not support docker. Those need such a package.
Currently builds for aarch64 fail at startup when creating public/private key files with cross/cryptopp library.
@ndroftheline when you still interested in urbackup you are invited to test this package. To download packages built by github, navigate to: checks - build - artifacts.
@josef109 are you still interested in this package and want to stay the maintainer?
Is there a readme or how to, as I am not familiar with github actions, how to get the newest package? Or should I just try the last one from josef109 directly as I just saw that he released a new version (2.5.30) about 3 weeks ago as the previous version (2.5.27) was not working for my DS1817, which made me use his predecessor (2.4.15).
Edith says: OK, just tested the new Version from josef109 and that refuses to start like his other 2.5 release.